From ac9336072452ac943e0340fce4ee04f5b51fda51 Mon Sep 17 00:00:00 2001 From: Yaacov Zamir Date: Wed, 14 Feb 2024 19:59:12 +0200 Subject: [PATCH] Update generated types Signed-off-by: Yaacov Zamir --- .../Metrics/cards/VmMigrationsChartCard.tsx | 7 +- .../Providers/hooks/useK8sWatchSecretData.ts | 6 +- .../modules/Providers/hooks/useStorages.ts | 2 +- .../EditProviderURL/utils/patchProviderURL.ts | 4 +- .../utils/helpers/isSecretDataChanged.ts | 11 +- .../utils/helpers/missingKeysInSecretData.ts | 6 +- .../openshift/openshiftSecretValidator.ts | 4 +- .../openstack/openstackSecretValidator.ts | 4 +- .../provider/ovirt/ovirtSecretValidator.ts | 4 +- .../provider/providerAndSecretValidator.ts | 4 +- .../validators/provider/secretValidator.ts | 4 +- .../vsphere/vsphereSecretValidator.ts | 4 +- .../views/create/ProvidersCreatePage.tsx | 10 +- .../create/components/ProviderCreateForm.tsx | 6 +- .../views/create/templates/secretTemplate.ts | 4 +- .../views/create/utils/createProvider.ts | 6 +- .../create/utils/createProviderSecret.ts | 11 +- .../create/utils/patchProviderSecretOwner.ts | 9 +- .../CredentialsSection/CredentialsSection.tsx | 4 +- .../components/BaseCredentialsSection.tsx | 20 +- .../components/edit/patchSecretData.ts | 6 +- .../Hosts/utils/helpers/createHostSecret.ts | 8 +- .../utils/helpers/matchHostsToInventory.ts | 2 +- .../tabs/Hosts/utils/helpers/onSaveHost.ts | 6 +- .../utils/helpers/patchHostSecretOwner.ts | 6 +- .../src/definitions/basic/migrations.mock.ts | 8 +- packages/mocks/src/definitions/basic/paths.ts | 4 +- .../src/definitions/basic/secrets.mock.ts | 6 +- packages/mocks/src/definitions/utils.ts | 4 +- packages/types/.eslintrc.cjs | 1 + packages/types/ci/generate-schemas.sh | 41 - packages/types/package.json | 6 +- .../types/schemas/ProviderSecret.schema.json | 151 - .../types/schemas/V1beta1Hook.schema.json | 244 - .../types/schemas/V1beta1Host.schema.json | 324 - .../schemas/V1beta1Migration.schema.json | 762 - .../schemas/V1beta1NetworkMap.schema.json | 408 - .../V1beta1OvirtVolumePopulator.schema.json | 186 - .../types/schemas/V1beta1Plan.schema.json | 1325 - .../types/schemas/V1beta1Provider.schema.json | 286 - .../schemas/V1beta1StorageMap.schema.json | 413 - .../forklift}/README.md | 29 +- .../ForkliftControllerModel.v1beta1.ts | 0 .../forklift}/constants/HookModel.v1beta1.ts | 2 +- .../forklift}/constants/HostModel.v1beta1.ts | 2 +- .../constants/MigrationModel.v1beta1.ts | 2 +- .../constants/NetworkMapModel.v1beta1.ts | 0 .../OpenstackVolumePopulatorModel.v1beta1.ts | 28 + .../OvirtVolumePopulatorModel.v1beta1.ts | 0 .../forklift}/constants/PlanModel.v1beta1.ts | 0 .../constants/ProviderModel.v1beta1.ts | 0 .../constants/StorageMapModel.v1beta1.ts | 0 .../forklift}/constants/index.ts | 1 + ...klift.konveyor.io_forkliftcontrollers.yaml | 44 + .../crds/forklift.konveyor.io_hooks.yaml | 115 + .../crds/forklift.konveyor.io_hosts.yaml | 195 + .../crds/forklift.konveyor.io_migrations.yaml | 476 + .../forklift.konveyor.io_networkmaps.yaml | 245 + ...konveyor.io_openstackvolumepopulators.yaml | 97 + ...ift.konveyor.io_ovirtvolumepopulators.yaml | 97 + .../crds/forklift.konveyor.io_plans.yaml | 921 + .../crds/forklift.konveyor.io_providers.yaml | 169 + .../forklift.konveyor.io_storagemaps.yaml | 249 + .../types/src/generated/forklift/index.ts | 2 + ...oK8sApimachineryPkgApisMetaV1ObjectMeta.ts | 10 +- .../models/V1beta1ForkliftController.ts | 10 +- .../forklift}/models/V1beta1Hook.ts | 10 +- .../forklift}/models/V1beta1HookSpec.ts | 10 +- .../forklift}/models/V1beta1HookStatus.ts | 10 +- .../models/V1beta1HookStatusConditions.ts | 10 +- .../forklift}/models/V1beta1Host.ts | 10 +- .../forklift}/models/V1beta1HostSpec.ts | 16 +- .../models/V1beta1HostSpecProvider.ts | 10 +- .../forklift}/models/V1beta1HostSpecSecret.ts | 10 +- .../forklift}/models/V1beta1HostStatus.ts | 10 +- .../models/V1beta1HostStatusConditions.ts | 10 +- .../forklift}/models/V1beta1Migration.ts | 10 +- .../forklift}/models/V1beta1MigrationSpec.ts | 10 +- .../models/V1beta1MigrationSpecCancel.ts | 16 +- .../models/V1beta1MigrationSpecPlan.ts | 10 +- .../models/V1beta1MigrationStatus.ts | 10 +- .../V1beta1MigrationStatusConditions.ts | 10 +- .../models/V1beta1MigrationStatusVms.ts | 16 +- .../V1beta1MigrationStatusVmsConditions.ts | 10 +- .../models/V1beta1MigrationStatusVmsError.ts | 10 +- .../models/V1beta1MigrationStatusVmsHooks.ts | 10 +- .../V1beta1MigrationStatusVmsHooksHook.ts | 10 +- .../V1beta1MigrationStatusVmsPipeline.ts | 10 +- .../V1beta1MigrationStatusVmsPipelineError.ts | 10 +- ...beta1MigrationStatusVmsPipelineProgress.ts | 10 +- .../V1beta1MigrationStatusVmsPipelineTasks.ts | 10 +- ...ta1MigrationStatusVmsPipelineTasksError.ts | 10 +- ...MigrationStatusVmsPipelineTasksProgress.ts | 10 +- .../models/V1beta1MigrationStatusVmsWarm.ts | 10 +- .../V1beta1MigrationStatusVmsWarmPrecopies.ts | 10 +- .../forklift}/models/V1beta1NetworkMap.ts | 10 +- .../forklift}/models/V1beta1NetworkMapSpec.ts | 10 +- .../models/V1beta1NetworkMapSpecMap.ts | 10 +- .../V1beta1NetworkMapSpecMapDestination.ts | 10 +- .../models/V1beta1NetworkMapSpecMapSource.ts | 12 +- .../models/V1beta1NetworkMapSpecProvider.ts | 10 +- ...1beta1NetworkMapSpecProviderDestination.ts | 10 +- .../V1beta1NetworkMapSpecProviderSource.ts | 10 +- .../models/V1beta1NetworkMapStatus.ts | 10 +- .../V1beta1NetworkMapStatusConditions.ts | 10 +- .../V1beta1NetworkMapStatusReferences.ts | 16 +- .../models/V1beta1OpenstackVolumePopulator.ts | 46 + .../V1beta1OpenstackVolumePopulatorSpec.ts | 37 + ...stackVolumePopulatorSpecTransferNetwork.ts | 61 + .../V1beta1OpenstackVolumePopulatorStatus.ts | 19 + .../models/V1beta1OvirtVolumePopulator.ts | 10 +- .../models/V1beta1OvirtVolumePopulatorSpec.ts | 18 +- ...OvirtVolumePopulatorSpecTransferNetwork.ts | 61 + .../V1beta1OvirtVolumePopulatorStatus.ts | 14 +- .../forklift}/models/V1beta1Plan.ts | 10 +- .../forklift}/models/V1beta1PlanSpec.ts | 24 +- .../forklift}/models/V1beta1PlanSpecMap.ts | 10 +- .../models/V1beta1PlanSpecMapNetwork.ts | 10 +- .../models/V1beta1PlanSpecMapStorage.ts | 10 +- .../models/V1beta1PlanSpecProvider.ts | 10 +- .../V1beta1PlanSpecProviderDestination.ts | 10 +- .../models/V1beta1PlanSpecProviderSource.ts | 10 +- .../models/V1beta1PlanSpecTransferNetwork.ts | 10 +- .../forklift}/models/V1beta1PlanSpecVms.ts | 16 +- .../models/V1beta1PlanSpecVmsHooks.ts | 10 +- .../models/V1beta1PlanSpecVmsHooksHook.ts | 10 +- .../forklift}/models/V1beta1PlanStatus.ts | 10 +- .../models/V1beta1PlanStatusConditions.ts | 10 +- .../models/V1beta1PlanStatusMigration.ts | 10 +- .../V1beta1PlanStatusMigrationHistory.ts | 10 +- ...ta1PlanStatusMigrationHistoryConditions.ts | 10 +- .../V1beta1PlanStatusMigrationHistoryMap.ts | 10 +- ...ta1PlanStatusMigrationHistoryMapNetwork.ts | 10 +- ...ta1PlanStatusMigrationHistoryMapStorage.ts | 10 +- ...eta1PlanStatusMigrationHistoryMigration.ts | 10 +- .../V1beta1PlanStatusMigrationHistoryPlan.ts | 10 +- ...beta1PlanStatusMigrationHistoryProvider.ts | 10 +- ...atusMigrationHistoryProviderDestination.ts | 10 +- ...lanStatusMigrationHistoryProviderSource.ts | 10 +- .../models/V1beta1PlanStatusMigrationVms.ts | 16 +- ...V1beta1PlanStatusMigrationVmsConditions.ts | 10 +- .../V1beta1PlanStatusMigrationVmsError.ts | 10 +- .../V1beta1PlanStatusMigrationVmsHooks.ts | 10 +- .../V1beta1PlanStatusMigrationVmsHooksHook.ts | 10 +- .../V1beta1PlanStatusMigrationVmsPipeline.ts | 10 +- ...eta1PlanStatusMigrationVmsPipelineError.ts | 10 +- ...1PlanStatusMigrationVmsPipelineProgress.ts | 10 +- ...eta1PlanStatusMigrationVmsPipelineTasks.ts | 10 +- ...lanStatusMigrationVmsPipelineTasksError.ts | 10 +- ...StatusMigrationVmsPipelineTasksProgress.ts | 10 +- .../V1beta1PlanStatusMigrationVmsWarm.ts | 10 +- ...eta1PlanStatusMigrationVmsWarmPrecopies.ts | 10 +- .../forklift}/models/V1beta1Provider.ts | 10 +- .../forklift}/models/V1beta1ProviderSpec.ts | 10 +- .../models/V1beta1ProviderSpecSecret.ts | 10 +- .../forklift}/models/V1beta1ProviderStatus.ts | 16 +- .../models/V1beta1ProviderStatusConditions.ts | 10 +- .../forklift}/models/V1beta1StorageMap.ts | 10 +- .../forklift}/models/V1beta1StorageMapSpec.ts | 10 +- .../models/V1beta1StorageMapSpecMap.ts | 10 +- .../V1beta1StorageMapSpecMapDestination.ts | 10 +- .../models/V1beta1StorageMapSpecMapSource.ts | 16 +- .../models/V1beta1StorageMapSpecProvider.ts | 10 +- ...1beta1StorageMapSpecProviderDestination.ts | 10 +- .../V1beta1StorageMapSpecProviderSource.ts | 10 +- .../models/V1beta1StorageMapStatus.ts | 10 +- .../V1beta1StorageMapStatusConditions.ts | 10 +- .../V1beta1StorageMapStatusReferences.ts | 16 +- .../src/generated/forklift/models/index.ts | 105 + .../types/src/generated/forklift/openapi.yaml | 2564 + packages/types/src/generated/index.ts | 5 + .../types/src/generated/kubernetes/README.md | 15 + .../types/src/generated/kubernetes/index.ts | 1 + ...piAdmissionregistrationV1MatchCondition.ts | 85 + ...iAdmissionregistrationV1MutatingWebhook.ts | 203 + ...istrationV1MutatingWebhookConfiguration.ts | 102 + ...ationV1MutatingWebhookConfigurationList.ts | 103 + ...missionregistrationV1RuleWithOperations.ts | 103 + ...AdmissionregistrationV1ServiceReference.ts | 91 + ...dmissionregistrationV1ValidatingWebhook.ts | 189 + ...trationV1ValidatingWebhookConfiguration.ts | 102 + ...ionV1ValidatingWebhookConfigurationList.ts | 103 + ...issionregistrationV1WebhookClientConfig.ts | 98 + ...sionregistrationV1alpha1AuditAnnotation.ts | 85 + ...onregistrationV1alpha1ExpressionWarning.ts | 75 + ...ssionregistrationV1alpha1MatchCondition.ts | 85 + ...ssionregistrationV1alpha1MatchResources.ts | 116 + ...strationV1alpha1NamedRuleWithOperations.ts | 111 + ...iAdmissionregistrationV1alpha1ParamKind.ts | 73 + ...piAdmissionregistrationV1alpha1ParamRef.ts | 106 + ...missionregistrationV1alpha1TypeChecking.ts | 72 + ...rationV1alpha1ValidatingAdmissionPolicy.ts | 116 + ...1alpha1ValidatingAdmissionPolicyBinding.ts | 106 + ...ha1ValidatingAdmissionPolicyBindingList.ts | 102 + ...ha1ValidatingAdmissionPolicyBindingSpec.ts | 120 + ...onV1alpha1ValidatingAdmissionPolicyList.ts | 102 + ...onV1alpha1ValidatingAdmissionPolicySpec.ts | 169 + ...V1alpha1ValidatingAdmissionPolicyStatus.ts | 94 + ...AdmissionregistrationV1alpha1Validation.ts | 115 + ...piAdmissionregistrationV1alpha1Variable.ts | 75 + ...ssionregistrationV1beta1AuditAnnotation.ts | 85 + ...ionregistrationV1beta1ExpressionWarning.ts | 75 + ...issionregistrationV1beta1MatchCondition.ts | 85 + ...issionregistrationV1beta1MatchResources.ts | 116 + ...istrationV1beta1NamedRuleWithOperations.ts | 111 + ...piAdmissionregistrationV1beta1ParamKind.ts | 73 + ...ApiAdmissionregistrationV1beta1ParamRef.ts | 110 + ...dmissionregistrationV1beta1TypeChecking.ts | 72 + ...trationV1beta1ValidatingAdmissionPolicy.ts | 116 + ...V1beta1ValidatingAdmissionPolicyBinding.ts | 106 + ...ta1ValidatingAdmissionPolicyBindingList.ts | 102 + ...ta1ValidatingAdmissionPolicyBindingSpec.ts | 120 + ...ionV1beta1ValidatingAdmissionPolicyList.ts | 102 + ...ionV1beta1ValidatingAdmissionPolicySpec.ts | 169 + ...nV1beta1ValidatingAdmissionPolicyStatus.ts | 94 + ...iAdmissionregistrationV1beta1Validation.ts | 115 + ...ApiAdmissionregistrationV1beta1Variable.ts | 75 + ...verinternalV1alpha1ServerStorageVersion.ts | 89 + ...ApiserverinternalV1alpha1StorageVersion.ts | 112 + ...internalV1alpha1StorageVersionCondition.ts | 108 + ...erverinternalV1alpha1StorageVersionList.ts | 103 + ...verinternalV1alpha1StorageVersionStatus.ts | 94 + .../IoK8sApiAppsV1ControllerRevision.ts | 142 + .../IoK8sApiAppsV1ControllerRevisionList.ts | 103 + .../models/IoK8sApiAppsV1DaemonSet.ts | 116 + .../IoK8sApiAppsV1DaemonSetCondition.ts | 99 + .../models/IoK8sApiAppsV1DaemonSetList.ts | 103 + .../models/IoK8sApiAppsV1DaemonSetSpec.ts | 118 + .../models/IoK8sApiAppsV1DaemonSetStatus.ts | 148 + .../IoK8sApiAppsV1DaemonSetUpdateStrategy.ts | 80 + .../models/IoK8sApiAppsV1Deployment.ts | 116 + .../IoK8sApiAppsV1DeploymentCondition.ts | 107 + .../models/IoK8sApiAppsV1DeploymentList.ts | 103 + .../models/IoK8sApiAppsV1DeploymentSpec.ts | 142 + .../models/IoK8sApiAppsV1DeploymentStatus.ts | 128 + .../IoK8sApiAppsV1DeploymentStrategy.ts | 80 + .../models/IoK8sApiAppsV1ReplicaSet.ts | 116 + .../IoK8sApiAppsV1ReplicaSetCondition.ts | 99 + .../models/IoK8sApiAppsV1ReplicaSetList.ts | 103 + .../models/IoK8sApiAppsV1ReplicaSetSpec.ts | 103 + .../models/IoK8sApiAppsV1ReplicaSetStatus.ts | 113 + .../IoK8sApiAppsV1RollingUpdateDaemonSet.ts | 73 + .../IoK8sApiAppsV1RollingUpdateDeployment.ts | 73 + ...iAppsV1RollingUpdateStatefulSetStrategy.ts | 73 + .../models/IoK8sApiAppsV1StatefulSet.ts | 120 + .../IoK8sApiAppsV1StatefulSetCondition.ts | 99 + .../models/IoK8sApiAppsV1StatefulSetList.ts | 103 + .../IoK8sApiAppsV1StatefulSetOrdinals.ts | 68 + ...SetPersistentVolumeClaimRetentionPolicy.ts | 73 + .../models/IoK8sApiAppsV1StatefulSetSpec.ts | 185 + .../models/IoK8sApiAppsV1StatefulSetStatus.ts | 145 + ...IoK8sApiAppsV1StatefulSetUpdateStrategy.ts | 80 + ...ApiAuthenticationV1BoundObjectReference.ts | 89 + ...K8sApiAuthenticationV1SelfSubjectReview.ts | 102 + ...AuthenticationV1SelfSubjectReviewStatus.ts | 72 + .../IoK8sApiAuthenticationV1TokenRequest.ts | 117 + ...oK8sApiAuthenticationV1TokenRequestSpec.ts | 89 + ...8sApiAuthenticationV1TokenRequestStatus.ts | 75 + .../IoK8sApiAuthenticationV1TokenReview.ts | 117 + ...IoK8sApiAuthenticationV1TokenReviewSpec.ts | 73 + ...K8sApiAuthenticationV1TokenReviewStatus.ts | 96 + .../IoK8sApiAuthenticationV1UserInfo.ts | 89 + ...AuthenticationV1alpha1SelfSubjectReview.ts | 102 + ...ticationV1alpha1SelfSubjectReviewStatus.ts | 72 + ...iAuthenticationV1beta1SelfSubjectReview.ts | 102 + ...nticationV1beta1SelfSubjectReviewStatus.ts | 72 + ...AuthorizationV1LocalSubjectAccessReview.ts | 117 + ...ApiAuthorizationV1NonResourceAttributes.ts | 73 + .../IoK8sApiAuthorizationV1NonResourceRule.ts | 74 + ...K8sApiAuthorizationV1ResourceAttributes.ts | 113 + .../IoK8sApiAuthorizationV1ResourceRule.ts | 91 + ...iAuthorizationV1SelfSubjectAccessReview.ts | 117 + ...horizationV1SelfSubjectAccessReviewSpec.ts | 86 + ...piAuthorizationV1SelfSubjectRulesReview.ts | 117 + ...thorizationV1SelfSubjectRulesReviewSpec.ts | 65 + ...8sApiAuthorizationV1SubjectAccessReview.ts | 117 + ...iAuthorizationV1SubjectAccessReviewSpec.ts | 118 + ...uthorizationV1SubjectAccessReviewStatus.ts | 90 + ...AuthorizationV1SubjectRulesReviewStatus.ts | 105 + ...utoscalingV1CrossVersionObjectReference.ts | 83 + ...ApiAutoscalingV1HorizontalPodAutoscaler.ts | 116 + ...utoscalingV1HorizontalPodAutoscalerList.ts | 103 + ...utoscalingV1HorizontalPodAutoscalerSpec.ts | 98 + ...oscalingV1HorizontalPodAutoscalerStatus.ts | 99 + .../models/IoK8sApiAutoscalingV1Scale.ts | 116 + .../models/IoK8sApiAutoscalingV1ScaleSpec.ts | 65 + .../IoK8sApiAutoscalingV1ScaleStatus.ts | 74 + ...oscalingV2ContainerResourceMetricSource.ts | 91 + ...oscalingV2ContainerResourceMetricStatus.ts | 91 + ...utoscalingV2CrossVersionObjectReference.ts | 83 + ...K8sApiAutoscalingV2ExternalMetricSource.ts | 88 + ...K8sApiAutoscalingV2ExternalMetricStatus.ts | 88 + .../IoK8sApiAutoscalingV2HPAScalingPolicy.ts | 84 + .../IoK8sApiAutoscalingV2HPAScalingRules.ts | 88 + ...ApiAutoscalingV2HorizontalPodAutoscaler.ts | 116 + ...calingV2HorizontalPodAutoscalerBehavior.ts | 80 + ...alingV2HorizontalPodAutoscalerCondition.ts | 99 + ...utoscalingV2HorizontalPodAutoscalerList.ts | 103 + ...utoscalingV2HorizontalPodAutoscalerSpec.ts | 118 + ...oscalingV2HorizontalPodAutoscalerStatus.ts | 119 + .../IoK8sApiAutoscalingV2MetricIdentifier.ts | 81 + .../models/IoK8sApiAutoscalingV2MetricSpec.ts | 137 + .../IoK8sApiAutoscalingV2MetricStatus.ts | 137 + .../IoK8sApiAutoscalingV2MetricTarget.ts | 162 + .../IoK8sApiAutoscalingV2MetricValueStatus.ts | 153 + ...IoK8sApiAutoscalingV2ObjectMetricSource.ts | 103 + ...IoK8sApiAutoscalingV2ObjectMetricStatus.ts | 103 + .../IoK8sApiAutoscalingV2PodsMetricSource.ts | 88 + .../IoK8sApiAutoscalingV2PodsMetricStatus.ts | 88 + ...K8sApiAutoscalingV2ResourceMetricSource.ts | 82 + ...K8sApiAutoscalingV2ResourceMetricStatus.ts | 82 + .../models/IoK8sApiBatchV1CronJob.ts | 116 + .../models/IoK8sApiBatchV1CronJobList.ts | 103 + .../models/IoK8sApiBatchV1CronJobSpec.ts | 132 + .../models/IoK8sApiBatchV1CronJobStatus.ts | 88 + .../kubernetes/models/IoK8sApiBatchV1Job.ts | 116 + .../models/IoK8sApiBatchV1JobCondition.ts | 107 + .../models/IoK8sApiBatchV1JobList.ts | 103 + .../models/IoK8sApiBatchV1JobSpec.ts | 200 + .../models/IoK8sApiBatchV1JobStatus.ts | 160 + .../models/IoK8sApiBatchV1JobTemplateSpec.ts | 86 + .../models/IoK8sApiBatchV1PodFailurePolicy.ts | 73 + ...1PodFailurePolicyOnExitCodesRequirement.ts | 91 + ...1PodFailurePolicyOnPodConditionsPattern.ts | 75 + .../IoK8sApiBatchV1PodFailurePolicyRule.ts | 107 + .../IoK8sApiBatchV1UncountedTerminatedPods.ts | 73 + ...CertificatesV1CertificateSigningRequest.ts | 123 + ...tesV1CertificateSigningRequestCondition.ts | 117 + ...ificatesV1CertificateSigningRequestList.ts | 103 + ...ificatesV1CertificateSigningRequestSpec.ts | 167 + ...icatesV1CertificateSigningRequestStatus.ts | 101 + ...iCertificatesV1alpha1ClusterTrustBundle.ts | 107 + ...tificatesV1alpha1ClusterTrustBundleList.ts | 103 + ...tificatesV1alpha1ClusterTrustBundleSpec.ts | 86 + .../models/IoK8sApiCoordinationV1Lease.ts | 102 + .../models/IoK8sApiCoordinationV1LeaseList.ts | 103 + .../models/IoK8sApiCoordinationV1LeaseSpec.ts | 97 + ...iCoreV1AWSElasticBlockStoreVolumeSource.ts | 92 + .../models/IoK8sApiCoreV1Affinity.ts | 100 + .../models/IoK8sApiCoreV1AttachedVolume.ts | 75 + .../IoK8sApiCoreV1AzureDiskVolumeSource.ts | 107 + ...piCoreV1AzureFilePersistentVolumeSource.ts | 91 + .../IoK8sApiCoreV1AzureFileVolumeSource.ts | 83 + .../models/IoK8sApiCoreV1Binding.ts | 103 + ...IoK8sApiCoreV1CSIPersistentVolumeSource.ts | 146 + .../models/IoK8sApiCoreV1CSIVolumeSource.ts | 105 + .../models/IoK8sApiCoreV1Capabilities.ts | 73 + ...8sApiCoreV1CephFSPersistentVolumeSource.ts | 113 + .../IoK8sApiCoreV1CephFSVolumeSource.ts | 113 + ...8sApiCoreV1CinderPersistentVolumeSource.ts | 97 + .../IoK8sApiCoreV1CinderVolumeSource.ts | 97 + .../models/IoK8sApiCoreV1ClaimSource.ts | 79 + .../models/IoK8sApiCoreV1ClientIPConfig.ts | 65 + ...8sApiCoreV1ClusterTrustBundleProjection.ts | 105 + .../IoK8sApiCoreV1ComponentCondition.ts | 91 + .../models/IoK8sApiCoreV1ComponentStatus.ts | 102 + .../IoK8sApiCoreV1ComponentStatusList.ts | 103 + .../models/IoK8sApiCoreV1ConfigMap.ts | 112 + .../IoK8sApiCoreV1ConfigMapEnvSource.ts | 75 + .../IoK8sApiCoreV1ConfigMapKeySelector.ts | 82 + .../models/IoK8sApiCoreV1ConfigMapList.ts | 103 + ...IoK8sApiCoreV1ConfigMapNodeConfigSource.ts | 100 + .../IoK8sApiCoreV1ConfigMapProjection.ts | 90 + .../IoK8sApiCoreV1ConfigMapVolumeSource.ts | 98 + .../models/IoK8sApiCoreV1Container.ts | 311 + .../models/IoK8sApiCoreV1ContainerImage.ts | 73 + .../models/IoK8sApiCoreV1ContainerPort.ts | 98 + .../IoK8sApiCoreV1ContainerResizePolicy.ts | 75 + .../models/IoK8sApiCoreV1ContainerState.ts | 100 + .../IoK8sApiCoreV1ContainerStateRunning.ts | 65 + .../IoK8sApiCoreV1ContainerStateTerminated.ts | 114 + .../IoK8sApiCoreV1ContainerStateWaiting.ts | 73 + .../models/IoK8sApiCoreV1ContainerStatus.ts | 165 + .../models/IoK8sApiCoreV1DaemonEndpoint.ts | 66 + .../IoK8sApiCoreV1DownwardAPIProjection.ts | 72 + .../IoK8sApiCoreV1DownwardAPIVolumeFile.ts | 103 + .../IoK8sApiCoreV1DownwardAPIVolumeSource.ts | 80 + .../IoK8sApiCoreV1EmptyDirVolumeSource.ts | 109 + .../models/IoK8sApiCoreV1EndpointAddress.ts | 97 + .../models/IoK8sApiCoreV1EndpointPort.ts | 99 + .../models/IoK8sApiCoreV1EndpointSubset.ts | 104 + .../models/IoK8sApiCoreV1Endpoints.ts | 114 + .../models/IoK8sApiCoreV1EndpointsList.ts | 103 + .../models/IoK8sApiCoreV1EnvFromSource.ts | 94 + .../kubernetes/models/IoK8sApiCoreV1EnvVar.ts | 89 + .../models/IoK8sApiCoreV1EnvVarSource.ts | 114 + .../IoK8sApiCoreV1EphemeralContainer.ts | 323 + .../IoK8sApiCoreV1EphemeralVolumeSource.ts | 72 + .../kubernetes/models/IoK8sApiCoreV1Event.ts | 220 + .../models/IoK8sApiCoreV1EventList.ts | 103 + .../models/IoK8sApiCoreV1EventSeries.ts | 73 + .../models/IoK8sApiCoreV1EventSource.ts | 73 + .../models/IoK8sApiCoreV1ExecAction.ts | 65 + .../models/IoK8sApiCoreV1FCVolumeSource.ts | 97 + ...oK8sApiCoreV1FlexPersistentVolumeSource.ts | 105 + .../models/IoK8sApiCoreV1FlexVolumeSource.ts | 105 + .../IoK8sApiCoreV1FlockerVolumeSource.ts | 73 + ...sApiCoreV1GCEPersistentDiskVolumeSource.ts | 92 + .../models/IoK8sApiCoreV1GRPCAction.ts | 76 + .../IoK8sApiCoreV1GitRepoVolumeSource.ts | 84 + ...piCoreV1GlusterfsPersistentVolumeSource.ts | 91 + .../IoK8sApiCoreV1GlusterfsVolumeSource.ts | 83 + .../models/IoK8sApiCoreV1HTTPGetAction.ts | 105 + .../models/IoK8sApiCoreV1HTTPHeader.ts | 75 + .../models/IoK8sApiCoreV1HostAlias.ts | 73 + .../kubernetes/models/IoK8sApiCoreV1HostIP.ts | 65 + .../IoK8sApiCoreV1HostPathVolumeSource.ts | 74 + ...K8sApiCoreV1ISCSIPersistentVolumeSource.ts | 155 + .../models/IoK8sApiCoreV1ISCSIVolumeSource.ts | 155 + .../models/IoK8sApiCoreV1KeyToPath.ts | 83 + .../models/IoK8sApiCoreV1Lifecycle.ts | 80 + .../models/IoK8sApiCoreV1LifecycleHandler.ts | 114 + .../models/IoK8sApiCoreV1LimitRange.ts | 102 + .../models/IoK8sApiCoreV1LimitRangeItem.ts | 106 + .../models/IoK8sApiCoreV1LimitRangeList.ts | 103 + .../models/IoK8sApiCoreV1LimitRangeSpec.ts | 73 + .../IoK8sApiCoreV1LoadBalancerIngress.ts | 96 + .../IoK8sApiCoreV1LoadBalancerStatus.ts | 72 + .../IoK8sApiCoreV1LocalObjectReference.ts | 65 + .../models/IoK8sApiCoreV1LocalVolumeSource.ts | 74 + .../IoK8sApiCoreV1ModifyVolumeStatus.ts | 83 + .../models/IoK8sApiCoreV1NFSVolumeSource.ts | 83 + .../models/IoK8sApiCoreV1Namespace.ts | 116 + .../IoK8sApiCoreV1NamespaceCondition.ts | 99 + .../models/IoK8sApiCoreV1NamespaceList.ts | 103 + .../models/IoK8sApiCoreV1NamespaceSpec.ts | 65 + .../models/IoK8sApiCoreV1NamespaceStatus.ts | 80 + .../kubernetes/models/IoK8sApiCoreV1Node.ts | 116 + .../models/IoK8sApiCoreV1NodeAddress.ts | 75 + .../models/IoK8sApiCoreV1NodeAffinity.ts | 86 + .../models/IoK8sApiCoreV1NodeCondition.ts | 107 + .../models/IoK8sApiCoreV1NodeConfigSource.ts | 72 + .../models/IoK8sApiCoreV1NodeConfigStatus.ts | 96 + .../IoK8sApiCoreV1NodeDaemonEndpoints.ts | 72 + .../models/IoK8sApiCoreV1NodeList.ts | 103 + .../models/IoK8sApiCoreV1NodeSelector.ts | 73 + .../IoK8sApiCoreV1NodeSelectorRequirement.ts | 83 + .../models/IoK8sApiCoreV1NodeSelectorTerm.ts | 80 + .../models/IoK8sApiCoreV1NodeSpec.ts | 126 + .../models/IoK8sApiCoreV1NodeStatus.ts | 188 + .../models/IoK8sApiCoreV1NodeSystemInfo.ts | 147 + .../IoK8sApiCoreV1ObjectFieldSelector.ts | 74 + .../models/IoK8sApiCoreV1ObjectReference.ts | 113 + .../models/IoK8sApiCoreV1PersistentVolume.ts | 116 + .../IoK8sApiCoreV1PersistentVolumeClaim.ts | 116 + ...ApiCoreV1PersistentVolumeClaimCondition.ts | 107 + ...IoK8sApiCoreV1PersistentVolumeClaimList.ts | 103 + ...IoK8sApiCoreV1PersistentVolumeClaimSpec.ts | 154 + ...K8sApiCoreV1PersistentVolumeClaimStatus.ts | 173 + ...sApiCoreV1PersistentVolumeClaimTemplate.ts | 87 + ...CoreV1PersistentVolumeClaimVolumeSource.ts | 74 + .../IoK8sApiCoreV1PersistentVolumeList.ts | 103 + .../IoK8sApiCoreV1PersistentVolumeSpec.ts | 450 + .../IoK8sApiCoreV1PersistentVolumeStatus.ts | 89 + ...iCoreV1PhotonPersistentDiskVolumeSource.ts | 74 + .../kubernetes/models/IoK8sApiCoreV1Pod.ts | 116 + .../models/IoK8sApiCoreV1PodAffinity.ts | 86 + .../models/IoK8sApiCoreV1PodAffinityTerm.ts | 113 + .../models/IoK8sApiCoreV1PodAntiAffinity.ts | 86 + .../models/IoK8sApiCoreV1PodCondition.ts | 107 + .../models/IoK8sApiCoreV1PodDNSConfig.ts | 88 + .../IoK8sApiCoreV1PodDNSConfigOption.ts | 73 + .../kubernetes/models/IoK8sApiCoreV1PodIP.ts | 65 + .../models/IoK8sApiCoreV1PodList.ts | 103 + .../kubernetes/models/IoK8sApiCoreV1PodOS.ts | 66 + .../models/IoK8sApiCoreV1PodReadinessGate.ts | 66 + .../models/IoK8sApiCoreV1PodResourceClaim.ts | 81 + .../IoK8sApiCoreV1PodResourceClaimStatus.ts | 74 + .../models/IoK8sApiCoreV1PodSchedulingGate.ts | 66 + .../IoK8sApiCoreV1PodSecurityContext.ts | 166 + .../models/IoK8sApiCoreV1PodSpec.ts | 463 + .../models/IoK8sApiCoreV1PodStatus.ts | 220 + .../models/IoK8sApiCoreV1PodTemplate.ts | 102 + .../models/IoK8sApiCoreV1PodTemplateList.ts | 103 + .../models/IoK8sApiCoreV1PodTemplateSpec.ts | 86 + .../models/IoK8sApiCoreV1PortStatus.ts | 86 + .../IoK8sApiCoreV1PortworxVolumeSource.ts | 82 + .../IoK8sApiCoreV1PreferredSchedulingTerm.ts | 82 + .../kubernetes/models/IoK8sApiCoreV1Probe.ts | 162 + .../IoK8sApiCoreV1ProjectedVolumeSource.ts | 80 + .../IoK8sApiCoreV1QuobyteVolumeSource.ts | 107 + ...IoK8sApiCoreV1RBDPersistentVolumeSource.ts | 130 + .../models/IoK8sApiCoreV1RBDVolumeSource.ts | 130 + .../IoK8sApiCoreV1ReplicationController.ts | 116 + ...ApiCoreV1ReplicationControllerCondition.ts | 99 + ...IoK8sApiCoreV1ReplicationControllerList.ts | 103 + ...IoK8sApiCoreV1ReplicationControllerSpec.ts | 96 + ...K8sApiCoreV1ReplicationControllerStatus.ts | 113 + .../models/IoK8sApiCoreV1ResourceClaim.ts | 66 + .../IoK8sApiCoreV1ResourceFieldSelector.ts | 118 + .../models/IoK8sApiCoreV1ResourceQuota.ts | 116 + .../models/IoK8sApiCoreV1ResourceQuotaList.ts | 103 + .../models/IoK8sApiCoreV1ResourceQuotaSpec.ts | 88 + .../IoK8sApiCoreV1ResourceQuotaStatus.ts | 73 + .../IoK8sApiCoreV1ResourceRequirements.ts | 92 + .../models/IoK8sApiCoreV1SELinuxOptions.ts | 89 + ...sApiCoreV1ScaleIOPersistentVolumeSource.ts | 147 + .../IoK8sApiCoreV1ScaleIOVolumeSource.ts | 147 + .../models/IoK8sApiCoreV1ScopeSelector.ts | 72 + ...CoreV1ScopedResourceSelectorRequirement.ts | 83 + .../models/IoK8sApiCoreV1SeccompProfile.ts | 76 + .../kubernetes/models/IoK8sApiCoreV1Secret.ts | 120 + .../models/IoK8sApiCoreV1SecretEnvSource.ts | 75 + .../models/IoK8sApiCoreV1SecretKeySelector.ts | 82 + .../models/IoK8sApiCoreV1SecretList.ts | 103 + .../models/IoK8sApiCoreV1SecretProjection.ts | 90 + .../models/IoK8sApiCoreV1SecretReference.ts | 73 + .../IoK8sApiCoreV1SecretVolumeSource.ts | 98 + .../models/IoK8sApiCoreV1SecurityContext.ts | 170 + .../models/IoK8sApiCoreV1Service.ts | 116 + .../models/IoK8sApiCoreV1ServiceAccount.ts | 124 + .../IoK8sApiCoreV1ServiceAccountList.ts | 103 + ...sApiCoreV1ServiceAccountTokenProjection.ts | 82 + .../models/IoK8sApiCoreV1ServiceList.ts | 103 + .../models/IoK8sApiCoreV1ServicePort.ts | 115 + .../models/IoK8sApiCoreV1ServiceSpec.ts | 226 + .../models/IoK8sApiCoreV1ServiceStatus.ts | 86 + .../IoK8sApiCoreV1SessionAffinityConfig.ts | 72 + .../models/IoK8sApiCoreV1SleepAction.ts | 66 + ...piCoreV1StorageOSPersistentVolumeSource.ts | 104 + .../IoK8sApiCoreV1StorageOSVolumeSource.ts | 104 + .../kubernetes/models/IoK8sApiCoreV1Sysctl.ts | 75 + .../models/IoK8sApiCoreV1TCPSocketAction.ts | 74 + .../kubernetes/models/IoK8sApiCoreV1Taint.ts | 91 + .../models/IoK8sApiCoreV1Toleration.ts | 97 + ...iCoreV1TopologySelectorLabelRequirement.ts | 75 + .../IoK8sApiCoreV1TopologySelectorTerm.ts | 72 + .../IoK8sApiCoreV1TopologySpreadConstraint.ts | 144 + ...IoK8sApiCoreV1TypedLocalObjectReference.ts | 83 + .../IoK8sApiCoreV1TypedObjectReference.ts | 91 + .../kubernetes/models/IoK8sApiCoreV1Volume.ts | 473 + .../models/IoK8sApiCoreV1VolumeDevice.ts | 75 + .../models/IoK8sApiCoreV1VolumeMount.ts | 107 + .../IoK8sApiCoreV1VolumeNodeAffinity.ts | 72 + .../models/IoK8sApiCoreV1VolumeProjection.ts | 128 + ...oK8sApiCoreV1VolumeResourceRequirements.ts | 73 + ...ApiCoreV1VsphereVirtualDiskVolumeSource.ts | 90 + .../IoK8sApiCoreV1WeightedPodAffinityTerm.ts | 82 + ...sApiCoreV1WindowsSecurityContextOptions.ts | 89 + .../models/IoK8sApiDiscoveryV1Endpoint.ts | 141 + .../IoK8sApiDiscoveryV1EndpointConditions.ts | 81 + .../IoK8sApiDiscoveryV1EndpointHints.ts | 72 + .../models/IoK8sApiDiscoveryV1EndpointPort.ts | 98 + .../IoK8sApiDiscoveryV1EndpointSlice.ts | 126 + .../IoK8sApiDiscoveryV1EndpointSliceList.ts | 103 + .../models/IoK8sApiDiscoveryV1ForZone.ts | 66 + .../models/IoK8sApiEventsV1Event.ts | 219 + .../models/IoK8sApiEventsV1EventList.ts | 103 + .../models/IoK8sApiEventsV1EventSeries.ts | 75 + ...ntrolV1ExemptPriorityLevelConfiguration.ts | 79 + ...ApiFlowcontrolV1FlowDistinguisherMethod.ts | 66 + .../models/IoK8sApiFlowcontrolV1FlowSchema.ts | 116 + ...oK8sApiFlowcontrolV1FlowSchemaCondition.ts | 97 + .../IoK8sApiFlowcontrolV1FlowSchemaList.ts | 103 + .../IoK8sApiFlowcontrolV1FlowSchemaSpec.ts | 109 + .../IoK8sApiFlowcontrolV1FlowSchemaStatus.ts | 72 + .../IoK8sApiFlowcontrolV1GroupSubject.ts | 66 + .../IoK8sApiFlowcontrolV1LimitResponse.ts | 81 + ...trolV1LimitedPriorityLevelConfiguration.ts | 112 + ...8sApiFlowcontrolV1NonResourcePolicyRule.ts | 81 + ...ApiFlowcontrolV1PolicyRulesWithSubjects.ts | 101 + ...FlowcontrolV1PriorityLevelConfiguration.ts | 116 + ...olV1PriorityLevelConfigurationCondition.ts | 97 + ...controlV1PriorityLevelConfigurationList.ts | 103 + ...olV1PriorityLevelConfigurationReference.ts | 66 + ...controlV1PriorityLevelConfigurationSpec.ts | 95 + ...ntrolV1PriorityLevelConfigurationStatus.ts | 72 + ...K8sApiFlowcontrolV1QueuingConfiguration.ts | 81 + ...IoK8sApiFlowcontrolV1ResourcePolicyRule.ts | 100 + ...8sApiFlowcontrolV1ServiceAccountSubject.ts | 75 + .../models/IoK8sApiFlowcontrolV1Subject.ts | 109 + .../IoK8sApiFlowcontrolV1UserSubject.ts | 66 + ...V1beta3ExemptPriorityLevelConfiguration.ts | 79 + ...owcontrolV1beta3FlowDistinguisherMethod.ts | 66 + .../IoK8sApiFlowcontrolV1beta3FlowSchema.ts | 116 + ...piFlowcontrolV1beta3FlowSchemaCondition.ts | 97 + ...oK8sApiFlowcontrolV1beta3FlowSchemaList.ts | 103 + ...oK8sApiFlowcontrolV1beta3FlowSchemaSpec.ts | 109 + ...8sApiFlowcontrolV1beta3FlowSchemaStatus.ts | 72 + .../IoK8sApiFlowcontrolV1beta3GroupSubject.ts | 66 + ...IoK8sApiFlowcontrolV1beta3LimitResponse.ts | 81 + ...1beta3LimitedPriorityLevelConfiguration.ts | 108 + ...FlowcontrolV1beta3NonResourcePolicyRule.ts | 81 + ...owcontrolV1beta3PolicyRulesWithSubjects.ts | 101 + ...ontrolV1beta3PriorityLevelConfiguration.ts | 116 + ...eta3PriorityLevelConfigurationCondition.ts | 97 + ...olV1beta3PriorityLevelConfigurationList.ts | 103 + ...eta3PriorityLevelConfigurationReference.ts | 66 + ...olV1beta3PriorityLevelConfigurationSpec.ts | 95 + ...V1beta3PriorityLevelConfigurationStatus.ts | 72 + ...iFlowcontrolV1beta3QueuingConfiguration.ts | 81 + ...ApiFlowcontrolV1beta3ResourcePolicyRule.ts | 100 + ...FlowcontrolV1beta3ServiceAccountSubject.ts | 75 + .../IoK8sApiFlowcontrolV1beta3Subject.ts | 109 + .../IoK8sApiFlowcontrolV1beta3UserSubject.ts | 66 + .../IoK8sApiNetworkingV1HTTPIngressPath.ts | 100 + ...oK8sApiNetworkingV1HTTPIngressRuleValue.ts | 73 + .../models/IoK8sApiNetworkingV1IPBlock.ts | 74 + .../models/IoK8sApiNetworkingV1Ingress.ts | 116 + .../IoK8sApiNetworkingV1IngressBackend.ts | 86 + .../IoK8sApiNetworkingV1IngressClass.ts | 102 + .../IoK8sApiNetworkingV1IngressClassList.ts | 103 + ...orkingV1IngressClassParametersReference.ts | 99 + .../IoK8sApiNetworkingV1IngressClassSpec.ts | 80 + .../models/IoK8sApiNetworkingV1IngressList.ts | 103 + ...iNetworkingV1IngressLoadBalancerIngress.ts | 88 + ...piNetworkingV1IngressLoadBalancerStatus.ts | 72 + .../IoK8sApiNetworkingV1IngressPortStatus.ts | 86 + .../models/IoK8sApiNetworkingV1IngressRule.ts | 87 + ...K8sApiNetworkingV1IngressServiceBackend.ts | 81 + .../models/IoK8sApiNetworkingV1IngressSpec.ts | 108 + .../IoK8sApiNetworkingV1IngressStatus.ts | 72 + .../models/IoK8sApiNetworkingV1IngressTLS.ts | 73 + .../IoK8sApiNetworkingV1NetworkPolicy.ts | 102 + ...sApiNetworkingV1NetworkPolicyEgressRule.ts | 86 + ...ApiNetworkingV1NetworkPolicyIngressRule.ts | 86 + .../IoK8sApiNetworkingV1NetworkPolicyList.ts | 103 + .../IoK8sApiNetworkingV1NetworkPolicyPeer.ts | 94 + .../IoK8sApiNetworkingV1NetworkPolicyPort.ts | 81 + .../IoK8sApiNetworkingV1NetworkPolicySpec.ts | 109 + .../IoK8sApiNetworkingV1ServiceBackendPort.ts | 73 + .../IoK8sApiNetworkingV1alpha1IPAddress.ts | 102 + ...IoK8sApiNetworkingV1alpha1IPAddressList.ts | 103 + ...IoK8sApiNetworkingV1alpha1IPAddressSpec.ts | 72 + ...K8sApiNetworkingV1alpha1ParentReference.ts | 89 + .../IoK8sApiNetworkingV1alpha1ServiceCIDR.ts | 116 + ...K8sApiNetworkingV1alpha1ServiceCIDRList.ts | 103 + ...K8sApiNetworkingV1alpha1ServiceCIDRSpec.ts | 65 + ...sApiNetworkingV1alpha1ServiceCIDRStatus.ts | 72 + .../models/IoK8sApiNodeV1Overhead.ts | 65 + .../models/IoK8sApiNodeV1RuntimeClass.ts | 125 + .../models/IoK8sApiNodeV1RuntimeClassList.ts | 103 + .../models/IoK8sApiNodeV1Scheduling.ts | 80 + .../models/IoK8sApiPolicyV1Eviction.ts | 102 + .../IoK8sApiPolicyV1PodDisruptionBudget.ts | 116 + ...IoK8sApiPolicyV1PodDisruptionBudgetList.ts | 103 + ...IoK8sApiPolicyV1PodDisruptionBudgetSpec.ts | 106 + ...K8sApiPolicyV1PodDisruptionBudgetStatus.ts | 132 + .../models/IoK8sApiRbacV1AggregationRule.ts | 72 + .../models/IoK8sApiRbacV1ClusterRole.ts | 116 + .../IoK8sApiRbacV1ClusterRoleBinding.ts | 117 + .../IoK8sApiRbacV1ClusterRoleBindingList.ts | 103 + .../models/IoK8sApiRbacV1ClusterRoleList.ts | 103 + .../models/IoK8sApiRbacV1PolicyRule.ts | 98 + .../kubernetes/models/IoK8sApiRbacV1Role.ts | 102 + .../models/IoK8sApiRbacV1RoleBinding.ts | 117 + .../models/IoK8sApiRbacV1RoleBindingList.ts | 103 + .../models/IoK8sApiRbacV1RoleList.ts | 103 + .../models/IoK8sApiRbacV1RoleRef.ts | 84 + .../models/IoK8sApiRbacV1Subject.ts | 91 + ...oK8sApiResourceV1alpha2AllocationResult.ts | 96 + ...ApiResourceV1alpha2PodSchedulingContext.ts | 119 + ...esourceV1alpha2PodSchedulingContextList.ts | 103 + ...esourceV1alpha2PodSchedulingContextSpec.ts | 75 + ...ourceV1alpha2PodSchedulingContextStatus.ts | 72 + .../IoK8sApiResourceV1alpha2ResourceClaim.ts | 119 + ...eV1alpha2ResourceClaimConsumerReference.ts | 92 + ...K8sApiResourceV1alpha2ResourceClaimList.ts | 103 + ...1alpha2ResourceClaimParametersReference.ts | 83 + ...ceV1alpha2ResourceClaimSchedulingStatus.ts | 75 + ...K8sApiResourceV1alpha2ResourceClaimSpec.ts | 89 + ...sApiResourceV1alpha2ResourceClaimStatus.ts | 108 + ...piResourceV1alpha2ResourceClaimTemplate.ts | 103 + ...sourceV1alpha2ResourceClaimTemplateList.ts | 103 + ...sourceV1alpha2ResourceClaimTemplateSpec.ts | 87 + .../IoK8sApiResourceV1alpha2ResourceClass.ts | 129 + ...K8sApiResourceV1alpha2ResourceClassList.ts | 103 + ...1alpha2ResourceClassParametersReference.ts | 91 + .../IoK8sApiResourceV1alpha2ResourceHandle.ts | 75 + .../IoK8sApiSchedulingV1PriorityClass.ts | 121 + .../IoK8sApiSchedulingV1PriorityClassList.ts | 103 + .../models/IoK8sApiStorageV1CSIDriver.ts | 103 + .../models/IoK8sApiStorageV1CSIDriverList.ts | 103 + .../models/IoK8sApiStorageV1CSIDriverSpec.ts | 171 + .../models/IoK8sApiStorageV1CSINode.ts | 103 + .../models/IoK8sApiStorageV1CSINodeDriver.ts | 98 + .../models/IoK8sApiStorageV1CSINodeList.ts | 103 + .../models/IoK8sApiStorageV1CSINodeSpec.ts | 73 + .../IoK8sApiStorageV1CSIStorageCapacity.ts | 207 + ...IoK8sApiStorageV1CSIStorageCapacityList.ts | 103 + .../models/IoK8sApiStorageV1StorageClass.ts | 153 + .../IoK8sApiStorageV1StorageClassList.ts | 103 + .../models/IoK8sApiStorageV1TokenRequest.ts | 74 + .../IoK8sApiStorageV1VolumeAttachment.ts | 119 + .../IoK8sApiStorageV1VolumeAttachmentList.ts | 103 + ...IoK8sApiStorageV1VolumeAttachmentSource.ts | 80 + .../IoK8sApiStorageV1VolumeAttachmentSpec.ts | 91 + ...IoK8sApiStorageV1VolumeAttachmentStatus.ts | 97 + .../models/IoK8sApiStorageV1VolumeError.ts | 73 + .../IoK8sApiStorageV1VolumeNodeResources.ts | 65 + ...ApiStorageV1alpha1VolumeAttributesClass.ts | 107 + ...torageV1alpha1VolumeAttributesClassList.ts | 103 + ...ensionsV1CustomResourceColumnDefinition.ts | 108 + ...ApiextensionsV1CustomResourceConversion.ts | 82 + ...ApiextensionsV1CustomResourceDefinition.ts | 117 + ...ionsV1CustomResourceDefinitionCondition.ts | 99 + ...xtensionsV1CustomResourceDefinitionList.ts | 103 + ...tensionsV1CustomResourceDefinitionNames.ts | 107 + ...xtensionsV1CustomResourceDefinitionSpec.ts | 128 + ...ensionsV1CustomResourceDefinitionStatus.ts | 94 + ...nsionsV1CustomResourceDefinitionVersion.ts | 143 + ...ensionsV1CustomResourceSubresourceScale.ts | 83 + ...iextensionsV1CustomResourceSubresources.ts | 80 + ...ApiextensionsV1CustomResourceValidation.ts | 72 + ...pisApiextensionsV1ExternalDocumentation.ts | 73 + ...erPkgApisApiextensionsV1JSONSchemaProps.ts | 457 + ...rPkgApisApiextensionsV1ServiceReference.ts | 91 + ...verPkgApisApiextensionsV1ValidationRule.ts | 144 + ...gApisApiextensionsV1WebhookClientConfig.ts | 98 + ...PkgApisApiextensionsV1WebhookConversion.ts | 81 + .../IoK8sApimachineryPkgApisMetaV1APIGroup.ts | 120 + ...8sApimachineryPkgApisMetaV1APIGroupList.ts | 89 + ...K8sApimachineryPkgApisMetaV1APIResource.ts | 142 + ...pimachineryPkgApisMetaV1APIResourceList.ts | 98 + ...K8sApimachineryPkgApisMetaV1APIVersions.ts | 98 + ...IoK8sApimachineryPkgApisMetaV1Condition.ts | 110 + ...sApimachineryPkgApisMetaV1DeleteOptions.ts | 120 + ...ryPkgApisMetaV1GroupVersionForDiscovery.ts | 75 + ...sApimachineryPkgApisMetaV1LabelSelector.ts | 80 + ...ryPkgApisMetaV1LabelSelectorRequirement.ts | 83 + .../IoK8sApimachineryPkgApisMetaV1ListMeta.ts | 89 + ...achineryPkgApisMetaV1ManagedFieldsEntry.ts | 117 + ...oK8sApimachineryPkgApisMetaV1ObjectMeta.ts | 200 + ...ApimachineryPkgApisMetaV1OwnerReference.ts | 109 + ...sApimachineryPkgApisMetaV1Preconditions.ts | 73 + ...yPkgApisMetaV1ServerAddressByClientCIDR.ts | 75 + .../IoK8sApimachineryPkgApisMetaV1Status.ts | 134 + ...K8sApimachineryPkgApisMetaV1StatusCause.ts | 85 + ...sApimachineryPkgApisMetaV1StatusDetails.ts | 112 + ...oK8sApimachineryPkgApisMetaV1WatchEvent.ts | 112 + .../models/IoK8sApimachineryPkgVersionInfo.ts | 138 + ...gatorPkgApisApiregistrationV1APIService.ts | 116 + ...pisApiregistrationV1APIServiceCondition.ts | 99 + ...rPkgApisApiregistrationV1APIServiceList.ts | 103 + ...rPkgApisApiregistrationV1APIServiceSpec.ts | 122 + ...kgApisApiregistrationV1APIServiceStatus.ts | 72 + ...kgApisApiregistrationV1ServiceReference.ts | 81 + .../src/generated/kubernetes/models/index.ts | 566 + .../src/generated/kubernetes/swagger.json | 76115 ++++++++++++++++ .../types/src/generated/kubevirt/README.md | 15 + .../types/src/generated/kubevirt/index.ts | 1 + .../kubevirt/models/K8sIoApiCoreV1Affinity.ts | 100 + .../K8sIoApiCoreV1DownwardAPIVolumeFile.ts | 103 + .../models/K8sIoApiCoreV1ExecAction.ts | 65 + .../models/K8sIoApiCoreV1HTTPGetAction.ts | 111 + .../models/K8sIoApiCoreV1HTTPHeader.ts | 75 + .../K8sIoApiCoreV1LocalObjectReference.ts | 65 + .../models/K8sIoApiCoreV1NodeAffinity.ts | 86 + .../models/K8sIoApiCoreV1NodeSelector.ts | 73 + .../K8sIoApiCoreV1NodeSelectorRequirement.ts | 106 + .../models/K8sIoApiCoreV1NodeSelectorTerm.ts | 80 + .../K8sIoApiCoreV1ObjectFieldSelector.ts | 74 + ...K8sIoApiCoreV1PersistentVolumeClaimSpec.ts | 161 + ...CoreV1PersistentVolumeClaimVolumeSource.ts | 74 + .../models/K8sIoApiCoreV1PodAffinity.ts | 86 + .../models/K8sIoApiCoreV1PodAffinityTerm.ts | 97 + .../models/K8sIoApiCoreV1PodAntiAffinity.ts | 86 + .../models/K8sIoApiCoreV1PodDNSConfig.ts | 88 + .../K8sIoApiCoreV1PodDNSConfigOption.ts | 73 + .../K8sIoApiCoreV1PreferredSchedulingTerm.ts | 82 + .../models/K8sIoApiCoreV1ResourceClaim.ts | 66 + .../K8sIoApiCoreV1ResourceFieldSelector.ts | 118 + .../K8sIoApiCoreV1ResourceRequirements.ts | 92 + .../models/K8sIoApiCoreV1TCPSocketAction.ts | 65 + .../models/K8sIoApiCoreV1Toleration.ts | 127 + .../K8sIoApiCoreV1TopologySpreadConstraint.ts | 183 + ...K8sIoApiCoreV1TypedLocalObjectReference.ts | 83 + .../K8sIoApiCoreV1TypedObjectReference.ts | 91 + .../K8sIoApiCoreV1WeightedPodAffinityTerm.ts | 82 + .../K8sIoApimachineryPkgApisMetaV1APIGroup.ts | 120 + ...IoApimachineryPkgApisMetaV1APIGroupList.ts | 89 + ...sIoApimachineryPkgApisMetaV1APIResource.ts | 142 + ...pimachineryPkgApisMetaV1APIResourceList.ts | 98 + ...oApimachineryPkgApisMetaV1DeleteOptions.ts | 120 + ...ryPkgApisMetaV1GroupVersionForDiscovery.ts | 75 + ...oApimachineryPkgApisMetaV1LabelSelector.ts | 80 + ...ryPkgApisMetaV1LabelSelectorRequirement.ts | 83 + .../K8sIoApimachineryPkgApisMetaV1ListMeta.ts | 89 + ...achineryPkgApisMetaV1ManagedFieldsEntry.ts | 117 + ...8sIoApimachineryPkgApisMetaV1ObjectMeta.ts | 193 + ...ApimachineryPkgApisMetaV1OwnerReference.ts | 109 + ...oApimachineryPkgApisMetaV1Preconditions.ts | 73 + ...K8sIoApimachineryPkgApisMetaV1RootPaths.ts | 66 + ...yPkgApisMetaV1ServerAddressByClientCIDR.ts | 75 + .../K8sIoApimachineryPkgApisMetaV1Status.ts | 134 + ...sIoApimachineryPkgApisMetaV1StatusCause.ts | 85 + ...oApimachineryPkgApisMetaV1StatusDetails.ts | 112 + ...8sIoApimachineryPkgApisMetaV1WatchEvent.ts | 112 + .../src/generated/kubevirt/models/V1ACPI.ts | 65 + .../kubevirt/models/V1AccessCredential.ts | 86 + .../models/V1AccessCredentialSecretSource.ts | 66 + .../kubevirt/models/V1AddVolumeOptions.ts | 105 + .../kubevirt/models/V1ArchConfiguration.ts | 96 + .../models/V1ArchSpecificConfiguration.ts | 81 + .../src/generated/kubevirt/models/V1BIOS.ts | 65 + .../generated/kubevirt/models/V1BlockSize.ts | 86 + .../generated/kubevirt/models/V1Bootloader.ts | 86 + .../kubevirt/models/V1CDRomTarget.ts | 81 + .../src/generated/kubevirt/models/V1CPU.ts | 156 + .../generated/kubevirt/models/V1CPUFeature.ts | 74 + .../kubevirt/models/V1CPUTopology.ts | 81 + .../generated/kubevirt/models/V1CertConfig.ts | 73 + .../generated/kubevirt/models/V1Chassis.ts | 97 + .../src/generated/kubevirt/models/V1Clock.ts | 94 + .../kubevirt/models/V1ClockOffset.ts | 80 + .../kubevirt/models/V1ClockOffsetUTC.ts | 65 + .../models/V1CloudInitConfigDriveSource.ts | 112 + .../models/V1CloudInitNoCloudSource.ts | 112 + .../kubevirt/models/V1ComponentConfig.ts | 80 + .../models/V1ConfigMapVolumeSource.ts | 81 + .../kubevirt/models/V1ContainerDiskInfo.ts | 65 + .../kubevirt/models/V1ContainerDiskSource.ts | 107 + .../kubevirt/models/V1CustomBlockSize.ts | 75 + .../kubevirt/models/V1CustomProfile.ts | 73 + .../kubevirt/models/V1CustomizeComponents.ts | 86 + .../models/V1CustomizeComponentsPatch.ts | 93 + .../kubevirt/models/V1DHCPOptions.ts | 96 + .../kubevirt/models/V1DHCPPrivateOptions.ts | 75 + .../kubevirt/models/V1DataVolumeSource.ts | 74 + .../models/V1DataVolumeTemplateSpec.ts | 111 + .../models/V1DeveloperConfiguration.ts | 150 + .../generated/kubevirt/models/V1Devices.ts | 298 + .../src/generated/kubevirt/models/V1Disk.ts | 187 + .../generated/kubevirt/models/V1DiskTarget.ts | 81 + .../kubevirt/models/V1DiskVerification.ts | 102 + .../kubevirt/models/V1DomainMemoryDumpInfo.ts | 89 + .../generated/kubevirt/models/V1DomainSpec.ts | 207 + .../models/V1DownwardAPIVolumeSource.ts | 80 + .../src/generated/kubevirt/models/V1EFI.ts | 73 + .../kubevirt/models/V1EmptyDiskSource.ts | 102 + .../models/V1EphemeralVolumeSource.ts | 72 + .../kubevirt/models/V1FeatureAPIC.ts | 73 + .../kubevirt/models/V1FeatureHyperv.ts | 194 + .../generated/kubevirt/models/V1FeatureKVM.ts | 65 + .../kubevirt/models/V1FeatureSpinlocks.ts | 73 + .../kubevirt/models/V1FeatureState.ts | 65 + .../kubevirt/models/V1FeatureVendorID.ts | 73 + .../generated/kubevirt/models/V1Features.ts | 130 + .../generated/kubevirt/models/V1Filesystem.ts | 75 + .../generated/kubevirt/models/V1Firmware.ts | 116 + .../src/generated/kubevirt/models/V1Flags.ts | 81 + .../models/V1FreezeUnfreezeTimeout.ts | 66 + .../src/generated/kubevirt/models/V1GPU.ts | 98 + .../kubevirt/models/V1GenerationStatus.ts | 109 + .../models/V1GuestAgentCommandInfo.ts | 74 + .../generated/kubevirt/models/V1HPETTimer.ts | 73 + .../generated/kubevirt/models/V1HostDevice.ts | 83 + .../generated/kubevirt/models/V1HostDisk.ts | 127 + .../kubevirt/models/V1HotplugVolumeSource.ts | 86 + .../kubevirt/models/V1HotplugVolumeStatus.ts | 73 + .../generated/kubevirt/models/V1Hugepages.ts | 65 + .../kubevirt/models/V1HypervTimer.ts | 65 + .../kubevirt/models/V1I6300ESBWatchdog.ts | 65 + .../generated/kubevirt/models/V1InitrdInfo.ts | 65 + .../src/generated/kubevirt/models/V1Input.ts | 83 + .../kubevirt/models/V1InstancetypeMatcher.ts | 97 + .../generated/kubevirt/models/V1Interface.ts | 213 + .../models/V1InterfaceBindingMigration.ts | 65 + .../models/V1InterfaceBindingPlugin.ts | 96 + .../kubevirt/models/V1KSMConfiguration.ts | 72 + .../generated/kubevirt/models/V1KVMTimer.ts | 65 + .../generated/kubevirt/models/V1KernelBoot.ts | 80 + .../kubevirt/models/V1KernelBootContainer.ts | 115 + .../kubevirt/models/V1KernelBootStatus.ts | 86 + .../generated/kubevirt/models/V1KernelInfo.ts | 65 + .../generated/kubevirt/models/V1KubeVirt.ts | 117 + .../V1KubeVirtCertificateRotateStrategy.ts | 72 + .../kubevirt/models/V1KubeVirtCondition.ts | 91 + .../models/V1KubeVirtConfiguration.ts | 479 + .../kubevirt/models/V1KubeVirtList.ts | 103 + .../models/V1KubeVirtSelfSignConfiguration.ts | 104 + .../kubevirt/models/V1KubeVirtSpec.ts | 249 + .../kubevirt/models/V1KubeVirtStatus.ts | 190 + .../V1KubeVirtWorkloadUpdateStrategy.ts | 85 + .../kubevirt/models/V1LaunchSecurity.ts | 72 + .../models/V1LiveUpdateConfiguration.ts | 117 + .../kubevirt/models/V1LogVerbosity.ts | 105 + .../generated/kubevirt/models/V1LunTarget.ts | 81 + .../generated/kubevirt/models/V1Machine.ts | 65 + .../models/V1MediatedDevicesConfiguration.ts | 88 + .../kubevirt/models/V1MediatedHostDevice.ts | 83 + .../src/generated/kubevirt/models/V1Memory.ts | 160 + .../models/V1MemoryDumpVolumeSource.ts | 82 + .../kubevirt/models/V1MemoryStatus.ts | 189 + .../kubevirt/models/V1MigrateOptions.ts | 81 + .../models/V1MigrationConfiguration.ts | 189 + .../kubevirt/models/V1MultusNetwork.ts | 74 + .../src/generated/kubevirt/models/V1NUMA.ts | 65 + .../generated/kubevirt/models/V1Network.ts | 95 + .../kubevirt/models/V1NetworkConfiguration.ts | 96 + .../models/V1NodeMediatedDeviceTypesConfig.ts | 82 + .../kubevirt/models/V1NodePlacement.ts | 94 + .../generated/kubevirt/models/V1PITTimer.ts | 73 + .../kubevirt/models/V1PauseOptions.ts | 81 + .../kubevirt/models/V1PciHostDevice.ts | 83 + .../kubevirt/models/V1PermittedHostDevices.ts | 100 + .../models/V1PersistentVolumeClaimInfo.ts | 120 + .../V1PersistentVolumeClaimVolumeSource.ts | 82 + .../kubevirt/models/V1PluginBinding.ts | 66 + .../generated/kubevirt/models/V1PodNetwork.ts | 73 + .../src/generated/kubevirt/models/V1Port.ts | 82 + .../kubevirt/models/V1PreferenceMatcher.ts | 97 + .../src/generated/kubevirt/models/V1Probe.ts | 148 + ...SSHPublicKeyAccessCredentialPropagation.ts | 66 + .../models/V1RESTClientConfiguration.ts | 72 + .../generated/kubevirt/models/V1RTCTimer.ts | 81 + .../kubevirt/models/V1RateLimiter.ts | 72 + .../generated/kubevirt/models/V1Realtime.ts | 65 + .../V1ReloadableComponentConfiguration.ts | 72 + .../kubevirt/models/V1RemoveVolumeOptions.ts | 74 + .../kubevirt/models/V1ResourceRequirements.ts | 81 + .../kubevirt/models/V1RestartOptions.ts | 89 + .../src/generated/kubevirt/models/V1SEV.ts | 96 + .../kubevirt/models/V1SEVMeasurementInfo.ts | 121 + .../kubevirt/models/V1SEVPlatformInfo.ts | 89 + .../generated/kubevirt/models/V1SEVPolicy.ts | 65 + .../kubevirt/models/V1SEVSecretOptions.ts | 73 + .../kubevirt/models/V1SEVSessionOptions.ts | 73 + .../kubevirt/models/V1SMBiosConfiguration.ts | 97 + .../models/V1SSHPublicKeyAccessCredential.ts | 88 + ...licKeyAccessCredentialPropagationMethod.ts | 88 + .../V1SSHPublicKeyAccessCredentialSource.ts | 72 + .../kubevirt/models/V1SeccompConfiguration.ts | 72 + .../kubevirt/models/V1SecretVolumeSource.ts | 81 + .../models/V1ServiceAccountVolumeSource.ts | 65 + .../kubevirt/models/V1SoundDevice.ts | 74 + .../kubevirt/models/V1StartOptions.ts | 89 + .../kubevirt/models/V1StopOptions.ts | 89 + .../models/V1SupportContainerResources.ts | 82 + .../generated/kubevirt/models/V1SyNICTimer.ts | 80 + .../kubevirt/models/V1SysprepSource.ts | 80 + .../kubevirt/models/V1TLSConfiguration.ts | 77 + .../generated/kubevirt/models/V1TPMDevice.ts | 65 + .../src/generated/kubevirt/models/V1Timer.ts | 128 + .../models/V1TokenBucketRateLimiter.ts | 75 + .../kubevirt/models/V1TopologyHints.ts | 65 + .../kubevirt/models/V1USBHostDevice.ts | 89 + .../kubevirt/models/V1USBSelector.ts | 75 + .../kubevirt/models/V1UnpauseOptions.ts | 81 + .../models/V1UserPasswordAccessCredential.ts | 88 + ...sswordAccessCredentialPropagationMethod.ts | 65 + .../V1UserPasswordAccessCredentialSource.ts | 72 + .../kubevirt/models/V1VGPUDisplayOptions.ts | 80 + .../kubevirt/models/V1VGPUOptions.ts | 72 + .../kubevirt/models/V1VirtualMachine.ts | 117 + .../models/V1VirtualMachineCondition.ts | 95 + .../models/V1VirtualMachineInstance.ts | 117 + .../V1VirtualMachineInstanceCondition.ts | 91 + .../V1VirtualMachineInstanceFileSystem.ts | 117 + .../V1VirtualMachineInstanceFileSystemDisk.ts | 75 + .../V1VirtualMachineInstanceFileSystemInfo.ts | 73 + .../V1VirtualMachineInstanceFileSystemList.ts | 103 + .../V1VirtualMachineInstanceGuestAgentInfo.ts | 162 + .../V1VirtualMachineInstanceGuestOSInfo.ts | 121 + .../V1VirtualMachineInstanceGuestOSUser.ts | 82 + ...V1VirtualMachineInstanceGuestOSUserList.ts | 103 + .../models/V1VirtualMachineInstanceList.ts | 103 + .../V1VirtualMachineInstanceMigration.ts | 117 + ...irtualMachineInstanceMigrationCondition.ts | 91 + .../V1VirtualMachineInstanceMigrationList.ts | 103 + ...stanceMigrationPhaseTransitionTimestamp.ts | 73 + .../V1VirtualMachineInstanceMigrationSpec.ts | 65 + .../V1VirtualMachineInstanceMigrationState.ts | 224 + ...V1VirtualMachineInstanceMigrationStatus.ts | 108 + ...1VirtualMachineInstanceNetworkInterface.ts | 113 + ...MachineInstancePhaseTransitionTimestamp.ts | 73 + .../models/V1VirtualMachineInstancePreset.ts | 104 + .../V1VirtualMachineInstancePresetList.ts | 103 + .../V1VirtualMachineInstancePresetSpec.ts | 87 + .../models/V1VirtualMachineInstanceProfile.ts | 72 + .../V1VirtualMachineInstanceReplicaSet.ts | 117 + ...rtualMachineInstanceReplicaSetCondition.ts | 91 + .../V1VirtualMachineInstanceReplicaSetList.ts | 103 + .../V1VirtualMachineInstanceReplicaSetSpec.ts | 104 + ...1VirtualMachineInstanceReplicaSetStatus.ts | 96 + .../models/V1VirtualMachineInstanceSpec.ts | 292 + .../models/V1VirtualMachineInstanceStatus.ts | 341 + .../V1VirtualMachineInstanceTemplateSpec.ts | 86 + .../kubevirt/models/V1VirtualMachineList.ts | 103 + .../V1VirtualMachineMemoryDumpRequest.ts | 115 + .../models/V1VirtualMachineOptions.ts | 73 + .../kubevirt/models/V1VirtualMachineSpec.ts | 131 + .../models/V1VirtualMachineStartFailure.ts | 81 + .../V1VirtualMachineStateChangeRequest.ts | 82 + .../kubevirt/models/V1VirtualMachineStatus.ts | 198 + .../models/V1VirtualMachineVolumeRequest.ts | 86 + .../src/generated/kubevirt/models/V1Volume.ts | 271 + .../kubevirt/models/V1VolumeSnapshotStatus.ts | 83 + .../kubevirt/models/V1VolumeStatus.ts | 164 + .../generated/kubevirt/models/V1Watchdog.ts | 81 + .../kubevirt/models/V1alpha1Condition.ts | 91 + .../kubevirt/models/V1alpha1Error.ts | 73 + .../models/V1alpha1MigrationPolicy.ts | 111 + .../models/V1alpha1MigrationPolicyList.ts | 103 + .../models/V1alpha1MigrationPolicySpec.ts | 141 + .../models/V1alpha1PersistentVolumeClaim.ts | 86 + .../kubevirt/models/V1alpha1Selectors.ts | 73 + .../models/V1alpha1SnapshotVolumesLists.ts | 73 + .../kubevirt/models/V1alpha1SourceSpec.ts | 72 + .../kubevirt/models/V1alpha1VirtualMachine.ts | 100 + .../models/V1alpha1VirtualMachineClone.ts | 117 + .../models/V1alpha1VirtualMachineCloneList.ts | 103 + .../models/V1alpha1VirtualMachineCloneSpec.ts | 127 + .../V1alpha1VirtualMachineCloneStatus.ts | 112 + ...lpha1VirtualMachineCloneTemplateFilters.ts | 73 + .../models/V1alpha1VirtualMachineExport.ts | 117 + .../V1alpha1VirtualMachineExportLink.ts | 95 + .../V1alpha1VirtualMachineExportLinks.ts | 80 + .../V1alpha1VirtualMachineExportList.ts | 104 + .../V1alpha1VirtualMachineExportManifest.ts | 75 + .../V1alpha1VirtualMachineExportSpec.ts | 89 + .../V1alpha1VirtualMachineExportStatus.ts | 126 + .../V1alpha1VirtualMachineExportVolume.ts | 81 + ...1alpha1VirtualMachineExportVolumeFormat.ts | 75 + .../models/V1alpha1VirtualMachinePool.ts | 117 + .../V1alpha1VirtualMachinePoolCondition.ts | 91 + .../models/V1alpha1VirtualMachinePoolList.ts | 103 + .../models/V1alpha1VirtualMachinePoolSpec.ts | 104 + .../V1alpha1VirtualMachinePoolStatus.ts | 96 + .../models/V1alpha1VirtualMachineRestore.ts | 117 + .../V1alpha1VirtualMachineRestoreList.ts | 104 + .../V1alpha1VirtualMachineRestoreSpec.ts | 92 + .../V1alpha1VirtualMachineRestoreStatus.ts | 110 + .../models/V1alpha1VirtualMachineSnapshot.ts | 117 + .../V1alpha1VirtualMachineSnapshotContent.ts | 117 + ...alpha1VirtualMachineSnapshotContentList.ts | 104 + ...alpha1VirtualMachineSnapshotContentSpec.ts | 95 + ...pha1VirtualMachineSnapshotContentStatus.ts | 102 + .../V1alpha1VirtualMachineSnapshotList.ts | 104 + .../V1alpha1VirtualMachineSnapshotSpec.ts | 89 + .../V1alpha1VirtualMachineSnapshotStatus.ts | 148 + .../V1alpha1VirtualMachineTemplateSpec.ts | 86 + .../kubevirt/models/V1alpha1VolumeBackup.ts | 90 + .../kubevirt/models/V1alpha1VolumeRestore.ts | 92 + .../models/V1alpha1VolumeSnapshotStatus.ts | 97 + .../kubevirt/models/V1beta1CPUInstancetype.ts | 123 + .../models/V1beta1CPUPreferenceRequirement.ts | 66 + .../kubevirt/models/V1beta1CPUPreferences.ts | 80 + .../models/V1beta1ClockPreferences.ts | 86 + .../models/V1beta1DataVolumeCheckpoint.ts | 75 + .../models/V1beta1DataVolumeSource.ts | 186 + .../models/V1beta1DataVolumeSourceGCS.ts | 74 + .../models/V1beta1DataVolumeSourceHTTP.ts | 98 + .../models/V1beta1DataVolumeSourceImageIO.ts | 91 + .../models/V1beta1DataVolumeSourcePVC.ts | 75 + .../models/V1beta1DataVolumeSourceRef.ts | 83 + .../models/V1beta1DataVolumeSourceRegistry.ts | 97 + .../models/V1beta1DataVolumeSourceS3.ts | 82 + .../models/V1beta1DataVolumeSourceSnapshot.ts | 75 + .../models/V1beta1DataVolumeSourceVDDK.ts | 105 + .../kubevirt/models/V1beta1DataVolumeSpec.ts | 160 + .../models/V1beta1DevicePreferences.ts | 268 + .../models/V1beta1FeaturePreferences.ts | 130 + .../models/V1beta1FirmwarePreferences.ts | 93 + .../models/V1beta1MachinePreferences.ts | 65 + .../models/V1beta1MemoryInstancetype.ts | 127 + .../V1beta1MemoryPreferenceRequirement.ts | 102 + .../models/V1beta1PreferenceRequirements.ts | 86 + .../kubevirt/models/V1beta1StorageSpec.ts | 161 + ...1beta1VirtualMachineClusterInstancetype.ts | 103 + ...a1VirtualMachineClusterInstancetypeList.ts | 103 + .../V1beta1VirtualMachineClusterPreference.ts | 103 + ...eta1VirtualMachineClusterPreferenceList.ts | 103 + .../V1beta1VirtualMachineInstancetype.ts | 103 + .../V1beta1VirtualMachineInstancetypeList.ts | 103 + .../V1beta1VirtualMachineInstancetypeSpec.ts | 168 + .../models/V1beta1VirtualMachinePreference.ts | 103 + .../V1beta1VirtualMachinePreferenceList.ts | 103 + .../V1beta1VirtualMachinePreferenceSpec.ts | 202 + .../models/V1beta1VolumePreferences.ts | 65 + .../src/generated/kubevirt/models/index.ts | 331 + .../types/src/generated/kubevirt/swagger.json | 23408 +++++ packages/types/src/generated/runtime.ts | 431 + packages/types/src/index.ts | 3 +- packages/types/src/models/README.md | 11 - packages/types/src/models/index.ts | 27 - .../k8s/IoK8sApiStorageV1StorageClass.ts | 71 - .../types/src/types/k8s/K8sResourceCommon.ts | 2 +- packages/types/src/types/k8s/V1Namespace.ts | 8 - .../k8s/V1NetworkAttachmentDefinition.ts | 2 +- packages/types/src/types/k8s/V1Secret.ts | 10 - .../types/src/types/k8s/V1VirtualMachine.ts | 433 - packages/types/src/types/k8s/index.ts | 4 - .../src/types/provider/openshift/Namespace.ts | 4 +- .../openshift/NetworkAttachmentDefinition.ts | 2 +- .../src/types/provider/openshift/Provider.ts | 2 +- .../types/provider/openshift/StorageClass.ts | 2 +- .../types/src/types/provider/openshift/VM.ts | 2 +- .../src/types/provider/openstack/Provider.ts | 2 +- .../types/src/types/provider/ova/Provider.ts | 2 +- .../types/src/types/provider/ova/index.ts | 1 + .../src/types/provider/ovirt/Provider.ts | 2 +- .../src/types/provider/vsphere/Provider.ts | 2 +- packages/types/tsconfig.json | 3 +- 1094 files changed, 198193 insertions(+), 5317 deletions(-) delete mode 100644 packages/types/ci/generate-schemas.sh delete mode 100644 packages/types/schemas/ProviderSecret.schema.json delete mode 100644 packages/types/schemas/V1beta1Hook.schema.json delete mode 100644 packages/types/schemas/V1beta1Host.schema.json delete mode 100644 packages/types/schemas/V1beta1Migration.schema.json delete mode 100644 packages/types/schemas/V1beta1NetworkMap.schema.json delete mode 100644 packages/types/schemas/V1beta1OvirtVolumePopulator.schema.json delete mode 100644 packages/types/schemas/V1beta1Plan.schema.json delete mode 100644 packages/types/schemas/V1beta1Provider.schema.json delete mode 100644 packages/types/schemas/V1beta1StorageMap.schema.json rename packages/types/src/{constants => generated/forklift}/README.md (51%) rename packages/types/src/{ => generated/forklift}/constants/ForkliftControllerModel.v1beta1.ts (100%) rename packages/types/src/{ => generated/forklift}/constants/HookModel.v1beta1.ts (97%) rename packages/types/src/{ => generated/forklift}/constants/HostModel.v1beta1.ts (97%) rename packages/types/src/{ => generated/forklift}/constants/MigrationModel.v1beta1.ts (97%) rename packages/types/src/{ => generated/forklift}/constants/NetworkMapModel.v1beta1.ts (100%) create mode 100644 packages/types/src/generated/forklift/constants/OpenstackVolumePopulatorModel.v1beta1.ts rename packages/types/src/{ => generated/forklift}/constants/OvirtVolumePopulatorModel.v1beta1.ts (100%) rename packages/types/src/{ => generated/forklift}/constants/PlanModel.v1beta1.ts (100%) rename packages/types/src/{ => generated/forklift}/constants/ProviderModel.v1beta1.ts (100%) rename packages/types/src/{ => generated/forklift}/constants/StorageMapModel.v1beta1.ts (100%) rename packages/types/src/{ => generated/forklift}/constants/index.ts (87%) create mode 100644 packages/types/src/generated/forklift/crds/forklift.konveyor.io_forkliftcontrollers.yaml create mode 100644 packages/types/src/generated/forklift/crds/forklift.konveyor.io_hooks.yaml create mode 100644 packages/types/src/generated/forklift/crds/forklift.konveyor.io_hosts.yaml create mode 100644 packages/types/src/generated/forklift/crds/forklift.konveyor.io_migrations.yaml create mode 100644 packages/types/src/generated/forklift/crds/forklift.konveyor.io_networkmaps.yaml create mode 100644 packages/types/src/generated/forklift/crds/forklift.konveyor.io_openstackvolumepopulators.yaml create mode 100644 packages/types/src/generated/forklift/crds/forklift.konveyor.io_ovirtvolumepopulators.yaml create mode 100644 packages/types/src/generated/forklift/crds/forklift.konveyor.io_plans.yaml create mode 100644 packages/types/src/generated/forklift/crds/forklift.konveyor.io_providers.yaml create mode 100644 packages/types/src/generated/forklift/crds/forklift.konveyor.io_storagemaps.yaml create mode 100644 packages/types/src/generated/forklift/index.ts rename packages/types/src/{ => generated/forklift}/models/IoK8sApimachineryPkgApisMetaV1ObjectMeta.ts (97%) rename packages/types/src/{ => generated/forklift}/models/V1beta1ForkliftController.ts (89%) rename packages/types/src/{ => generated/forklift}/models/V1beta1Hook.ts (88%) rename packages/types/src/{ => generated/forklift}/models/V1beta1HookSpec.ts (78%) rename packages/types/src/{ => generated/forklift}/models/V1beta1HookStatus.ts (76%) rename packages/types/src/{ => generated/forklift}/models/V1beta1HookStatusConditions.ts (85%) rename packages/types/src/{ => generated/forklift}/models/V1beta1Host.ts (88%) rename packages/types/src/{ => generated/forklift}/models/V1beta1HostSpec.ts (84%) rename packages/types/src/{ => generated/forklift}/models/V1beta1HostSpecProvider.ts (91%) rename packages/types/src/{ => generated/forklift}/models/V1beta1HostSpecSecret.ts (91%) rename packages/types/src/{ => generated/forklift}/models/V1beta1HostStatus.ts (77%) rename packages/types/src/{ => generated/forklift}/models/V1beta1HostStatusConditions.ts (85%) rename packages/types/src/{ => generated/forklift}/models/V1beta1Migration.ts (89%) rename packages/types/src/{ => generated/forklift}/models/V1beta1MigrationSpec.ts (82%) rename packages/types/src/{ => generated/forklift}/models/V1beta1MigrationSpecCancel.ts (74%) rename packages/types/src/{ => generated/forklift}/models/V1beta1MigrationSpecPlan.ts (91%) rename packages/types/src/{ => generated/forklift}/models/V1beta1MigrationStatus.ts (85%) rename packages/types/src/{ => generated/forklift}/models/V1beta1MigrationStatusConditions.ts (85%) rename packages/types/src/{ => generated/forklift}/models/V1beta1MigrationStatusVms.ts (90%) rename packages/types/src/{ => generated/forklift}/models/V1beta1MigrationStatusVmsConditions.ts (85%) rename packages/types/src/{ => generated/forklift}/models/V1beta1MigrationStatusVmsError.ts (65%) rename packages/types/src/{ => generated/forklift}/models/V1beta1MigrationStatusVmsHooks.ts (73%) rename packages/types/src/{ => generated/forklift}/models/V1beta1MigrationStatusVmsHooksHook.ts (91%) rename packages/types/src/{ => generated/forklift}/models/V1beta1MigrationStatusVmsPipeline.ts (89%) rename packages/types/src/{ => generated/forklift}/models/V1beta1MigrationStatusVmsPipelineError.ts (66%) rename packages/types/src/{ => generated/forklift}/models/V1beta1MigrationStatusVmsPipelineProgress.ts (73%) rename packages/types/src/{ => generated/forklift}/models/V1beta1MigrationStatusVmsPipelineTasks.ts (87%) rename packages/types/src/{ => generated/forklift}/models/V1beta1MigrationStatusVmsPipelineTasksError.ts (66%) rename packages/types/src/{ => generated/forklift}/models/V1beta1MigrationStatusVmsPipelineTasksProgress.ts (73%) rename packages/types/src/{ => generated/forklift}/models/V1beta1MigrationStatusVmsWarm.ts (83%) rename packages/types/src/{ => generated/forklift}/models/V1beta1MigrationStatusVmsWarmPrecopies.ts (72%) rename packages/types/src/{ => generated/forklift}/models/V1beta1NetworkMap.ts (88%) rename packages/types/src/{ => generated/forklift}/models/V1beta1NetworkMapSpec.ts (75%) rename packages/types/src/{ => generated/forklift}/models/V1beta1NetworkMapSpecMap.ts (77%) rename packages/types/src/{ => generated/forklift}/models/V1beta1NetworkMapSpecMapDestination.ts (74%) rename packages/types/src/{ => generated/forklift}/models/V1beta1NetworkMapSpecMapSource.ts (67%) rename packages/types/src/{ => generated/forklift}/models/V1beta1NetworkMapSpecProvider.ts (77%) rename packages/types/src/{ => generated/forklift}/models/V1beta1NetworkMapSpecProviderDestination.ts (91%) rename packages/types/src/{ => generated/forklift}/models/V1beta1NetworkMapSpecProviderSource.ts (91%) rename packages/types/src/{ => generated/forklift}/models/V1beta1NetworkMapStatus.ts (82%) rename packages/types/src/{ => generated/forklift}/models/V1beta1NetworkMapStatusConditions.ts (85%) rename packages/types/src/{ => generated/forklift}/models/V1beta1NetworkMapStatusReferences.ts (74%) create mode 100644 packages/types/src/generated/forklift/models/V1beta1OpenstackVolumePopulator.ts create mode 100644 packages/types/src/generated/forklift/models/V1beta1OpenstackVolumePopulatorSpec.ts create mode 100644 packages/types/src/generated/forklift/models/V1beta1OpenstackVolumePopulatorSpecTransferNetwork.ts create mode 100644 packages/types/src/generated/forklift/models/V1beta1OpenstackVolumePopulatorStatus.ts rename packages/types/src/{ => generated/forklift}/models/V1beta1OvirtVolumePopulator.ts (88%) rename packages/types/src/{ => generated/forklift}/models/V1beta1OvirtVolumePopulatorSpec.ts (51%) create mode 100644 packages/types/src/generated/forklift/models/V1beta1OvirtVolumePopulatorSpecTransferNetwork.ts rename packages/types/src/{ => generated/forklift}/models/V1beta1OvirtVolumePopulatorStatus.ts (50%) rename packages/types/src/{ => generated/forklift}/models/V1beta1Plan.ts (88%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanSpec.ts (85%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanSpecMap.ts (75%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanSpecMapNetwork.ts (91%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanSpecMapStorage.ts (91%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanSpecProvider.ts (76%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanSpecProviderDestination.ts (91%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanSpecProviderSource.ts (91%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanSpecTransferNetwork.ts (91%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanSpecVms.ts (77%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanSpecVmsHooks.ts (72%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanSpecVmsHooksHook.ts (91%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanStatus.ts (81%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanStatusConditions.ts (85%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanStatusMigration.ts (81%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanStatusMigrationHistory.ts (87%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanStatusMigrationHistoryConditions.ts (85%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanStatusMigrationHistoryMap.ts (79%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanStatusMigrationHistoryMapNetwork.ts (80%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanStatusMigrationHistoryMapStorage.ts (80%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanStatusMigrationHistoryMigration.ts (80%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanStatusMigrationHistoryPlan.ts (80%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanStatusMigrationHistoryProvider.ts (80%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanStatusMigrationHistoryProviderDestination.ts (80%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanStatusMigrationHistoryProviderSource.ts (80%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanStatusMigrationVms.ts (90%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanStatusMigrationVmsConditions.ts (85%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanStatusMigrationVmsError.ts (66%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanStatusMigrationVmsHooks.ts (73%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanStatusMigrationVmsHooksHook.ts (91%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanStatusMigrationVmsPipeline.ts (89%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanStatusMigrationVmsPipelineError.ts (66%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanStatusMigrationVmsPipelineProgress.ts (73%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanStatusMigrationVmsPipelineTasks.ts (88%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanStatusMigrationVmsPipelineTasksError.ts (66%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanStatusMigrationVmsPipelineTasksProgress.ts (73%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanStatusMigrationVmsWarm.ts (83%) rename packages/types/src/{ => generated/forklift}/models/V1beta1PlanStatusMigrationVmsWarmPrecopies.ts (72%) rename packages/types/src/{ => generated/forklift}/models/V1beta1Provider.ts (88%) rename packages/types/src/{ => generated/forklift}/models/V1beta1ProviderSpec.ts (81%) rename packages/types/src/{ => generated/forklift}/models/V1beta1ProviderSpecSecret.ts (91%) rename packages/types/src/{ => generated/forklift}/models/V1beta1ProviderStatus.ts (80%) rename packages/types/src/{ => generated/forklift}/models/V1beta1ProviderStatusConditions.ts (85%) rename packages/types/src/{ => generated/forklift}/models/V1beta1StorageMap.ts (88%) rename packages/types/src/{ => generated/forklift}/models/V1beta1StorageMapSpec.ts (75%) rename packages/types/src/{ => generated/forklift}/models/V1beta1StorageMapSpecMap.ts (77%) rename packages/types/src/{ => generated/forklift}/models/V1beta1StorageMapSpecMapDestination.ts (77%) rename packages/types/src/{ => generated/forklift}/models/V1beta1StorageMapSpecMapSource.ts (72%) rename packages/types/src/{ => generated/forklift}/models/V1beta1StorageMapSpecProvider.ts (77%) rename packages/types/src/{ => generated/forklift}/models/V1beta1StorageMapSpecProviderDestination.ts (91%) rename packages/types/src/{ => generated/forklift}/models/V1beta1StorageMapSpecProviderSource.ts (91%) rename packages/types/src/{ => generated/forklift}/models/V1beta1StorageMapStatus.ts (82%) rename packages/types/src/{ => generated/forklift}/models/V1beta1StorageMapStatusConditions.ts (85%) rename packages/types/src/{ => generated/forklift}/models/V1beta1StorageMapStatusReferences.ts (74%) create mode 100644 packages/types/src/generated/forklift/models/index.ts create mode 100644 packages/types/src/generated/forklift/openapi.yaml create mode 100644 packages/types/src/generated/index.ts create mode 100644 packages/types/src/generated/kubernetes/README.md create mode 100644 packages/types/src/generated/kubernetes/index.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1MatchCondition.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1MutatingWebhook.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1MutatingWebhookConfiguration.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1RuleWithOperations.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1ServiceReference.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1ValidatingWebhook.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1ValidatingWebhookConfiguration.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1WebhookClientConfig.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1AuditAnnotation.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ExpressionWarning.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1MatchCondition.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1MatchResources.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperations.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ParamKind.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ParamRef.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1TypeChecking.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicy.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1Validation.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1Variable.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1AuditAnnotation.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ExpressionWarning.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1MatchCondition.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1MatchResources.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperations.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ParamKind.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ParamRef.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1TypeChecking.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicy.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1Validation.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1Variable.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiApiserverinternalV1alpha1ServerStorageVersion.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiApiserverinternalV1alpha1StorageVersion.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiApiserverinternalV1alpha1StorageVersionCondition.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiApiserverinternalV1alpha1StorageVersionList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiApiserverinternalV1alpha1StorageVersionStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1ControllerRevision.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1ControllerRevisionList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DaemonSet.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DaemonSetCondition.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DaemonSetList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DaemonSetSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DaemonSetStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DaemonSetUpdateStrategy.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1Deployment.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DeploymentCondition.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DeploymentList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DeploymentSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DeploymentStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DeploymentStrategy.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1ReplicaSet.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1ReplicaSetCondition.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1ReplicaSetList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1ReplicaSetSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1ReplicaSetStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1RollingUpdateDaemonSet.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1RollingUpdateDeployment.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1RollingUpdateStatefulSetStrategy.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSet.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSetCondition.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSetList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSetOrdinals.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSetPersistentVolumeClaimRetentionPolicy.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSetSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSetStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSetUpdateStrategy.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1BoundObjectReference.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1SelfSubjectReview.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1SelfSubjectReviewStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1TokenRequest.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1TokenRequestSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1TokenRequestStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1TokenReview.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1TokenReviewSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1TokenReviewStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1UserInfo.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1alpha1SelfSubjectReview.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1alpha1SelfSubjectReviewStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1beta1SelfSubjectReview.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1beta1SelfSubjectReviewStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1LocalSubjectAccessReview.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1NonResourceAttributes.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1NonResourceRule.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1ResourceAttributes.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1ResourceRule.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SelfSubjectAccessReview.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SelfSubjectRulesReview.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SelfSubjectRulesReviewSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SubjectAccessReview.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SubjectAccessReviewSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SubjectAccessReviewStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SubjectRulesReviewStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1CrossVersionObjectReference.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1HorizontalPodAutoscaler.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1HorizontalPodAutoscalerList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1Scale.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1ScaleSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1ScaleStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ContainerResourceMetricSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ContainerResourceMetricStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2CrossVersionObjectReference.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ExternalMetricSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ExternalMetricStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HPAScalingPolicy.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HPAScalingRules.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HorizontalPodAutoscaler.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehavior.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HorizontalPodAutoscalerCondition.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HorizontalPodAutoscalerList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2MetricIdentifier.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2MetricSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2MetricStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2MetricTarget.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2MetricValueStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ObjectMetricSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ObjectMetricStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2PodsMetricSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2PodsMetricStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ResourceMetricSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ResourceMetricStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1CronJob.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1CronJobList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1CronJobSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1CronJobStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1Job.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1JobCondition.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1JobList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1JobSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1JobStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1JobTemplateSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1PodFailurePolicy.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirement.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1PodFailurePolicyOnPodConditionsPattern.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1PodFailurePolicyRule.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1UncountedTerminatedPods.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1CertificateSigningRequest.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1CertificateSigningRequestCondition.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1CertificateSigningRequestList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1CertificateSigningRequestSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1CertificateSigningRequestStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1alpha1ClusterTrustBundle.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1alpha1ClusterTrustBundleList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1alpha1ClusterTrustBundleSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoordinationV1Lease.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoordinationV1LeaseList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoordinationV1LeaseSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1AWSElasticBlockStoreVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Affinity.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1AttachedVolume.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1AzureDiskVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1AzureFilePersistentVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1AzureFileVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Binding.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1CSIPersistentVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1CSIVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Capabilities.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1CephFSPersistentVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1CephFSVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1CinderPersistentVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1CinderVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ClaimSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ClientIPConfig.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ClusterTrustBundleProjection.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ComponentCondition.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ComponentStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ComponentStatusList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ConfigMap.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ConfigMapEnvSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ConfigMapKeySelector.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ConfigMapList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ConfigMapNodeConfigSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ConfigMapProjection.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ConfigMapVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Container.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerImage.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerPort.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerResizePolicy.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerState.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerStateRunning.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerStateTerminated.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerStateWaiting.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1DaemonEndpoint.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1DownwardAPIProjection.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1DownwardAPIVolumeFile.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1DownwardAPIVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EmptyDirVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EndpointAddress.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EndpointPort.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EndpointSubset.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Endpoints.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EndpointsList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EnvFromSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EnvVar.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EnvVarSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EphemeralContainer.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EphemeralVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Event.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EventList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EventSeries.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EventSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ExecAction.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1FCVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1FlexPersistentVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1FlexVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1FlockerVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1GCEPersistentDiskVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1GRPCAction.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1GitRepoVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1GlusterfsPersistentVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1GlusterfsVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1HTTPGetAction.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1HTTPHeader.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1HostAlias.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1HostIP.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1HostPathVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ISCSIPersistentVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ISCSIVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1KeyToPath.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Lifecycle.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LifecycleHandler.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LimitRange.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LimitRangeItem.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LimitRangeList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LimitRangeSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LoadBalancerIngress.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LoadBalancerStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LocalObjectReference.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LocalVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ModifyVolumeStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NFSVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Namespace.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NamespaceCondition.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NamespaceList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NamespaceSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NamespaceStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Node.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeAddress.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeAffinity.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeCondition.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeConfigSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeConfigStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeDaemonEndpoints.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeSelector.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeSelectorRequirement.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeSelectorTerm.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeSystemInfo.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ObjectFieldSelector.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ObjectReference.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolume.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeClaim.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeClaimCondition.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeClaimList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeClaimSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeClaimStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeClaimTemplate.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeClaimVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PhotonPersistentDiskVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Pod.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodAffinity.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodAffinityTerm.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodAntiAffinity.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodCondition.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodDNSConfig.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodDNSConfigOption.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodIP.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodOS.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodReadinessGate.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodResourceClaim.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodResourceClaimStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodSchedulingGate.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodSecurityContext.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodTemplate.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodTemplateList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodTemplateSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PortStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PortworxVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PreferredSchedulingTerm.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Probe.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ProjectedVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1QuobyteVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1RBDPersistentVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1RBDVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ReplicationController.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ReplicationControllerCondition.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ReplicationControllerList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ReplicationControllerSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ReplicationControllerStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ResourceClaim.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ResourceFieldSelector.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ResourceQuota.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ResourceQuotaList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ResourceQuotaSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ResourceQuotaStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ResourceRequirements.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SELinuxOptions.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ScaleIOPersistentVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ScaleIOVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ScopeSelector.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ScopedResourceSelectorRequirement.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SeccompProfile.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Secret.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SecretEnvSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SecretKeySelector.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SecretList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SecretProjection.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SecretReference.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SecretVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SecurityContext.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Service.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ServiceAccount.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ServiceAccountList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ServiceAccountTokenProjection.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ServiceList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ServicePort.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ServiceSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ServiceStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SessionAffinityConfig.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SleepAction.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1StorageOSPersistentVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1StorageOSVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Sysctl.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1TCPSocketAction.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Taint.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Toleration.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1TopologySelectorLabelRequirement.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1TopologySelectorTerm.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1TopologySpreadConstraint.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1TypedLocalObjectReference.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1TypedObjectReference.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Volume.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1VolumeDevice.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1VolumeMount.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1VolumeNodeAffinity.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1VolumeProjection.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1VolumeResourceRequirements.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1VsphereVirtualDiskVolumeSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1WeightedPodAffinityTerm.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1WindowsSecurityContextOptions.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiDiscoveryV1Endpoint.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiDiscoveryV1EndpointConditions.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiDiscoveryV1EndpointHints.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiDiscoveryV1EndpointPort.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiDiscoveryV1EndpointSlice.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiDiscoveryV1EndpointSliceList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiDiscoveryV1ForZone.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiEventsV1Event.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiEventsV1EventList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiEventsV1EventSeries.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1ExemptPriorityLevelConfiguration.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1FlowDistinguisherMethod.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1FlowSchema.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1FlowSchemaCondition.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1FlowSchemaList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1FlowSchemaSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1FlowSchemaStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1GroupSubject.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1LimitResponse.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1LimitedPriorityLevelConfiguration.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1NonResourcePolicyRule.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1PolicyRulesWithSubjects.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1PriorityLevelConfiguration.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1PriorityLevelConfigurationCondition.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1PriorityLevelConfigurationList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1PriorityLevelConfigurationReference.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1PriorityLevelConfigurationStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1QueuingConfiguration.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1ResourcePolicyRule.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1ServiceAccountSubject.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1Subject.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1UserSubject.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfiguration.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3FlowDistinguisherMethod.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3FlowSchema.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3FlowSchemaCondition.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3FlowSchemaList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3FlowSchemaSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3FlowSchemaStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3GroupSubject.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3LimitResponse.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfiguration.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3NonResourcePolicyRule.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3PolicyRulesWithSubjects.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3PriorityLevelConfiguration.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationCondition.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationReference.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3QueuingConfiguration.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3ResourcePolicyRule.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3ServiceAccountSubject.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3Subject.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3UserSubject.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1HTTPIngressPath.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1HTTPIngressRuleValue.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IPBlock.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1Ingress.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressBackend.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressClass.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressClassList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressClassParametersReference.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressClassSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressLoadBalancerIngress.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressLoadBalancerStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressPortStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressRule.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressServiceBackend.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressTLS.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1NetworkPolicy.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1NetworkPolicyEgressRule.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1NetworkPolicyIngressRule.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1NetworkPolicyList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1NetworkPolicyPeer.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1NetworkPolicyPort.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1NetworkPolicySpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1ServiceBackendPort.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1IPAddress.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1IPAddressList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1IPAddressSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1ParentReference.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1ServiceCIDR.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1ServiceCIDRList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1ServiceCIDRSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1ServiceCIDRStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNodeV1Overhead.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNodeV1RuntimeClass.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNodeV1RuntimeClassList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiNodeV1Scheduling.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiPolicyV1Eviction.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiPolicyV1PodDisruptionBudget.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiPolicyV1PodDisruptionBudgetList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiPolicyV1PodDisruptionBudgetSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiPolicyV1PodDisruptionBudgetStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1AggregationRule.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1ClusterRole.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1ClusterRoleBinding.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1ClusterRoleBindingList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1ClusterRoleList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1PolicyRule.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1Role.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1RoleBinding.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1RoleBindingList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1RoleList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1RoleRef.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1Subject.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2AllocationResult.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2PodSchedulingContext.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2PodSchedulingContextList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2PodSchedulingContextSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2PodSchedulingContextStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaim.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimConsumerReference.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimParametersReference.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimSchedulingStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimTemplate.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimTemplateList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimTemplateSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClass.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClassList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClassParametersReference.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceHandle.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiSchedulingV1PriorityClass.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiSchedulingV1PriorityClassList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSIDriver.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSIDriverList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSIDriverSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSINode.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSINodeDriver.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSINodeList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSINodeSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSIStorageCapacity.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSIStorageCapacityList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1StorageClass.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1StorageClassList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1TokenRequest.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1VolumeAttachment.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1VolumeAttachmentList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1VolumeAttachmentSource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1VolumeAttachmentSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1VolumeAttachmentStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1VolumeError.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1VolumeNodeResources.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1alpha1VolumeAttributesClass.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1alpha1VolumeAttributesClassList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinition.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceConversion.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinition.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionCondition.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersion.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScale.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresources.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidation.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1ExternalDocumentation.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReference.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRule.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfig.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookConversion.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1APIGroup.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1APIGroupList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1APIResource.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1APIResourceList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1APIVersions.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1Condition.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1DeleteOptions.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1LabelSelector.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1ListMeta.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1ObjectMeta.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1OwnerReference.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1Preconditions.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1Status.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1StatusCause.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1StatusDetails.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1WatchEvent.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgVersionInfo.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sKubeAggregatorPkgApisApiregistrationV1APIService.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceCondition.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceList.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpec.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceStatus.ts create mode 100644 packages/types/src/generated/kubernetes/models/IoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReference.ts create mode 100644 packages/types/src/generated/kubernetes/models/index.ts create mode 100644 packages/types/src/generated/kubernetes/swagger.json create mode 100644 packages/types/src/generated/kubevirt/README.md create mode 100644 packages/types/src/generated/kubevirt/index.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1Affinity.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1DownwardAPIVolumeFile.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1ExecAction.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1HTTPGetAction.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1HTTPHeader.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1LocalObjectReference.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1NodeAffinity.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1NodeSelector.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1NodeSelectorRequirement.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1NodeSelectorTerm.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1ObjectFieldSelector.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PersistentVolumeClaimSpec.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PersistentVolumeClaimVolumeSource.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PodAffinity.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PodAffinityTerm.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PodAntiAffinity.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PodDNSConfig.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PodDNSConfigOption.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PreferredSchedulingTerm.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1ResourceClaim.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1ResourceFieldSelector.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1ResourceRequirements.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1TCPSocketAction.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1Toleration.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1TopologySpreadConstraint.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1TypedLocalObjectReference.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1TypedObjectReference.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1WeightedPodAffinityTerm.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1APIGroup.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1APIGroupList.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1APIResource.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1APIResourceList.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1DeleteOptions.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1LabelSelector.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1ListMeta.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1ObjectMeta.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1OwnerReference.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1Preconditions.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1RootPaths.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1Status.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1StatusCause.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1StatusDetails.ts create mode 100644 packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1WatchEvent.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1ACPI.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1AccessCredential.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1AccessCredentialSecretSource.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1AddVolumeOptions.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1ArchConfiguration.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1ArchSpecificConfiguration.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1BIOS.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1BlockSize.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1Bootloader.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1CDRomTarget.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1CPU.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1CPUFeature.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1CPUTopology.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1CertConfig.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1Chassis.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1Clock.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1ClockOffset.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1ClockOffsetUTC.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1CloudInitConfigDriveSource.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1CloudInitNoCloudSource.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1ComponentConfig.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1ConfigMapVolumeSource.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1ContainerDiskInfo.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1ContainerDiskSource.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1CustomBlockSize.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1CustomProfile.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1CustomizeComponents.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1CustomizeComponentsPatch.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1DHCPOptions.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1DHCPPrivateOptions.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1DataVolumeSource.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1DataVolumeTemplateSpec.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1DeveloperConfiguration.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1Devices.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1Disk.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1DiskTarget.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1DiskVerification.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1DomainMemoryDumpInfo.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1DomainSpec.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1DownwardAPIVolumeSource.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1EFI.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1EmptyDiskSource.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1EphemeralVolumeSource.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1FeatureAPIC.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1FeatureHyperv.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1FeatureKVM.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1FeatureSpinlocks.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1FeatureState.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1FeatureVendorID.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1Features.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1Filesystem.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1Firmware.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1Flags.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1FreezeUnfreezeTimeout.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1GPU.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1GenerationStatus.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1GuestAgentCommandInfo.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1HPETTimer.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1HostDevice.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1HostDisk.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1HotplugVolumeSource.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1HotplugVolumeStatus.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1Hugepages.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1HypervTimer.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1I6300ESBWatchdog.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1InitrdInfo.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1Input.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1InstancetypeMatcher.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1Interface.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1InterfaceBindingMigration.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1InterfaceBindingPlugin.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1KSMConfiguration.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1KVMTimer.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1KernelBoot.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1KernelBootContainer.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1KernelBootStatus.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1KernelInfo.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1KubeVirt.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1KubeVirtCertificateRotateStrategy.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1KubeVirtCondition.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1KubeVirtConfiguration.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1KubeVirtList.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1KubeVirtSelfSignConfiguration.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1KubeVirtSpec.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1KubeVirtStatus.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1KubeVirtWorkloadUpdateStrategy.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1LaunchSecurity.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1LiveUpdateConfiguration.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1LogVerbosity.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1LunTarget.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1Machine.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1MediatedDevicesConfiguration.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1MediatedHostDevice.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1Memory.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1MemoryDumpVolumeSource.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1MemoryStatus.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1MigrateOptions.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1MigrationConfiguration.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1MultusNetwork.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1NUMA.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1Network.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1NetworkConfiguration.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1NodeMediatedDeviceTypesConfig.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1NodePlacement.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1PITTimer.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1PauseOptions.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1PciHostDevice.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1PermittedHostDevices.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1PersistentVolumeClaimInfo.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1PersistentVolumeClaimVolumeSource.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1PluginBinding.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1PodNetwork.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1Port.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1PreferenceMatcher.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1Probe.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1RESTClientConfiguration.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1RTCTimer.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1RateLimiter.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1Realtime.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1ReloadableComponentConfiguration.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1RemoveVolumeOptions.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1ResourceRequirements.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1RestartOptions.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1SEV.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1SEVMeasurementInfo.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1SEVPlatformInfo.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1SEVPolicy.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1SEVSecretOptions.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1SEVSessionOptions.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1SMBiosConfiguration.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1SSHPublicKeyAccessCredential.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1SSHPublicKeyAccessCredentialPropagationMethod.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1SSHPublicKeyAccessCredentialSource.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1SeccompConfiguration.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1SecretVolumeSource.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1ServiceAccountVolumeSource.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1SoundDevice.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1StartOptions.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1StopOptions.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1SupportContainerResources.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1SyNICTimer.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1SysprepSource.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1TLSConfiguration.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1TPMDevice.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1Timer.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1TokenBucketRateLimiter.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1TopologyHints.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1USBHostDevice.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1USBSelector.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1UnpauseOptions.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1UserPasswordAccessCredential.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1UserPasswordAccessCredentialPropagationMethod.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1UserPasswordAccessCredentialSource.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VGPUDisplayOptions.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VGPUOptions.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachine.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineCondition.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstance.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceCondition.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceFileSystem.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceFileSystemDisk.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceFileSystemInfo.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceFileSystemList.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceGuestAgentInfo.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceGuestOSInfo.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceGuestOSUser.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceGuestOSUserList.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceList.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceMigration.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceMigrationCondition.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceMigrationList.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceMigrationSpec.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceMigrationState.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceMigrationStatus.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceNetworkInterface.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstancePhaseTransitionTimestamp.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstancePreset.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstancePresetList.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstancePresetSpec.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceProfile.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceReplicaSet.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceReplicaSetCondition.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceReplicaSetList.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceReplicaSetSpec.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceReplicaSetStatus.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceSpec.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceStatus.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceTemplateSpec.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineList.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineMemoryDumpRequest.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineOptions.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineSpec.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineStartFailure.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineStateChangeRequest.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineStatus.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VirtualMachineVolumeRequest.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1Volume.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VolumeSnapshotStatus.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1VolumeStatus.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1Watchdog.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1Condition.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1Error.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1MigrationPolicy.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1MigrationPolicyList.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1MigrationPolicySpec.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1PersistentVolumeClaim.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1Selectors.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1SnapshotVolumesLists.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1SourceSpec.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachine.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineClone.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineCloneList.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineCloneSpec.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineCloneStatus.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineCloneTemplateFilters.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExport.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportLink.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportLinks.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportList.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportManifest.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportSpec.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportStatus.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportVolume.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportVolumeFormat.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachinePool.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachinePoolCondition.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachinePoolList.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachinePoolSpec.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachinePoolStatus.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineRestore.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineRestoreList.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineRestoreSpec.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineRestoreStatus.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshot.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshotContent.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshotContentList.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshotContentSpec.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshotContentStatus.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshotList.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshotSpec.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshotStatus.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineTemplateSpec.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VolumeBackup.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VolumeRestore.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1alpha1VolumeSnapshotStatus.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1CPUInstancetype.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1CPUPreferenceRequirement.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1CPUPreferences.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1ClockPreferences.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1DataVolumeCheckpoint.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSource.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceGCS.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceHTTP.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceImageIO.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourcePVC.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceRef.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceRegistry.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceS3.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceSnapshot.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceVDDK.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSpec.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1DevicePreferences.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1FeaturePreferences.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1FirmwarePreferences.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1MachinePreferences.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1MemoryInstancetype.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1MemoryPreferenceRequirement.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1PreferenceRequirements.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1StorageSpec.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1VirtualMachineClusterInstancetype.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1VirtualMachineClusterInstancetypeList.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1VirtualMachineClusterPreference.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1VirtualMachineClusterPreferenceList.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1VirtualMachineInstancetype.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1VirtualMachineInstancetypeList.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1VirtualMachineInstancetypeSpec.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1VirtualMachinePreference.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1VirtualMachinePreferenceList.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1VirtualMachinePreferenceSpec.ts create mode 100644 packages/types/src/generated/kubevirt/models/V1beta1VolumePreferences.ts create mode 100644 packages/types/src/generated/kubevirt/models/index.ts create mode 100644 packages/types/src/generated/kubevirt/swagger.json create mode 100644 packages/types/src/generated/runtime.ts delete mode 100644 packages/types/src/models/README.md delete mode 100644 packages/types/src/models/index.ts delete mode 100644 packages/types/src/types/k8s/IoK8sApiStorageV1StorageClass.ts delete mode 100644 packages/types/src/types/k8s/V1Namespace.ts delete mode 100644 packages/types/src/types/k8s/V1Secret.ts delete mode 100644 packages/types/src/types/k8s/V1VirtualMachine.ts diff --git a/packages/forklift-console-plugin/src/modules/Overview/views/overview/tabs/Metrics/cards/VmMigrationsChartCard.tsx b/packages/forklift-console-plugin/src/modules/Overview/views/overview/tabs/Metrics/cards/VmMigrationsChartCard.tsx index adea804d2..c6b2ddfcf 100644 --- a/packages/forklift-console-plugin/src/modules/Overview/views/overview/tabs/Metrics/cards/VmMigrationsChartCard.tsx +++ b/packages/forklift-console-plugin/src/modules/Overview/views/overview/tabs/Metrics/cards/VmMigrationsChartCard.tsx @@ -1,8 +1,11 @@ import React, { useState } from 'react'; import { useForkliftTranslation } from 'src/utils/i18n'; -import { MigrationModelGroupVersionKind, V1beta1Migration } from '@kubev2v/types'; -import { V1beta1MigrationStatusVms } from '@kubev2v/types/dist/models/V1beta1MigrationStatusVms'; +import { + MigrationModelGroupVersionKind, + V1beta1Migration, + V1beta1MigrationStatusVms, +} from '@kubev2v/types'; import { useK8sWatchResource } from '@openshift-console/dynamic-plugin-sdk'; import { Chart, ChartAxis, ChartBar, ChartGroup, ChartTooltip } from '@patternfly/react-charts'; import { diff --git a/packages/forklift-console-plugin/src/modules/Providers/hooks/useK8sWatchSecretData.ts b/packages/forklift-console-plugin/src/modules/Providers/hooks/useK8sWatchSecretData.ts index 887902679..6cfbb64dd 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/hooks/useK8sWatchSecretData.ts +++ b/packages/forklift-console-plugin/src/modules/Providers/hooks/useK8sWatchSecretData.ts @@ -1,6 +1,6 @@ import { useEffect, useState } from 'react'; -import { V1Secret } from '@kubev2v/types'; +import { IoK8sApiCoreV1Secret } from '@kubev2v/types'; import { useK8sWatchResource, WatchK8sResource } from '@openshift-console/dynamic-plugin-sdk'; /** @@ -19,7 +19,7 @@ export const useK8sWatchSecretData = (resourceParams: WatchK8sResource): K8sSecr const [secretLoaded, setLoaded] = useState(false); const [secretLoadError, setLoadError] = useState(null); - const [secret, loaded, error] = useK8sWatchResource(resourceParams); + const [secret, loaded, error] = useK8sWatchResource(resourceParams); useEffect(() => { if (loaded && error) { @@ -34,7 +34,7 @@ export const useK8sWatchSecretData = (resourceParams: WatchK8sResource): K8sSecr setLoaded(true); }; - const handleLoadedSecret = (secret: V1Secret | null) => { + const handleLoadedSecret = (secret: IoK8sApiCoreV1Secret | null) => { setLoaded(true); if (JSON.stringify(secret?.data) !== JSON.stringify(secretData)) { setSecretData(secret?.data); diff --git a/packages/forklift-console-plugin/src/modules/Providers/hooks/useStorages.ts b/packages/forklift-console-plugin/src/modules/Providers/hooks/useStorages.ts index 6704a838a..6b6d3115a 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/hooks/useStorages.ts +++ b/packages/forklift-console-plugin/src/modules/Providers/hooks/useStorages.ts @@ -5,10 +5,10 @@ import { OpenstackVolumeType, OVirtStorageDomain, ProviderType, + TypedOvaResource, V1beta1Provider, VSphereDataStore, } from '@kubev2v/types'; -import { TypedOvaResource } from '@kubev2v/types/dist/types/provider/ova/TypedResource'; import useProviderInventory from './useProviderInventory'; diff --git a/packages/forklift-console-plugin/src/modules/Providers/modals/EditProviderURL/utils/patchProviderURL.ts b/packages/forklift-console-plugin/src/modules/Providers/modals/EditProviderURL/utils/patchProviderURL.ts index a105883f3..e644bbfc4 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/modals/EditProviderURL/utils/patchProviderURL.ts +++ b/packages/forklift-console-plugin/src/modules/Providers/modals/EditProviderURL/utils/patchProviderURL.ts @@ -1,6 +1,6 @@ import { Base64 } from 'js-base64'; -import { SecretModel, V1beta1Provider, V1Secret } from '@kubev2v/types'; +import { IoK8sApiCoreV1Secret, SecretModel, V1beta1Provider } from '@kubev2v/types'; import { k8sPatch } from '@openshift-console/dynamic-plugin-sdk'; import { OnConfirmHookType } from '../../EditModal'; @@ -20,7 +20,7 @@ export const patchProviderURL: OnConfirmHookType = async ({ resource, model, new const providerOp = provider?.spec?.url ? 'replace' : 'add'; // Get providers secret stub - const secret: V1Secret = { + const secret: IoK8sApiCoreV1Secret = { kind: 'Secret', apiVersion: 'v1', metadata: { diff --git a/packages/forklift-console-plugin/src/modules/Providers/utils/helpers/isSecretDataChanged.ts b/packages/forklift-console-plugin/src/modules/Providers/utils/helpers/isSecretDataChanged.ts index 4f18c726a..d38d9e606 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/utils/helpers/isSecretDataChanged.ts +++ b/packages/forklift-console-plugin/src/modules/Providers/utils/helpers/isSecretDataChanged.ts @@ -1,13 +1,16 @@ -import { V1Secret } from '@kubev2v/types'; +import { IoK8sApiCoreV1Secret } from '@kubev2v/types'; /** * Compares the data records between two versions of a secret. * - * @param {V1Secret} secret1 - The first version of the secret. - * @param {V1Secret} secret2 - The second version of the secret. + * @param {IoK8sApiCoreV1Secret} secret1 - The first version of the secret. + * @param {IoK8sApiCoreV1Secret} secret2 - The second version of the secret. * @returns {boolean} Returns true if the data records have changed, otherwise returns false. */ -export function isSecretDataChanged(secret1: V1Secret, secret2: V1Secret): boolean { +export function isSecretDataChanged( + secret1: IoK8sApiCoreV1Secret, + secret2: IoK8sApiCoreV1Secret, +): boolean { // Both secrets don't have data records if (!secret1.data && !secret2.data) { return false; diff --git a/packages/forklift-console-plugin/src/modules/Providers/utils/helpers/missingKeysInSecretData.ts b/packages/forklift-console-plugin/src/modules/Providers/utils/helpers/missingKeysInSecretData.ts index de2da5ff6..87efea90e 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/utils/helpers/missingKeysInSecretData.ts +++ b/packages/forklift-console-plugin/src/modules/Providers/utils/helpers/missingKeysInSecretData.ts @@ -1,15 +1,15 @@ import { Base64 } from 'js-base64'; -import { V1Secret } from '@kubev2v/types'; +import { IoK8sApiCoreV1Secret } from '@kubev2v/types'; /** * Checks if a list of keys exist in a secret's data, and verifies they are not null or empty strings. * - * @param {V1Secret} secret - The secret to be checked. + * @param {IoK8sApiCoreV1Secret} secret - The secret to be checked. * @param {string[]} keys - The list of keys to check. * @returns {string[]} Returns a list of missing keys in secret data. */ -export function missingKeysInSecretData(secret: V1Secret, keys: string[]): string[] { +export function missingKeysInSecretData(secret: IoK8sApiCoreV1Secret, keys: string[]): string[] { // If secret or secret's data is not defined, return false if (!secret?.data) { return keys; diff --git a/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/openshift/openshiftSecretValidator.ts b/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/openshift/openshiftSecretValidator.ts index 4088bfecb..a7db5ca96 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/openshift/openshiftSecretValidator.ts +++ b/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/openshift/openshiftSecretValidator.ts @@ -1,12 +1,12 @@ import { Base64 } from 'js-base64'; -import { V1Secret } from '@kubev2v/types'; +import { IoK8sApiCoreV1Secret } from '@kubev2v/types'; import { ValidationMsg } from '../../common'; import { openshiftSecretFieldValidator } from './openshiftSecretFieldValidator'; -export function openshiftSecretValidator(secret: V1Secret): ValidationMsg { +export function openshiftSecretValidator(secret: IoK8sApiCoreV1Secret): ValidationMsg { const url = secret?.data?.url || ''; const token = secret?.data?.token || ''; const cacert = secret?.data?.cacert || ''; diff --git a/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/openstack/openstackSecretValidator.ts b/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/openstack/openstackSecretValidator.ts index bf52b12a8..63b82d1e8 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/openstack/openstackSecretValidator.ts +++ b/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/openstack/openstackSecretValidator.ts @@ -1,11 +1,11 @@ -import { V1Secret } from '@kubev2v/types'; +import { IoK8sApiCoreV1Secret } from '@kubev2v/types'; import { missingKeysInSecretData, safeBase64Decode } from '../../../helpers'; import { ValidationMsg } from '../../common'; import { openstackSecretFieldValidator } from './openstackSecretFieldValidator'; -export function openstackSecretValidator(secret: V1Secret): ValidationMsg { +export function openstackSecretValidator(secret: IoK8sApiCoreV1Secret): ValidationMsg { const authType = safeBase64Decode(secret?.data?.['authType']) || 'password'; let requiredFields = []; diff --git a/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/ovirt/ovirtSecretValidator.ts b/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/ovirt/ovirtSecretValidator.ts index 3ac700751..133e4632a 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/ovirt/ovirtSecretValidator.ts +++ b/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/ovirt/ovirtSecretValidator.ts @@ -1,13 +1,13 @@ import { Base64 } from 'js-base64'; -import { V1Secret } from '@kubev2v/types'; +import { IoK8sApiCoreV1Secret } from '@kubev2v/types'; import { missingKeysInSecretData } from '../../../helpers'; import { ValidationMsg } from '../../common'; import { ovirtSecretFieldValidator } from './ovirtSecretFieldValidator'; -export function ovirtSecretValidator(secret: V1Secret): ValidationMsg { +export function ovirtSecretValidator(secret: IoK8sApiCoreV1Secret): ValidationMsg { const requiredFields = ['user', 'password']; const validateFields = ['user', 'password', 'insecureSkipVerify', 'cacert']; diff --git a/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/providerAndSecretValidator.ts b/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/providerAndSecretValidator.ts index eeb312d12..bc8403e11 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/providerAndSecretValidator.ts +++ b/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/providerAndSecretValidator.ts @@ -1,4 +1,4 @@ -import { V1beta1Provider, V1Secret } from '@kubev2v/types'; +import { IoK8sApiCoreV1Secret, V1beta1Provider } from '@kubev2v/types'; import { ValidationMsg } from '../common'; @@ -7,7 +7,7 @@ import { secretValidator } from './secretValidator'; export function providerAndSecretValidator( provider: V1beta1Provider, - secret: V1Secret, + secret: IoK8sApiCoreV1Secret, ): ValidationMsg { const providerValidation = providerValidator(provider); if (providerValidation) { diff --git a/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/secretValidator.ts b/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/secretValidator.ts index 8180b5993..65e487152 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/secretValidator.ts +++ b/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/secretValidator.ts @@ -1,4 +1,4 @@ -import { V1Secret } from '@kubev2v/types'; +import { IoK8sApiCoreV1Secret } from '@kubev2v/types'; import { ValidationMsg } from '../common'; @@ -7,7 +7,7 @@ import { openstackSecretValidator } from './openstack/openstackSecretValidator'; import { ovirtSecretValidator } from './ovirt/ovirtSecretValidator'; import { vsphereSecretValidator } from './vsphere/vsphereSecretValidator'; -export function secretValidator(type: string, secret: V1Secret): ValidationMsg { +export function secretValidator(type: string, secret: IoK8sApiCoreV1Secret): ValidationMsg { let validationError: ValidationMsg; switch (type) { diff --git a/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/vsphere/vsphereSecretValidator.ts b/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/vsphere/vsphereSecretValidator.ts index f3d601c8f..8154dddb3 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/vsphere/vsphereSecretValidator.ts +++ b/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/vsphere/vsphereSecretValidator.ts @@ -1,13 +1,13 @@ import { Base64 } from 'js-base64'; -import { V1Secret } from '@kubev2v/types'; +import { IoK8sApiCoreV1Secret } from '@kubev2v/types'; import { missingKeysInSecretData } from '../../../helpers'; import { ValidationMsg } from '../../common'; import { vsphereSecretFieldValidator } from './vsphereSecretFieldValidator'; -export function vsphereSecretValidator(secret: V1Secret): ValidationMsg { +export function vsphereSecretValidator(secret: IoK8sApiCoreV1Secret): ValidationMsg { const requiredFields = ['user', 'password']; const validateFields = ['user', 'password', 'insecureSkipVerify', 'cacert']; diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/create/ProvidersCreatePage.tsx b/packages/forklift-console-plugin/src/modules/Providers/views/create/ProvidersCreatePage.tsx index e1acf3d59..3fc93c1f2 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/views/create/ProvidersCreatePage.tsx +++ b/packages/forklift-console-plugin/src/modules/Providers/views/create/ProvidersCreatePage.tsx @@ -4,7 +4,7 @@ import { Base64 } from 'js-base64'; import SectionHeading from 'src/components/headers/SectionHeading'; import { ForkliftTrans, useForkliftTranslation } from 'src/utils/i18n'; -import { ProviderModelRef, V1beta1Provider, V1Secret } from '@kubev2v/types'; +import { IoK8sApiCoreV1Secret, ProviderModelRef, V1beta1Provider } from '@kubev2v/types'; import { Alert, Button, @@ -27,7 +27,7 @@ import { createProvider, createProviderSecret, patchProviderSecretOwner } from ' import './ProvidersCreatePage.style.css'; interface ProvidersCreatePageState { - newSecret: V1Secret; + newSecret: IoK8sApiCoreV1Secret; newProvider: V1beta1Provider; validationError: ValidationMsg; apiError: Error | null; @@ -65,7 +65,7 @@ export const ProvidersCreatePage: React.FC<{ function reducer( state: ProvidersCreatePageState, - action: { type: string; payload?: string | V1Secret | V1beta1Provider }, + action: { type: string; payload?: string | IoK8sApiCoreV1Secret | V1beta1Provider }, ): ProvidersCreatePageState { switch (action.type) { case 'SET_NEW_SECRET': { @@ -134,7 +134,7 @@ export const ProvidersCreatePage: React.FC<{ } // Handle user edits - function onNewSecretChange(newValue: V1Secret) { + function onNewSecretChange(newValue: IoK8sApiCoreV1Secret) { // update staged secret with new value dispatch({ type: 'SET_NEW_SECRET', payload: newValue }); } @@ -147,7 +147,7 @@ export const ProvidersCreatePage: React.FC<{ // Handle user clicking "save" async function onUpdate() { - let secret: V1Secret; + let secret: IoK8sApiCoreV1Secret; let provider: V1beta1Provider; toggleIsLoading(); diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/create/components/ProviderCreateForm.tsx b/packages/forklift-console-plugin/src/modules/Providers/views/create/components/ProviderCreateForm.tsx index c2018a283..ef653aae0 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/views/create/components/ProviderCreateForm.tsx +++ b/packages/forklift-console-plugin/src/modules/Providers/views/create/components/ProviderCreateForm.tsx @@ -5,7 +5,7 @@ import { SelectableCard } from 'src/modules/Providers/utils/components/Galerry/S import { SelectableGallery } from 'src/modules/Providers/utils/components/Galerry/SelectableGallery'; import { useForkliftTranslation } from 'src/utils/i18n'; -import { ProviderType, V1beta1Provider, V1Secret } from '@kubev2v/types'; +import { IoK8sApiCoreV1Secret, ProviderType, V1beta1Provider } from '@kubev2v/types'; import { Flex, FlexItem, Form, FormGroup, TextInput } from '@patternfly/react-core'; import { EditProvider } from './EditProvider'; @@ -13,9 +13,9 @@ import { EditProviderSectionHeading } from './EditProviderSectionHeading'; import { providerCardItems } from './providerCardItems'; export interface ProvidersCreateFormProps { newProvider: V1beta1Provider; - newSecret: V1Secret; + newSecret: IoK8sApiCoreV1Secret; onNewProviderChange: (V1beta1Provider) => void; - onNewSecretChange: (V1Secret) => void; + onNewSecretChange: (IoK8sApiCoreV1Secret) => void; providerNames?: string[]; } diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/create/templates/secretTemplate.ts b/packages/forklift-console-plugin/src/modules/Providers/views/create/templates/secretTemplate.ts index df3173227..87c4162b3 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/views/create/templates/secretTemplate.ts +++ b/packages/forklift-console-plugin/src/modules/Providers/views/create/templates/secretTemplate.ts @@ -1,6 +1,6 @@ -import { V1Secret } from '@kubev2v/types'; +import { IoK8sApiCoreV1Secret } from '@kubev2v/types'; -export const secretTemplate: V1Secret = { +export const secretTemplate: IoK8sApiCoreV1Secret = { kind: 'Secret', apiVersion: 'v1', metadata: { diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/create/utils/createProvider.ts b/packages/forklift-console-plugin/src/modules/Providers/views/create/utils/createProvider.ts index 896ae67ed..333767b3d 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/views/create/utils/createProvider.ts +++ b/packages/forklift-console-plugin/src/modules/Providers/views/create/utils/createProvider.ts @@ -1,11 +1,11 @@ -import { ProviderModel, V1beta1Provider, V1Secret } from '@kubev2v/types'; +import { IoK8sApiCoreV1Secret, ProviderModel, V1beta1Provider } from '@kubev2v/types'; import { k8sCreate } from '@openshift-console/dynamic-plugin-sdk'; /** * Creates a new provider with the specified secret information. * * @param {V1beta1Provider} provider - The provider object to be cloned and modified. - * @param {V1Secret} secret - The secret object used to update the provider's secret information. + * @param {IoK8sApiCoreV1Secret} secret - The secret object used to update the provider's secret information. * @returns {Promise} A Promise that resolves to the created provider object. * * @async @@ -20,7 +20,7 @@ import { k8sCreate } from '@openshift-console/dynamic-plugin-sdk'; * .then(newProvider => console.log(newProvider)) * .catch(err => console.error(err)); */ -export async function createProvider(provider: V1beta1Provider, secret: V1Secret) { +export async function createProvider(provider: V1beta1Provider, secret: IoK8sApiCoreV1Secret) { // Sanity check, don't try to create empty provider if (!provider) { return; diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/create/utils/createProviderSecret.ts b/packages/forklift-console-plugin/src/modules/Providers/views/create/utils/createProviderSecret.ts index 9b854bfcc..4aa0034cd 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/views/create/utils/createProviderSecret.ts +++ b/packages/forklift-console-plugin/src/modules/Providers/views/create/utils/createProviderSecret.ts @@ -1,13 +1,13 @@ import { Base64 } from 'js-base64'; -import { SecretModel, V1beta1Provider, V1Secret } from '@kubev2v/types'; +import { IoK8sApiCoreV1Secret, SecretModel, V1beta1Provider } from '@kubev2v/types'; import { k8sCreate } from '@openshift-console/dynamic-plugin-sdk'; /** * Creates a new Kubernetes secret using the provided provider and secret data. * * @param {V1beta1Provider} provider - The provider object which includes metadata and spec information. - * @param {V1Secret} secret - The base secret object to be cloned and modified. + * @param {IoK8sApiCoreV1Secret} secret - The base secret object to be cloned and modified. * @returns {Promise} A Promise that resolves to the created Kubernetes secret object. * * @async @@ -22,7 +22,10 @@ import { k8sCreate } from '@openshift-console/dynamic-plugin-sdk'; * .then(newSecret => console.log(newSecret)) * .catch(err => console.error(err)); */ -export async function createProviderSecret(provider: V1beta1Provider, secret: V1Secret) { +export async function createProviderSecret( + provider: V1beta1Provider, + secret: IoK8sApiCoreV1Secret, +) { const url = provider?.spec?.url; // Sanity check, don't try to create empty secret, or a secret without url @@ -34,7 +37,7 @@ export async function createProviderSecret(provider: V1beta1Provider, secret: V1 const generateName = `${provider.metadata.name}-`; const cleanedData = cleanObject(secret?.data); - const newSecret: V1Secret = { + const newSecret: IoK8sApiCoreV1Secret = { ...secret, metadata: { ...secret?.metadata, diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/create/utils/patchProviderSecretOwner.ts b/packages/forklift-console-plugin/src/modules/Providers/views/create/utils/patchProviderSecretOwner.ts index 025b650b9..6cd3cdc95 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/views/create/utils/patchProviderSecretOwner.ts +++ b/packages/forklift-console-plugin/src/modules/Providers/views/create/utils/patchProviderSecretOwner.ts @@ -1,11 +1,11 @@ -import { SecretModel, V1beta1Provider, V1Secret } from '@kubev2v/types'; +import { IoK8sApiCoreV1Secret, SecretModel, V1beta1Provider } from '@kubev2v/types'; import { k8sPatch } from '@openshift-console/dynamic-plugin-sdk'; /** * Updates the owner reference of the specified secret to point to the provided provider. * * @param {V1beta1Provider} provider - The provider object to be set as the owner of the secret. - * @param {V1Secret} secret - The secret object to be updated with the provider's owner reference. + * @param {IoK8sApiCoreV1Secret} secret - The secret object to be updated with the provider's owner reference. * * @async * @throws Will throw an error if the k8sPatch operation fails. @@ -19,7 +19,10 @@ import { k8sPatch } from '@openshift-console/dynamic-plugin-sdk'; * .then(() => console.log('Secret owner patched successfully')) * .catch(err => console.error(err)); */ -export async function patchProviderSecretOwner(provider: V1beta1Provider, secret: V1Secret) { +export async function patchProviderSecretOwner( + provider: V1beta1Provider, + secret: IoK8sApiCoreV1Secret, +) { // Sanity check, don't try to patch empty secret if (!secret) { return; diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/CredentialsSection.tsx b/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/CredentialsSection.tsx index adde42c0f..9a430d876 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/CredentialsSection.tsx +++ b/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/CredentialsSection.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { ProviderData } from 'src/modules/Providers/utils'; import { useForkliftTranslation } from 'src/utils/i18n'; -import { V1Secret } from '@kubev2v/types'; +import { IoK8sApiCoreV1Secret } from '@kubev2v/types'; import { useK8sWatchResource } from '@openshift-console/dynamic-plugin-sdk'; import { OpenshiftCredentialsSection } from './OpenshiftCredentialsSection'; @@ -55,7 +55,7 @@ export const CredentialsSection_: React.FC<{ name: string; namespace: string; ty }) => { const { t } = useForkliftTranslation(); - const [secret, loaded, loadError] = useK8sWatchResource({ + const [secret, loaded, loadError] = useK8sWatchResource({ groupVersionKind: { version: 'v1', kind: 'Secret' }, namespaced: true, namespace: namespace, diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/BaseCredentialsSection.tsx b/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/BaseCredentialsSection.tsx index de8be58a2..adcc6092b 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/BaseCredentialsSection.tsx +++ b/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/BaseCredentialsSection.tsx @@ -3,7 +3,7 @@ import { AlertMessageForModals } from 'src/modules/Providers/modals'; import { isSecretDataChanged, ValidationMsg } from 'src/modules/Providers/utils'; import { useForkliftTranslation } from 'src/utils/i18n'; -import { V1Secret } from '@kubev2v/types'; +import { IoK8sApiCoreV1Secret } from '@kubev2v/types'; import { useAccessReview } from '@openshift-console/dynamic-plugin-sdk'; import { Button, @@ -22,13 +22,13 @@ import { patchSecretData } from './edit'; import './BaseCredentialsSection.style.css'; export interface ListComponentProps { - secret: V1Secret; + secret: IoK8sApiCoreV1Secret; reveal: boolean; } export interface EditComponentProps { - secret: V1Secret; - onChange: (newValue: V1Secret) => void; + secret: IoK8sApiCoreV1Secret; + onChange: (newValue: IoK8sApiCoreV1Secret) => void; } /** @@ -37,7 +37,7 @@ export interface EditComponentProps { * @typedef {Object} BaseCredentialsSecretState * @property {boolean} reveal - Determines whether the secret's values are visible. * @property {boolean} edit - Determines whether the secret is currently being edited. - * @property {V1Secret} newSecret - The new version of the secret being edited. + * @property {IoK8sApiCoreV1Secret} newSecret - The new version of the secret being edited. * @property {boolean} dataChanged - Determines whether the secret's data has changed. * @property {boolean} dataIsValid - Determines whether the new secret's data is valid. * @property {ReactNode} alertMessage - The message to display when a validation error occurs. @@ -45,15 +45,15 @@ export interface EditComponentProps { export interface BaseCredentialsSecretState { reveal: boolean; edit: boolean; - newSecret: V1Secret; + newSecret: IoK8sApiCoreV1Secret; dataChanged: boolean; dataError: ValidationMsg; alertMessage: ReactNode; } export type BaseCredentialsSectionProps = { - secret: V1Secret; - validator: (secret: V1Secret) => ValidationMsg; + secret: IoK8sApiCoreV1Secret; + validator: (secret: IoK8sApiCoreV1Secret) => ValidationMsg; ListComponent: React.FC; EditComponent: React.FC; }; @@ -86,7 +86,7 @@ export const BaseCredentialsSection: React.FC = ({ function reducer( state: BaseCredentialsSecretState, - action: { type: string; payload?: V1Secret }, + action: { type: string; payload?: IoK8sApiCoreV1Secret }, ): BaseCredentialsSecretState { switch (action.type) { case 'TOGGLE_REVEAL': @@ -128,7 +128,7 @@ export const BaseCredentialsSection: React.FC = ({ } // Handle user edits - function onNewSecretChange(newValue: V1Secret) { + function onNewSecretChange(newValue: IoK8sApiCoreV1Secret) { // update staged secret with new value dispatch({ type: 'SET_NEW_SECRET', payload: newValue }); } diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/patchSecretData.ts b/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/patchSecretData.ts index bb854a81d..3316f9683 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/patchSecretData.ts +++ b/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/patchSecretData.ts @@ -1,16 +1,16 @@ import { Base64 } from 'js-base64'; -import { SecretModel, V1Secret } from '@kubev2v/types'; +import { IoK8sApiCoreV1Secret, SecretModel } from '@kubev2v/types'; import { k8sPatch } from '@openshift-console/dynamic-plugin-sdk'; /** * Updates the data of a Kubernetes secret resource. * - * @param {V1Secret} secret - The secret object containing the updated data. + * @param {IoK8sApiCoreV1Secret} secret - The secret object containing the updated data. * @param {boolean} clean - Clean old values from the secret before patching. * @returns {Promise} A promise that resolves when the patch operation is complete. */ -export async function patchSecretData(secret: V1Secret, clean?: boolean) { +export async function patchSecretData(secret: IoK8sApiCoreV1Secret, clean?: boolean) { const op = secret?.data ? 'replace' : 'add'; // Sanitize secret data diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/details/tabs/Hosts/utils/helpers/createHostSecret.ts b/packages/forklift-console-plugin/src/modules/Providers/views/details/tabs/Hosts/utils/helpers/createHostSecret.ts index 79aa6726d..828c98848 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/views/details/tabs/Hosts/utils/helpers/createHostSecret.ts +++ b/packages/forklift-console-plugin/src/modules/Providers/views/details/tabs/Hosts/utils/helpers/createHostSecret.ts @@ -1,13 +1,13 @@ -import { SecretModel, V1Secret } from '@kubev2v/types'; +import { IoK8sApiCoreV1Secret, SecretModel } from '@kubev2v/types'; import { k8sCreate } from '@openshift-console/dynamic-plugin-sdk'; /** * Creates a Kubernetes secret with the given data. * - * @param {V1Secret} secret - The secret object containing the data to be created. - * @returns {Promise} A promise that resolves to the created secret. + * @param {IoK8sApiCoreV1Secret} secret - The secret object containing the data to be created. + * @returns {Promise} A promise that resolves to the created secret. */ -export async function createHostSecret(secret: V1Secret) { +export async function createHostSecret(secret: IoK8sApiCoreV1Secret) { const secretData = cleanObject(secret.data); const cleanedSecret = { ...secret, data: secretData }; diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/details/tabs/Hosts/utils/helpers/matchHostsToInventory.ts b/packages/forklift-console-plugin/src/modules/Providers/views/details/tabs/Hosts/utils/helpers/matchHostsToInventory.ts index d0d0ce472..af3e31b38 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/views/details/tabs/Hosts/utils/helpers/matchHostsToInventory.ts +++ b/packages/forklift-console-plugin/src/modules/Providers/views/details/tabs/Hosts/utils/helpers/matchHostsToInventory.ts @@ -1,5 +1,5 @@ import { V1beta1Host, V1beta1Provider, VSphereHost } from '@kubev2v/types'; -import { NetworkAdapters } from '@kubev2v/types/src/types/provider/vsphere/host'; +import { NetworkAdapters } from '@kubev2v/types'; /** * Type to represent a pair of ProviderHost, V1beta1Host and NetworkAdapters. diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/details/tabs/Hosts/utils/helpers/onSaveHost.ts b/packages/forklift-console-plugin/src/modules/Providers/views/details/tabs/Hosts/utils/helpers/onSaveHost.ts index 7ca19f1cc..64868ada9 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/views/details/tabs/Hosts/utils/helpers/onSaveHost.ts +++ b/packages/forklift-console-plugin/src/modules/Providers/views/details/tabs/Hosts/utils/helpers/onSaveHost.ts @@ -2,11 +2,11 @@ import { Base64 } from 'js-base64'; import { HostModel, + IoK8sApiCoreV1Secret, NetworkAdapters, SecretModel, V1beta1Host, V1beta1Provider, - V1Secret, VSphereHost, } from '@kubev2v/types'; import { k8sGet, k8sPatch } from '@openshift-console/dynamic-plugin-sdk'; @@ -167,7 +167,7 @@ async function processHostSecretPair( } async function getSecret(name: string, namespace: string) { - const secret = await k8sGet({ model: SecretModel, name, ns: namespace }); + const secret = await k8sGet({ model: SecretModel, name, ns: namespace }); return secret; } @@ -186,7 +186,7 @@ async function patchHost(host: V1beta1Host, ipAddress: string) { } async function patchSecret( - secretData: V1Secret, + secretData: IoK8sApiCoreV1Secret, encodedIpAddress: string, encodedUser: string, encodedPassword: string, diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/details/tabs/Hosts/utils/helpers/patchHostSecretOwner.ts b/packages/forklift-console-plugin/src/modules/Providers/views/details/tabs/Hosts/utils/helpers/patchHostSecretOwner.ts index c99219f7f..4b4b65306 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/views/details/tabs/Hosts/utils/helpers/patchHostSecretOwner.ts +++ b/packages/forklift-console-plugin/src/modules/Providers/views/details/tabs/Hosts/utils/helpers/patchHostSecretOwner.ts @@ -1,15 +1,15 @@ -import { SecretModel, V1Secret } from '@kubev2v/types'; +import { IoK8sApiCoreV1Secret, SecretModel } from '@kubev2v/types'; import { k8sPatch } from '@openshift-console/dynamic-plugin-sdk'; /** * Patches a Kubernetes secret with the given owner reference. * - * @param {V1Secret} secret - The secret object to be patched. + * @param {IoK8sApiCoreV1Secret} secret - The secret object to be patched. * @param {{ name: string; uid: string }} ownerRef - The owner reference to be added to the secret. * @returns {Promise} A promise that resolves when the patch operation is complete. */ export async function patchHostSecretOwner( - secret: V1Secret, + secret: IoK8sApiCoreV1Secret, ownerRef: { name: string; uid: string }, ) { const patchedSecret = await k8sPatch({ diff --git a/packages/mocks/src/definitions/basic/migrations.mock.ts b/packages/mocks/src/definitions/basic/migrations.mock.ts index 4f19eec0e..1de280028 100644 --- a/packages/mocks/src/definitions/basic/migrations.mock.ts +++ b/packages/mocks/src/definitions/basic/migrations.mock.ts @@ -1,7 +1,9 @@ import { MigrationModelGroupVersionKind as gvk, V1beta1Migration } from '@kubev2v/types'; -import { V1beta1MigrationStatus } from '@kubev2v/types/dist/models/V1beta1MigrationStatus'; -import { V1beta1PlanStatusMigration } from '@kubev2v/types/dist/models/V1beta1PlanStatusMigration'; -import { V1beta1MigrationSpec } from '@kubev2v/types/src/models/V1beta1MigrationSpec'; +import { + V1beta1MigrationSpec, + V1beta1MigrationStatus, + V1beta1PlanStatusMigration, +} from '@kubev2v/types'; import { EPOCH, nameAndNamespace, NOW } from '../utils'; diff --git a/packages/mocks/src/definitions/basic/paths.ts b/packages/mocks/src/definitions/basic/paths.ts index 6cc113a8a..b5811ca83 100644 --- a/packages/mocks/src/definitions/basic/paths.ts +++ b/packages/mocks/src/definitions/basic/paths.ts @@ -1,4 +1,4 @@ -import { V1Secret } from '@kubev2v/types'; +import { IoK8sApiCoreV1Secret } from '@kubev2v/types'; import { disks, @@ -71,7 +71,7 @@ const paths = [ '/api/proxy/plugin/forklift-console-plugin/forklift-must-gather-api/must-gather/plan::', MOCK_MUST_GATHERS[0], ], - ...NAMESPACES.flatMap((namespace): [string, string, (n: string) => V1Secret][] => [ + ...NAMESPACES.flatMap((namespace): [string, string, (n: string) => IoK8sApiCoreV1Secret][] => [ [namespace, 'mock-insecure', secretInsecure], [namespace, 'mock-secure', secretSecure], ]).map(([namespace, secretName, createSecret]) => [ diff --git a/packages/mocks/src/definitions/basic/secrets.mock.ts b/packages/mocks/src/definitions/basic/secrets.mock.ts index 34e722de0..e7a220d4c 100644 --- a/packages/mocks/src/definitions/basic/secrets.mock.ts +++ b/packages/mocks/src/definitions/basic/secrets.mock.ts @@ -1,9 +1,9 @@ /* eslint-disable @cspell/spellchecker */ -import { V1Secret } from '@kubev2v/types'; +import { IoK8sApiCoreV1Secret } from '@kubev2v/types'; import { EPOCH } from '../utils'; -export const secretInsecure = (namespace: string): V1Secret => ({ +export const secretInsecure = (namespace: string): IoK8sApiCoreV1Secret => ({ kind: 'Secret', apiVersion: 'v1', metadata: { @@ -26,7 +26,7 @@ export const secretInsecure = (namespace: string): V1Secret => ({ type: 'Opaque', }); -export const secretSecure = (namespace: string): V1Secret => { +export const secretSecure = (namespace: string): IoK8sApiCoreV1Secret => { const insecure = secretInsecure(namespace); return { ...insecure, diff --git a/packages/mocks/src/definitions/utils.ts b/packages/mocks/src/definitions/utils.ts index 94eadc172..7d2807a1e 100644 --- a/packages/mocks/src/definitions/utils.ts +++ b/packages/mocks/src/definitions/utils.ts @@ -24,8 +24,8 @@ import { VSphereTreeNode, VSphereVM, } from '@kubev2v/types'; -import { V1beta1PlanSpecProviderDestination } from '@kubev2v/types/src/models/V1beta1PlanSpecProviderDestination'; -import { V1beta1PlanSpecProviderSource } from '@kubev2v/types/src/models/V1beta1PlanSpecProviderSource'; +import { V1beta1PlanSpecProviderDestination } from '@kubev2v/types'; +import { V1beta1PlanSpecProviderSource } from '@kubev2v/types'; export const NAMESPACE_FORKLIFT = 'konveyor-forklift'; export const NAMESPACE_MIGRATION = 'konveyor-migration'; diff --git a/packages/types/.eslintrc.cjs b/packages/types/.eslintrc.cjs index 247e21671..959ebb894 100644 --- a/packages/types/.eslintrc.cjs +++ b/packages/types/.eslintrc.cjs @@ -3,6 +3,7 @@ module.exports = { root: true, extends: ['plugin:@kubev2v/eslint-plugin/typescript'], + ignorePatterns: ['src/generated/'], rules: { '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/prefer-as-const': 'off', diff --git a/packages/types/ci/generate-schemas.sh b/packages/types/ci/generate-schemas.sh deleted file mode 100644 index 1d03848b4..000000000 --- a/packages/types/ci/generate-schemas.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash - -set -euo pipefail -script_dir=$(realpath $(dirname "$0")) - -# Try to make a schema directory -mkdir -p "${script_dir}/../schemas" - -# Generate JSON schema files for forklift k8s models -modelTypes=( - "V1beta1Hook" - "V1beta1Host" - "V1beta1Migration" - "V1beta1NetworkMap" - "V1beta1OvirtVolumePopulator" - "V1beta1Plan" - "V1beta1Provider" - "V1beta1StorageMap") - -for type in ${modelTypes[*]}; do - echo "generating: ${type}.schema.json" - npx ts-json-schema-generator \ - --path "${script_dir}/../src/models/*.ts" \ - --type ${type} \ - --out ${script_dir}/../schemas/${type}.schema.json -done - -# Generate JSON schema files for forklift inventory -inventoryTypes=( - "ProviderSecret" -) - -for type in ${inventoryTypes[*]}; do - echo "generating: ${type}.schema.json" - npx ts-json-schema-generator \ - --path "${script_dir}/../src/types/*.ts" \ - --type ${type} \ - --out ${script_dir}/../schemas/${type}.schema.json -done - - diff --git a/packages/types/package.json b/packages/types/package.json index 31bf46337..5e6008168 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -20,10 +20,6 @@ "build": "rollup -c --bundleConfigAsCjs", "start": "rollup -c --bundleConfigAsCjs --watch", "lint": "eslint .", - "lint:fix": "eslint . --fix", - "generate:schemas": "bash ./ci/generate-schemas.sh" - }, - "devDependencies": { - "ts-json-schema-generator": "^1.2.0" + "lint:fix": "eslint . --fix" } } diff --git a/packages/types/schemas/ProviderSecret.schema.json b/packages/types/schemas/ProviderSecret.schema.json deleted file mode 100644 index 78f3ca4e0..000000000 --- a/packages/types/schemas/ProviderSecret.schema.json +++ /dev/null @@ -1,151 +0,0 @@ -{ - "$ref": "#/definitions/ProviderSecret", - "$schema": "http://json-schema.org/draft-07/schema#", - "definitions": { - "OVirtProviderSecret": { - "additionalProperties": false, - "description": "Provider secret containing credentials and other confidential information for OVirt.", - "properties": { - "cacert": { - "description": "OVirt server cacerts, can be a linked list of multiple certifications.\n\nNOTE: ATM cacert is not optional because insecureSkipVerify is not implemented in our ovirt image-io client\n\nProvider type: OVirt Conditions: Required if insecureSkipVerify is false Validation Regexp: ssl public key: .*", - "type": "string" - }, - "insecureSkipVerify": { - "description": "Indicate that the client can ignore certificate verification.\n\nProvider type: OVirt Conditions: Optional", - "type": "boolean" - }, - "password": { - "description": "OVirt user password\n\nProvider type: OVirt Conditions: Required Validation Regexp: .*", - "type": "string" - }, - "providerType": { - "const": "ovirt", - "type": "string" - }, - "user": { - "description": "OVirt user name\n\nProvider type: OVirt Conditions: Required Validation Regexp: .*", - "type": "string" - } - }, - "required": [ - "providerType", - "user", - "password" - ], - "type": "object" - }, - "OpenShiftProviderSecret": { - "additionalProperties": false, - "description": "Provider secret containing credentials and other confidential information for OpenShift.", - "properties": { - "providerType": { - "const": "openshift", - "type": "string" - }, - "token": { - "description": "k8s token for a user that can admin kubevirt on the k8s cluster\n\nProvider type: OpenShift Conditions: Required Validation Regexp: JW token: /^([a-zA-Z0-9_=]+)\\.([a-zA-Z0-9_=]+)\\.([a-zA-Z0-9_\\-\\+\\/=]*)/gm kubeadm token: /^[a-z0-9]{6}.[a-z0-9]{16}$/", - "type": "string" - } - }, - "required": [ - "providerType", - "token" - ], - "type": "object" - }, - "OpenstackProviderSecret": { - "additionalProperties": false, - "description": "Provider secret containing credentials and other confidential information for Openstack.", - "properties": { - "cacert": { - "description": "openstack server cacerts, can be a linked list of multiple certifications.\n\nProvider type: openstack Conditions: Required if insecureSkipVerify is false Validation Regexp: ssl public key: .*", - "type": "string" - }, - "domainName": { - "description": "openstack domain name\n\nProvider type: openstack Conditions: Required Validation Regexp: .*", - "type": "string" - }, - "insecureSkipVerify": { - "description": "Indicate that the client can ignore certificate verification.\n\nProvider type: openstack Conditions: Optional", - "type": "boolean" - }, - "password": { - "description": "openstack user password\n\nProvider type: openstack Conditions: Required Validation Regexp: .*", - "type": "string" - }, - "projectName": { - "description": "openstack domain name\n\nProvider type: openstack Conditions: Required Validation Regexp: .*", - "type": "string" - }, - "providerType": { - "const": "openstack", - "type": "string" - }, - "regionName": { - "description": "openstack region name\n\nProvider type: openstack Conditions: Required Validation Regexp: .*", - "type": "string" - }, - "username": { - "description": "openstack user name\n\nProvider type: openstack Conditions: Required Validation Regexp: .*", - "type": "string" - } - }, - "required": [ - "providerType", - "username", - "password" - ], - "type": "object" - }, - "ProviderSecret": { - "anyOf": [ - { - "$ref": "#/definitions/OpenShiftProviderSecret" - }, - { - "$ref": "#/definitions/VSphereProviderSecret" - }, - { - "$ref": "#/definitions/OVirtProviderSecret" - }, - { - "$ref": "#/definitions/OpenstackProviderSecret" - } - ], - "description": "Provider secret containing credentials and other confidential information" - }, - "VSphereProviderSecret": { - "additionalProperties": false, - "description": "Provider secret containing credentials and other confidential information for VSphere", - "properties": { - "insecureSkipVerify": { - "description": "Indicate that the client can ignore certificate verification.\n\nProvider type: OVirt Conditions: Optional", - "type": "boolean" - }, - "password": { - "description": "VSphere user password\n\nProvider type: VSphere Conditions: Required Validation Regexp: .*", - "type": "string" - }, - "providerType": { - "const": "vsphere", - "type": "string" - }, - "thumbprint": { - "description": "VSphere server thumbprint\n\nNOTE: thumbprint is not optional because CDI does not currently implement `insecureSkipVerify`. The `vddkImage` is using CDI and we can't remove this dependency at this point.\n\nProvider type: VSphere Conditions: Required Validation Regexp: secure hash algorithm (SHA1) signature: .*", - "type": "string" - }, - "user": { - "description": "VSphere user name\n\nProvider type: VSphere Conditions: Required Validation Regexp: .*", - "type": "string" - } - }, - "required": [ - "providerType", - "user", - "password", - "thumbprint" - ], - "type": "object" - } - } -} \ No newline at end of file diff --git a/packages/types/schemas/V1beta1Hook.schema.json b/packages/types/schemas/V1beta1Hook.schema.json deleted file mode 100644 index c36369038..000000000 --- a/packages/types/schemas/V1beta1Hook.schema.json +++ /dev/null @@ -1,244 +0,0 @@ -{ - "$ref": "#/definitions/V1beta1Hook", - "$schema": "http://json-schema.org/draft-07/schema#", - "definitions": { - "IoK8sApimachineryPkgApisMetaV1ObjectMeta": { - "additionalProperties": false, - "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations", - "type": "object" - }, - "creationTimestamp": { - "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", - "type": "string" - }, - "deletionGracePeriodSeconds": { - "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", - "type": "number" - }, - "deletionTimestamp": { - "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", - "type": "string" - }, - "finalizers": { - "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.", - "items": { - "type": "string" - }, - "type": "array" - }, - "generateName": { - "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", - "type": "string" - }, - "generation": { - "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", - "type": "number" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels", - "type": "object" - }, - "name": { - "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "namespace": { - "description": "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces", - "type": "string" - }, - "ownerReferences": { - "description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", - "items": { - "$ref": "#/definitions/IoK8sApimachineryPkgApisMetaV1OwnerReference" - }, - "type": "array" - }, - "resourceVersion": { - "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "selfLink": { - "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", - "type": "string" - }, - "uid": { - "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "type": "string" - } - }, - "type": "object" - }, - "IoK8sApimachineryPkgApisMetaV1OwnerReference": { - "additionalProperties": false, - "description": "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.", - "properties": { - "apiVersion": { - "description": "API version of the referent.", - "type": "string" - }, - "blockOwnerDeletion": { - "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", - "type": "boolean" - }, - "controller": { - "description": "If true, this reference points to the managing controller.", - "type": "boolean" - }, - "kind": { - "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "uid": { - "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "type": "string" - } - }, - "required": [ - "apiVersion", - "kind", - "name", - "uid" - ], - "type": "object" - }, - "V1beta1Hook": { - "additionalProperties": false, - "description": "Hook is the Schema for the hooks API", - "properties": { - "apiVersion": { - "description": "apiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/IoK8sApimachineryPkgApisMetaV1ObjectMeta", - "description": "metadata" - }, - "spec": { - "$ref": "#/definitions/V1beta1HookSpec", - "description": "spec Hook specification." - }, - "status": { - "$ref": "#/definitions/V1beta1HookStatus", - "description": "status Hook status." - } - }, - "required": [ - "apiVersion", - "kind" - ], - "type": "object" - }, - "V1beta1HookSpec": { - "additionalProperties": false, - "description": "Hook specification.", - "properties": { - "deadline": { - "description": "deadline Hook deadline in seconds.", - "format": "{int64}", - "type": "number" - }, - "image": { - "description": "image Image to run.", - "type": "string" - }, - "playbook": { - "description": "playbook A base64 encoded Ansible playbook.", - "type": "string" - }, - "serviceAccount": { - "description": "serviceAccount Service account.", - "type": "string" - } - }, - "required": [ - "image" - ], - "type": "object" - }, - "V1beta1HookStatus": { - "additionalProperties": false, - "description": "Hook status.", - "properties": { - "conditions": { - "description": "conditions Condition", - "items": { - "$ref": "#/definitions/V1beta1HookStatusConditions" - }, - "type": "array" - }, - "observedGeneration": { - "description": "observedGeneration The most recent generation observed by the controller.", - "format": "{int64}", - "type": "number" - } - }, - "type": "object" - }, - "V1beta1HookStatusConditions": { - "additionalProperties": false, - "description": "Condition", - "properties": { - "category": { - "description": "category The condition category.", - "type": "string" - }, - "durable": { - "description": "durable The condition is durable - never un-staged.", - "type": "boolean" - }, - "items": { - "description": "items", - "items": { - "type": "string" - }, - "type": "array" - }, - "lastTransitionTime": { - "description": "lastTransitionTime When the last status transition occurred.", - "format": "{date-time}", - "type": "string" - }, - "message": { - "description": "message The human readable description of the condition.", - "type": "string" - }, - "reason": { - "description": "reason The reason for the condition or transition.", - "type": "string" - }, - "status": { - "description": "status The condition status [true,false].", - "type": "string" - }, - "type": { - "description": "type The condition type.", - "type": "string" - } - }, - "required": [ - "category", - "lastTransitionTime", - "status", - "type" - ], - "type": "object" - } - } -} \ No newline at end of file diff --git a/packages/types/schemas/V1beta1Host.schema.json b/packages/types/schemas/V1beta1Host.schema.json deleted file mode 100644 index f74b1c419..000000000 --- a/packages/types/schemas/V1beta1Host.schema.json +++ /dev/null @@ -1,324 +0,0 @@ -{ - "$ref": "#/definitions/V1beta1Host", - "$schema": "http://json-schema.org/draft-07/schema#", - "definitions": { - "IoK8sApimachineryPkgApisMetaV1ObjectMeta": { - "additionalProperties": false, - "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations", - "type": "object" - }, - "creationTimestamp": { - "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", - "type": "string" - }, - "deletionGracePeriodSeconds": { - "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", - "type": "number" - }, - "deletionTimestamp": { - "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", - "type": "string" - }, - "finalizers": { - "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.", - "items": { - "type": "string" - }, - "type": "array" - }, - "generateName": { - "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", - "type": "string" - }, - "generation": { - "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", - "type": "number" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels", - "type": "object" - }, - "name": { - "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "namespace": { - "description": "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces", - "type": "string" - }, - "ownerReferences": { - "description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", - "items": { - "$ref": "#/definitions/IoK8sApimachineryPkgApisMetaV1OwnerReference" - }, - "type": "array" - }, - "resourceVersion": { - "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "selfLink": { - "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", - "type": "string" - }, - "uid": { - "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "type": "string" - } - }, - "type": "object" - }, - "IoK8sApimachineryPkgApisMetaV1OwnerReference": { - "additionalProperties": false, - "description": "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.", - "properties": { - "apiVersion": { - "description": "API version of the referent.", - "type": "string" - }, - "blockOwnerDeletion": { - "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", - "type": "boolean" - }, - "controller": { - "description": "If true, this reference points to the managing controller.", - "type": "boolean" - }, - "kind": { - "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "uid": { - "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "type": "string" - } - }, - "required": [ - "apiVersion", - "kind", - "name", - "uid" - ], - "type": "object" - }, - "V1beta1Host": { - "additionalProperties": false, - "properties": { - "apiVersion": { - "description": "apiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/IoK8sApimachineryPkgApisMetaV1ObjectMeta", - "description": "metadata" - }, - "spec": { - "$ref": "#/definitions/V1beta1HostSpec", - "description": "spec HostSpec defines the desired state of Host" - }, - "status": { - "$ref": "#/definitions/V1beta1HostStatus", - "description": "status HostStatus defines the observed state of Host" - } - }, - "required": [ - "apiVersion", - "kind" - ], - "type": "object" - }, - "V1beta1HostSpec": { - "additionalProperties": false, - "description": "HostSpec defines the desired state of Host", - "properties": { - "id": { - "description": "id The object ID. vsphere: The managed object ID.", - "type": "string" - }, - "ipAddress": { - "description": "ipAddress IP address used for disk transfer.", - "type": "string" - }, - "name": { - "description": "name An object Name. vsphere: A qualified name.", - "type": "string" - }, - "provider": { - "$ref": "#/definitions/V1beta1HostSpecProvider", - "description": "provider Provider" - }, - "secret": { - "$ref": "#/definitions/V1beta1HostSpecSecret", - "description": "secret Credentials." - }, - "thumbprint": { - "description": "thumbprint Certificate SHA-1 fingerprint, called thumbprint by VMware.", - "type": "string" - }, - "type": { - "description": "type Type used to qualify the name.", - "type": "string" - } - }, - "required": [ - "ipAddress" - ], - "type": "object" - }, - "V1beta1HostSpecProvider": { - "additionalProperties": false, - "description": "Provider", - "properties": { - "apiVersion": { - "description": "apiVersion API version of the referent.", - "type": "string" - }, - "fieldPath": { - "description": "fieldPath If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future.", - "type": "string" - }, - "kind": { - "description": "kind Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "name Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "namespace": { - "description": "namespace Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", - "type": "string" - }, - "resourceVersion": { - "description": "resourceVersion Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "uid": { - "description": "uid UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", - "type": "string" - } - }, - "type": "object" - }, - "V1beta1HostSpecSecret": { - "additionalProperties": false, - "description": "Credentials.", - "properties": { - "apiVersion": { - "description": "apiVersion API version of the referent.", - "type": "string" - }, - "fieldPath": { - "description": "fieldPath If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future.", - "type": "string" - }, - "kind": { - "description": "kind Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "name Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "namespace": { - "description": "namespace Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", - "type": "string" - }, - "resourceVersion": { - "description": "resourceVersion Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "uid": { - "description": "uid UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", - "type": "string" - } - }, - "type": "object" - }, - "V1beta1HostStatus": { - "additionalProperties": false, - "description": "HostStatus defines the observed state of Host", - "properties": { - "conditions": { - "description": "conditions Condition", - "items": { - "$ref": "#/definitions/V1beta1HostStatusConditions" - }, - "type": "array" - }, - "observedGeneration": { - "description": "observedGeneration The most recent generation observed by the controller.", - "format": "{int64}", - "type": "number" - } - }, - "type": "object" - }, - "V1beta1HostStatusConditions": { - "additionalProperties": false, - "description": "Condition", - "properties": { - "category": { - "description": "category The condition category.", - "type": "string" - }, - "durable": { - "description": "durable The condition is durable - never un-staged.", - "type": "boolean" - }, - "items": { - "description": "items", - "items": { - "type": "string" - }, - "type": "array" - }, - "lastTransitionTime": { - "description": "lastTransitionTime When the last status transition occurred.", - "format": "{date-time}", - "type": "string" - }, - "message": { - "description": "message The human readable description of the condition.", - "type": "string" - }, - "reason": { - "description": "reason The reason for the condition or transition.", - "type": "string" - }, - "status": { - "description": "status The condition status [true,false].", - "type": "string" - }, - "type": { - "description": "type The condition type.", - "type": "string" - } - }, - "required": [ - "category", - "lastTransitionTime", - "status", - "type" - ], - "type": "object" - } - } -} \ No newline at end of file diff --git a/packages/types/schemas/V1beta1Migration.schema.json b/packages/types/schemas/V1beta1Migration.schema.json deleted file mode 100644 index 46f5921b5..000000000 --- a/packages/types/schemas/V1beta1Migration.schema.json +++ /dev/null @@ -1,762 +0,0 @@ -{ - "$ref": "#/definitions/V1beta1Migration", - "$schema": "http://json-schema.org/draft-07/schema#", - "definitions": { - "IoK8sApimachineryPkgApisMetaV1ObjectMeta": { - "additionalProperties": false, - "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations", - "type": "object" - }, - "creationTimestamp": { - "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", - "type": "string" - }, - "deletionGracePeriodSeconds": { - "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", - "type": "number" - }, - "deletionTimestamp": { - "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", - "type": "string" - }, - "finalizers": { - "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.", - "items": { - "type": "string" - }, - "type": "array" - }, - "generateName": { - "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", - "type": "string" - }, - "generation": { - "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", - "type": "number" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels", - "type": "object" - }, - "name": { - "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "namespace": { - "description": "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces", - "type": "string" - }, - "ownerReferences": { - "description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", - "items": { - "$ref": "#/definitions/IoK8sApimachineryPkgApisMetaV1OwnerReference" - }, - "type": "array" - }, - "resourceVersion": { - "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "selfLink": { - "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", - "type": "string" - }, - "uid": { - "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "type": "string" - } - }, - "type": "object" - }, - "IoK8sApimachineryPkgApisMetaV1OwnerReference": { - "additionalProperties": false, - "description": "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.", - "properties": { - "apiVersion": { - "description": "API version of the referent.", - "type": "string" - }, - "blockOwnerDeletion": { - "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", - "type": "boolean" - }, - "controller": { - "description": "If true, this reference points to the managing controller.", - "type": "boolean" - }, - "kind": { - "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "uid": { - "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "type": "string" - } - }, - "required": [ - "apiVersion", - "kind", - "name", - "uid" - ], - "type": "object" - }, - "V1beta1Migration": { - "additionalProperties": false, - "properties": { - "apiVersion": { - "description": "apiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/IoK8sApimachineryPkgApisMetaV1ObjectMeta", - "description": "metadata" - }, - "spec": { - "$ref": "#/definitions/V1beta1MigrationSpec", - "description": "spec MigrationSpec defines the desired state of Migration" - }, - "status": { - "$ref": "#/definitions/V1beta1MigrationStatus", - "description": "status MigrationStatus defines the observed state of Migration" - } - }, - "required": [ - "apiVersion", - "kind" - ], - "type": "object" - }, - "V1beta1MigrationSpec": { - "additionalProperties": false, - "description": "MigrationSpec defines the desired state of Migration", - "properties": { - "cancel": { - "description": "cancel Source reference. Either the ID or Name must be specified.", - "items": { - "$ref": "#/definitions/V1beta1MigrationSpecCancel" - }, - "type": "array" - }, - "cutover": { - "description": "cutover Date and time to finalize a warm migration. If present, this will override the value set on the Plan.", - "format": "{date-time}", - "type": "string" - }, - "plan": { - "$ref": "#/definitions/V1beta1MigrationSpecPlan", - "description": "plan Reference to the associated Plan." - } - }, - "type": "object" - }, - "V1beta1MigrationSpecCancel": { - "additionalProperties": false, - "description": "Source reference. Either the ID or Name must be specified.", - "properties": { - "id": { - "description": "id The object ID. vsphere: The managed object ID.", - "type": "string" - }, - "name": { - "description": "name An object Name. vsphere: A qualified name.", - "type": "string" - }, - "type": { - "description": "type Type used to qualify the name.", - "type": "string" - } - }, - "type": "object" - }, - "V1beta1MigrationSpecPlan": { - "additionalProperties": false, - "description": "Reference to the associated Plan.", - "properties": { - "apiVersion": { - "description": "apiVersion API version of the referent.", - "type": "string" - }, - "fieldPath": { - "description": "fieldPath If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future.", - "type": "string" - }, - "kind": { - "description": "kind Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "name Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "namespace": { - "description": "namespace Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", - "type": "string" - }, - "resourceVersion": { - "description": "resourceVersion Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "uid": { - "description": "uid UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", - "type": "string" - } - }, - "type": "object" - }, - "V1beta1MigrationStatus": { - "additionalProperties": false, - "description": "MigrationStatus defines the observed state of Migration", - "properties": { - "completed": { - "description": "completed Completed timestamp.", - "format": "{date-time}", - "type": "string" - }, - "conditions": { - "description": "conditions Condition", - "items": { - "$ref": "#/definitions/V1beta1MigrationStatusConditions" - }, - "type": "array" - }, - "observedGeneration": { - "description": "observedGeneration The most recent generation observed by the controller.", - "format": "{int64}", - "type": "number" - }, - "started": { - "description": "started Started timestamp.", - "format": "{date-time}", - "type": "string" - }, - "vms": { - "description": "vms VM Status", - "items": { - "$ref": "#/definitions/V1beta1MigrationStatusVms" - }, - "type": "array" - } - }, - "type": "object" - }, - "V1beta1MigrationStatusConditions": { - "additionalProperties": false, - "description": "Condition", - "properties": { - "category": { - "description": "category The condition category.", - "type": "string" - }, - "durable": { - "description": "durable The condition is durable - never un-staged.", - "type": "boolean" - }, - "items": { - "description": "items", - "items": { - "type": "string" - }, - "type": "array" - }, - "lastTransitionTime": { - "description": "lastTransitionTime When the last status transition occurred.", - "format": "{date-time}", - "type": "string" - }, - "message": { - "description": "message The human readable description of the condition.", - "type": "string" - }, - "reason": { - "description": "reason The reason for the condition or transition.", - "type": "string" - }, - "status": { - "description": "status The condition status [true,false].", - "type": "string" - }, - "type": { - "description": "type The condition type.", - "type": "string" - } - }, - "required": [ - "category", - "lastTransitionTime", - "status", - "type" - ], - "type": "object" - }, - "V1beta1MigrationStatusVms": { - "additionalProperties": false, - "description": "VM Status", - "properties": { - "completed": { - "description": "completed Completed timestamp.", - "format": "{date-time}", - "type": "string" - }, - "conditions": { - "description": "conditions Condition", - "items": { - "$ref": "#/definitions/V1beta1MigrationStatusVmsConditions" - }, - "type": "array" - }, - "error": { - "$ref": "#/definitions/V1beta1MigrationStatusVmsError", - "description": "error Errors" - }, - "hooks": { - "description": "hooks Plan hook.", - "items": { - "$ref": "#/definitions/V1beta1MigrationStatusVmsHooks" - }, - "type": "array" - }, - "id": { - "description": "id The object ID. vsphere: The managed object ID.", - "type": "string" - }, - "name": { - "description": "name An object Name. vsphere: A qualified name.", - "type": "string" - }, - "phase": { - "description": "phase Phase", - "type": "string" - }, - "pipeline": { - "description": "pipeline Pipeline step.", - "items": { - "$ref": "#/definitions/V1beta1MigrationStatusVmsPipeline" - }, - "type": "array" - }, - "restorePowerState": { - "description": "restorePowerState Source VM power state before migration.", - "type": "string" - }, - "started": { - "description": "started Started timestamp.", - "format": "{date-time}", - "type": "string" - }, - "type": { - "description": "type Type used to qualify the name.", - "type": "string" - }, - "warm": { - "$ref": "#/definitions/V1beta1MigrationStatusVmsWarm", - "description": "warm Warm migration status" - } - }, - "required": [ - "phase" - ], - "type": "object" - }, - "V1beta1MigrationStatusVmsConditions": { - "additionalProperties": false, - "description": "Condition", - "properties": { - "category": { - "description": "category The condition category.", - "type": "string" - }, - "durable": { - "description": "durable The condition is durable - never un-staged.", - "type": "boolean" - }, - "items": { - "description": "items", - "items": { - "type": "string" - }, - "type": "array" - }, - "lastTransitionTime": { - "description": "lastTransitionTime When the last status transition occurred.", - "format": "{date-time}", - "type": "string" - }, - "message": { - "description": "message The human readable description of the condition.", - "type": "string" - }, - "reason": { - "description": "reason The reason for the condition or transition.", - "type": "string" - }, - "status": { - "description": "status The condition status [true,false].", - "type": "string" - }, - "type": { - "description": "type The condition type.", - "type": "string" - } - }, - "required": [ - "category", - "lastTransitionTime", - "status", - "type" - ], - "type": "object" - }, - "V1beta1MigrationStatusVmsError": { - "additionalProperties": false, - "description": "Errors", - "properties": { - "phase": { - "description": "phase", - "type": "string" - }, - "reasons": { - "description": "reasons", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "phase", - "reasons" - ], - "type": "object" - }, - "V1beta1MigrationStatusVmsHooks": { - "additionalProperties": false, - "description": "Plan hook.", - "properties": { - "hook": { - "$ref": "#/definitions/V1beta1MigrationStatusVmsHooksHook", - "description": "hook Hook reference." - }, - "step": { - "description": "step Pipeline step.", - "type": "string" - } - }, - "required": [ - "step" - ], - "type": "object" - }, - "V1beta1MigrationStatusVmsHooksHook": { - "additionalProperties": false, - "description": "Hook reference.", - "properties": { - "apiVersion": { - "description": "apiVersion API version of the referent.", - "type": "string" - }, - "fieldPath": { - "description": "fieldPath If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future.", - "type": "string" - }, - "kind": { - "description": "kind Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "name Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "namespace": { - "description": "namespace Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", - "type": "string" - }, - "resourceVersion": { - "description": "resourceVersion Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "uid": { - "description": "uid UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", - "type": "string" - } - }, - "type": "object" - }, - "V1beta1MigrationStatusVmsPipeline": { - "additionalProperties": false, - "description": "Pipeline step.", - "properties": { - "annotations": { - "anyOf": [ - {}, - { - "type": "null" - } - ], - "description": "annotations Annotations." - }, - "completed": { - "description": "completed Completed timestamp.", - "format": "{date-time}", - "type": "string" - }, - "description": { - "description": "description Name", - "type": "string" - }, - "error": { - "$ref": "#/definitions/V1beta1MigrationStatusVmsPipelineError", - "description": "error Error." - }, - "name": { - "description": "name Name.", - "type": "string" - }, - "phase": { - "description": "phase Phase", - "type": "string" - }, - "progress": { - "$ref": "#/definitions/V1beta1MigrationStatusVmsPipelineProgress", - "description": "progress Progress." - }, - "reason": { - "description": "reason Reason", - "type": "string" - }, - "started": { - "description": "started Started timestamp.", - "format": "{date-time}", - "type": "string" - }, - "tasks": { - "description": "tasks Migration task.", - "items": { - "$ref": "#/definitions/V1beta1MigrationStatusVmsPipelineTasks" - }, - "type": "array" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "V1beta1MigrationStatusVmsPipelineError": { - "additionalProperties": false, - "description": "Error.", - "properties": { - "phase": { - "description": "phase", - "type": "string" - }, - "reasons": { - "description": "reasons", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "phase", - "reasons" - ], - "type": "object" - }, - "V1beta1MigrationStatusVmsPipelineProgress": { - "additionalProperties": false, - "description": "Progress.", - "properties": { - "completed": { - "description": "completed Completed units.", - "format": "{int64}", - "type": "number" - }, - "total": { - "description": "total Total units.", - "format": "{int64}", - "type": "number" - } - }, - "required": [ - "completed", - "total" - ], - "type": "object" - }, - "V1beta1MigrationStatusVmsPipelineTasks": { - "additionalProperties": false, - "description": "Migration task.", - "properties": { - "annotations": { - "anyOf": [ - {}, - { - "type": "null" - } - ], - "description": "annotations Annotations." - }, - "completed": { - "description": "completed Completed timestamp.", - "format": "{date-time}", - "type": "string" - }, - "description": { - "description": "description Name", - "type": "string" - }, - "error": { - "$ref": "#/definitions/V1beta1MigrationStatusVmsPipelineTasksError", - "description": "error Error." - }, - "name": { - "description": "name Name.", - "type": "string" - }, - "phase": { - "description": "phase Phase", - "type": "string" - }, - "progress": { - "$ref": "#/definitions/V1beta1MigrationStatusVmsPipelineTasksProgress", - "description": "progress Progress." - }, - "reason": { - "description": "reason Reason", - "type": "string" - }, - "started": { - "description": "started Started timestamp.", - "format": "{date-time}", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "V1beta1MigrationStatusVmsPipelineTasksError": { - "additionalProperties": false, - "description": "Error.", - "properties": { - "phase": { - "description": "phase", - "type": "string" - }, - "reasons": { - "description": "reasons", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "phase", - "reasons" - ], - "type": "object" - }, - "V1beta1MigrationStatusVmsPipelineTasksProgress": { - "additionalProperties": false, - "description": "Progress.", - "properties": { - "completed": { - "description": "completed Completed units.", - "format": "{int64}", - "type": "number" - }, - "total": { - "description": "total Total units.", - "format": "{int64}", - "type": "number" - } - }, - "required": [ - "completed", - "total" - ], - "type": "object" - }, - "V1beta1MigrationStatusVmsWarm": { - "additionalProperties": false, - "description": "Warm migration status", - "properties": { - "consecutiveFailures": { - "description": "consecutiveFailures", - "format": "{int64}", - "type": "number" - }, - "failures": { - "description": "failures", - "format": "{int64}", - "type": "number" - }, - "nextPrecopyAt": { - "description": "nextPrecopyAt", - "format": "{date-time}", - "type": "string" - }, - "precopies": { - "description": "precopies Precopy durations", - "items": { - "$ref": "#/definitions/V1beta1MigrationStatusVmsWarmPrecopies" - }, - "type": "array" - }, - "successes": { - "description": "successes", - "format": "{int64}", - "type": "number" - } - }, - "required": [ - "consecutiveFailures", - "failures", - "successes" - ], - "type": "object" - }, - "V1beta1MigrationStatusVmsWarmPrecopies": { - "additionalProperties": false, - "description": "Precopy durations", - "properties": { - "end": { - "description": "end", - "format": "{date-time}", - "type": "string" - }, - "snapshot": { - "description": "snapshot", - "type": "string" - }, - "start": { - "description": "start", - "format": "{date-time}", - "type": "string" - } - }, - "type": "object" - } - } -} \ No newline at end of file diff --git a/packages/types/schemas/V1beta1NetworkMap.schema.json b/packages/types/schemas/V1beta1NetworkMap.schema.json deleted file mode 100644 index c3d8aeffd..000000000 --- a/packages/types/schemas/V1beta1NetworkMap.schema.json +++ /dev/null @@ -1,408 +0,0 @@ -{ - "$ref": "#/definitions/V1beta1NetworkMap", - "$schema": "http://json-schema.org/draft-07/schema#", - "definitions": { - "IoK8sApimachineryPkgApisMetaV1ObjectMeta": { - "additionalProperties": false, - "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations", - "type": "object" - }, - "creationTimestamp": { - "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", - "type": "string" - }, - "deletionGracePeriodSeconds": { - "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", - "type": "number" - }, - "deletionTimestamp": { - "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", - "type": "string" - }, - "finalizers": { - "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.", - "items": { - "type": "string" - }, - "type": "array" - }, - "generateName": { - "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", - "type": "string" - }, - "generation": { - "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", - "type": "number" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels", - "type": "object" - }, - "name": { - "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "namespace": { - "description": "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces", - "type": "string" - }, - "ownerReferences": { - "description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", - "items": { - "$ref": "#/definitions/IoK8sApimachineryPkgApisMetaV1OwnerReference" - }, - "type": "array" - }, - "resourceVersion": { - "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "selfLink": { - "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", - "type": "string" - }, - "uid": { - "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "type": "string" - } - }, - "type": "object" - }, - "IoK8sApimachineryPkgApisMetaV1OwnerReference": { - "additionalProperties": false, - "description": "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.", - "properties": { - "apiVersion": { - "description": "API version of the referent.", - "type": "string" - }, - "blockOwnerDeletion": { - "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", - "type": "boolean" - }, - "controller": { - "description": "If true, this reference points to the managing controller.", - "type": "boolean" - }, - "kind": { - "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "uid": { - "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "type": "string" - } - }, - "required": [ - "apiVersion", - "kind", - "name", - "uid" - ], - "type": "object" - }, - "V1beta1NetworkMap": { - "additionalProperties": false, - "properties": { - "apiVersion": { - "description": "apiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/IoK8sApimachineryPkgApisMetaV1ObjectMeta", - "description": "metadata" - }, - "spec": { - "$ref": "#/definitions/V1beta1NetworkMapSpec", - "description": "spec Network map spec." - }, - "status": { - "$ref": "#/definitions/V1beta1NetworkMapStatus", - "description": "status MapStatus defines the observed state of Maps." - } - }, - "required": [ - "apiVersion", - "kind" - ], - "type": "object" - }, - "V1beta1NetworkMapSpec": { - "additionalProperties": false, - "description": "Network map spec.", - "properties": { - "map": { - "description": "map Mapped network.", - "items": { - "$ref": "#/definitions/V1beta1NetworkMapSpecMap" - }, - "type": "array" - }, - "provider": { - "$ref": "#/definitions/V1beta1NetworkMapSpecProvider", - "description": "provider Provider" - } - }, - "required": [ - "map" - ], - "type": "object" - }, - "V1beta1NetworkMapSpecMap": { - "additionalProperties": false, - "description": "Mapped network.", - "properties": { - "destination": { - "$ref": "#/definitions/V1beta1NetworkMapSpecMapDestination", - "description": "destination Destination network." - }, - "source": { - "$ref": "#/definitions/V1beta1NetworkMapSpecMapSource", - "description": "source Source network." - } - }, - "type": "object" - }, - "V1beta1NetworkMapSpecMapDestination": { - "additionalProperties": false, - "description": "Destination network.", - "properties": { - "name": { - "description": "name The name.", - "type": "string" - }, - "namespace": { - "description": "namespace The namespace (multus only).", - "type": "string" - }, - "type": { - "description": "type The network type.", - "enum": [ - "pod", - "multus" - ], - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "V1beta1NetworkMapSpecMapSource": { - "additionalProperties": false, - "description": "Source network.", - "properties": { - "id": { - "description": "id The object ID. vsphere: The managed object ID.", - "type": "string" - }, - "name": { - "description": "name An object Name. vsphere: A qualified name.", - "type": "string" - }, - "type": { - "description": "type Type used to qualify the name.", - "type": "string" - } - }, - "type": "object" - }, - "V1beta1NetworkMapSpecProvider": { - "additionalProperties": false, - "description": "Provider", - "properties": { - "destination": { - "$ref": "#/definitions/V1beta1NetworkMapSpecProviderDestination", - "description": "destination Destination." - }, - "source": { - "$ref": "#/definitions/V1beta1NetworkMapSpecProviderSource", - "description": "source Source." - } - }, - "type": "object" - }, - "V1beta1NetworkMapSpecProviderDestination": { - "additionalProperties": false, - "description": "Destination.", - "properties": { - "apiVersion": { - "description": "apiVersion API version of the referent.", - "type": "string" - }, - "fieldPath": { - "description": "fieldPath If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future.", - "type": "string" - }, - "kind": { - "description": "kind Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "name Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "namespace": { - "description": "namespace Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", - "type": "string" - }, - "resourceVersion": { - "description": "resourceVersion Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "uid": { - "description": "uid UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", - "type": "string" - } - }, - "type": "object" - }, - "V1beta1NetworkMapSpecProviderSource": { - "additionalProperties": false, - "description": "Source.", - "properties": { - "apiVersion": { - "description": "apiVersion API version of the referent.", - "type": "string" - }, - "fieldPath": { - "description": "fieldPath If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future.", - "type": "string" - }, - "kind": { - "description": "kind Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "name Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "namespace": { - "description": "namespace Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", - "type": "string" - }, - "resourceVersion": { - "description": "resourceVersion Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "uid": { - "description": "uid UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", - "type": "string" - } - }, - "type": "object" - }, - "V1beta1NetworkMapStatus": { - "additionalProperties": false, - "description": "MapStatus defines the observed state of Maps.", - "properties": { - "conditions": { - "description": "conditions Condition", - "items": { - "$ref": "#/definitions/V1beta1NetworkMapStatusConditions" - }, - "type": "array" - }, - "observedGeneration": { - "description": "observedGeneration The most recent generation observed by the controller.", - "format": "{int64}", - "type": "number" - }, - "references": { - "description": "references Source reference. Either the ID or Name must be specified.", - "items": { - "$ref": "#/definitions/V1beta1NetworkMapStatusReferences" - }, - "type": "array" - } - }, - "type": "object" - }, - "V1beta1NetworkMapStatusConditions": { - "additionalProperties": false, - "description": "Condition", - "properties": { - "category": { - "description": "category The condition category.", - "type": "string" - }, - "durable": { - "description": "durable The condition is durable - never un-staged.", - "type": "boolean" - }, - "items": { - "description": "items", - "items": { - "type": "string" - }, - "type": "array" - }, - "lastTransitionTime": { - "description": "lastTransitionTime When the last status transition occurred.", - "format": "{date-time}", - "type": "string" - }, - "message": { - "description": "message The human readable description of the condition.", - "type": "string" - }, - "reason": { - "description": "reason The reason for the condition or transition.", - "type": "string" - }, - "status": { - "description": "status The condition status [true,false].", - "type": "string" - }, - "type": { - "description": "type The condition type.", - "type": "string" - } - }, - "required": [ - "category", - "lastTransitionTime", - "status", - "type" - ], - "type": "object" - }, - "V1beta1NetworkMapStatusReferences": { - "additionalProperties": false, - "description": "Source reference. Either the ID or Name must be specified.", - "properties": { - "id": { - "description": "id The object ID. vsphere: The managed object ID.", - "type": "string" - }, - "name": { - "description": "name An object Name. vsphere: A qualified name.", - "type": "string" - }, - "type": { - "description": "type Type used to qualify the name.", - "type": "string" - } - }, - "type": "object" - } - } -} \ No newline at end of file diff --git a/packages/types/schemas/V1beta1OvirtVolumePopulator.schema.json b/packages/types/schemas/V1beta1OvirtVolumePopulator.schema.json deleted file mode 100644 index ed6c39b6e..000000000 --- a/packages/types/schemas/V1beta1OvirtVolumePopulator.schema.json +++ /dev/null @@ -1,186 +0,0 @@ -{ - "$ref": "#/definitions/V1beta1OvirtVolumePopulator", - "$schema": "http://json-schema.org/draft-07/schema#", - "definitions": { - "IoK8sApimachineryPkgApisMetaV1ObjectMeta": { - "additionalProperties": false, - "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations", - "type": "object" - }, - "creationTimestamp": { - "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", - "type": "string" - }, - "deletionGracePeriodSeconds": { - "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", - "type": "number" - }, - "deletionTimestamp": { - "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", - "type": "string" - }, - "finalizers": { - "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.", - "items": { - "type": "string" - }, - "type": "array" - }, - "generateName": { - "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", - "type": "string" - }, - "generation": { - "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", - "type": "number" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels", - "type": "object" - }, - "name": { - "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "namespace": { - "description": "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces", - "type": "string" - }, - "ownerReferences": { - "description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", - "items": { - "$ref": "#/definitions/IoK8sApimachineryPkgApisMetaV1OwnerReference" - }, - "type": "array" - }, - "resourceVersion": { - "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "selfLink": { - "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", - "type": "string" - }, - "uid": { - "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "type": "string" - } - }, - "type": "object" - }, - "IoK8sApimachineryPkgApisMetaV1OwnerReference": { - "additionalProperties": false, - "description": "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.", - "properties": { - "apiVersion": { - "description": "API version of the referent.", - "type": "string" - }, - "blockOwnerDeletion": { - "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", - "type": "boolean" - }, - "controller": { - "description": "If true, this reference points to the managing controller.", - "type": "boolean" - }, - "kind": { - "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "uid": { - "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "type": "string" - } - }, - "required": [ - "apiVersion", - "kind", - "name", - "uid" - ], - "type": "object" - }, - "V1beta1OvirtVolumePopulator": { - "additionalProperties": false, - "properties": { - "apiVersion": { - "description": "apiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/IoK8sApimachineryPkgApisMetaV1ObjectMeta", - "description": "metadata" - }, - "spec": { - "$ref": "#/definitions/V1beta1OvirtVolumePopulatorSpec", - "description": "spec" - }, - "status": { - "$ref": "#/definitions/V1beta1OvirtVolumePopulatorStatus", - "description": "status" - } - }, - "required": [ - "apiVersion", - "kind" - ], - "type": "object" - }, - "V1beta1OvirtVolumePopulatorSpec": { - "additionalProperties": false, - "description": "Forklift API Migration toolkit for virtualization (Forklift) API definitions.\n\nThe version of the OpenAPI document: 2.4.0 Contact Email: kubev2v-dev@redhat.com License: Apache-2.0\n\nNOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). https://github.com/yaacov/crdtoapi/README.crdtotypes", - "properties": { - "diskId": { - "description": "diskId", - "type": "string" - }, - "engineSecretName": { - "description": "engineSecretName", - "type": "string" - }, - "engineUrl": { - "description": "engineUrl", - "type": "string" - } - }, - "required": [ - "diskId", - "engineSecretName", - "engineUrl" - ], - "type": "object" - }, - "V1beta1OvirtVolumePopulatorStatus": { - "additionalProperties": false, - "description": "Forklift API Migration toolkit for virtualization (Forklift) API definitions.\n\nThe version of the OpenAPI document: 2.4.0 Contact Email: kubev2v-dev@redhat.com License: Apache-2.0\n\nNOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). https://github.com/yaacov/crdtoapi/README.crdtotypes", - "properties": { - "progress": { - "description": "progress", - "type": "string" - } - }, - "required": [ - "progress" - ], - "type": "object" - } - } -} \ No newline at end of file diff --git a/packages/types/schemas/V1beta1Plan.schema.json b/packages/types/schemas/V1beta1Plan.schema.json deleted file mode 100644 index 80f120c42..000000000 --- a/packages/types/schemas/V1beta1Plan.schema.json +++ /dev/null @@ -1,1325 +0,0 @@ -{ - "$ref": "#/definitions/V1beta1Plan", - "$schema": "http://json-schema.org/draft-07/schema#", - "definitions": { - "IoK8sApimachineryPkgApisMetaV1ObjectMeta": { - "additionalProperties": false, - "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations", - "type": "object" - }, - "creationTimestamp": { - "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", - "type": "string" - }, - "deletionGracePeriodSeconds": { - "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", - "type": "number" - }, - "deletionTimestamp": { - "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", - "type": "string" - }, - "finalizers": { - "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.", - "items": { - "type": "string" - }, - "type": "array" - }, - "generateName": { - "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", - "type": "string" - }, - "generation": { - "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", - "type": "number" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels", - "type": "object" - }, - "name": { - "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "namespace": { - "description": "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces", - "type": "string" - }, - "ownerReferences": { - "description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", - "items": { - "$ref": "#/definitions/IoK8sApimachineryPkgApisMetaV1OwnerReference" - }, - "type": "array" - }, - "resourceVersion": { - "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "selfLink": { - "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", - "type": "string" - }, - "uid": { - "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "type": "string" - } - }, - "type": "object" - }, - "IoK8sApimachineryPkgApisMetaV1OwnerReference": { - "additionalProperties": false, - "description": "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.", - "properties": { - "apiVersion": { - "description": "API version of the referent.", - "type": "string" - }, - "blockOwnerDeletion": { - "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", - "type": "boolean" - }, - "controller": { - "description": "If true, this reference points to the managing controller.", - "type": "boolean" - }, - "kind": { - "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "uid": { - "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "type": "string" - } - }, - "required": [ - "apiVersion", - "kind", - "name", - "uid" - ], - "type": "object" - }, - "V1beta1Plan": { - "additionalProperties": false, - "properties": { - "apiVersion": { - "description": "apiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/IoK8sApimachineryPkgApisMetaV1ObjectMeta", - "description": "metadata" - }, - "spec": { - "$ref": "#/definitions/V1beta1PlanSpec", - "description": "spec PlanSpec defines the desired state of Plan." - }, - "status": { - "$ref": "#/definitions/V1beta1PlanStatus", - "description": "status PlanStatus defines the observed state of Plan." - } - }, - "required": [ - "apiVersion", - "kind" - ], - "type": "object" - }, - "V1beta1PlanSpec": { - "additionalProperties": false, - "description": "PlanSpec defines the desired state of Plan.", - "properties": { - "archived": { - "description": "archived Whether this plan should be archived.", - "type": "boolean" - }, - "description": { - "description": "description Description", - "type": "string" - }, - "map": { - "$ref": "#/definitions/V1beta1PlanSpecMap", - "description": "map Resource mapping." - }, - "provider": { - "$ref": "#/definitions/V1beta1PlanSpecProvider", - "description": "provider Providers." - }, - "targetNamespace": { - "description": "targetNamespace Target namespace.", - "type": "string" - }, - "transferNetwork": { - "$ref": "#/definitions/V1beta1PlanSpecTransferNetwork", - "description": "transferNetwork The network attachment definition that should be used for disk transfer." - }, - "vms": { - "description": "vms A VM listed on the plan.", - "items": { - "$ref": "#/definitions/V1beta1PlanSpecVms" - }, - "type": "array" - }, - "warm": { - "description": "warm Whether this is a warm migration.", - "type": "boolean" - } - }, - "required": [ - "map", - "targetNamespace" - ], - "type": "object" - }, - "V1beta1PlanSpecMap": { - "additionalProperties": false, - "description": "Resource mapping.", - "properties": { - "network": { - "$ref": "#/definitions/V1beta1PlanSpecMapNetwork", - "description": "network Network." - }, - "storage": { - "$ref": "#/definitions/V1beta1PlanSpecMapStorage", - "description": "storage Storage." - } - }, - "type": "object" - }, - "V1beta1PlanSpecMapNetwork": { - "additionalProperties": false, - "description": "Network.", - "properties": { - "apiVersion": { - "description": "apiVersion API version of the referent.", - "type": "string" - }, - "fieldPath": { - "description": "fieldPath If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future.", - "type": "string" - }, - "kind": { - "description": "kind Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "name Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "namespace": { - "description": "namespace Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", - "type": "string" - }, - "resourceVersion": { - "description": "resourceVersion Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "uid": { - "description": "uid UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", - "type": "string" - } - }, - "type": "object" - }, - "V1beta1PlanSpecMapStorage": { - "additionalProperties": false, - "description": "Storage.", - "properties": { - "apiVersion": { - "description": "apiVersion API version of the referent.", - "type": "string" - }, - "fieldPath": { - "description": "fieldPath If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future.", - "type": "string" - }, - "kind": { - "description": "kind Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "name Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "namespace": { - "description": "namespace Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", - "type": "string" - }, - "resourceVersion": { - "description": "resourceVersion Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "uid": { - "description": "uid UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", - "type": "string" - } - }, - "type": "object" - }, - "V1beta1PlanSpecProvider": { - "additionalProperties": false, - "description": "Providers.", - "properties": { - "destination": { - "$ref": "#/definitions/V1beta1PlanSpecProviderDestination", - "description": "destination Destination." - }, - "source": { - "$ref": "#/definitions/V1beta1PlanSpecProviderSource", - "description": "source Source." - } - }, - "type": "object" - }, - "V1beta1PlanSpecProviderDestination": { - "additionalProperties": false, - "description": "Destination.", - "properties": { - "apiVersion": { - "description": "apiVersion API version of the referent.", - "type": "string" - }, - "fieldPath": { - "description": "fieldPath If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future.", - "type": "string" - }, - "kind": { - "description": "kind Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "name Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "namespace": { - "description": "namespace Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", - "type": "string" - }, - "resourceVersion": { - "description": "resourceVersion Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "uid": { - "description": "uid UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", - "type": "string" - } - }, - "type": "object" - }, - "V1beta1PlanSpecProviderSource": { - "additionalProperties": false, - "description": "Source.", - "properties": { - "apiVersion": { - "description": "apiVersion API version of the referent.", - "type": "string" - }, - "fieldPath": { - "description": "fieldPath If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future.", - "type": "string" - }, - "kind": { - "description": "kind Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "name Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "namespace": { - "description": "namespace Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", - "type": "string" - }, - "resourceVersion": { - "description": "resourceVersion Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "uid": { - "description": "uid UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", - "type": "string" - } - }, - "type": "object" - }, - "V1beta1PlanSpecTransferNetwork": { - "additionalProperties": false, - "description": "The network attachment definition that should be used for disk transfer.", - "properties": { - "apiVersion": { - "description": "apiVersion API version of the referent.", - "type": "string" - }, - "fieldPath": { - "description": "fieldPath If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future.", - "type": "string" - }, - "kind": { - "description": "kind Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "name Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "namespace": { - "description": "namespace Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", - "type": "string" - }, - "resourceVersion": { - "description": "resourceVersion Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "uid": { - "description": "uid UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", - "type": "string" - } - }, - "type": "object" - }, - "V1beta1PlanSpecVms": { - "additionalProperties": false, - "description": "A VM listed on the plan.", - "properties": { - "hooks": { - "description": "hooks Plan hook.", - "items": { - "$ref": "#/definitions/V1beta1PlanSpecVmsHooks" - }, - "type": "array" - }, - "id": { - "description": "id The object ID. vsphere: The managed object ID.", - "type": "string" - }, - "name": { - "description": "name An object Name. vsphere: A qualified name.", - "type": "string" - }, - "type": { - "description": "type Type used to qualify the name.", - "type": "string" - } - }, - "type": "object" - }, - "V1beta1PlanSpecVmsHooks": { - "additionalProperties": false, - "description": "Plan hook.", - "properties": { - "hook": { - "$ref": "#/definitions/V1beta1PlanSpecVmsHooksHook", - "description": "hook Hook reference." - }, - "step": { - "description": "step Pipeline step.", - "type": "string" - } - }, - "required": [ - "step" - ], - "type": "object" - }, - "V1beta1PlanSpecVmsHooksHook": { - "additionalProperties": false, - "description": "Hook reference.", - "properties": { - "apiVersion": { - "description": "apiVersion API version of the referent.", - "type": "string" - }, - "fieldPath": { - "description": "fieldPath If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future.", - "type": "string" - }, - "kind": { - "description": "kind Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "name Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "namespace": { - "description": "namespace Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", - "type": "string" - }, - "resourceVersion": { - "description": "resourceVersion Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "uid": { - "description": "uid UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", - "type": "string" - } - }, - "type": "object" - }, - "V1beta1PlanStatus": { - "additionalProperties": false, - "description": "PlanStatus defines the observed state of Plan.", - "properties": { - "conditions": { - "description": "conditions Condition", - "items": { - "$ref": "#/definitions/V1beta1PlanStatusConditions" - }, - "type": "array" - }, - "migration": { - "$ref": "#/definitions/V1beta1PlanStatusMigration", - "description": "migration Migration" - }, - "observedGeneration": { - "description": "observedGeneration The most recent generation observed by the controller.", - "format": "{int64}", - "type": "number" - } - }, - "type": "object" - }, - "V1beta1PlanStatusConditions": { - "additionalProperties": false, - "description": "Condition", - "properties": { - "category": { - "description": "category The condition category.", - "type": "string" - }, - "durable": { - "description": "durable The condition is durable - never un-staged.", - "type": "boolean" - }, - "items": { - "description": "items", - "items": { - "type": "string" - }, - "type": "array" - }, - "lastTransitionTime": { - "description": "lastTransitionTime When the last status transition occurred.", - "format": "{date-time}", - "type": "string" - }, - "message": { - "description": "message The human readable description of the condition.", - "type": "string" - }, - "reason": { - "description": "reason The reason for the condition or transition.", - "type": "string" - }, - "status": { - "description": "status The condition status [true,false].", - "type": "string" - }, - "type": { - "description": "type The condition type.", - "type": "string" - } - }, - "required": [ - "category", - "lastTransitionTime", - "status", - "type" - ], - "type": "object" - }, - "V1beta1PlanStatusMigration": { - "additionalProperties": false, - "description": "Migration", - "properties": { - "completed": { - "description": "completed Completed timestamp.", - "format": "{date-time}", - "type": "string" - }, - "history": { - "description": "history Snapshot", - "items": { - "$ref": "#/definitions/V1beta1PlanStatusMigrationHistory" - }, - "type": "array" - }, - "started": { - "description": "started Started timestamp.", - "format": "{date-time}", - "type": "string" - }, - "vms": { - "description": "vms VM Status", - "items": { - "$ref": "#/definitions/V1beta1PlanStatusMigrationVms" - }, - "type": "array" - } - }, - "type": "object" - }, - "V1beta1PlanStatusMigrationHistory": { - "additionalProperties": false, - "description": "Snapshot", - "properties": { - "conditions": { - "description": "conditions Condition", - "items": { - "$ref": "#/definitions/V1beta1PlanStatusMigrationHistoryConditions" - }, - "type": "array" - }, - "map": { - "$ref": "#/definitions/V1beta1PlanStatusMigrationHistoryMap", - "description": "map Map." - }, - "migration": { - "$ref": "#/definitions/V1beta1PlanStatusMigrationHistoryMigration", - "description": "migration Migration" - }, - "plan": { - "$ref": "#/definitions/V1beta1PlanStatusMigrationHistoryPlan", - "description": "plan Plan" - }, - "provider": { - "$ref": "#/definitions/V1beta1PlanStatusMigrationHistoryProvider", - "description": "provider Provider" - } - }, - "required": [ - "map" - ], - "type": "object" - }, - "V1beta1PlanStatusMigrationHistoryConditions": { - "additionalProperties": false, - "description": "Condition", - "properties": { - "category": { - "description": "category The condition category.", - "type": "string" - }, - "durable": { - "description": "durable The condition is durable - never un-staged.", - "type": "boolean" - }, - "items": { - "description": "items", - "items": { - "type": "string" - }, - "type": "array" - }, - "lastTransitionTime": { - "description": "lastTransitionTime When the last status transition occurred.", - "format": "{date-time}", - "type": "string" - }, - "message": { - "description": "message The human readable description of the condition.", - "type": "string" - }, - "reason": { - "description": "reason The reason for the condition or transition.", - "type": "string" - }, - "status": { - "description": "status The condition status [true,false].", - "type": "string" - }, - "type": { - "description": "type The condition type.", - "type": "string" - } - }, - "required": [ - "category", - "lastTransitionTime", - "status", - "type" - ], - "type": "object" - }, - "V1beta1PlanStatusMigrationHistoryMap": { - "additionalProperties": false, - "description": "Map.", - "properties": { - "network": { - "$ref": "#/definitions/V1beta1PlanStatusMigrationHistoryMapNetwork", - "description": "network Snapshot object reference." - }, - "storage": { - "$ref": "#/definitions/V1beta1PlanStatusMigrationHistoryMapStorage", - "description": "storage Snapshot object reference." - } - }, - "type": "object" - }, - "V1beta1PlanStatusMigrationHistoryMapNetwork": { - "additionalProperties": false, - "description": "Snapshot object reference.", - "properties": { - "generation": { - "description": "generation", - "format": "{int64}", - "type": "number" - }, - "name": { - "description": "name", - "type": "string" - }, - "namespace": { - "description": "namespace", - "type": "string" - }, - "uid": { - "description": "uid UID is a type that holds unique ID values, including UUIDs. Because we don't ONLY use UUIDs, this is an alias to string. Being a type captures intent and helps make sure that UIDs and names do not get conflated.", - "type": "string" - } - }, - "required": [ - "generation", - "name", - "namespace", - "uid" - ], - "type": "object" - }, - "V1beta1PlanStatusMigrationHistoryMapStorage": { - "additionalProperties": false, - "description": "Snapshot object reference.", - "properties": { - "generation": { - "description": "generation", - "format": "{int64}", - "type": "number" - }, - "name": { - "description": "name", - "type": "string" - }, - "namespace": { - "description": "namespace", - "type": "string" - }, - "uid": { - "description": "uid UID is a type that holds unique ID values, including UUIDs. Because we don't ONLY use UUIDs, this is an alias to string. Being a type captures intent and helps make sure that UIDs and names do not get conflated.", - "type": "string" - } - }, - "required": [ - "generation", - "name", - "namespace", - "uid" - ], - "type": "object" - }, - "V1beta1PlanStatusMigrationHistoryMigration": { - "additionalProperties": false, - "description": "Migration", - "properties": { - "generation": { - "description": "generation", - "format": "{int64}", - "type": "number" - }, - "name": { - "description": "name", - "type": "string" - }, - "namespace": { - "description": "namespace", - "type": "string" - }, - "uid": { - "description": "uid UID is a type that holds unique ID values, including UUIDs. Because we don't ONLY use UUIDs, this is an alias to string. Being a type captures intent and helps make sure that UIDs and names do not get conflated.", - "type": "string" - } - }, - "required": [ - "generation", - "name", - "namespace", - "uid" - ], - "type": "object" - }, - "V1beta1PlanStatusMigrationHistoryPlan": { - "additionalProperties": false, - "description": "Plan", - "properties": { - "generation": { - "description": "generation", - "format": "{int64}", - "type": "number" - }, - "name": { - "description": "name", - "type": "string" - }, - "namespace": { - "description": "namespace", - "type": "string" - }, - "uid": { - "description": "uid UID is a type that holds unique ID values, including UUIDs. Because we don't ONLY use UUIDs, this is an alias to string. Being a type captures intent and helps make sure that UIDs and names do not get conflated.", - "type": "string" - } - }, - "required": [ - "generation", - "name", - "namespace", - "uid" - ], - "type": "object" - }, - "V1beta1PlanStatusMigrationHistoryProvider": { - "additionalProperties": false, - "description": "Provider", - "properties": { - "destination": { - "$ref": "#/definitions/V1beta1PlanStatusMigrationHistoryProviderDestination", - "description": "destination Snapshot object reference." - }, - "source": { - "$ref": "#/definitions/V1beta1PlanStatusMigrationHistoryProviderSource", - "description": "source Snapshot object reference." - } - }, - "type": "object" - }, - "V1beta1PlanStatusMigrationHistoryProviderDestination": { - "additionalProperties": false, - "description": "Snapshot object reference.", - "properties": { - "generation": { - "description": "generation", - "format": "{int64}", - "type": "number" - }, - "name": { - "description": "name", - "type": "string" - }, - "namespace": { - "description": "namespace", - "type": "string" - }, - "uid": { - "description": "uid UID is a type that holds unique ID values, including UUIDs. Because we don't ONLY use UUIDs, this is an alias to string. Being a type captures intent and helps make sure that UIDs and names do not get conflated.", - "type": "string" - } - }, - "required": [ - "generation", - "name", - "namespace", - "uid" - ], - "type": "object" - }, - "V1beta1PlanStatusMigrationHistoryProviderSource": { - "additionalProperties": false, - "description": "Snapshot object reference.", - "properties": { - "generation": { - "description": "generation", - "format": "{int64}", - "type": "number" - }, - "name": { - "description": "name", - "type": "string" - }, - "namespace": { - "description": "namespace", - "type": "string" - }, - "uid": { - "description": "uid UID is a type that holds unique ID values, including UUIDs. Because we don't ONLY use UUIDs, this is an alias to string. Being a type captures intent and helps make sure that UIDs and names do not get conflated.", - "type": "string" - } - }, - "required": [ - "generation", - "name", - "namespace", - "uid" - ], - "type": "object" - }, - "V1beta1PlanStatusMigrationVms": { - "additionalProperties": false, - "description": "VM Status", - "properties": { - "completed": { - "description": "completed Completed timestamp.", - "format": "{date-time}", - "type": "string" - }, - "conditions": { - "description": "conditions Condition", - "items": { - "$ref": "#/definitions/V1beta1PlanStatusMigrationVmsConditions" - }, - "type": "array" - }, - "error": { - "$ref": "#/definitions/V1beta1PlanStatusMigrationVmsError", - "description": "error Errors" - }, - "hooks": { - "description": "hooks Plan hook.", - "items": { - "$ref": "#/definitions/V1beta1PlanStatusMigrationVmsHooks" - }, - "type": "array" - }, - "id": { - "description": "id The object ID. vsphere: The managed object ID.", - "type": "string" - }, - "name": { - "description": "name An object Name. vsphere: A qualified name.", - "type": "string" - }, - "phase": { - "description": "phase Phase", - "type": "string" - }, - "pipeline": { - "description": "pipeline Pipeline step.", - "items": { - "$ref": "#/definitions/V1beta1PlanStatusMigrationVmsPipeline" - }, - "type": "array" - }, - "restorePowerState": { - "description": "restorePowerState Source VM power state before migration.", - "type": "string" - }, - "started": { - "description": "started Started timestamp.", - "format": "{date-time}", - "type": "string" - }, - "type": { - "description": "type Type used to qualify the name.", - "type": "string" - }, - "warm": { - "$ref": "#/definitions/V1beta1PlanStatusMigrationVmsWarm", - "description": "warm Warm migration status" - } - }, - "required": [ - "phase" - ], - "type": "object" - }, - "V1beta1PlanStatusMigrationVmsConditions": { - "additionalProperties": false, - "description": "Condition", - "properties": { - "category": { - "description": "category The condition category.", - "type": "string" - }, - "durable": { - "description": "durable The condition is durable - never un-staged.", - "type": "boolean" - }, - "items": { - "description": "items", - "items": { - "type": "string" - }, - "type": "array" - }, - "lastTransitionTime": { - "description": "lastTransitionTime When the last status transition occurred.", - "format": "{date-time}", - "type": "string" - }, - "message": { - "description": "message The human readable description of the condition.", - "type": "string" - }, - "reason": { - "description": "reason The reason for the condition or transition.", - "type": "string" - }, - "status": { - "description": "status The condition status [true,false].", - "type": "string" - }, - "type": { - "description": "type The condition type.", - "type": "string" - } - }, - "required": [ - "category", - "lastTransitionTime", - "status", - "type" - ], - "type": "object" - }, - "V1beta1PlanStatusMigrationVmsError": { - "additionalProperties": false, - "description": "Errors", - "properties": { - "phase": { - "description": "phase", - "type": "string" - }, - "reasons": { - "description": "reasons", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "phase", - "reasons" - ], - "type": "object" - }, - "V1beta1PlanStatusMigrationVmsHooks": { - "additionalProperties": false, - "description": "Plan hook.", - "properties": { - "hook": { - "$ref": "#/definitions/V1beta1PlanStatusMigrationVmsHooksHook", - "description": "hook Hook reference." - }, - "step": { - "description": "step Pipeline step.", - "type": "string" - } - }, - "required": [ - "step" - ], - "type": "object" - }, - "V1beta1PlanStatusMigrationVmsHooksHook": { - "additionalProperties": false, - "description": "Hook reference.", - "properties": { - "apiVersion": { - "description": "apiVersion API version of the referent.", - "type": "string" - }, - "fieldPath": { - "description": "fieldPath If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future.", - "type": "string" - }, - "kind": { - "description": "kind Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "name Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "namespace": { - "description": "namespace Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", - "type": "string" - }, - "resourceVersion": { - "description": "resourceVersion Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "uid": { - "description": "uid UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", - "type": "string" - } - }, - "type": "object" - }, - "V1beta1PlanStatusMigrationVmsPipeline": { - "additionalProperties": false, - "description": "Pipeline step.", - "properties": { - "annotations": { - "anyOf": [ - {}, - { - "type": "null" - } - ], - "description": "annotations Annotations." - }, - "completed": { - "description": "completed Completed timestamp.", - "format": "{date-time}", - "type": "string" - }, - "description": { - "description": "description Name", - "type": "string" - }, - "error": { - "$ref": "#/definitions/V1beta1PlanStatusMigrationVmsPipelineError", - "description": "error Error." - }, - "name": { - "description": "name Name.", - "type": "string" - }, - "phase": { - "description": "phase Phase", - "type": "string" - }, - "progress": { - "$ref": "#/definitions/V1beta1PlanStatusMigrationVmsPipelineProgress", - "description": "progress Progress." - }, - "reason": { - "description": "reason Reason", - "type": "string" - }, - "started": { - "description": "started Started timestamp.", - "format": "{date-time}", - "type": "string" - }, - "tasks": { - "description": "tasks Migration task.", - "items": { - "$ref": "#/definitions/V1beta1PlanStatusMigrationVmsPipelineTasks" - }, - "type": "array" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "V1beta1PlanStatusMigrationVmsPipelineError": { - "additionalProperties": false, - "description": "Error.", - "properties": { - "phase": { - "description": "phase", - "type": "string" - }, - "reasons": { - "description": "reasons", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "phase", - "reasons" - ], - "type": "object" - }, - "V1beta1PlanStatusMigrationVmsPipelineProgress": { - "additionalProperties": false, - "description": "Progress.", - "properties": { - "completed": { - "description": "completed Completed units.", - "format": "{int64}", - "type": "number" - }, - "total": { - "description": "total Total units.", - "format": "{int64}", - "type": "number" - } - }, - "required": [ - "completed", - "total" - ], - "type": "object" - }, - "V1beta1PlanStatusMigrationVmsPipelineTasks": { - "additionalProperties": false, - "description": "Migration task.", - "properties": { - "annotations": { - "anyOf": [ - {}, - { - "type": "null" - } - ], - "description": "annotations Annotations." - }, - "completed": { - "description": "completed Completed timestamp.", - "format": "{date-time}", - "type": "string" - }, - "description": { - "description": "description Name", - "type": "string" - }, - "error": { - "$ref": "#/definitions/V1beta1PlanStatusMigrationVmsPipelineTasksError", - "description": "error Error." - }, - "name": { - "description": "name Name.", - "type": "string" - }, - "phase": { - "description": "phase Phase", - "type": "string" - }, - "progress": { - "$ref": "#/definitions/V1beta1PlanStatusMigrationVmsPipelineTasksProgress", - "description": "progress Progress." - }, - "reason": { - "description": "reason Reason", - "type": "string" - }, - "started": { - "description": "started Started timestamp.", - "format": "{date-time}", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "V1beta1PlanStatusMigrationVmsPipelineTasksError": { - "additionalProperties": false, - "description": "Error.", - "properties": { - "phase": { - "description": "phase", - "type": "string" - }, - "reasons": { - "description": "reasons", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "phase", - "reasons" - ], - "type": "object" - }, - "V1beta1PlanStatusMigrationVmsPipelineTasksProgress": { - "additionalProperties": false, - "description": "Progress.", - "properties": { - "completed": { - "description": "completed Completed units.", - "format": "{int64}", - "type": "number" - }, - "total": { - "description": "total Total units.", - "format": "{int64}", - "type": "number" - } - }, - "required": [ - "completed", - "total" - ], - "type": "object" - }, - "V1beta1PlanStatusMigrationVmsWarm": { - "additionalProperties": false, - "description": "Warm migration status", - "properties": { - "consecutiveFailures": { - "description": "consecutiveFailures", - "format": "{int64}", - "type": "number" - }, - "failures": { - "description": "failures", - "format": "{int64}", - "type": "number" - }, - "nextPrecopyAt": { - "description": "nextPrecopyAt", - "format": "{date-time}", - "type": "string" - }, - "precopies": { - "description": "precopies Precopy durations", - "items": { - "$ref": "#/definitions/V1beta1PlanStatusMigrationVmsWarmPrecopies" - }, - "type": "array" - }, - "successes": { - "description": "successes", - "format": "{int64}", - "type": "number" - } - }, - "required": [ - "consecutiveFailures", - "failures", - "successes" - ], - "type": "object" - }, - "V1beta1PlanStatusMigrationVmsWarmPrecopies": { - "additionalProperties": false, - "description": "Precopy durations", - "properties": { - "end": { - "description": "end", - "format": "{date-time}", - "type": "string" - }, - "snapshot": { - "description": "snapshot", - "type": "string" - }, - "start": { - "description": "start", - "format": "{date-time}", - "type": "string" - } - }, - "type": "object" - } - } -} \ No newline at end of file diff --git a/packages/types/schemas/V1beta1Provider.schema.json b/packages/types/schemas/V1beta1Provider.schema.json deleted file mode 100644 index 79a450cb6..000000000 --- a/packages/types/schemas/V1beta1Provider.schema.json +++ /dev/null @@ -1,286 +0,0 @@ -{ - "$ref": "#/definitions/V1beta1Provider", - "$schema": "http://json-schema.org/draft-07/schema#", - "definitions": { - "IoK8sApimachineryPkgApisMetaV1ObjectMeta": { - "additionalProperties": false, - "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations", - "type": "object" - }, - "creationTimestamp": { - "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", - "type": "string" - }, - "deletionGracePeriodSeconds": { - "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", - "type": "number" - }, - "deletionTimestamp": { - "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", - "type": "string" - }, - "finalizers": { - "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.", - "items": { - "type": "string" - }, - "type": "array" - }, - "generateName": { - "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", - "type": "string" - }, - "generation": { - "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", - "type": "number" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels", - "type": "object" - }, - "name": { - "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "namespace": { - "description": "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces", - "type": "string" - }, - "ownerReferences": { - "description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", - "items": { - "$ref": "#/definitions/IoK8sApimachineryPkgApisMetaV1OwnerReference" - }, - "type": "array" - }, - "resourceVersion": { - "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "selfLink": { - "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", - "type": "string" - }, - "uid": { - "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "type": "string" - } - }, - "type": "object" - }, - "IoK8sApimachineryPkgApisMetaV1OwnerReference": { - "additionalProperties": false, - "description": "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.", - "properties": { - "apiVersion": { - "description": "API version of the referent.", - "type": "string" - }, - "blockOwnerDeletion": { - "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", - "type": "boolean" - }, - "controller": { - "description": "If true, this reference points to the managing controller.", - "type": "boolean" - }, - "kind": { - "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "uid": { - "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "type": "string" - } - }, - "required": [ - "apiVersion", - "kind", - "name", - "uid" - ], - "type": "object" - }, - "V1beta1Provider": { - "additionalProperties": false, - "properties": { - "apiVersion": { - "description": "apiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/IoK8sApimachineryPkgApisMetaV1ObjectMeta", - "description": "metadata" - }, - "spec": { - "$ref": "#/definitions/V1beta1ProviderSpec", - "description": "spec Defines the desired state of Provider." - }, - "status": { - "$ref": "#/definitions/V1beta1ProviderStatus", - "description": "status ProviderStatus defines the observed state of Provider" - } - }, - "required": [ - "apiVersion", - "kind" - ], - "type": "object" - }, - "V1beta1ProviderSpec": { - "additionalProperties": false, - "description": "Defines the desired state of Provider.", - "properties": { - "secret": { - "$ref": "#/definitions/V1beta1ProviderSpecSecret", - "description": "secret References a secret containing credentials and other confidential information." - }, - "settings": { - "anyOf": [ - {}, - { - "type": "null" - } - ], - "description": "settings Provider settings." - }, - "type": { - "description": "type Provider type.", - "type": "string" - }, - "url": { - "description": "url The provider URL. Empty may be used for the `host` provider.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "V1beta1ProviderSpecSecret": { - "additionalProperties": false, - "description": "References a secret containing credentials and other confidential information.", - "properties": { - "apiVersion": { - "description": "apiVersion API version of the referent.", - "type": "string" - }, - "fieldPath": { - "description": "fieldPath If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future.", - "type": "string" - }, - "kind": { - "description": "kind Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "name Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "namespace": { - "description": "namespace Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", - "type": "string" - }, - "resourceVersion": { - "description": "resourceVersion Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "uid": { - "description": "uid UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", - "type": "string" - } - }, - "type": "object" - }, - "V1beta1ProviderStatus": { - "additionalProperties": false, - "description": "ProviderStatus defines the observed state of Provider", - "properties": { - "conditions": { - "description": "conditions Condition", - "items": { - "$ref": "#/definitions/V1beta1ProviderStatusConditions" - }, - "type": "array" - }, - "observedGeneration": { - "description": "observedGeneration The most recent generation observed by the controller.", - "format": "{int64}", - "type": "number" - }, - "phase": { - "description": "phase Current life cycle phase of the provider.", - "type": "string" - } - }, - "type": "object" - }, - "V1beta1ProviderStatusConditions": { - "additionalProperties": false, - "description": "Condition", - "properties": { - "category": { - "description": "category The condition category.", - "type": "string" - }, - "durable": { - "description": "durable The condition is durable - never un-staged.", - "type": "boolean" - }, - "items": { - "description": "items", - "items": { - "type": "string" - }, - "type": "array" - }, - "lastTransitionTime": { - "description": "lastTransitionTime When the last status transition occurred.", - "format": "{date-time}", - "type": "string" - }, - "message": { - "description": "message The human readable description of the condition.", - "type": "string" - }, - "reason": { - "description": "reason The reason for the condition or transition.", - "type": "string" - }, - "status": { - "description": "status The condition status [true,false].", - "type": "string" - }, - "type": { - "description": "type The condition type.", - "type": "string" - } - }, - "required": [ - "category", - "lastTransitionTime", - "status", - "type" - ], - "type": "object" - } - } -} \ No newline at end of file diff --git a/packages/types/schemas/V1beta1StorageMap.schema.json b/packages/types/schemas/V1beta1StorageMap.schema.json deleted file mode 100644 index 954bf229f..000000000 --- a/packages/types/schemas/V1beta1StorageMap.schema.json +++ /dev/null @@ -1,413 +0,0 @@ -{ - "$ref": "#/definitions/V1beta1StorageMap", - "$schema": "http://json-schema.org/draft-07/schema#", - "definitions": { - "IoK8sApimachineryPkgApisMetaV1ObjectMeta": { - "additionalProperties": false, - "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations", - "type": "object" - }, - "creationTimestamp": { - "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", - "type": "string" - }, - "deletionGracePeriodSeconds": { - "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", - "type": "number" - }, - "deletionTimestamp": { - "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", - "type": "string" - }, - "finalizers": { - "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.", - "items": { - "type": "string" - }, - "type": "array" - }, - "generateName": { - "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", - "type": "string" - }, - "generation": { - "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", - "type": "number" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels", - "type": "object" - }, - "name": { - "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "namespace": { - "description": "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces", - "type": "string" - }, - "ownerReferences": { - "description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", - "items": { - "$ref": "#/definitions/IoK8sApimachineryPkgApisMetaV1OwnerReference" - }, - "type": "array" - }, - "resourceVersion": { - "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "selfLink": { - "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", - "type": "string" - }, - "uid": { - "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "type": "string" - } - }, - "type": "object" - }, - "IoK8sApimachineryPkgApisMetaV1OwnerReference": { - "additionalProperties": false, - "description": "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.", - "properties": { - "apiVersion": { - "description": "API version of the referent.", - "type": "string" - }, - "blockOwnerDeletion": { - "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", - "type": "boolean" - }, - "controller": { - "description": "If true, this reference points to the managing controller.", - "type": "boolean" - }, - "kind": { - "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "uid": { - "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "type": "string" - } - }, - "required": [ - "apiVersion", - "kind", - "name", - "uid" - ], - "type": "object" - }, - "V1beta1StorageMap": { - "additionalProperties": false, - "properties": { - "apiVersion": { - "description": "apiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/IoK8sApimachineryPkgApisMetaV1ObjectMeta", - "description": "metadata" - }, - "spec": { - "$ref": "#/definitions/V1beta1StorageMapSpec", - "description": "spec Storage map spec." - }, - "status": { - "$ref": "#/definitions/V1beta1StorageMapStatus", - "description": "status MapStatus defines the observed state of Maps." - } - }, - "required": [ - "apiVersion", - "kind" - ], - "type": "object" - }, - "V1beta1StorageMapSpec": { - "additionalProperties": false, - "description": "Storage map spec.", - "properties": { - "map": { - "description": "map Mapped storage.", - "items": { - "$ref": "#/definitions/V1beta1StorageMapSpecMap" - }, - "type": "array" - }, - "provider": { - "$ref": "#/definitions/V1beta1StorageMapSpecProvider", - "description": "provider Provider" - } - }, - "required": [ - "map" - ], - "type": "object" - }, - "V1beta1StorageMapSpecMap": { - "additionalProperties": false, - "description": "Mapped storage.", - "properties": { - "destination": { - "$ref": "#/definitions/V1beta1StorageMapSpecMapDestination", - "description": "destination Destination storage." - }, - "source": { - "$ref": "#/definitions/V1beta1StorageMapSpecMapSource", - "description": "source Source storage." - } - }, - "type": "object" - }, - "V1beta1StorageMapSpecMapDestination": { - "additionalProperties": false, - "description": "Destination storage.", - "properties": { - "accessMode": { - "description": "accessMode Access mode.", - "enum": [ - "ReadWriteOnce", - "ReadWriteMany", - "ReadOnlyMany" - ], - "type": "string" - }, - "storageClass": { - "description": "storageClass A storage class.", - "type": "string" - }, - "volumeMode": { - "description": "volumeMode Volume mode.", - "enum": [ - "Filesystem", - "Block" - ], - "type": "string" - } - }, - "required": [ - "storageClass" - ], - "type": "object" - }, - "V1beta1StorageMapSpecMapSource": { - "additionalProperties": false, - "description": "Source storage.", - "properties": { - "id": { - "description": "id The object ID. vsphere: The managed object ID.", - "type": "string" - }, - "name": { - "description": "name An object Name. vsphere: A qualified name.", - "type": "string" - }, - "type": { - "description": "type Type used to qualify the name.", - "type": "string" - } - }, - "type": "object" - }, - "V1beta1StorageMapSpecProvider": { - "additionalProperties": false, - "description": "Provider", - "properties": { - "destination": { - "$ref": "#/definitions/V1beta1StorageMapSpecProviderDestination", - "description": "destination Destination." - }, - "source": { - "$ref": "#/definitions/V1beta1StorageMapSpecProviderSource", - "description": "source Source." - } - }, - "type": "object" - }, - "V1beta1StorageMapSpecProviderDestination": { - "additionalProperties": false, - "description": "Destination.", - "properties": { - "apiVersion": { - "description": "apiVersion API version of the referent.", - "type": "string" - }, - "fieldPath": { - "description": "fieldPath If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future.", - "type": "string" - }, - "kind": { - "description": "kind Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "name Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "namespace": { - "description": "namespace Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", - "type": "string" - }, - "resourceVersion": { - "description": "resourceVersion Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "uid": { - "description": "uid UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", - "type": "string" - } - }, - "type": "object" - }, - "V1beta1StorageMapSpecProviderSource": { - "additionalProperties": false, - "description": "Source.", - "properties": { - "apiVersion": { - "description": "apiVersion API version of the referent.", - "type": "string" - }, - "fieldPath": { - "description": "fieldPath If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future.", - "type": "string" - }, - "kind": { - "description": "kind Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "name Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "namespace": { - "description": "namespace Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", - "type": "string" - }, - "resourceVersion": { - "description": "resourceVersion Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "uid": { - "description": "uid UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", - "type": "string" - } - }, - "type": "object" - }, - "V1beta1StorageMapStatus": { - "additionalProperties": false, - "description": "MapStatus defines the observed state of Maps.", - "properties": { - "conditions": { - "description": "conditions Condition", - "items": { - "$ref": "#/definitions/V1beta1StorageMapStatusConditions" - }, - "type": "array" - }, - "observedGeneration": { - "description": "observedGeneration The most recent generation observed by the controller.", - "format": "{int64}", - "type": "number" - }, - "references": { - "description": "references Source reference. Either the ID or Name must be specified.", - "items": { - "$ref": "#/definitions/V1beta1StorageMapStatusReferences" - }, - "type": "array" - } - }, - "type": "object" - }, - "V1beta1StorageMapStatusConditions": { - "additionalProperties": false, - "description": "Condition", - "properties": { - "category": { - "description": "category The condition category.", - "type": "string" - }, - "durable": { - "description": "durable The condition is durable - never un-staged.", - "type": "boolean" - }, - "items": { - "description": "items", - "items": { - "type": "string" - }, - "type": "array" - }, - "lastTransitionTime": { - "description": "lastTransitionTime When the last status transition occurred.", - "format": "{date-time}", - "type": "string" - }, - "message": { - "description": "message The human readable description of the condition.", - "type": "string" - }, - "reason": { - "description": "reason The reason for the condition or transition.", - "type": "string" - }, - "status": { - "description": "status The condition status [true,false].", - "type": "string" - }, - "type": { - "description": "type The condition type.", - "type": "string" - } - }, - "required": [ - "category", - "lastTransitionTime", - "status", - "type" - ], - "type": "object" - }, - "V1beta1StorageMapStatusReferences": { - "additionalProperties": false, - "description": "Source reference. Either the ID or Name must be specified.", - "properties": { - "id": { - "description": "id The object ID. vsphere: The managed object ID.", - "type": "string" - }, - "name": { - "description": "name An object Name. vsphere: A qualified name.", - "type": "string" - }, - "type": { - "description": "type Type used to qualify the name.", - "type": "string" - } - }, - "type": "object" - } - } -} \ No newline at end of file diff --git a/packages/types/src/constants/README.md b/packages/types/src/generated/forklift/README.md similarity index 51% rename from packages/types/src/constants/README.md rename to packages/types/src/generated/forklift/README.md index 699dae22a..442513608 100644 --- a/packages/types/src/constants/README.md +++ b/packages/types/src/generated/forklift/README.md @@ -1,4 +1,31 @@ -# models +## Auto generate typescritp types + +``` bash +npm install crdtoapi + +# copy all CRD files from forklift git repository to ./crds: +https://github.com/kubev2v/forklift/tree/main/operator/config/crd/bases + + +# Use the CRDs in the ./crd directory to create an openapi.yaml file: +npx crdtoapi -i $(pwd)/crds/ > $(pwd)/openapi.yaml + +# Create models: +npx crdtotypes -i $(pwd)/openapi.yaml -o $(pwd)/models + +# Create openshift console UI model constants: +npx crdtomodel -i $(pwd)/crds/ -o ./constants + +# Replace IoK8sApimachineryPkgApisMetaV1ObjectMeta.ts with the one from kubernetes: +sed -i '/IoK8sApimachineryPkgApisMetaV1ObjectMeta/d' ./models/index.ts +find ./models -type f -exec sed -i 's/\.\/IoK8sApimachineryPkgApisMetaV1ObjectMeta/\.\.\/\.\.\/kubernetes\/models\/IoK8sApimachineryPkgApisMetaV1ObjectMeta/g' {} + +``` + +# Model types (./models): + +Auto generated constants for Forlklift k8s resources + +# UI model constants (./constants): Auto generated constants for Forlklift k8s resources diff --git a/packages/types/src/constants/ForkliftControllerModel.v1beta1.ts b/packages/types/src/generated/forklift/constants/ForkliftControllerModel.v1beta1.ts similarity index 100% rename from packages/types/src/constants/ForkliftControllerModel.v1beta1.ts rename to packages/types/src/generated/forklift/constants/ForkliftControllerModel.v1beta1.ts diff --git a/packages/types/src/constants/HookModel.v1beta1.ts b/packages/types/src/generated/forklift/constants/HookModel.v1beta1.ts similarity index 97% rename from packages/types/src/constants/HookModel.v1beta1.ts rename to packages/types/src/generated/forklift/constants/HookModel.v1beta1.ts index 8aaa68a56..02000a47a 100644 --- a/packages/types/src/constants/HookModel.v1beta1.ts +++ b/packages/types/src/generated/forklift/constants/HookModel.v1beta1.ts @@ -14,7 +14,7 @@ export const HookModel = { plural: 'hooks', abbr: 'HO', - color: '#afb345', + color: undefined, id: 'hooks.forklift.konveyor.io', namespaced: true, crd: true, diff --git a/packages/types/src/constants/HostModel.v1beta1.ts b/packages/types/src/generated/forklift/constants/HostModel.v1beta1.ts similarity index 97% rename from packages/types/src/constants/HostModel.v1beta1.ts rename to packages/types/src/generated/forklift/constants/HostModel.v1beta1.ts index 0d27d40d7..3bd2e7961 100644 --- a/packages/types/src/constants/HostModel.v1beta1.ts +++ b/packages/types/src/generated/forklift/constants/HostModel.v1beta1.ts @@ -13,7 +13,7 @@ export const HostModel = { kind: 'Host', plural: 'hosts', - abbr: 'H', + abbr: 'HO', color: undefined, id: 'hosts.forklift.konveyor.io', namespaced: true, diff --git a/packages/types/src/constants/MigrationModel.v1beta1.ts b/packages/types/src/generated/forklift/constants/MigrationModel.v1beta1.ts similarity index 97% rename from packages/types/src/constants/MigrationModel.v1beta1.ts rename to packages/types/src/generated/forklift/constants/MigrationModel.v1beta1.ts index d91c8bc10..dfcddf9ea 100644 --- a/packages/types/src/constants/MigrationModel.v1beta1.ts +++ b/packages/types/src/generated/forklift/constants/MigrationModel.v1beta1.ts @@ -14,7 +14,7 @@ export const MigrationModel = { plural: 'migrations', abbr: 'MI', - color: '#e4788d', + color: undefined, id: 'migrations.forklift.konveyor.io', namespaced: true, crd: true, diff --git a/packages/types/src/constants/NetworkMapModel.v1beta1.ts b/packages/types/src/generated/forklift/constants/NetworkMapModel.v1beta1.ts similarity index 100% rename from packages/types/src/constants/NetworkMapModel.v1beta1.ts rename to packages/types/src/generated/forklift/constants/NetworkMapModel.v1beta1.ts diff --git a/packages/types/src/generated/forklift/constants/OpenstackVolumePopulatorModel.v1beta1.ts b/packages/types/src/generated/forklift/constants/OpenstackVolumePopulatorModel.v1beta1.ts new file mode 100644 index 000000000..622941632 --- /dev/null +++ b/packages/types/src/generated/forklift/constants/OpenstackVolumePopulatorModel.v1beta1.ts @@ -0,0 +1,28 @@ +// Auto generated from k8s CRD file +// see: https://github.com/yaacov/crdtoapi + +// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! +// NOTE: this tool has poor color perception, you are encouraged to change the color and abbr attributes. + +export const OpenstackVolumePopulatorModel = { + label: 'OpenstackVolumePopulator', + labelPlural: 'OpenstackVolumePopulators', + + apiVersion: 'v1beta1', + apiGroup: 'forklift.konveyor.io', + kind: 'OpenstackVolumePopulator', + plural: 'openstackvolumepopulators', + + abbr: 'OP', + color: undefined, + id: 'openstackvolumepopulators.forklift.konveyor.io', + namespaced: true, + crd: true, +}; + +export const OpenstackVolumePopulatorModelGroupVersionKind = { + version: 'v1beta1', + kind: 'OpenstackVolumePopulator', + group: 'forklift.konveyor.io', +}; +export const OpenstackVolumePopulatorModelRef = 'forklift.konveyor.io~v1beta1~OpenstackVolumePopulator'; diff --git a/packages/types/src/constants/OvirtVolumePopulatorModel.v1beta1.ts b/packages/types/src/generated/forklift/constants/OvirtVolumePopulatorModel.v1beta1.ts similarity index 100% rename from packages/types/src/constants/OvirtVolumePopulatorModel.v1beta1.ts rename to packages/types/src/generated/forklift/constants/OvirtVolumePopulatorModel.v1beta1.ts diff --git a/packages/types/src/constants/PlanModel.v1beta1.ts b/packages/types/src/generated/forklift/constants/PlanModel.v1beta1.ts similarity index 100% rename from packages/types/src/constants/PlanModel.v1beta1.ts rename to packages/types/src/generated/forklift/constants/PlanModel.v1beta1.ts diff --git a/packages/types/src/constants/ProviderModel.v1beta1.ts b/packages/types/src/generated/forklift/constants/ProviderModel.v1beta1.ts similarity index 100% rename from packages/types/src/constants/ProviderModel.v1beta1.ts rename to packages/types/src/generated/forklift/constants/ProviderModel.v1beta1.ts diff --git a/packages/types/src/constants/StorageMapModel.v1beta1.ts b/packages/types/src/generated/forklift/constants/StorageMapModel.v1beta1.ts similarity index 100% rename from packages/types/src/constants/StorageMapModel.v1beta1.ts rename to packages/types/src/generated/forklift/constants/StorageMapModel.v1beta1.ts diff --git a/packages/types/src/constants/index.ts b/packages/types/src/generated/forklift/constants/index.ts similarity index 87% rename from packages/types/src/constants/index.ts rename to packages/types/src/generated/forklift/constants/index.ts index ea62ab540..6b1de6a58 100644 --- a/packages/types/src/constants/index.ts +++ b/packages/types/src/generated/forklift/constants/index.ts @@ -3,6 +3,7 @@ export * from './HookModel.v1beta1'; export * from './HostModel.v1beta1'; export * from './MigrationModel.v1beta1'; export * from './NetworkMapModel.v1beta1'; +export * from './OpenstackVolumePopulatorModel.v1beta1'; export * from './OvirtVolumePopulatorModel.v1beta1'; export * from './PlanModel.v1beta1'; export * from './ProviderModel.v1beta1'; diff --git a/packages/types/src/generated/forklift/crds/forklift.konveyor.io_forkliftcontrollers.yaml b/packages/types/src/generated/forklift/crds/forklift.konveyor.io_forkliftcontrollers.yaml new file mode 100644 index 000000000..6a7ceaca9 --- /dev/null +++ b/packages/types/src/generated/forklift/crds/forklift.konveyor.io_forkliftcontrollers.yaml @@ -0,0 +1,44 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: forkliftcontrollers.forklift.konveyor.io +spec: + group: forklift.konveyor.io + names: + kind: ForkliftController + listKind: ForkliftControllerList + plural: forkliftcontrollers + singular: forkliftcontroller + scope: Namespaced + versions: + - name: v1beta1 + schema: + openAPIV3Schema: + description: ForkliftController is the Schema for the forkliftcontrollers API + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + description: Spec defines the desired state of ForkliftController + type: object + x-kubernetes-preserve-unknown-fields: true + status: + description: Status defines the observed state of ForkliftController + type: object + x-kubernetes-preserve-unknown-fields: true + type: object + served: true + storage: true + subresources: + status: {} diff --git a/packages/types/src/generated/forklift/crds/forklift.konveyor.io_hooks.yaml b/packages/types/src/generated/forklift/crds/forklift.konveyor.io_hooks.yaml new file mode 100644 index 000000000..cfeca0d3a --- /dev/null +++ b/packages/types/src/generated/forklift/crds/forklift.konveyor.io_hooks.yaml @@ -0,0 +1,115 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.10.0 + creationTimestamp: null + name: hooks.forklift.konveyor.io +spec: + group: forklift.konveyor.io + names: + kind: Hook + listKind: HookList + plural: hooks + singular: hook + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .status.conditions[?(@.type=='Ready')].status + name: Ready + type: string + - jsonPath: .spec.image + name: Image + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + name: v1beta1 + schema: + openAPIV3Schema: + description: Hook is the Schema for the hooks API + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + description: Hook specification. + properties: + deadline: + description: Hook deadline in seconds. + format: int64 + type: integer + image: + description: Image to run. + type: string + playbook: + description: A base64 encoded Ansible playbook. + type: string + serviceAccount: + description: Service account. + type: string + required: + - image + type: object + status: + description: Hook status. + properties: + conditions: + description: List of conditions. + items: + description: Condition + properties: + category: + description: The condition category. + type: string + durable: + description: The condition is durable - never un-staged. + type: boolean + items: + description: A list of items referenced in the `Message`. + items: + type: string + type: array + lastTransitionTime: + description: When the last status transition occurred. + format: date-time + type: string + message: + description: The human readable description of the condition. + type: string + reason: + description: The reason for the condition or transition. + type: string + status: + description: The condition status [true,false]. + type: string + type: + description: The condition type. + type: string + required: + - category + - lastTransitionTime + - status + - type + type: object + type: array + observedGeneration: + description: The most recent generation observed by the controller. + format: int64 + type: integer + type: object + type: object + served: true + storage: true + subresources: + status: {} diff --git a/packages/types/src/generated/forklift/crds/forklift.konveyor.io_hosts.yaml b/packages/types/src/generated/forklift/crds/forklift.konveyor.io_hosts.yaml new file mode 100644 index 000000000..eb505a1e8 --- /dev/null +++ b/packages/types/src/generated/forklift/crds/forklift.konveyor.io_hosts.yaml @@ -0,0 +1,195 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.10.0 + creationTimestamp: null + name: hosts.forklift.konveyor.io +spec: + group: forklift.konveyor.io + names: + kind: Host + listKind: HostList + plural: hosts + singular: host + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .status.conditions[?(@.type=='Ready')].status + name: READY + type: string + - jsonPath: .status.conditions[?(@.type=='ConnectionTestSucceeded')].status + name: CONNECTED + type: string + - jsonPath: .metadata.creationTimestamp + name: AGE + type: date + name: v1beta1 + schema: + openAPIV3Schema: + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + description: HostSpec defines the desired state of Host + properties: + id: + description: 'The object ID. vsphere: The managed object ID.' + type: string + ipAddress: + description: IP address used for disk transfer. + type: string + name: + description: 'An object Name. vsphere: A qualified name.' + type: string + namespace: + description: The VM Namespace Only relevant for an openshift source. + type: string + provider: + description: Provider + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: 'If referring to a piece of an object instead of + an entire object, this string should contain a valid JSON/Go + field access statement, such as desiredState.manifest.containers[2]. + For example, if the object reference is to a container within + a pod, this would take on a value like: "spec.containers{name}" + (where "name" refers to the name of the container that triggered + the event) or if no container name is specified "spec.containers[2]" + (container with index 2 in this pod). This syntax is chosen + only to have some well-defined way of referencing a part of + an object. TODO: this design is not final and this field is + subject to change in the future.' + type: string + kind: + description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + resourceVersion: + description: 'Specific resourceVersion to which this reference + is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency' + type: string + uid: + description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids' + type: string + type: object + x-kubernetes-map-type: atomic + secret: + description: Credentials. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: 'If referring to a piece of an object instead of + an entire object, this string should contain a valid JSON/Go + field access statement, such as desiredState.manifest.containers[2]. + For example, if the object reference is to a container within + a pod, this would take on a value like: "spec.containers{name}" + (where "name" refers to the name of the container that triggered + the event) or if no container name is specified "spec.containers[2]" + (container with index 2 in this pod). This syntax is chosen + only to have some well-defined way of referencing a part of + an object. TODO: this design is not final and this field is + subject to change in the future.' + type: string + kind: + description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + resourceVersion: + description: 'Specific resourceVersion to which this reference + is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency' + type: string + uid: + description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids' + type: string + type: object + x-kubernetes-map-type: atomic + thumbprint: + description: Certificate SHA-1 fingerprint, called thumbprint by VMware. + type: string + type: + description: Type used to qualify the name. + type: string + required: + - ipAddress + - provider + - secret + type: object + status: + description: HostStatus defines the observed state of Host + properties: + conditions: + description: List of conditions. + items: + description: Condition + properties: + category: + description: The condition category. + type: string + durable: + description: The condition is durable - never un-staged. + type: boolean + items: + description: A list of items referenced in the `Message`. + items: + type: string + type: array + lastTransitionTime: + description: When the last status transition occurred. + format: date-time + type: string + message: + description: The human readable description of the condition. + type: string + reason: + description: The reason for the condition or transition. + type: string + status: + description: The condition status [true,false]. + type: string + type: + description: The condition type. + type: string + required: + - category + - lastTransitionTime + - status + - type + type: object + type: array + observedGeneration: + description: The most recent generation observed by the controller. + format: int64 + type: integer + type: object + type: object + served: true + storage: true + subresources: + status: {} diff --git a/packages/types/src/generated/forklift/crds/forklift.konveyor.io_migrations.yaml b/packages/types/src/generated/forklift/crds/forklift.konveyor.io_migrations.yaml new file mode 100644 index 000000000..dc197db8f --- /dev/null +++ b/packages/types/src/generated/forklift/crds/forklift.konveyor.io_migrations.yaml @@ -0,0 +1,476 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.10.0 + creationTimestamp: null + name: migrations.forklift.konveyor.io +spec: + group: forklift.konveyor.io + names: + kind: Migration + listKind: MigrationList + plural: migrations + singular: migration + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .status.conditions[?(@.type=='Ready')].status + name: READY + type: string + - jsonPath: .status.conditions[?(@.type=='Running')].status + name: RUNNING + type: string + - jsonPath: .status.conditions[?(@.type=='Succeeded')].status + name: SUCCEEDED + type: string + - jsonPath: .status.conditions[?(@.type=='Failed')].status + name: FAILED + type: string + - jsonPath: .metadata.creationTimestamp + name: AGE + type: date + name: v1beta1 + schema: + openAPIV3Schema: + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + description: MigrationSpec defines the desired state of Migration + properties: + cancel: + description: List of VMs which will have their imports canceled. + items: + description: Source reference. Either the ID or Name must be specified. + properties: + id: + description: 'The object ID. vsphere: The managed object ID.' + type: string + name: + description: 'An object Name. vsphere: A qualified name.' + type: string + namespace: + description: The VM Namespace Only relevant for an openshift + source. + type: string + type: + description: Type used to qualify the name. + type: string + type: object + type: array + cutover: + description: Date and time to finalize a warm migration. If present, + this will override the value set on the Plan. + format: date-time + type: string + plan: + description: Reference to the associated Plan. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: 'If referring to a piece of an object instead of + an entire object, this string should contain a valid JSON/Go + field access statement, such as desiredState.manifest.containers[2]. + For example, if the object reference is to a container within + a pod, this would take on a value like: "spec.containers{name}" + (where "name" refers to the name of the container that triggered + the event) or if no container name is specified "spec.containers[2]" + (container with index 2 in this pod). This syntax is chosen + only to have some well-defined way of referencing a part of + an object. TODO: this design is not final and this field is + subject to change in the future.' + type: string + kind: + description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + resourceVersion: + description: 'Specific resourceVersion to which this reference + is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency' + type: string + uid: + description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids' + type: string + type: object + x-kubernetes-map-type: atomic + required: + - plan + type: object + status: + description: MigrationStatus defines the observed state of Migration + properties: + completed: + description: Completed timestamp. + format: date-time + type: string + conditions: + description: List of conditions. + items: + description: Condition + properties: + category: + description: The condition category. + type: string + durable: + description: The condition is durable - never un-staged. + type: boolean + items: + description: A list of items referenced in the `Message`. + items: + type: string + type: array + lastTransitionTime: + description: When the last status transition occurred. + format: date-time + type: string + message: + description: The human readable description of the condition. + type: string + reason: + description: The reason for the condition or transition. + type: string + status: + description: The condition status [true,false]. + type: string + type: + description: The condition type. + type: string + required: + - category + - lastTransitionTime + - status + - type + type: object + type: array + observedGeneration: + description: The most recent generation observed by the controller. + format: int64 + type: integer + started: + description: Started timestamp. + format: date-time + type: string + vms: + description: VM status + items: + description: VM Status + properties: + completed: + description: Completed timestamp. + format: date-time + type: string + conditions: + description: List of conditions. + items: + description: Condition + properties: + category: + description: The condition category. + type: string + durable: + description: The condition is durable - never un-staged. + type: boolean + items: + description: A list of items referenced in the `Message`. + items: + type: string + type: array + lastTransitionTime: + description: When the last status transition occurred. + format: date-time + type: string + message: + description: The human readable description of the condition. + type: string + reason: + description: The reason for the condition or transition. + type: string + status: + description: The condition status [true,false]. + type: string + type: + description: The condition type. + type: string + required: + - category + - lastTransitionTime + - status + - type + type: object + type: array + error: + description: Errors + properties: + phase: + type: string + reasons: + items: + type: string + type: array + required: + - phase + - reasons + type: object + hooks: + description: Enable hooks. + items: + description: Plan hook. + properties: + hook: + description: Hook reference. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: 'If referring to a piece of an object + instead of an entire object, this string should + contain a valid JSON/Go field access statement, + such as desiredState.manifest.containers[2]. For + example, if the object reference is to a container + within a pod, this would take on a value like: "spec.containers{name}" + (where "name" refers to the name of the container + that triggered the event) or if no container name + is specified "spec.containers[2]" (container with + index 2 in this pod). This syntax is chosen only + to have some well-defined way of referencing a part + of an object. TODO: this design is not final and + this field is subject to change in the future.' + type: string + kind: + description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + resourceVersion: + description: 'Specific resourceVersion to which this + reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency' + type: string + uid: + description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids' + type: string + type: object + x-kubernetes-map-type: atomic + step: + description: Pipeline step. + type: string + required: + - hook + - step + type: object + type: array + id: + description: 'The object ID. vsphere: The managed object ID.' + type: string + name: + description: 'An object Name. vsphere: A qualified name.' + type: string + namespace: + description: The VM Namespace Only relevant for an openshift + source. + type: string + phase: + description: Phase + type: string + pipeline: + description: Migration pipeline. + items: + description: Pipeline step. + properties: + annotations: + additionalProperties: + type: string + description: Annotations. + type: object + completed: + description: Completed timestamp. + format: date-time + type: string + description: + description: Name + type: string + error: + description: Error. + properties: + phase: + type: string + reasons: + items: + type: string + type: array + required: + - phase + - reasons + type: object + name: + description: Name. + type: string + phase: + description: Phase + type: string + progress: + description: Progress. + properties: + completed: + description: Completed units. + format: int64 + type: integer + total: + description: Total units. + format: int64 + type: integer + required: + - completed + - total + type: object + reason: + description: Reason + type: string + started: + description: Started timestamp. + format: date-time + type: string + tasks: + description: Nested tasks. + items: + description: Migration task. + properties: + annotations: + additionalProperties: + type: string + description: Annotations. + type: object + completed: + description: Completed timestamp. + format: date-time + type: string + description: + description: Name + type: string + error: + description: Error. + properties: + phase: + type: string + reasons: + items: + type: string + type: array + required: + - phase + - reasons + type: object + name: + description: Name. + type: string + phase: + description: Phase + type: string + progress: + description: Progress. + properties: + completed: + description: Completed units. + format: int64 + type: integer + total: + description: Total units. + format: int64 + type: integer + required: + - completed + - total + type: object + reason: + description: Reason + type: string + started: + description: Started timestamp. + format: date-time + type: string + required: + - name + - progress + type: object + type: array + required: + - name + - progress + type: object + type: array + restorePowerState: + description: Source VM power state before migration. + type: string + started: + description: Started timestamp. + format: date-time + type: string + type: + description: Type used to qualify the name. + type: string + warm: + description: Warm migration status + properties: + consecutiveFailures: + type: integer + failures: + type: integer + nextPrecopyAt: + format: date-time + type: string + precopies: + items: + description: Precopy durations + properties: + end: + format: date-time + type: string + snapshot: + type: string + start: + format: date-time + type: string + type: object + type: array + successes: + type: integer + required: + - consecutiveFailures + - failures + - successes + type: object + required: + - phase + - pipeline + type: object + type: array + type: object + type: object + served: true + storage: true + subresources: + status: {} diff --git a/packages/types/src/generated/forklift/crds/forklift.konveyor.io_networkmaps.yaml b/packages/types/src/generated/forklift/crds/forklift.konveyor.io_networkmaps.yaml new file mode 100644 index 000000000..35ad565b9 --- /dev/null +++ b/packages/types/src/generated/forklift/crds/forklift.konveyor.io_networkmaps.yaml @@ -0,0 +1,245 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.10.0 + creationTimestamp: null + name: networkmaps.forklift.konveyor.io +spec: + group: forklift.konveyor.io + names: + kind: NetworkMap + listKind: NetworkMapList + plural: networkmaps + singular: networkmap + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .status.conditions[?(@.type=='Ready')].status + name: READY + type: string + - jsonPath: .metadata.creationTimestamp + name: AGE + type: date + name: v1beta1 + schema: + openAPIV3Schema: + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + description: Network map spec. + properties: + map: + description: Map. + items: + description: Mapped network. + properties: + destination: + description: Destination network. + properties: + name: + description: The name. + type: string + namespace: + description: The namespace (multus only). + type: string + type: + description: The network type. + enum: + - pod + - multus + type: string + required: + - type + type: object + source: + description: Source network. + properties: + id: + description: 'The object ID. vsphere: The managed object + ID.' + type: string + name: + description: 'An object Name. vsphere: A qualified name.' + type: string + namespace: + description: The VM Namespace Only relevant for an openshift + source. + type: string + type: + description: Type used to qualify the name. + type: string + type: object + required: + - destination + - source + type: object + type: array + provider: + description: Provider + properties: + destination: + description: Destination. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: 'If referring to a piece of an object instead + of an entire object, this string should contain a valid + JSON/Go field access statement, such as desiredState.manifest.containers[2]. + For example, if the object reference is to a container within + a pod, this would take on a value like: "spec.containers{name}" + (where "name" refers to the name of the container that triggered + the event) or if no container name is specified "spec.containers[2]" + (container with index 2 in this pod). This syntax is chosen + only to have some well-defined way of referencing a part + of an object. TODO: this design is not final and this field + is subject to change in the future.' + type: string + kind: + description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + resourceVersion: + description: 'Specific resourceVersion to which this reference + is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency' + type: string + uid: + description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids' + type: string + type: object + x-kubernetes-map-type: atomic + source: + description: Source. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: 'If referring to a piece of an object instead + of an entire object, this string should contain a valid + JSON/Go field access statement, such as desiredState.manifest.containers[2]. + For example, if the object reference is to a container within + a pod, this would take on a value like: "spec.containers{name}" + (where "name" refers to the name of the container that triggered + the event) or if no container name is specified "spec.containers[2]" + (container with index 2 in this pod). This syntax is chosen + only to have some well-defined way of referencing a part + of an object. TODO: this design is not final and this field + is subject to change in the future.' + type: string + kind: + description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + resourceVersion: + description: 'Specific resourceVersion to which this reference + is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency' + type: string + uid: + description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids' + type: string + type: object + x-kubernetes-map-type: atomic + required: + - destination + - source + type: object + required: + - map + - provider + type: object + status: + description: MapStatus defines the observed state of Maps. + properties: + conditions: + description: List of conditions. + items: + description: Condition + properties: + category: + description: The condition category. + type: string + durable: + description: The condition is durable - never un-staged. + type: boolean + items: + description: A list of items referenced in the `Message`. + items: + type: string + type: array + lastTransitionTime: + description: When the last status transition occurred. + format: date-time + type: string + message: + description: The human readable description of the condition. + type: string + reason: + description: The reason for the condition or transition. + type: string + status: + description: The condition status [true,false]. + type: string + type: + description: The condition type. + type: string + required: + - category + - lastTransitionTime + - status + - type + type: object + type: array + observedGeneration: + description: The most recent generation observed by the controller. + format: int64 + type: integer + references: + items: + description: Source reference. Either the ID or Name must be specified. + properties: + id: + description: 'The object ID. vsphere: The managed object ID.' + type: string + name: + description: 'An object Name. vsphere: A qualified name.' + type: string + namespace: + description: The VM Namespace Only relevant for an openshift + source. + type: string + type: + description: Type used to qualify the name. + type: string + type: object + type: array + type: object + type: object + served: true + storage: true + subresources: + status: {} diff --git a/packages/types/src/generated/forklift/crds/forklift.konveyor.io_openstackvolumepopulators.yaml b/packages/types/src/generated/forklift/crds/forklift.konveyor.io_openstackvolumepopulators.yaml new file mode 100644 index 000000000..f04f2525c --- /dev/null +++ b/packages/types/src/generated/forklift/crds/forklift.konveyor.io_openstackvolumepopulators.yaml @@ -0,0 +1,97 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.10.0 + creationTimestamp: null + name: openstackvolumepopulators.forklift.konveyor.io +spec: + group: forklift.konveyor.io + names: + kind: OpenstackVolumePopulator + listKind: OpenstackVolumePopulatorList + plural: openstackvolumepopulators + shortNames: + - osvp + - osvps + singular: openstackvolumepopulator + scope: Namespaced + versions: + - name: v1beta1 + schema: + openAPIV3Schema: + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + properties: + identityUrl: + type: string + imageId: + type: string + secretName: + type: string + transferNetwork: + description: The network attachment definition that should be used + for disk transfer. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: 'If referring to a piece of an object instead of + an entire object, this string should contain a valid JSON/Go + field access statement, such as desiredState.manifest.containers[2]. + For example, if the object reference is to a container within + a pod, this would take on a value like: "spec.containers{name}" + (where "name" refers to the name of the container that triggered + the event) or if no container name is specified "spec.containers[2]" + (container with index 2 in this pod). This syntax is chosen + only to have some well-defined way of referencing a part of + an object. TODO: this design is not final and this field is + subject to change in the future.' + type: string + kind: + description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + resourceVersion: + description: 'Specific resourceVersion to which this reference + is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency' + type: string + uid: + description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids' + type: string + type: object + x-kubernetes-map-type: atomic + required: + - identityUrl + - imageId + - secretName + type: object + status: + properties: + progress: + type: string + type: object + required: + - spec + type: object + served: true + storage: true diff --git a/packages/types/src/generated/forklift/crds/forklift.konveyor.io_ovirtvolumepopulators.yaml b/packages/types/src/generated/forklift/crds/forklift.konveyor.io_ovirtvolumepopulators.yaml new file mode 100644 index 000000000..be6c1ed5c --- /dev/null +++ b/packages/types/src/generated/forklift/crds/forklift.konveyor.io_ovirtvolumepopulators.yaml @@ -0,0 +1,97 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.10.0 + creationTimestamp: null + name: ovirtvolumepopulators.forklift.konveyor.io +spec: + group: forklift.konveyor.io + names: + kind: OvirtVolumePopulator + listKind: OvirtVolumePopulatorList + plural: ovirtvolumepopulators + shortNames: + - ovvp + - ovvps + singular: ovirtvolumepopulator + scope: Namespaced + versions: + - name: v1beta1 + schema: + openAPIV3Schema: + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + properties: + diskId: + type: string + engineSecretName: + type: string + engineUrl: + type: string + transferNetwork: + description: The network attachment definition that should be used + for disk transfer. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: 'If referring to a piece of an object instead of + an entire object, this string should contain a valid JSON/Go + field access statement, such as desiredState.manifest.containers[2]. + For example, if the object reference is to a container within + a pod, this would take on a value like: "spec.containers{name}" + (where "name" refers to the name of the container that triggered + the event) or if no container name is specified "spec.containers[2]" + (container with index 2 in this pod). This syntax is chosen + only to have some well-defined way of referencing a part of + an object. TODO: this design is not final and this field is + subject to change in the future.' + type: string + kind: + description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + resourceVersion: + description: 'Specific resourceVersion to which this reference + is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency' + type: string + uid: + description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids' + type: string + type: object + x-kubernetes-map-type: atomic + required: + - diskId + - engineSecretName + - engineUrl + type: object + status: + properties: + progress: + type: string + type: object + required: + - spec + type: object + served: true + storage: true diff --git a/packages/types/src/generated/forklift/crds/forklift.konveyor.io_plans.yaml b/packages/types/src/generated/forklift/crds/forklift.konveyor.io_plans.yaml new file mode 100644 index 000000000..09969e56d --- /dev/null +++ b/packages/types/src/generated/forklift/crds/forklift.konveyor.io_plans.yaml @@ -0,0 +1,921 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.10.0 + creationTimestamp: null + name: plans.forklift.konveyor.io +spec: + group: forklift.konveyor.io + names: + kind: Plan + listKind: PlanList + plural: plans + singular: plan + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .status.conditions[?(@.type=='Ready')].status + name: READY + type: string + - jsonPath: .status.conditions[?(@.type=='Executing')].status + name: EXECUTING + type: string + - jsonPath: .status.conditions[?(@.type=='Succeeded')].status + name: SUCCEEDED + type: string + - jsonPath: .status.conditions[?(@.type=='Failed')].status + name: FAILED + type: string + - jsonPath: .metadata.creationTimestamp + name: AGE + type: date + name: v1beta1 + schema: + openAPIV3Schema: + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + description: PlanSpec defines the desired state of Plan. + properties: + archived: + description: Whether this plan should be archived. + type: boolean + description: + description: Description + type: string + map: + description: Resource mapping. + properties: + network: + description: Network. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: 'If referring to a piece of an object instead + of an entire object, this string should contain a valid + JSON/Go field access statement, such as desiredState.manifest.containers[2]. + For example, if the object reference is to a container within + a pod, this would take on a value like: "spec.containers{name}" + (where "name" refers to the name of the container that triggered + the event) or if no container name is specified "spec.containers[2]" + (container with index 2 in this pod). This syntax is chosen + only to have some well-defined way of referencing a part + of an object. TODO: this design is not final and this field + is subject to change in the future.' + type: string + kind: + description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + resourceVersion: + description: 'Specific resourceVersion to which this reference + is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency' + type: string + uid: + description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids' + type: string + type: object + x-kubernetes-map-type: atomic + storage: + description: Storage. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: 'If referring to a piece of an object instead + of an entire object, this string should contain a valid + JSON/Go field access statement, such as desiredState.manifest.containers[2]. + For example, if the object reference is to a container within + a pod, this would take on a value like: "spec.containers{name}" + (where "name" refers to the name of the container that triggered + the event) or if no container name is specified "spec.containers[2]" + (container with index 2 in this pod). This syntax is chosen + only to have some well-defined way of referencing a part + of an object. TODO: this design is not final and this field + is subject to change in the future.' + type: string + kind: + description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + resourceVersion: + description: 'Specific resourceVersion to which this reference + is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency' + type: string + uid: + description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids' + type: string + type: object + x-kubernetes-map-type: atomic + required: + - network + - storage + type: object + preserveClusterCpuModel: + description: Preserve the CPU model and flags the VM runs with in + its oVirt cluster. + type: boolean + provider: + description: Providers. + properties: + destination: + description: Destination. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: 'If referring to a piece of an object instead + of an entire object, this string should contain a valid + JSON/Go field access statement, such as desiredState.manifest.containers[2]. + For example, if the object reference is to a container within + a pod, this would take on a value like: "spec.containers{name}" + (where "name" refers to the name of the container that triggered + the event) or if no container name is specified "spec.containers[2]" + (container with index 2 in this pod). This syntax is chosen + only to have some well-defined way of referencing a part + of an object. TODO: this design is not final and this field + is subject to change in the future.' + type: string + kind: + description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + resourceVersion: + description: 'Specific resourceVersion to which this reference + is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency' + type: string + uid: + description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids' + type: string + type: object + x-kubernetes-map-type: atomic + source: + description: Source. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: 'If referring to a piece of an object instead + of an entire object, this string should contain a valid + JSON/Go field access statement, such as desiredState.manifest.containers[2]. + For example, if the object reference is to a container within + a pod, this would take on a value like: "spec.containers{name}" + (where "name" refers to the name of the container that triggered + the event) or if no container name is specified "spec.containers[2]" + (container with index 2 in this pod). This syntax is chosen + only to have some well-defined way of referencing a part + of an object. TODO: this design is not final and this field + is subject to change in the future.' + type: string + kind: + description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + resourceVersion: + description: 'Specific resourceVersion to which this reference + is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency' + type: string + uid: + description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids' + type: string + type: object + x-kubernetes-map-type: atomic + required: + - destination + - source + type: object + targetNamespace: + description: Target namespace. + type: string + transferNetwork: + description: The network attachment definition that should be used + for disk transfer. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: 'If referring to a piece of an object instead of + an entire object, this string should contain a valid JSON/Go + field access statement, such as desiredState.manifest.containers[2]. + For example, if the object reference is to a container within + a pod, this would take on a value like: "spec.containers{name}" + (where "name" refers to the name of the container that triggered + the event) or if no container name is specified "spec.containers[2]" + (container with index 2 in this pod). This syntax is chosen + only to have some well-defined way of referencing a part of + an object. TODO: this design is not final and this field is + subject to change in the future.' + type: string + kind: + description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + resourceVersion: + description: 'Specific resourceVersion to which this reference + is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency' + type: string + uid: + description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids' + type: string + type: object + x-kubernetes-map-type: atomic + vms: + description: List of VMs. + items: + description: A VM listed on the plan. + properties: + hooks: + description: Enable hooks. + items: + description: Plan hook. + properties: + hook: + description: Hook reference. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: 'If referring to a piece of an object + instead of an entire object, this string should + contain a valid JSON/Go field access statement, + such as desiredState.manifest.containers[2]. For + example, if the object reference is to a container + within a pod, this would take on a value like: "spec.containers{name}" + (where "name" refers to the name of the container + that triggered the event) or if no container name + is specified "spec.containers[2]" (container with + index 2 in this pod). This syntax is chosen only + to have some well-defined way of referencing a part + of an object. TODO: this design is not final and + this field is subject to change in the future.' + type: string + kind: + description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + resourceVersion: + description: 'Specific resourceVersion to which this + reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency' + type: string + uid: + description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids' + type: string + type: object + x-kubernetes-map-type: atomic + step: + description: Pipeline step. + type: string + required: + - hook + - step + type: object + type: array + id: + description: 'The object ID. vsphere: The managed object ID.' + type: string + name: + description: 'An object Name. vsphere: A qualified name.' + type: string + namespace: + description: The VM Namespace Only relevant for an openshift + source. + type: string + type: + description: Type used to qualify the name. + type: string + type: object + type: array + warm: + description: Whether this is a warm migration. + type: boolean + required: + - map + - provider + - targetNamespace + - vms + type: object + status: + description: PlanStatus defines the observed state of Plan. + properties: + conditions: + description: List of conditions. + items: + description: Condition + properties: + category: + description: The condition category. + type: string + durable: + description: The condition is durable - never un-staged. + type: boolean + items: + description: A list of items referenced in the `Message`. + items: + type: string + type: array + lastTransitionTime: + description: When the last status transition occurred. + format: date-time + type: string + message: + description: The human readable description of the condition. + type: string + reason: + description: The reason for the condition or transition. + type: string + status: + description: The condition status [true,false]. + type: string + type: + description: The condition type. + type: string + required: + - category + - lastTransitionTime + - status + - type + type: object + type: array + migration: + description: Migration + properties: + completed: + description: Completed timestamp. + format: date-time + type: string + history: + description: History + items: + description: Snapshot + properties: + conditions: + description: List of conditions. + items: + description: Condition + properties: + category: + description: The condition category. + type: string + durable: + description: The condition is durable - never un-staged. + type: boolean + items: + description: A list of items referenced in the `Message`. + items: + type: string + type: array + lastTransitionTime: + description: When the last status transition occurred. + format: date-time + type: string + message: + description: The human readable description of the + condition. + type: string + reason: + description: The reason for the condition or transition. + type: string + status: + description: The condition status [true,false]. + type: string + type: + description: The condition type. + type: string + required: + - category + - lastTransitionTime + - status + - type + type: object + type: array + map: + description: Map. + properties: + network: + description: Snapshot object reference. + properties: + generation: + format: int64 + type: integer + name: + type: string + namespace: + type: string + uid: + description: UID is a type that holds unique ID + values, including UUIDs. Because we don't ONLY + use UUIDs, this is an alias to string. Being + a type captures intent and helps make sure that + UIDs and names do not get conflated. + type: string + required: + - generation + - name + - namespace + - uid + type: object + storage: + description: Snapshot object reference. + properties: + generation: + format: int64 + type: integer + name: + type: string + namespace: + type: string + uid: + description: UID is a type that holds unique ID + values, including UUIDs. Because we don't ONLY + use UUIDs, this is an alias to string. Being + a type captures intent and helps make sure that + UIDs and names do not get conflated. + type: string + required: + - generation + - name + - namespace + - uid + type: object + required: + - network + - storage + type: object + migration: + description: Migration + properties: + generation: + format: int64 + type: integer + name: + type: string + namespace: + type: string + uid: + description: UID is a type that holds unique ID values, + including UUIDs. Because we don't ONLY use UUIDs, + this is an alias to string. Being a type captures + intent and helps make sure that UIDs and names do + not get conflated. + type: string + required: + - generation + - name + - namespace + - uid + type: object + plan: + description: Plan + properties: + generation: + format: int64 + type: integer + name: + type: string + namespace: + type: string + uid: + description: UID is a type that holds unique ID values, + including UUIDs. Because we don't ONLY use UUIDs, + this is an alias to string. Being a type captures + intent and helps make sure that UIDs and names do + not get conflated. + type: string + required: + - generation + - name + - namespace + - uid + type: object + provider: + description: Provider + properties: + destination: + description: Snapshot object reference. + properties: + generation: + format: int64 + type: integer + name: + type: string + namespace: + type: string + uid: + description: UID is a type that holds unique ID + values, including UUIDs. Because we don't ONLY + use UUIDs, this is an alias to string. Being + a type captures intent and helps make sure that + UIDs and names do not get conflated. + type: string + required: + - generation + - name + - namespace + - uid + type: object + source: + description: Snapshot object reference. + properties: + generation: + format: int64 + type: integer + name: + type: string + namespace: + type: string + uid: + description: UID is a type that holds unique ID + values, including UUIDs. Because we don't ONLY + use UUIDs, this is an alias to string. Being + a type captures intent and helps make sure that + UIDs and names do not get conflated. + type: string + required: + - generation + - name + - namespace + - uid + type: object + required: + - destination + - source + type: object + required: + - map + - migration + - plan + - provider + type: object + type: array + started: + description: Started timestamp. + format: date-time + type: string + vms: + description: VM status + items: + description: VM Status + properties: + completed: + description: Completed timestamp. + format: date-time + type: string + conditions: + description: List of conditions. + items: + description: Condition + properties: + category: + description: The condition category. + type: string + durable: + description: The condition is durable - never un-staged. + type: boolean + items: + description: A list of items referenced in the `Message`. + items: + type: string + type: array + lastTransitionTime: + description: When the last status transition occurred. + format: date-time + type: string + message: + description: The human readable description of the + condition. + type: string + reason: + description: The reason for the condition or transition. + type: string + status: + description: The condition status [true,false]. + type: string + type: + description: The condition type. + type: string + required: + - category + - lastTransitionTime + - status + - type + type: object + type: array + error: + description: Errors + properties: + phase: + type: string + reasons: + items: + type: string + type: array + required: + - phase + - reasons + type: object + hooks: + description: Enable hooks. + items: + description: Plan hook. + properties: + hook: + description: Hook reference. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: 'If referring to a piece of an object + instead of an entire object, this string should + contain a valid JSON/Go field access statement, + such as desiredState.manifest.containers[2]. + For example, if the object reference is to a + container within a pod, this would take on a + value like: "spec.containers{name}" (where "name" + refers to the name of the container that triggered + the event) or if no container name is specified + "spec.containers[2]" (container with index 2 + in this pod). This syntax is chosen only to + have some well-defined way of referencing a + part of an object. TODO: this design is not + final and this field is subject to change in + the future.' + type: string + kind: + description: 'Kind of the referent. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + name: + description: 'Name of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More + info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + resourceVersion: + description: 'Specific resourceVersion to which + this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency' + type: string + uid: + description: 'UID of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids' + type: string + type: object + x-kubernetes-map-type: atomic + step: + description: Pipeline step. + type: string + required: + - hook + - step + type: object + type: array + id: + description: 'The object ID. vsphere: The managed object + ID.' + type: string + name: + description: 'An object Name. vsphere: A qualified name.' + type: string + namespace: + description: The VM Namespace Only relevant for an openshift + source. + type: string + phase: + description: Phase + type: string + pipeline: + description: Migration pipeline. + items: + description: Pipeline step. + properties: + annotations: + additionalProperties: + type: string + description: Annotations. + type: object + completed: + description: Completed timestamp. + format: date-time + type: string + description: + description: Name + type: string + error: + description: Error. + properties: + phase: + type: string + reasons: + items: + type: string + type: array + required: + - phase + - reasons + type: object + name: + description: Name. + type: string + phase: + description: Phase + type: string + progress: + description: Progress. + properties: + completed: + description: Completed units. + format: int64 + type: integer + total: + description: Total units. + format: int64 + type: integer + required: + - completed + - total + type: object + reason: + description: Reason + type: string + started: + description: Started timestamp. + format: date-time + type: string + tasks: + description: Nested tasks. + items: + description: Migration task. + properties: + annotations: + additionalProperties: + type: string + description: Annotations. + type: object + completed: + description: Completed timestamp. + format: date-time + type: string + description: + description: Name + type: string + error: + description: Error. + properties: + phase: + type: string + reasons: + items: + type: string + type: array + required: + - phase + - reasons + type: object + name: + description: Name. + type: string + phase: + description: Phase + type: string + progress: + description: Progress. + properties: + completed: + description: Completed units. + format: int64 + type: integer + total: + description: Total units. + format: int64 + type: integer + required: + - completed + - total + type: object + reason: + description: Reason + type: string + started: + description: Started timestamp. + format: date-time + type: string + required: + - name + - progress + type: object + type: array + required: + - name + - progress + type: object + type: array + restorePowerState: + description: Source VM power state before migration. + type: string + started: + description: Started timestamp. + format: date-time + type: string + type: + description: Type used to qualify the name. + type: string + warm: + description: Warm migration status + properties: + consecutiveFailures: + type: integer + failures: + type: integer + nextPrecopyAt: + format: date-time + type: string + precopies: + items: + description: Precopy durations + properties: + end: + format: date-time + type: string + snapshot: + type: string + start: + format: date-time + type: string + type: object + type: array + successes: + type: integer + required: + - consecutiveFailures + - failures + - successes + type: object + required: + - phase + - pipeline + type: object + type: array + type: object + observedGeneration: + description: The most recent generation observed by the controller. + format: int64 + type: integer + type: object + type: object + served: true + storage: true + subresources: + status: {} diff --git a/packages/types/src/generated/forklift/crds/forklift.konveyor.io_providers.yaml b/packages/types/src/generated/forklift/crds/forklift.konveyor.io_providers.yaml new file mode 100644 index 000000000..38471057c --- /dev/null +++ b/packages/types/src/generated/forklift/crds/forklift.konveyor.io_providers.yaml @@ -0,0 +1,169 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.10.0 + creationTimestamp: null + name: providers.forklift.konveyor.io +spec: + group: forklift.konveyor.io + names: + kind: Provider + listKind: ProviderList + plural: providers + singular: provider + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .spec.type + name: TYPE + type: string + - jsonPath: .status.phase + name: STATUS + type: string + - jsonPath: .status.conditions[?(@.type=='Ready')].status + name: READY + type: string + - jsonPath: .status.conditions[?(@.type=='ConnectionTestSucceeded')].status + name: CONNECTED + type: string + - jsonPath: .status.conditions[?(@.type=='InventoryCreated')].status + name: INVENTORY + type: string + - jsonPath: .spec.url + name: URL + type: string + - jsonPath: .metadata.creationTimestamp + name: AGE + type: date + name: v1beta1 + schema: + openAPIV3Schema: + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + description: Defines the desired state of Provider. + properties: + secret: + description: References a secret containing credentials and other + confidential information. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: 'If referring to a piece of an object instead of + an entire object, this string should contain a valid JSON/Go + field access statement, such as desiredState.manifest.containers[2]. + For example, if the object reference is to a container within + a pod, this would take on a value like: "spec.containers{name}" + (where "name" refers to the name of the container that triggered + the event) or if no container name is specified "spec.containers[2]" + (container with index 2 in this pod). This syntax is chosen + only to have some well-defined way of referencing a part of + an object. TODO: this design is not final and this field is + subject to change in the future.' + type: string + kind: + description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + resourceVersion: + description: 'Specific resourceVersion to which this reference + is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency' + type: string + uid: + description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids' + type: string + type: object + x-kubernetes-map-type: atomic + settings: + additionalProperties: + type: string + description: Provider settings. + type: object + type: + description: Provider type. + type: string + url: + description: The provider URL. Empty may be used for the `host` provider. + type: string + required: + - secret + - type + type: object + status: + description: ProviderStatus defines the observed state of Provider + properties: + conditions: + description: List of conditions. + items: + description: Condition + properties: + category: + description: The condition category. + type: string + durable: + description: The condition is durable - never un-staged. + type: boolean + items: + description: A list of items referenced in the `Message`. + items: + type: string + type: array + lastTransitionTime: + description: When the last status transition occurred. + format: date-time + type: string + message: + description: The human readable description of the condition. + type: string + reason: + description: The reason for the condition or transition. + type: string + status: + description: The condition status [true,false]. + type: string + type: + description: The condition type. + type: string + required: + - category + - lastTransitionTime + - status + - type + type: object + type: array + fingerprint: + description: Fingerprint. + type: string + observedGeneration: + description: The most recent generation observed by the controller. + format: int64 + type: integer + phase: + description: Current life cycle phase of the provider. + type: string + type: object + type: object + served: true + storage: true + subresources: + status: {} diff --git a/packages/types/src/generated/forklift/crds/forklift.konveyor.io_storagemaps.yaml b/packages/types/src/generated/forklift/crds/forklift.konveyor.io_storagemaps.yaml new file mode 100644 index 000000000..a7f610000 --- /dev/null +++ b/packages/types/src/generated/forklift/crds/forklift.konveyor.io_storagemaps.yaml @@ -0,0 +1,249 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.10.0 + creationTimestamp: null + name: storagemaps.forklift.konveyor.io +spec: + group: forklift.konveyor.io + names: + kind: StorageMap + listKind: StorageMapList + plural: storagemaps + singular: storagemap + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .status.conditions[?(@.type=='Ready')].status + name: READY + type: string + - jsonPath: .metadata.creationTimestamp + name: AGE + type: date + name: v1beta1 + schema: + openAPIV3Schema: + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + description: Storage map spec. + properties: + map: + description: Map. + items: + description: Mapped storage. + properties: + destination: + description: Destination storage. + properties: + accessMode: + description: Access mode. + enum: + - ReadWriteOnce + - ReadWriteMany + - ReadOnlyMany + type: string + storageClass: + description: A storage class. + type: string + volumeMode: + description: Volume mode. + enum: + - Filesystem + - Block + type: string + required: + - storageClass + type: object + source: + description: Source storage. + properties: + id: + description: 'The object ID. vsphere: The managed object + ID.' + type: string + name: + description: 'An object Name. vsphere: A qualified name.' + type: string + namespace: + description: The VM Namespace Only relevant for an openshift + source. + type: string + type: + description: Type used to qualify the name. + type: string + type: object + required: + - destination + - source + type: object + type: array + provider: + description: Provider + properties: + destination: + description: Destination. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: 'If referring to a piece of an object instead + of an entire object, this string should contain a valid + JSON/Go field access statement, such as desiredState.manifest.containers[2]. + For example, if the object reference is to a container within + a pod, this would take on a value like: "spec.containers{name}" + (where "name" refers to the name of the container that triggered + the event) or if no container name is specified "spec.containers[2]" + (container with index 2 in this pod). This syntax is chosen + only to have some well-defined way of referencing a part + of an object. TODO: this design is not final and this field + is subject to change in the future.' + type: string + kind: + description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + resourceVersion: + description: 'Specific resourceVersion to which this reference + is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency' + type: string + uid: + description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids' + type: string + type: object + x-kubernetes-map-type: atomic + source: + description: Source. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: 'If referring to a piece of an object instead + of an entire object, this string should contain a valid + JSON/Go field access statement, such as desiredState.manifest.containers[2]. + For example, if the object reference is to a container within + a pod, this would take on a value like: "spec.containers{name}" + (where "name" refers to the name of the container that triggered + the event) or if no container name is specified "spec.containers[2]" + (container with index 2 in this pod). This syntax is chosen + only to have some well-defined way of referencing a part + of an object. TODO: this design is not final and this field + is subject to change in the future.' + type: string + kind: + description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + resourceVersion: + description: 'Specific resourceVersion to which this reference + is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency' + type: string + uid: + description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids' + type: string + type: object + x-kubernetes-map-type: atomic + required: + - destination + - source + type: object + required: + - map + - provider + type: object + status: + description: MapStatus defines the observed state of Maps. + properties: + conditions: + description: List of conditions. + items: + description: Condition + properties: + category: + description: The condition category. + type: string + durable: + description: The condition is durable - never un-staged. + type: boolean + items: + description: A list of items referenced in the `Message`. + items: + type: string + type: array + lastTransitionTime: + description: When the last status transition occurred. + format: date-time + type: string + message: + description: The human readable description of the condition. + type: string + reason: + description: The reason for the condition or transition. + type: string + status: + description: The condition status [true,false]. + type: string + type: + description: The condition type. + type: string + required: + - category + - lastTransitionTime + - status + - type + type: object + type: array + observedGeneration: + description: The most recent generation observed by the controller. + format: int64 + type: integer + references: + items: + description: Source reference. Either the ID or Name must be specified. + properties: + id: + description: 'The object ID. vsphere: The managed object ID.' + type: string + name: + description: 'An object Name. vsphere: A qualified name.' + type: string + namespace: + description: The VM Namespace Only relevant for an openshift + source. + type: string + type: + description: Type used to qualify the name. + type: string + type: object + type: array + type: object + type: object + served: true + storage: true + subresources: + status: {} diff --git a/packages/types/src/generated/forklift/index.ts b/packages/types/src/generated/forklift/index.ts new file mode 100644 index 000000000..5deab8eac --- /dev/null +++ b/packages/types/src/generated/forklift/index.ts @@ -0,0 +1,2 @@ +export * from './models'; +export * from './constants'; \ No newline at end of file diff --git a/packages/types/src/models/IoK8sApimachineryPkgApisMetaV1ObjectMeta.ts b/packages/types/src/generated/forklift/models/IoK8sApimachineryPkgApisMetaV1ObjectMeta.ts similarity index 97% rename from packages/types/src/models/IoK8sApimachineryPkgApisMetaV1ObjectMeta.ts rename to packages/types/src/generated/forklift/models/IoK8sApimachineryPkgApisMetaV1ObjectMeta.ts index cca22a1be..8528c15e7 100644 --- a/packages/types/src/models/IoK8sApimachineryPkgApisMetaV1ObjectMeta.ts +++ b/packages/types/src/generated/forklift/models/IoK8sApimachineryPkgApisMetaV1ObjectMeta.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1ForkliftController.ts b/packages/types/src/generated/forklift/models/V1beta1ForkliftController.ts similarity index 89% rename from packages/types/src/models/V1beta1ForkliftController.ts rename to packages/types/src/generated/forklift/models/V1beta1ForkliftController.ts index f883f386a..b533c4153 100644 --- a/packages/types/src/models/V1beta1ForkliftController.ts +++ b/packages/types/src/generated/forklift/models/V1beta1ForkliftController.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1Hook.ts b/packages/types/src/generated/forklift/models/V1beta1Hook.ts similarity index 88% rename from packages/types/src/models/V1beta1Hook.ts rename to packages/types/src/generated/forklift/models/V1beta1Hook.ts index 390751de2..fc1e31bb9 100644 --- a/packages/types/src/models/V1beta1Hook.ts +++ b/packages/types/src/generated/forklift/models/V1beta1Hook.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1HookSpec.ts b/packages/types/src/generated/forklift/models/V1beta1HookSpec.ts similarity index 78% rename from packages/types/src/models/V1beta1HookSpec.ts rename to packages/types/src/generated/forklift/models/V1beta1HookSpec.ts index 2216ec3dd..7f210d4b6 100644 --- a/packages/types/src/models/V1beta1HookSpec.ts +++ b/packages/types/src/generated/forklift/models/V1beta1HookSpec.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1HookStatus.ts b/packages/types/src/generated/forklift/models/V1beta1HookStatus.ts similarity index 76% rename from packages/types/src/models/V1beta1HookStatus.ts rename to packages/types/src/generated/forklift/models/V1beta1HookStatus.ts index 25ea82c0a..ca7bcaf42 100644 --- a/packages/types/src/models/V1beta1HookStatus.ts +++ b/packages/types/src/generated/forklift/models/V1beta1HookStatus.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1HookStatusConditions.ts b/packages/types/src/generated/forklift/models/V1beta1HookStatusConditions.ts similarity index 85% rename from packages/types/src/models/V1beta1HookStatusConditions.ts rename to packages/types/src/generated/forklift/models/V1beta1HookStatusConditions.ts index dbbbe1d81..785614158 100644 --- a/packages/types/src/models/V1beta1HookStatusConditions.ts +++ b/packages/types/src/generated/forklift/models/V1beta1HookStatusConditions.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1Host.ts b/packages/types/src/generated/forklift/models/V1beta1Host.ts similarity index 88% rename from packages/types/src/models/V1beta1Host.ts rename to packages/types/src/generated/forklift/models/V1beta1Host.ts index 99892a791..fad4d5507 100644 --- a/packages/types/src/models/V1beta1Host.ts +++ b/packages/types/src/generated/forklift/models/V1beta1Host.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1HostSpec.ts b/packages/types/src/generated/forklift/models/V1beta1HostSpec.ts similarity index 84% rename from packages/types/src/models/V1beta1HostSpec.ts rename to packages/types/src/generated/forklift/models/V1beta1HostSpec.ts index 6bbd1517a..ed1aa154a 100644 --- a/packages/types/src/models/V1beta1HostSpec.ts +++ b/packages/types/src/generated/forklift/models/V1beta1HostSpec.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes @@ -37,6 +37,12 @@ export interface V1beta1HostSpec { * @required {false} */ name?: string; + /** namespace + * The VM Namespace Only relevant for an openshift source. + * + * @required {false} + */ + namespace?: string; /** provider * Provider * diff --git a/packages/types/src/models/V1beta1HostSpecProvider.ts b/packages/types/src/generated/forklift/models/V1beta1HostSpecProvider.ts similarity index 91% rename from packages/types/src/models/V1beta1HostSpecProvider.ts rename to packages/types/src/generated/forklift/models/V1beta1HostSpecProvider.ts index e27ab66e7..b1a9ab950 100644 --- a/packages/types/src/models/V1beta1HostSpecProvider.ts +++ b/packages/types/src/generated/forklift/models/V1beta1HostSpecProvider.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1HostSpecSecret.ts b/packages/types/src/generated/forklift/models/V1beta1HostSpecSecret.ts similarity index 91% rename from packages/types/src/models/V1beta1HostSpecSecret.ts rename to packages/types/src/generated/forklift/models/V1beta1HostSpecSecret.ts index d5a9192a7..62985c027 100644 --- a/packages/types/src/models/V1beta1HostSpecSecret.ts +++ b/packages/types/src/generated/forklift/models/V1beta1HostSpecSecret.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1HostStatus.ts b/packages/types/src/generated/forklift/models/V1beta1HostStatus.ts similarity index 77% rename from packages/types/src/models/V1beta1HostStatus.ts rename to packages/types/src/generated/forklift/models/V1beta1HostStatus.ts index ab8a8a1e9..9c8fb66bb 100644 --- a/packages/types/src/models/V1beta1HostStatus.ts +++ b/packages/types/src/generated/forklift/models/V1beta1HostStatus.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1HostStatusConditions.ts b/packages/types/src/generated/forklift/models/V1beta1HostStatusConditions.ts similarity index 85% rename from packages/types/src/models/V1beta1HostStatusConditions.ts rename to packages/types/src/generated/forklift/models/V1beta1HostStatusConditions.ts index 575910fda..212289b8f 100644 --- a/packages/types/src/models/V1beta1HostStatusConditions.ts +++ b/packages/types/src/generated/forklift/models/V1beta1HostStatusConditions.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1Migration.ts b/packages/types/src/generated/forklift/models/V1beta1Migration.ts similarity index 89% rename from packages/types/src/models/V1beta1Migration.ts rename to packages/types/src/generated/forklift/models/V1beta1Migration.ts index d7739d683..0495d8d21 100644 --- a/packages/types/src/models/V1beta1Migration.ts +++ b/packages/types/src/generated/forklift/models/V1beta1Migration.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1MigrationSpec.ts b/packages/types/src/generated/forklift/models/V1beta1MigrationSpec.ts similarity index 82% rename from packages/types/src/models/V1beta1MigrationSpec.ts rename to packages/types/src/generated/forklift/models/V1beta1MigrationSpec.ts index b2b8f555c..fa9f2d704 100644 --- a/packages/types/src/models/V1beta1MigrationSpec.ts +++ b/packages/types/src/generated/forklift/models/V1beta1MigrationSpec.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1MigrationSpecCancel.ts b/packages/types/src/generated/forklift/models/V1beta1MigrationSpecCancel.ts similarity index 74% rename from packages/types/src/models/V1beta1MigrationSpecCancel.ts rename to packages/types/src/generated/forklift/models/V1beta1MigrationSpecCancel.ts index b7ef94e2d..bde9d91a4 100644 --- a/packages/types/src/models/V1beta1MigrationSpecCancel.ts +++ b/packages/types/src/generated/forklift/models/V1beta1MigrationSpecCancel.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes @@ -28,6 +28,12 @@ export interface V1beta1MigrationSpecCancel { * @required {false} */ name?: string; + /** namespace + * The VM Namespace Only relevant for an openshift source. + * + * @required {false} + */ + namespace?: string; /** type * Type used to qualify the name. * diff --git a/packages/types/src/models/V1beta1MigrationSpecPlan.ts b/packages/types/src/generated/forklift/models/V1beta1MigrationSpecPlan.ts similarity index 91% rename from packages/types/src/models/V1beta1MigrationSpecPlan.ts rename to packages/types/src/generated/forklift/models/V1beta1MigrationSpecPlan.ts index 6ffb469b7..9e75d8886 100644 --- a/packages/types/src/models/V1beta1MigrationSpecPlan.ts +++ b/packages/types/src/generated/forklift/models/V1beta1MigrationSpecPlan.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1MigrationStatus.ts b/packages/types/src/generated/forklift/models/V1beta1MigrationStatus.ts similarity index 85% rename from packages/types/src/models/V1beta1MigrationStatus.ts rename to packages/types/src/generated/forklift/models/V1beta1MigrationStatus.ts index 1dc830e13..8dce9e945 100644 --- a/packages/types/src/models/V1beta1MigrationStatus.ts +++ b/packages/types/src/generated/forklift/models/V1beta1MigrationStatus.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1MigrationStatusConditions.ts b/packages/types/src/generated/forklift/models/V1beta1MigrationStatusConditions.ts similarity index 85% rename from packages/types/src/models/V1beta1MigrationStatusConditions.ts rename to packages/types/src/generated/forklift/models/V1beta1MigrationStatusConditions.ts index 50cc28998..32bc34c50 100644 --- a/packages/types/src/models/V1beta1MigrationStatusConditions.ts +++ b/packages/types/src/generated/forklift/models/V1beta1MigrationStatusConditions.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1MigrationStatusVms.ts b/packages/types/src/generated/forklift/models/V1beta1MigrationStatusVms.ts similarity index 90% rename from packages/types/src/models/V1beta1MigrationStatusVms.ts rename to packages/types/src/generated/forklift/models/V1beta1MigrationStatusVms.ts index 16807af2f..b42d535ff 100644 --- a/packages/types/src/models/V1beta1MigrationStatusVms.ts +++ b/packages/types/src/generated/forklift/models/V1beta1MigrationStatusVms.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes @@ -59,6 +59,12 @@ export interface V1beta1MigrationStatusVms { * @required {false} */ name?: string; + /** namespace + * The VM Namespace Only relevant for an openshift source. + * + * @required {false} + */ + namespace?: string; /** phase * Phase * diff --git a/packages/types/src/models/V1beta1MigrationStatusVmsConditions.ts b/packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsConditions.ts similarity index 85% rename from packages/types/src/models/V1beta1MigrationStatusVmsConditions.ts rename to packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsConditions.ts index cd2e55aa4..2d3944d4d 100644 --- a/packages/types/src/models/V1beta1MigrationStatusVmsConditions.ts +++ b/packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsConditions.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1MigrationStatusVmsError.ts b/packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsError.ts similarity index 65% rename from packages/types/src/models/V1beta1MigrationStatusVmsError.ts rename to packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsError.ts index 9d2bb3df8..f71fa51f8 100644 --- a/packages/types/src/models/V1beta1MigrationStatusVmsError.ts +++ b/packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsError.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1MigrationStatusVmsHooks.ts b/packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsHooks.ts similarity index 73% rename from packages/types/src/models/V1beta1MigrationStatusVmsHooks.ts rename to packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsHooks.ts index 279a2b21f..5e0b30933 100644 --- a/packages/types/src/models/V1beta1MigrationStatusVmsHooks.ts +++ b/packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsHooks.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1MigrationStatusVmsHooksHook.ts b/packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsHooksHook.ts similarity index 91% rename from packages/types/src/models/V1beta1MigrationStatusVmsHooksHook.ts rename to packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsHooksHook.ts index db2c96e51..fc231dd68 100644 --- a/packages/types/src/models/V1beta1MigrationStatusVmsHooksHook.ts +++ b/packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsHooksHook.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1MigrationStatusVmsPipeline.ts b/packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsPipeline.ts similarity index 89% rename from packages/types/src/models/V1beta1MigrationStatusVmsPipeline.ts rename to packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsPipeline.ts index 99d229a7d..467087873 100644 --- a/packages/types/src/models/V1beta1MigrationStatusVmsPipeline.ts +++ b/packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsPipeline.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1MigrationStatusVmsPipelineError.ts b/packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsPipelineError.ts similarity index 66% rename from packages/types/src/models/V1beta1MigrationStatusVmsPipelineError.ts rename to packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsPipelineError.ts index 31c155dc0..fec6648ca 100644 --- a/packages/types/src/models/V1beta1MigrationStatusVmsPipelineError.ts +++ b/packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsPipelineError.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1MigrationStatusVmsPipelineProgress.ts b/packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsPipelineProgress.ts similarity index 73% rename from packages/types/src/models/V1beta1MigrationStatusVmsPipelineProgress.ts rename to packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsPipelineProgress.ts index 5472f9e63..29bd33df9 100644 --- a/packages/types/src/models/V1beta1MigrationStatusVmsPipelineProgress.ts +++ b/packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsPipelineProgress.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1MigrationStatusVmsPipelineTasks.ts b/packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsPipelineTasks.ts similarity index 87% rename from packages/types/src/models/V1beta1MigrationStatusVmsPipelineTasks.ts rename to packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsPipelineTasks.ts index 40c6be8df..d787db74f 100644 --- a/packages/types/src/models/V1beta1MigrationStatusVmsPipelineTasks.ts +++ b/packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsPipelineTasks.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1MigrationStatusVmsPipelineTasksError.ts b/packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsPipelineTasksError.ts similarity index 66% rename from packages/types/src/models/V1beta1MigrationStatusVmsPipelineTasksError.ts rename to packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsPipelineTasksError.ts index 67e505260..dff6e962f 100644 --- a/packages/types/src/models/V1beta1MigrationStatusVmsPipelineTasksError.ts +++ b/packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsPipelineTasksError.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1MigrationStatusVmsPipelineTasksProgress.ts b/packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsPipelineTasksProgress.ts similarity index 73% rename from packages/types/src/models/V1beta1MigrationStatusVmsPipelineTasksProgress.ts rename to packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsPipelineTasksProgress.ts index a8e6f6aec..1b69bf04f 100644 --- a/packages/types/src/models/V1beta1MigrationStatusVmsPipelineTasksProgress.ts +++ b/packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsPipelineTasksProgress.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1MigrationStatusVmsWarm.ts b/packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsWarm.ts similarity index 83% rename from packages/types/src/models/V1beta1MigrationStatusVmsWarm.ts rename to packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsWarm.ts index d9ff6bbfb..3f55ea159 100644 --- a/packages/types/src/models/V1beta1MigrationStatusVmsWarm.ts +++ b/packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsWarm.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1MigrationStatusVmsWarmPrecopies.ts b/packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsWarmPrecopies.ts similarity index 72% rename from packages/types/src/models/V1beta1MigrationStatusVmsWarmPrecopies.ts rename to packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsWarmPrecopies.ts index 353cc9a1c..8194333cd 100644 --- a/packages/types/src/models/V1beta1MigrationStatusVmsWarmPrecopies.ts +++ b/packages/types/src/generated/forklift/models/V1beta1MigrationStatusVmsWarmPrecopies.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1NetworkMap.ts b/packages/types/src/generated/forklift/models/V1beta1NetworkMap.ts similarity index 88% rename from packages/types/src/models/V1beta1NetworkMap.ts rename to packages/types/src/generated/forklift/models/V1beta1NetworkMap.ts index c58fbf43f..1b1db6dca 100644 --- a/packages/types/src/models/V1beta1NetworkMap.ts +++ b/packages/types/src/generated/forklift/models/V1beta1NetworkMap.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1NetworkMapSpec.ts b/packages/types/src/generated/forklift/models/V1beta1NetworkMapSpec.ts similarity index 75% rename from packages/types/src/models/V1beta1NetworkMapSpec.ts rename to packages/types/src/generated/forklift/models/V1beta1NetworkMapSpec.ts index 1c254e1ab..902e11243 100644 --- a/packages/types/src/models/V1beta1NetworkMapSpec.ts +++ b/packages/types/src/generated/forklift/models/V1beta1NetworkMapSpec.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1NetworkMapSpecMap.ts b/packages/types/src/generated/forklift/models/V1beta1NetworkMapSpecMap.ts similarity index 77% rename from packages/types/src/models/V1beta1NetworkMapSpecMap.ts rename to packages/types/src/generated/forklift/models/V1beta1NetworkMapSpecMap.ts index 6f99ffb65..ff62f977a 100644 --- a/packages/types/src/models/V1beta1NetworkMapSpecMap.ts +++ b/packages/types/src/generated/forklift/models/V1beta1NetworkMapSpecMap.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1NetworkMapSpecMapDestination.ts b/packages/types/src/generated/forklift/models/V1beta1NetworkMapSpecMapDestination.ts similarity index 74% rename from packages/types/src/models/V1beta1NetworkMapSpecMapDestination.ts rename to packages/types/src/generated/forklift/models/V1beta1NetworkMapSpecMapDestination.ts index b949e326b..4c6cbbed7 100644 --- a/packages/types/src/models/V1beta1NetworkMapSpecMapDestination.ts +++ b/packages/types/src/generated/forklift/models/V1beta1NetworkMapSpecMapDestination.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1NetworkMapSpecMapSource.ts b/packages/types/src/generated/forklift/models/V1beta1NetworkMapSpecMapSource.ts similarity index 67% rename from packages/types/src/models/V1beta1NetworkMapSpecMapSource.ts rename to packages/types/src/generated/forklift/models/V1beta1NetworkMapSpecMapSource.ts index ec61debf9..af80af972 100644 --- a/packages/types/src/models/V1beta1NetworkMapSpecMapSource.ts +++ b/packages/types/src/generated/forklift/models/V1beta1NetworkMapSpecMapSource.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes @@ -29,7 +29,7 @@ export interface V1beta1NetworkMapSpecMapSource { */ name?: string; /** namespace - * Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * The VM Namespace Only relevant for an openshift source. * * @required {false} */ diff --git a/packages/types/src/models/V1beta1NetworkMapSpecProvider.ts b/packages/types/src/generated/forklift/models/V1beta1NetworkMapSpecProvider.ts similarity index 77% rename from packages/types/src/models/V1beta1NetworkMapSpecProvider.ts rename to packages/types/src/generated/forklift/models/V1beta1NetworkMapSpecProvider.ts index 9023d80ea..72bae1692 100644 --- a/packages/types/src/models/V1beta1NetworkMapSpecProvider.ts +++ b/packages/types/src/generated/forklift/models/V1beta1NetworkMapSpecProvider.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1NetworkMapSpecProviderDestination.ts b/packages/types/src/generated/forklift/models/V1beta1NetworkMapSpecProviderDestination.ts similarity index 91% rename from packages/types/src/models/V1beta1NetworkMapSpecProviderDestination.ts rename to packages/types/src/generated/forklift/models/V1beta1NetworkMapSpecProviderDestination.ts index cdbabd7e3..fb3b82ab3 100644 --- a/packages/types/src/models/V1beta1NetworkMapSpecProviderDestination.ts +++ b/packages/types/src/generated/forklift/models/V1beta1NetworkMapSpecProviderDestination.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1NetworkMapSpecProviderSource.ts b/packages/types/src/generated/forklift/models/V1beta1NetworkMapSpecProviderSource.ts similarity index 91% rename from packages/types/src/models/V1beta1NetworkMapSpecProviderSource.ts rename to packages/types/src/generated/forklift/models/V1beta1NetworkMapSpecProviderSource.ts index 0c66885a6..ca22908b8 100644 --- a/packages/types/src/models/V1beta1NetworkMapSpecProviderSource.ts +++ b/packages/types/src/generated/forklift/models/V1beta1NetworkMapSpecProviderSource.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1NetworkMapStatus.ts b/packages/types/src/generated/forklift/models/V1beta1NetworkMapStatus.ts similarity index 82% rename from packages/types/src/models/V1beta1NetworkMapStatus.ts rename to packages/types/src/generated/forklift/models/V1beta1NetworkMapStatus.ts index 0ae21f1bd..c008fe3fb 100644 --- a/packages/types/src/models/V1beta1NetworkMapStatus.ts +++ b/packages/types/src/generated/forklift/models/V1beta1NetworkMapStatus.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1NetworkMapStatusConditions.ts b/packages/types/src/generated/forklift/models/V1beta1NetworkMapStatusConditions.ts similarity index 85% rename from packages/types/src/models/V1beta1NetworkMapStatusConditions.ts rename to packages/types/src/generated/forklift/models/V1beta1NetworkMapStatusConditions.ts index 339151440..6100a972d 100644 --- a/packages/types/src/models/V1beta1NetworkMapStatusConditions.ts +++ b/packages/types/src/generated/forklift/models/V1beta1NetworkMapStatusConditions.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1NetworkMapStatusReferences.ts b/packages/types/src/generated/forklift/models/V1beta1NetworkMapStatusReferences.ts similarity index 74% rename from packages/types/src/models/V1beta1NetworkMapStatusReferences.ts rename to packages/types/src/generated/forklift/models/V1beta1NetworkMapStatusReferences.ts index 5ef23dd08..55183b6f9 100644 --- a/packages/types/src/models/V1beta1NetworkMapStatusReferences.ts +++ b/packages/types/src/generated/forklift/models/V1beta1NetworkMapStatusReferences.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes @@ -28,6 +28,12 @@ export interface V1beta1NetworkMapStatusReferences { * @required {false} */ name?: string; + /** namespace + * The VM Namespace Only relevant for an openshift source. + * + * @required {false} + */ + namespace?: string; /** type * Type used to qualify the name. * diff --git a/packages/types/src/generated/forklift/models/V1beta1OpenstackVolumePopulator.ts b/packages/types/src/generated/forklift/models/V1beta1OpenstackVolumePopulator.ts new file mode 100644 index 000000000..fdb3f4f3c --- /dev/null +++ b/packages/types/src/generated/forklift/models/V1beta1OpenstackVolumePopulator.ts @@ -0,0 +1,46 @@ +/** + * + * + * + * The version of the OpenAPI document: + * Contact Email: + * License: + * + * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). + * https://github.com/yaacov/crdtoapi/README.crdtotypes + */ + +import { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { V1beta1OpenstackVolumePopulatorSpec } from './V1beta1OpenstackVolumePopulatorSpec'; +import { V1beta1OpenstackVolumePopulatorStatus } from './V1beta1OpenstackVolumePopulatorStatus'; + +export interface V1beta1OpenstackVolumePopulator { + /** apiVersion + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * + * @required {true} + */ + apiVersion: string; + /** kind + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @required {true} + */ + kind: string; + /** metadata + * + * @required {false} + * @originalType {V1beta1OpenstackVolumePopulatorMetadata} + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** spec + * + * @required {false} + */ + spec?: V1beta1OpenstackVolumePopulatorSpec; + /** status + * + * @required {false} + */ + status?: V1beta1OpenstackVolumePopulatorStatus; +} diff --git a/packages/types/src/generated/forklift/models/V1beta1OpenstackVolumePopulatorSpec.ts b/packages/types/src/generated/forklift/models/V1beta1OpenstackVolumePopulatorSpec.ts new file mode 100644 index 000000000..2372d32e2 --- /dev/null +++ b/packages/types/src/generated/forklift/models/V1beta1OpenstackVolumePopulatorSpec.ts @@ -0,0 +1,37 @@ +/** + * + * + * + * The version of the OpenAPI document: + * Contact Email: + * License: + * + * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). + * https://github.com/yaacov/crdtoapi/README.crdtotypes + */ + +import { V1beta1OpenstackVolumePopulatorSpecTransferNetwork } from './V1beta1OpenstackVolumePopulatorSpecTransferNetwork'; + +export interface V1beta1OpenstackVolumePopulatorSpec { + /** identityUrl + * + * @required {true} + */ + identityUrl: string; + /** imageId + * + * @required {true} + */ + imageId: string; + /** secretName + * + * @required {true} + */ + secretName: string; + /** transferNetwork + * The network attachment definition that should be used for disk transfer. + * + * @required {false} + */ + transferNetwork?: V1beta1OpenstackVolumePopulatorSpecTransferNetwork; +} diff --git a/packages/types/src/generated/forklift/models/V1beta1OpenstackVolumePopulatorSpecTransferNetwork.ts b/packages/types/src/generated/forklift/models/V1beta1OpenstackVolumePopulatorSpecTransferNetwork.ts new file mode 100644 index 000000000..03084b453 --- /dev/null +++ b/packages/types/src/generated/forklift/models/V1beta1OpenstackVolumePopulatorSpecTransferNetwork.ts @@ -0,0 +1,61 @@ +/** + * + * + * + * The version of the OpenAPI document: + * Contact Email: + * License: + * + * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). + * https://github.com/yaacov/crdtoapi/README.crdtotypes + */ + +/** + * The network attachment definition that should be used for disk transfer. + * + * @export + */ +export interface V1beta1OpenstackVolumePopulatorSpecTransferNetwork { + /** apiVersion + * API version of the referent. + * + * @required {false} + */ + apiVersion?: string; + /** fieldPath + * If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future. + * + * @required {false} + */ + fieldPath?: string; + /** kind + * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @required {false} + */ + kind?: string; + /** name + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * + * @required {false} + */ + name?: string; + /** namespace + * Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * + * @required {false} + */ + namespace?: string; + /** resourceVersion + * Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * + * @required {false} + */ + resourceVersion?: string; + /** uid + * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + * + * @required {false} + */ + uid?: string; +} diff --git a/packages/types/src/generated/forklift/models/V1beta1OpenstackVolumePopulatorStatus.ts b/packages/types/src/generated/forklift/models/V1beta1OpenstackVolumePopulatorStatus.ts new file mode 100644 index 000000000..f016ce197 --- /dev/null +++ b/packages/types/src/generated/forklift/models/V1beta1OpenstackVolumePopulatorStatus.ts @@ -0,0 +1,19 @@ +/** + * + * + * + * The version of the OpenAPI document: + * Contact Email: + * License: + * + * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). + * https://github.com/yaacov/crdtoapi/README.crdtotypes + */ + +export interface V1beta1OpenstackVolumePopulatorStatus { + /** progress + * + * @required {false} + */ + progress?: string; +} diff --git a/packages/types/src/models/V1beta1OvirtVolumePopulator.ts b/packages/types/src/generated/forklift/models/V1beta1OvirtVolumePopulator.ts similarity index 88% rename from packages/types/src/models/V1beta1OvirtVolumePopulator.ts rename to packages/types/src/generated/forklift/models/V1beta1OvirtVolumePopulator.ts index 1d4406dd3..31ff0e6ba 100644 --- a/packages/types/src/models/V1beta1OvirtVolumePopulator.ts +++ b/packages/types/src/generated/forklift/models/V1beta1OvirtVolumePopulator.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1OvirtVolumePopulatorSpec.ts b/packages/types/src/generated/forklift/models/V1beta1OvirtVolumePopulatorSpec.ts similarity index 51% rename from packages/types/src/models/V1beta1OvirtVolumePopulatorSpec.ts rename to packages/types/src/generated/forklift/models/V1beta1OvirtVolumePopulatorSpec.ts index e29c1d002..93b734a7d 100644 --- a/packages/types/src/models/V1beta1OvirtVolumePopulatorSpec.ts +++ b/packages/types/src/generated/forklift/models/V1beta1OvirtVolumePopulatorSpec.ts @@ -1,15 +1,17 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes */ +import { V1beta1OvirtVolumePopulatorSpecTransferNetwork } from './V1beta1OvirtVolumePopulatorSpecTransferNetwork'; + export interface V1beta1OvirtVolumePopulatorSpec { /** diskId * @@ -26,4 +28,10 @@ export interface V1beta1OvirtVolumePopulatorSpec { * @required {true} */ engineUrl: string; + /** transferNetwork + * The network attachment definition that should be used for disk transfer. + * + * @required {false} + */ + transferNetwork?: V1beta1OvirtVolumePopulatorSpecTransferNetwork; } diff --git a/packages/types/src/generated/forklift/models/V1beta1OvirtVolumePopulatorSpecTransferNetwork.ts b/packages/types/src/generated/forklift/models/V1beta1OvirtVolumePopulatorSpecTransferNetwork.ts new file mode 100644 index 000000000..ce40d77b3 --- /dev/null +++ b/packages/types/src/generated/forklift/models/V1beta1OvirtVolumePopulatorSpecTransferNetwork.ts @@ -0,0 +1,61 @@ +/** + * + * + * + * The version of the OpenAPI document: + * Contact Email: + * License: + * + * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). + * https://github.com/yaacov/crdtoapi/README.crdtotypes + */ + +/** + * The network attachment definition that should be used for disk transfer. + * + * @export + */ +export interface V1beta1OvirtVolumePopulatorSpecTransferNetwork { + /** apiVersion + * API version of the referent. + * + * @required {false} + */ + apiVersion?: string; + /** fieldPath + * If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future. + * + * @required {false} + */ + fieldPath?: string; + /** kind + * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @required {false} + */ + kind?: string; + /** name + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * + * @required {false} + */ + name?: string; + /** namespace + * Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * + * @required {false} + */ + namespace?: string; + /** resourceVersion + * Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * + * @required {false} + */ + resourceVersion?: string; + /** uid + * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + * + * @required {false} + */ + uid?: string; +} diff --git a/packages/types/src/models/V1beta1OvirtVolumePopulatorStatus.ts b/packages/types/src/generated/forklift/models/V1beta1OvirtVolumePopulatorStatus.ts similarity index 50% rename from packages/types/src/models/V1beta1OvirtVolumePopulatorStatus.ts rename to packages/types/src/generated/forklift/models/V1beta1OvirtVolumePopulatorStatus.ts index e79506acb..fbd731335 100644 --- a/packages/types/src/models/V1beta1OvirtVolumePopulatorStatus.ts +++ b/packages/types/src/generated/forklift/models/V1beta1OvirtVolumePopulatorStatus.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes @@ -13,7 +13,7 @@ export interface V1beta1OvirtVolumePopulatorStatus { /** progress * - * @required {true} + * @required {false} */ - progress: string; + progress?: string; } diff --git a/packages/types/src/models/V1beta1Plan.ts b/packages/types/src/generated/forklift/models/V1beta1Plan.ts similarity index 88% rename from packages/types/src/models/V1beta1Plan.ts rename to packages/types/src/generated/forklift/models/V1beta1Plan.ts index 3d33c27b0..c6814afdb 100644 --- a/packages/types/src/models/V1beta1Plan.ts +++ b/packages/types/src/generated/forklift/models/V1beta1Plan.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanSpec.ts b/packages/types/src/generated/forklift/models/V1beta1PlanSpec.ts similarity index 85% rename from packages/types/src/models/V1beta1PlanSpec.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanSpec.ts index 02f73d2d3..a3952e3ab 100644 --- a/packages/types/src/models/V1beta1PlanSpec.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanSpec.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes @@ -39,20 +39,18 @@ export interface V1beta1PlanSpec { * @required {true} */ map: V1beta1PlanSpecMap; - /** provider - * Providers. + /** preserveClusterCpuModel + * Preserve the CPU model and flags the VM runs with in its oVirt cluster. * * @required {false} */ - provider?: V1beta1PlanSpecProvider; - - /** preserveClusterCpuModel - * Allow the perseverance of the cluster CPU model from oVirt provider. + preserveClusterCpuModel?: boolean; + /** provider + * Providers. * * @required {false} */ - preserveClusterCpuModel?: boolean; - + provider?: V1beta1PlanSpecProvider; /** targetNamespace * Target namespace. * diff --git a/packages/types/src/models/V1beta1PlanSpecMap.ts b/packages/types/src/generated/forklift/models/V1beta1PlanSpecMap.ts similarity index 75% rename from packages/types/src/models/V1beta1PlanSpecMap.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanSpecMap.ts index 78f310662..782cebbcc 100644 --- a/packages/types/src/models/V1beta1PlanSpecMap.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanSpecMap.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanSpecMapNetwork.ts b/packages/types/src/generated/forklift/models/V1beta1PlanSpecMapNetwork.ts similarity index 91% rename from packages/types/src/models/V1beta1PlanSpecMapNetwork.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanSpecMapNetwork.ts index bec0e15fb..f77309454 100644 --- a/packages/types/src/models/V1beta1PlanSpecMapNetwork.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanSpecMapNetwork.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanSpecMapStorage.ts b/packages/types/src/generated/forklift/models/V1beta1PlanSpecMapStorage.ts similarity index 91% rename from packages/types/src/models/V1beta1PlanSpecMapStorage.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanSpecMapStorage.ts index bc66eb40d..b410591ab 100644 --- a/packages/types/src/models/V1beta1PlanSpecMapStorage.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanSpecMapStorage.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanSpecProvider.ts b/packages/types/src/generated/forklift/models/V1beta1PlanSpecProvider.ts similarity index 76% rename from packages/types/src/models/V1beta1PlanSpecProvider.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanSpecProvider.ts index eba2509d8..6bef2ef77 100644 --- a/packages/types/src/models/V1beta1PlanSpecProvider.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanSpecProvider.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanSpecProviderDestination.ts b/packages/types/src/generated/forklift/models/V1beta1PlanSpecProviderDestination.ts similarity index 91% rename from packages/types/src/models/V1beta1PlanSpecProviderDestination.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanSpecProviderDestination.ts index b6abec903..dbe148dab 100644 --- a/packages/types/src/models/V1beta1PlanSpecProviderDestination.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanSpecProviderDestination.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanSpecProviderSource.ts b/packages/types/src/generated/forklift/models/V1beta1PlanSpecProviderSource.ts similarity index 91% rename from packages/types/src/models/V1beta1PlanSpecProviderSource.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanSpecProviderSource.ts index f65e8a56e..e5446e1da 100644 --- a/packages/types/src/models/V1beta1PlanSpecProviderSource.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanSpecProviderSource.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanSpecTransferNetwork.ts b/packages/types/src/generated/forklift/models/V1beta1PlanSpecTransferNetwork.ts similarity index 91% rename from packages/types/src/models/V1beta1PlanSpecTransferNetwork.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanSpecTransferNetwork.ts index fd1c69aab..05ded2c89 100644 --- a/packages/types/src/models/V1beta1PlanSpecTransferNetwork.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanSpecTransferNetwork.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanSpecVms.ts b/packages/types/src/generated/forklift/models/V1beta1PlanSpecVms.ts similarity index 77% rename from packages/types/src/models/V1beta1PlanSpecVms.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanSpecVms.ts index 772ea89c6..7035ff171 100644 --- a/packages/types/src/models/V1beta1PlanSpecVms.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanSpecVms.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes @@ -36,6 +36,12 @@ export interface V1beta1PlanSpecVms { * @required {false} */ name?: string; + /** namespace + * The VM Namespace Only relevant for an openshift source. + * + * @required {false} + */ + namespace?: string; /** type * Type used to qualify the name. * diff --git a/packages/types/src/models/V1beta1PlanSpecVmsHooks.ts b/packages/types/src/generated/forklift/models/V1beta1PlanSpecVmsHooks.ts similarity index 72% rename from packages/types/src/models/V1beta1PlanSpecVmsHooks.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanSpecVmsHooks.ts index 8bd434269..b0518ec2c 100644 --- a/packages/types/src/models/V1beta1PlanSpecVmsHooks.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanSpecVmsHooks.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanSpecVmsHooksHook.ts b/packages/types/src/generated/forklift/models/V1beta1PlanSpecVmsHooksHook.ts similarity index 91% rename from packages/types/src/models/V1beta1PlanSpecVmsHooksHook.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanSpecVmsHooksHook.ts index b42cb799c..a9b8e71b9 100644 --- a/packages/types/src/models/V1beta1PlanSpecVmsHooksHook.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanSpecVmsHooksHook.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanStatus.ts b/packages/types/src/generated/forklift/models/V1beta1PlanStatus.ts similarity index 81% rename from packages/types/src/models/V1beta1PlanStatus.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanStatus.ts index 91c1005d5..1540feabd 100644 --- a/packages/types/src/models/V1beta1PlanStatus.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanStatus.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanStatusConditions.ts b/packages/types/src/generated/forklift/models/V1beta1PlanStatusConditions.ts similarity index 85% rename from packages/types/src/models/V1beta1PlanStatusConditions.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanStatusConditions.ts index b878ec611..acc4807f2 100644 --- a/packages/types/src/models/V1beta1PlanStatusConditions.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanStatusConditions.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanStatusMigration.ts b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigration.ts similarity index 81% rename from packages/types/src/models/V1beta1PlanStatusMigration.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanStatusMigration.ts index 1aa741f0e..a2e4f1841 100644 --- a/packages/types/src/models/V1beta1PlanStatusMigration.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigration.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanStatusMigrationHistory.ts b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistory.ts similarity index 87% rename from packages/types/src/models/V1beta1PlanStatusMigrationHistory.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistory.ts index 5618ff518..99c22bb36 100644 --- a/packages/types/src/models/V1beta1PlanStatusMigrationHistory.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistory.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanStatusMigrationHistoryConditions.ts b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistoryConditions.ts similarity index 85% rename from packages/types/src/models/V1beta1PlanStatusMigrationHistoryConditions.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistoryConditions.ts index c7df0f9de..4b00fa64a 100644 --- a/packages/types/src/models/V1beta1PlanStatusMigrationHistoryConditions.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistoryConditions.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanStatusMigrationHistoryMap.ts b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistoryMap.ts similarity index 79% rename from packages/types/src/models/V1beta1PlanStatusMigrationHistoryMap.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistoryMap.ts index 15e162ba2..5f368ca0e 100644 --- a/packages/types/src/models/V1beta1PlanStatusMigrationHistoryMap.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistoryMap.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanStatusMigrationHistoryMapNetwork.ts b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistoryMapNetwork.ts similarity index 80% rename from packages/types/src/models/V1beta1PlanStatusMigrationHistoryMapNetwork.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistoryMapNetwork.ts index d3710a96e..d81a54167 100644 --- a/packages/types/src/models/V1beta1PlanStatusMigrationHistoryMapNetwork.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistoryMapNetwork.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanStatusMigrationHistoryMapStorage.ts b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistoryMapStorage.ts similarity index 80% rename from packages/types/src/models/V1beta1PlanStatusMigrationHistoryMapStorage.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistoryMapStorage.ts index 0a1ad4d94..6d47d4ece 100644 --- a/packages/types/src/models/V1beta1PlanStatusMigrationHistoryMapStorage.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistoryMapStorage.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanStatusMigrationHistoryMigration.ts b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistoryMigration.ts similarity index 80% rename from packages/types/src/models/V1beta1PlanStatusMigrationHistoryMigration.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistoryMigration.ts index 96dda6444..766f2187d 100644 --- a/packages/types/src/models/V1beta1PlanStatusMigrationHistoryMigration.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistoryMigration.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanStatusMigrationHistoryPlan.ts b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistoryPlan.ts similarity index 80% rename from packages/types/src/models/V1beta1PlanStatusMigrationHistoryPlan.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistoryPlan.ts index 764c575b9..571338994 100644 --- a/packages/types/src/models/V1beta1PlanStatusMigrationHistoryPlan.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistoryPlan.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanStatusMigrationHistoryProvider.ts b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistoryProvider.ts similarity index 80% rename from packages/types/src/models/V1beta1PlanStatusMigrationHistoryProvider.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistoryProvider.ts index ad47038ec..5e95f137e 100644 --- a/packages/types/src/models/V1beta1PlanStatusMigrationHistoryProvider.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistoryProvider.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanStatusMigrationHistoryProviderDestination.ts b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistoryProviderDestination.ts similarity index 80% rename from packages/types/src/models/V1beta1PlanStatusMigrationHistoryProviderDestination.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistoryProviderDestination.ts index d1082afd7..ac67314cd 100644 --- a/packages/types/src/models/V1beta1PlanStatusMigrationHistoryProviderDestination.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistoryProviderDestination.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanStatusMigrationHistoryProviderSource.ts b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistoryProviderSource.ts similarity index 80% rename from packages/types/src/models/V1beta1PlanStatusMigrationHistoryProviderSource.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistoryProviderSource.ts index debde4a87..307bc4f83 100644 --- a/packages/types/src/models/V1beta1PlanStatusMigrationHistoryProviderSource.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationHistoryProviderSource.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanStatusMigrationVms.ts b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVms.ts similarity index 90% rename from packages/types/src/models/V1beta1PlanStatusMigrationVms.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVms.ts index 114e99677..d98cbd53b 100644 --- a/packages/types/src/models/V1beta1PlanStatusMigrationVms.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVms.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes @@ -59,6 +59,12 @@ export interface V1beta1PlanStatusMigrationVms { * @required {false} */ name?: string; + /** namespace + * The VM Namespace Only relevant for an openshift source. + * + * @required {false} + */ + namespace?: string; /** phase * Phase * diff --git a/packages/types/src/models/V1beta1PlanStatusMigrationVmsConditions.ts b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsConditions.ts similarity index 85% rename from packages/types/src/models/V1beta1PlanStatusMigrationVmsConditions.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsConditions.ts index 5fc5f3755..c31a76fad 100644 --- a/packages/types/src/models/V1beta1PlanStatusMigrationVmsConditions.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsConditions.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanStatusMigrationVmsError.ts b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsError.ts similarity index 66% rename from packages/types/src/models/V1beta1PlanStatusMigrationVmsError.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsError.ts index 57bc6416b..dfa2839de 100644 --- a/packages/types/src/models/V1beta1PlanStatusMigrationVmsError.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsError.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanStatusMigrationVmsHooks.ts b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsHooks.ts similarity index 73% rename from packages/types/src/models/V1beta1PlanStatusMigrationVmsHooks.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsHooks.ts index 9f33b7827..ce2069051 100644 --- a/packages/types/src/models/V1beta1PlanStatusMigrationVmsHooks.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsHooks.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanStatusMigrationVmsHooksHook.ts b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsHooksHook.ts similarity index 91% rename from packages/types/src/models/V1beta1PlanStatusMigrationVmsHooksHook.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsHooksHook.ts index 513d6311d..d69b59a83 100644 --- a/packages/types/src/models/V1beta1PlanStatusMigrationVmsHooksHook.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsHooksHook.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanStatusMigrationVmsPipeline.ts b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsPipeline.ts similarity index 89% rename from packages/types/src/models/V1beta1PlanStatusMigrationVmsPipeline.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsPipeline.ts index 9e9b965b5..d2efd322d 100644 --- a/packages/types/src/models/V1beta1PlanStatusMigrationVmsPipeline.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsPipeline.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanStatusMigrationVmsPipelineError.ts b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsPipelineError.ts similarity index 66% rename from packages/types/src/models/V1beta1PlanStatusMigrationVmsPipelineError.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsPipelineError.ts index f90cb9a09..4eb3100eb 100644 --- a/packages/types/src/models/V1beta1PlanStatusMigrationVmsPipelineError.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsPipelineError.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanStatusMigrationVmsPipelineProgress.ts b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsPipelineProgress.ts similarity index 73% rename from packages/types/src/models/V1beta1PlanStatusMigrationVmsPipelineProgress.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsPipelineProgress.ts index 432648ca5..fbbcb13b7 100644 --- a/packages/types/src/models/V1beta1PlanStatusMigrationVmsPipelineProgress.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsPipelineProgress.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanStatusMigrationVmsPipelineTasks.ts b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsPipelineTasks.ts similarity index 88% rename from packages/types/src/models/V1beta1PlanStatusMigrationVmsPipelineTasks.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsPipelineTasks.ts index e2942e7fb..c48c9b696 100644 --- a/packages/types/src/models/V1beta1PlanStatusMigrationVmsPipelineTasks.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsPipelineTasks.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanStatusMigrationVmsPipelineTasksError.ts b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsPipelineTasksError.ts similarity index 66% rename from packages/types/src/models/V1beta1PlanStatusMigrationVmsPipelineTasksError.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsPipelineTasksError.ts index 9b2692672..3898bfdb6 100644 --- a/packages/types/src/models/V1beta1PlanStatusMigrationVmsPipelineTasksError.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsPipelineTasksError.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanStatusMigrationVmsPipelineTasksProgress.ts b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsPipelineTasksProgress.ts similarity index 73% rename from packages/types/src/models/V1beta1PlanStatusMigrationVmsPipelineTasksProgress.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsPipelineTasksProgress.ts index 9064e57c3..8e49e7b2c 100644 --- a/packages/types/src/models/V1beta1PlanStatusMigrationVmsPipelineTasksProgress.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsPipelineTasksProgress.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanStatusMigrationVmsWarm.ts b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsWarm.ts similarity index 83% rename from packages/types/src/models/V1beta1PlanStatusMigrationVmsWarm.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsWarm.ts index 453cd8277..5497a25fb 100644 --- a/packages/types/src/models/V1beta1PlanStatusMigrationVmsWarm.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsWarm.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1PlanStatusMigrationVmsWarmPrecopies.ts b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsWarmPrecopies.ts similarity index 72% rename from packages/types/src/models/V1beta1PlanStatusMigrationVmsWarmPrecopies.ts rename to packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsWarmPrecopies.ts index b401ae623..dff0f31eb 100644 --- a/packages/types/src/models/V1beta1PlanStatusMigrationVmsWarmPrecopies.ts +++ b/packages/types/src/generated/forklift/models/V1beta1PlanStatusMigrationVmsWarmPrecopies.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1Provider.ts b/packages/types/src/generated/forklift/models/V1beta1Provider.ts similarity index 88% rename from packages/types/src/models/V1beta1Provider.ts rename to packages/types/src/generated/forklift/models/V1beta1Provider.ts index f561f9db5..24e12cff4 100644 --- a/packages/types/src/models/V1beta1Provider.ts +++ b/packages/types/src/generated/forklift/models/V1beta1Provider.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1ProviderSpec.ts b/packages/types/src/generated/forklift/models/V1beta1ProviderSpec.ts similarity index 81% rename from packages/types/src/models/V1beta1ProviderSpec.ts rename to packages/types/src/generated/forklift/models/V1beta1ProviderSpec.ts index f9a3479e4..0a9775c57 100644 --- a/packages/types/src/models/V1beta1ProviderSpec.ts +++ b/packages/types/src/generated/forklift/models/V1beta1ProviderSpec.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1ProviderSpecSecret.ts b/packages/types/src/generated/forklift/models/V1beta1ProviderSpecSecret.ts similarity index 91% rename from packages/types/src/models/V1beta1ProviderSpecSecret.ts rename to packages/types/src/generated/forklift/models/V1beta1ProviderSpecSecret.ts index 8facb0aa1..cb943cd9d 100644 --- a/packages/types/src/models/V1beta1ProviderSpecSecret.ts +++ b/packages/types/src/generated/forklift/models/V1beta1ProviderSpecSecret.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1ProviderStatus.ts b/packages/types/src/generated/forklift/models/V1beta1ProviderStatus.ts similarity index 80% rename from packages/types/src/models/V1beta1ProviderStatus.ts rename to packages/types/src/generated/forklift/models/V1beta1ProviderStatus.ts index 48c513c10..28acd1abe 100644 --- a/packages/types/src/models/V1beta1ProviderStatus.ts +++ b/packages/types/src/generated/forklift/models/V1beta1ProviderStatus.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes @@ -24,6 +24,12 @@ export interface V1beta1ProviderStatus { * @required {false} */ conditions?: V1beta1ProviderStatusConditions[]; + /** fingerprint + * Fingerprint. + * + * @required {false} + */ + fingerprint?: string; /** observedGeneration * The most recent generation observed by the controller. * diff --git a/packages/types/src/models/V1beta1ProviderStatusConditions.ts b/packages/types/src/generated/forklift/models/V1beta1ProviderStatusConditions.ts similarity index 85% rename from packages/types/src/models/V1beta1ProviderStatusConditions.ts rename to packages/types/src/generated/forklift/models/V1beta1ProviderStatusConditions.ts index e83c2219e..6e429254b 100644 --- a/packages/types/src/models/V1beta1ProviderStatusConditions.ts +++ b/packages/types/src/generated/forklift/models/V1beta1ProviderStatusConditions.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1StorageMap.ts b/packages/types/src/generated/forklift/models/V1beta1StorageMap.ts similarity index 88% rename from packages/types/src/models/V1beta1StorageMap.ts rename to packages/types/src/generated/forklift/models/V1beta1StorageMap.ts index 69dd170b7..4be15d739 100644 --- a/packages/types/src/models/V1beta1StorageMap.ts +++ b/packages/types/src/generated/forklift/models/V1beta1StorageMap.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1StorageMapSpec.ts b/packages/types/src/generated/forklift/models/V1beta1StorageMapSpec.ts similarity index 75% rename from packages/types/src/models/V1beta1StorageMapSpec.ts rename to packages/types/src/generated/forklift/models/V1beta1StorageMapSpec.ts index e408be632..c3a1b3d45 100644 --- a/packages/types/src/models/V1beta1StorageMapSpec.ts +++ b/packages/types/src/generated/forklift/models/V1beta1StorageMapSpec.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1StorageMapSpecMap.ts b/packages/types/src/generated/forklift/models/V1beta1StorageMapSpecMap.ts similarity index 77% rename from packages/types/src/models/V1beta1StorageMapSpecMap.ts rename to packages/types/src/generated/forklift/models/V1beta1StorageMapSpecMap.ts index 375bd752d..336209494 100644 --- a/packages/types/src/models/V1beta1StorageMapSpecMap.ts +++ b/packages/types/src/generated/forklift/models/V1beta1StorageMapSpecMap.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1StorageMapSpecMapDestination.ts b/packages/types/src/generated/forklift/models/V1beta1StorageMapSpecMapDestination.ts similarity index 77% rename from packages/types/src/models/V1beta1StorageMapSpecMapDestination.ts rename to packages/types/src/generated/forklift/models/V1beta1StorageMapSpecMapDestination.ts index 93e68ad5a..4a4df8c8c 100644 --- a/packages/types/src/models/V1beta1StorageMapSpecMapDestination.ts +++ b/packages/types/src/generated/forklift/models/V1beta1StorageMapSpecMapDestination.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1StorageMapSpecMapSource.ts b/packages/types/src/generated/forklift/models/V1beta1StorageMapSpecMapSource.ts similarity index 72% rename from packages/types/src/models/V1beta1StorageMapSpecMapSource.ts rename to packages/types/src/generated/forklift/models/V1beta1StorageMapSpecMapSource.ts index 947c08ab5..614a68020 100644 --- a/packages/types/src/models/V1beta1StorageMapSpecMapSource.ts +++ b/packages/types/src/generated/forklift/models/V1beta1StorageMapSpecMapSource.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes @@ -28,6 +28,12 @@ export interface V1beta1StorageMapSpecMapSource { * @required {false} */ name?: string; + /** namespace + * The VM Namespace Only relevant for an openshift source. + * + * @required {false} + */ + namespace?: string; /** type * Type used to qualify the name. * diff --git a/packages/types/src/models/V1beta1StorageMapSpecProvider.ts b/packages/types/src/generated/forklift/models/V1beta1StorageMapSpecProvider.ts similarity index 77% rename from packages/types/src/models/V1beta1StorageMapSpecProvider.ts rename to packages/types/src/generated/forklift/models/V1beta1StorageMapSpecProvider.ts index c9c5105a3..6ace64ec6 100644 --- a/packages/types/src/models/V1beta1StorageMapSpecProvider.ts +++ b/packages/types/src/generated/forklift/models/V1beta1StorageMapSpecProvider.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1StorageMapSpecProviderDestination.ts b/packages/types/src/generated/forklift/models/V1beta1StorageMapSpecProviderDestination.ts similarity index 91% rename from packages/types/src/models/V1beta1StorageMapSpecProviderDestination.ts rename to packages/types/src/generated/forklift/models/V1beta1StorageMapSpecProviderDestination.ts index 5eeb8ecb3..2100e9d13 100644 --- a/packages/types/src/models/V1beta1StorageMapSpecProviderDestination.ts +++ b/packages/types/src/generated/forklift/models/V1beta1StorageMapSpecProviderDestination.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1StorageMapSpecProviderSource.ts b/packages/types/src/generated/forklift/models/V1beta1StorageMapSpecProviderSource.ts similarity index 91% rename from packages/types/src/models/V1beta1StorageMapSpecProviderSource.ts rename to packages/types/src/generated/forklift/models/V1beta1StorageMapSpecProviderSource.ts index 13f1a2117..f04a56160 100644 --- a/packages/types/src/models/V1beta1StorageMapSpecProviderSource.ts +++ b/packages/types/src/generated/forklift/models/V1beta1StorageMapSpecProviderSource.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1StorageMapStatus.ts b/packages/types/src/generated/forklift/models/V1beta1StorageMapStatus.ts similarity index 82% rename from packages/types/src/models/V1beta1StorageMapStatus.ts rename to packages/types/src/generated/forklift/models/V1beta1StorageMapStatus.ts index 4927c90d6..b126be4c9 100644 --- a/packages/types/src/models/V1beta1StorageMapStatus.ts +++ b/packages/types/src/generated/forklift/models/V1beta1StorageMapStatus.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1StorageMapStatusConditions.ts b/packages/types/src/generated/forklift/models/V1beta1StorageMapStatusConditions.ts similarity index 85% rename from packages/types/src/models/V1beta1StorageMapStatusConditions.ts rename to packages/types/src/generated/forklift/models/V1beta1StorageMapStatusConditions.ts index 9b4b23c02..11f9c9703 100644 --- a/packages/types/src/models/V1beta1StorageMapStatusConditions.ts +++ b/packages/types/src/generated/forklift/models/V1beta1StorageMapStatusConditions.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes diff --git a/packages/types/src/models/V1beta1StorageMapStatusReferences.ts b/packages/types/src/generated/forklift/models/V1beta1StorageMapStatusReferences.ts similarity index 74% rename from packages/types/src/models/V1beta1StorageMapStatusReferences.ts rename to packages/types/src/generated/forklift/models/V1beta1StorageMapStatusReferences.ts index 40a398d15..6244c006a 100644 --- a/packages/types/src/models/V1beta1StorageMapStatusReferences.ts +++ b/packages/types/src/generated/forklift/models/V1beta1StorageMapStatusReferences.ts @@ -1,10 +1,10 @@ /** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. + * + * * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 + * The version of the OpenAPI document: + * Contact Email: + * License: * * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). * https://github.com/yaacov/crdtoapi/README.crdtotypes @@ -28,6 +28,12 @@ export interface V1beta1StorageMapStatusReferences { * @required {false} */ name?: string; + /** namespace + * The VM Namespace Only relevant for an openshift source. + * + * @required {false} + */ + namespace?: string; /** type * Type used to qualify the name. * diff --git a/packages/types/src/generated/forklift/models/index.ts b/packages/types/src/generated/forklift/models/index.ts new file mode 100644 index 000000000..9004776a4 --- /dev/null +++ b/packages/types/src/generated/forklift/models/index.ts @@ -0,0 +1,105 @@ +// @index(['./*', /IoK8sApimachineryPkgApisMetaV1ObjectMeta/g], f => `export * from '${f.path}';`) +export * from './V1beta1ForkliftController'; +export * from './V1beta1Hook'; +export * from './V1beta1HookSpec'; +export * from './V1beta1HookStatus'; +export * from './V1beta1HookStatusConditions'; +export * from './V1beta1Host'; +export * from './V1beta1HostSpec'; +export * from './V1beta1HostSpecProvider'; +export * from './V1beta1HostSpecSecret'; +export * from './V1beta1HostStatus'; +export * from './V1beta1HostStatusConditions'; +export * from './V1beta1Migration'; +export * from './V1beta1MigrationSpec'; +export * from './V1beta1MigrationSpecCancel'; +export * from './V1beta1MigrationSpecPlan'; +export * from './V1beta1MigrationStatus'; +export * from './V1beta1MigrationStatusConditions'; +export * from './V1beta1MigrationStatusVms'; +export * from './V1beta1MigrationStatusVmsConditions'; +export * from './V1beta1MigrationStatusVmsError'; +export * from './V1beta1MigrationStatusVmsHooks'; +export * from './V1beta1MigrationStatusVmsHooksHook'; +export * from './V1beta1MigrationStatusVmsPipeline'; +export * from './V1beta1MigrationStatusVmsPipelineError'; +export * from './V1beta1MigrationStatusVmsPipelineProgress'; +export * from './V1beta1MigrationStatusVmsPipelineTasks'; +export * from './V1beta1MigrationStatusVmsPipelineTasksError'; +export * from './V1beta1MigrationStatusVmsPipelineTasksProgress'; +export * from './V1beta1MigrationStatusVmsWarm'; +export * from './V1beta1MigrationStatusVmsWarmPrecopies'; +export * from './V1beta1NetworkMap'; +export * from './V1beta1NetworkMapSpec'; +export * from './V1beta1NetworkMapSpecMap'; +export * from './V1beta1NetworkMapSpecMapDestination'; +export * from './V1beta1NetworkMapSpecMapSource'; +export * from './V1beta1NetworkMapSpecProvider'; +export * from './V1beta1NetworkMapSpecProviderDestination'; +export * from './V1beta1NetworkMapSpecProviderSource'; +export * from './V1beta1NetworkMapStatus'; +export * from './V1beta1NetworkMapStatusConditions'; +export * from './V1beta1NetworkMapStatusReferences'; +export * from './V1beta1OpenstackVolumePopulator'; +export * from './V1beta1OpenstackVolumePopulatorSpec'; +export * from './V1beta1OpenstackVolumePopulatorSpecTransferNetwork'; +export * from './V1beta1OpenstackVolumePopulatorStatus'; +export * from './V1beta1OvirtVolumePopulator'; +export * from './V1beta1OvirtVolumePopulatorSpec'; +export * from './V1beta1OvirtVolumePopulatorSpecTransferNetwork'; +export * from './V1beta1OvirtVolumePopulatorStatus'; +export * from './V1beta1Plan'; +export * from './V1beta1PlanSpec'; +export * from './V1beta1PlanSpecMap'; +export * from './V1beta1PlanSpecMapNetwork'; +export * from './V1beta1PlanSpecMapStorage'; +export * from './V1beta1PlanSpecProvider'; +export * from './V1beta1PlanSpecProviderDestination'; +export * from './V1beta1PlanSpecProviderSource'; +export * from './V1beta1PlanSpecTransferNetwork'; +export * from './V1beta1PlanSpecVms'; +export * from './V1beta1PlanSpecVmsHooks'; +export * from './V1beta1PlanSpecVmsHooksHook'; +export * from './V1beta1PlanStatus'; +export * from './V1beta1PlanStatusConditions'; +export * from './V1beta1PlanStatusMigration'; +export * from './V1beta1PlanStatusMigrationHistory'; +export * from './V1beta1PlanStatusMigrationHistoryConditions'; +export * from './V1beta1PlanStatusMigrationHistoryMap'; +export * from './V1beta1PlanStatusMigrationHistoryMapNetwork'; +export * from './V1beta1PlanStatusMigrationHistoryMapStorage'; +export * from './V1beta1PlanStatusMigrationHistoryMigration'; +export * from './V1beta1PlanStatusMigrationHistoryPlan'; +export * from './V1beta1PlanStatusMigrationHistoryProvider'; +export * from './V1beta1PlanStatusMigrationHistoryProviderDestination'; +export * from './V1beta1PlanStatusMigrationHistoryProviderSource'; +export * from './V1beta1PlanStatusMigrationVms'; +export * from './V1beta1PlanStatusMigrationVmsConditions'; +export * from './V1beta1PlanStatusMigrationVmsError'; +export * from './V1beta1PlanStatusMigrationVmsHooks'; +export * from './V1beta1PlanStatusMigrationVmsHooksHook'; +export * from './V1beta1PlanStatusMigrationVmsPipeline'; +export * from './V1beta1PlanStatusMigrationVmsPipelineError'; +export * from './V1beta1PlanStatusMigrationVmsPipelineProgress'; +export * from './V1beta1PlanStatusMigrationVmsPipelineTasks'; +export * from './V1beta1PlanStatusMigrationVmsPipelineTasksError'; +export * from './V1beta1PlanStatusMigrationVmsPipelineTasksProgress'; +export * from './V1beta1PlanStatusMigrationVmsWarm'; +export * from './V1beta1PlanStatusMigrationVmsWarmPrecopies'; +export * from './V1beta1Provider'; +export * from './V1beta1ProviderSpec'; +export * from './V1beta1ProviderSpecSecret'; +export * from './V1beta1ProviderStatus'; +export * from './V1beta1ProviderStatusConditions'; +export * from './V1beta1StorageMap'; +export * from './V1beta1StorageMapSpec'; +export * from './V1beta1StorageMapSpecMap'; +export * from './V1beta1StorageMapSpecMapDestination'; +export * from './V1beta1StorageMapSpecMapSource'; +export * from './V1beta1StorageMapSpecProvider'; +export * from './V1beta1StorageMapSpecProviderDestination'; +export * from './V1beta1StorageMapSpecProviderSource'; +export * from './V1beta1StorageMapStatus'; +export * from './V1beta1StorageMapStatusConditions'; +export * from './V1beta1StorageMapStatusReferences'; +// @endindex diff --git a/packages/types/src/generated/forklift/openapi.yaml b/packages/types/src/generated/forklift/openapi.yaml new file mode 100644 index 000000000..4828e9877 --- /dev/null +++ b/packages/types/src/generated/forklift/openapi.yaml @@ -0,0 +1,2564 @@ +openapi: 3.1.0 +info: + contact: {} + license: {} +components: + schemas: + v1beta1ForkliftController: + description: ForkliftController is the Schema for the forkliftcontrollers API + properties: + apiVersion: + description: >- + APIVersion defines the versioned schema of this representation of an + object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: >- + Kind is a string value representing the REST resource this object + represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: Spec defines the desired state of ForkliftController + type: object + x-kubernetes-preserve-unknown-fields: true + status: + description: Status defines the observed state of ForkliftController + type: object + x-kubernetes-preserve-unknown-fields: true + type: object + v1beta1Hook: + description: Hook is the Schema for the hooks API + properties: + apiVersion: + description: >- + APIVersion defines the versioned schema of this representation of an + object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: >- + Kind is a string value representing the REST resource this object + represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: Hook specification. + properties: + deadline: + description: Hook deadline in seconds. + format: int64 + type: integer + image: + description: Image to run. + type: string + playbook: + description: A base64 encoded Ansible playbook. + type: string + serviceAccount: + description: Service account. + type: string + required: + - image + type: object + status: + description: Hook status. + properties: + conditions: + description: List of conditions. + items: + description: Condition + properties: + category: + description: The condition category. + type: string + durable: + description: The condition is durable - never un-staged. + type: boolean + items: + description: A list of items referenced in the `Message`. + items: + type: string + type: array + lastTransitionTime: + description: When the last status transition occurred. + format: date-time + type: string + message: + description: The human readable description of the condition. + type: string + reason: + description: The reason for the condition or transition. + type: string + status: + description: The condition status [true,false]. + type: string + type: + description: The condition type. + type: string + required: + - category + - lastTransitionTime + - status + - type + type: object + type: array + observedGeneration: + description: The most recent generation observed by the controller. + format: int64 + type: integer + type: object + type: object + v1beta1Host: + properties: + apiVersion: + description: >- + APIVersion defines the versioned schema of this representation of an + object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: >- + Kind is a string value representing the REST resource this object + represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: HostSpec defines the desired state of Host + properties: + id: + description: 'The object ID. vsphere: The managed object ID.' + type: string + ipAddress: + description: IP address used for disk transfer. + type: string + name: + description: 'An object Name. vsphere: A qualified name.' + type: string + namespace: + description: The VM Namespace Only relevant for an openshift source. + type: string + provider: + description: Provider + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: >- + If referring to a piece of an object instead of an entire + object, this string should contain a valid JSON/Go field + access statement, such as + desiredState.manifest.containers[2]. For example, if the + object reference is to a container within a pod, this would + take on a value like: "spec.containers{name}" (where "name" + refers to the name of the container that triggered the + event) or if no container name is specified + "spec.containers[2]" (container with index 2 in this pod). + This syntax is chosen only to have some well-defined way of + referencing a part of an object. TODO: this design is not + final and this field is subject to change in the future. + type: string + kind: + description: >- + Kind of the referent. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + name: + description: >- + Name of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + namespace: + description: >- + Namespace of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + type: string + resourceVersion: + description: >- + Specific resourceVersion to which this reference is made, if + any. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + type: string + uid: + description: >- + UID of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + type: string + type: object + x-kubernetes-map-type: atomic + secret: + description: Credentials. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: >- + If referring to a piece of an object instead of an entire + object, this string should contain a valid JSON/Go field + access statement, such as + desiredState.manifest.containers[2]. For example, if the + object reference is to a container within a pod, this would + take on a value like: "spec.containers{name}" (where "name" + refers to the name of the container that triggered the + event) or if no container name is specified + "spec.containers[2]" (container with index 2 in this pod). + This syntax is chosen only to have some well-defined way of + referencing a part of an object. TODO: this design is not + final and this field is subject to change in the future. + type: string + kind: + description: >- + Kind of the referent. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + name: + description: >- + Name of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + namespace: + description: >- + Namespace of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + type: string + resourceVersion: + description: >- + Specific resourceVersion to which this reference is made, if + any. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + type: string + uid: + description: >- + UID of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + type: string + type: object + x-kubernetes-map-type: atomic + thumbprint: + description: Certificate SHA-1 fingerprint, called thumbprint by VMware. + type: string + type: + description: Type used to qualify the name. + type: string + required: + - ipAddress + - provider + - secret + type: object + status: + description: HostStatus defines the observed state of Host + properties: + conditions: + description: List of conditions. + items: + description: Condition + properties: + category: + description: The condition category. + type: string + durable: + description: The condition is durable - never un-staged. + type: boolean + items: + description: A list of items referenced in the `Message`. + items: + type: string + type: array + lastTransitionTime: + description: When the last status transition occurred. + format: date-time + type: string + message: + description: The human readable description of the condition. + type: string + reason: + description: The reason for the condition or transition. + type: string + status: + description: The condition status [true,false]. + type: string + type: + description: The condition type. + type: string + required: + - category + - lastTransitionTime + - status + - type + type: object + type: array + observedGeneration: + description: The most recent generation observed by the controller. + format: int64 + type: integer + type: object + type: object + v1beta1Migration: + properties: + apiVersion: + description: >- + APIVersion defines the versioned schema of this representation of an + object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: >- + Kind is a string value representing the REST resource this object + represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: MigrationSpec defines the desired state of Migration + properties: + cancel: + description: List of VMs which will have their imports canceled. + items: + description: Source reference. Either the ID or Name must be specified. + properties: + id: + description: 'The object ID. vsphere: The managed object ID.' + type: string + name: + description: 'An object Name. vsphere: A qualified name.' + type: string + namespace: + description: The VM Namespace Only relevant for an openshift source. + type: string + type: + description: Type used to qualify the name. + type: string + type: object + type: array + cutover: + description: >- + Date and time to finalize a warm migration. If present, this + will override the value set on the Plan. + format: date-time + type: string + plan: + description: Reference to the associated Plan. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: >- + If referring to a piece of an object instead of an entire + object, this string should contain a valid JSON/Go field + access statement, such as + desiredState.manifest.containers[2]. For example, if the + object reference is to a container within a pod, this would + take on a value like: "spec.containers{name}" (where "name" + refers to the name of the container that triggered the + event) or if no container name is specified + "spec.containers[2]" (container with index 2 in this pod). + This syntax is chosen only to have some well-defined way of + referencing a part of an object. TODO: this design is not + final and this field is subject to change in the future. + type: string + kind: + description: >- + Kind of the referent. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + name: + description: >- + Name of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + namespace: + description: >- + Namespace of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + type: string + resourceVersion: + description: >- + Specific resourceVersion to which this reference is made, if + any. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + type: string + uid: + description: >- + UID of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + type: string + type: object + x-kubernetes-map-type: atomic + required: + - plan + type: object + status: + description: MigrationStatus defines the observed state of Migration + properties: + completed: + description: Completed timestamp. + format: date-time + type: string + conditions: + description: List of conditions. + items: + description: Condition + properties: + category: + description: The condition category. + type: string + durable: + description: The condition is durable - never un-staged. + type: boolean + items: + description: A list of items referenced in the `Message`. + items: + type: string + type: array + lastTransitionTime: + description: When the last status transition occurred. + format: date-time + type: string + message: + description: The human readable description of the condition. + type: string + reason: + description: The reason for the condition or transition. + type: string + status: + description: The condition status [true,false]. + type: string + type: + description: The condition type. + type: string + required: + - category + - lastTransitionTime + - status + - type + type: object + type: array + observedGeneration: + description: The most recent generation observed by the controller. + format: int64 + type: integer + started: + description: Started timestamp. + format: date-time + type: string + vms: + description: VM status + items: + description: VM Status + properties: + completed: + description: Completed timestamp. + format: date-time + type: string + conditions: + description: List of conditions. + items: + description: Condition + properties: + category: + description: The condition category. + type: string + durable: + description: The condition is durable - never un-staged. + type: boolean + items: + description: A list of items referenced in the `Message`. + items: + type: string + type: array + lastTransitionTime: + description: When the last status transition occurred. + format: date-time + type: string + message: + description: The human readable description of the condition. + type: string + reason: + description: The reason for the condition or transition. + type: string + status: + description: The condition status [true,false]. + type: string + type: + description: The condition type. + type: string + required: + - category + - lastTransitionTime + - status + - type + type: object + type: array + error: + description: Errors + properties: + phase: + type: string + reasons: + items: + type: string + type: array + required: + - phase + - reasons + type: object + hooks: + description: Enable hooks. + items: + description: Plan hook. + properties: + hook: + description: Hook reference. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: >- + If referring to a piece of an object instead of + an entire object, this string should contain a + valid JSON/Go field access statement, such as + desiredState.manifest.containers[2]. For + example, if the object reference is to a + container within a pod, this would take on a + value like: "spec.containers{name}" (where + "name" refers to the name of the container that + triggered the event) or if no container name is + specified "spec.containers[2]" (container with + index 2 in this pod). This syntax is chosen only + to have some well-defined way of referencing a + part of an object. TODO: this design is not + final and this field is subject to change in the + future. + type: string + kind: + description: >- + Kind of the referent. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + name: + description: >- + Name of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + namespace: + description: >- + Namespace of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + type: string + resourceVersion: + description: >- + Specific resourceVersion to which this reference + is made, if any. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + type: string + uid: + description: >- + UID of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + type: string + type: object + x-kubernetes-map-type: atomic + step: + description: Pipeline step. + type: string + required: + - hook + - step + type: object + type: array + id: + description: 'The object ID. vsphere: The managed object ID.' + type: string + name: + description: 'An object Name. vsphere: A qualified name.' + type: string + namespace: + description: The VM Namespace Only relevant for an openshift source. + type: string + phase: + description: Phase + type: string + pipeline: + description: Migration pipeline. + items: + description: Pipeline step. + properties: + annotations: + additionalProperties: + type: string + description: Annotations. + type: object + completed: + description: Completed timestamp. + format: date-time + type: string + description: + description: Name + type: string + error: + description: Error. + properties: + phase: + type: string + reasons: + items: + type: string + type: array + required: + - phase + - reasons + type: object + name: + description: Name. + type: string + phase: + description: Phase + type: string + progress: + description: Progress. + properties: + completed: + description: Completed units. + format: int64 + type: integer + total: + description: Total units. + format: int64 + type: integer + required: + - completed + - total + type: object + reason: + description: Reason + type: string + started: + description: Started timestamp. + format: date-time + type: string + tasks: + description: Nested tasks. + items: + description: Migration task. + properties: + annotations: + additionalProperties: + type: string + description: Annotations. + type: object + completed: + description: Completed timestamp. + format: date-time + type: string + description: + description: Name + type: string + error: + description: Error. + properties: + phase: + type: string + reasons: + items: + type: string + type: array + required: + - phase + - reasons + type: object + name: + description: Name. + type: string + phase: + description: Phase + type: string + progress: + description: Progress. + properties: + completed: + description: Completed units. + format: int64 + type: integer + total: + description: Total units. + format: int64 + type: integer + required: + - completed + - total + type: object + reason: + description: Reason + type: string + started: + description: Started timestamp. + format: date-time + type: string + required: + - name + - progress + type: object + type: array + required: + - name + - progress + type: object + type: array + restorePowerState: + description: Source VM power state before migration. + type: string + started: + description: Started timestamp. + format: date-time + type: string + type: + description: Type used to qualify the name. + type: string + warm: + description: Warm migration status + properties: + consecutiveFailures: + type: integer + failures: + type: integer + nextPrecopyAt: + format: date-time + type: string + precopies: + items: + description: Precopy durations + properties: + end: + format: date-time + type: string + snapshot: + type: string + start: + format: date-time + type: string + type: object + type: array + successes: + type: integer + required: + - consecutiveFailures + - failures + - successes + type: object + required: + - phase + - pipeline + type: object + type: array + type: object + type: object + v1beta1NetworkMap: + properties: + apiVersion: + description: >- + APIVersion defines the versioned schema of this representation of an + object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: >- + Kind is a string value representing the REST resource this object + represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: Network map spec. + properties: + map: + description: Map. + items: + description: Mapped network. + properties: + destination: + description: Destination network. + properties: + name: + description: The name. + type: string + namespace: + description: The namespace (multus only). + type: string + type: + description: The network type. + enum: + - pod + - multus + type: string + required: + - type + type: object + source: + description: Source network. + properties: + id: + description: 'The object ID. vsphere: The managed object ID.' + type: string + name: + description: 'An object Name. vsphere: A qualified name.' + type: string + namespace: + description: >- + The VM Namespace Only relevant for an openshift + source. + type: string + type: + description: Type used to qualify the name. + type: string + type: object + required: + - destination + - source + type: object + type: array + provider: + description: Provider + properties: + destination: + description: Destination. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: >- + If referring to a piece of an object instead of an + entire object, this string should contain a valid + JSON/Go field access statement, such as + desiredState.manifest.containers[2]. For example, if the + object reference is to a container within a pod, this + would take on a value like: "spec.containers{name}" + (where "name" refers to the name of the container that + triggered the event) or if no container name is + specified "spec.containers[2]" (container with index 2 + in this pod). This syntax is chosen only to have some + well-defined way of referencing a part of an object. + TODO: this design is not final and this field is subject + to change in the future. + type: string + kind: + description: >- + Kind of the referent. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + name: + description: >- + Name of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + namespace: + description: >- + Namespace of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + type: string + resourceVersion: + description: >- + Specific resourceVersion to which this reference is + made, if any. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + type: string + uid: + description: >- + UID of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + type: string + type: object + x-kubernetes-map-type: atomic + source: + description: Source. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: >- + If referring to a piece of an object instead of an + entire object, this string should contain a valid + JSON/Go field access statement, such as + desiredState.manifest.containers[2]. For example, if the + object reference is to a container within a pod, this + would take on a value like: "spec.containers{name}" + (where "name" refers to the name of the container that + triggered the event) or if no container name is + specified "spec.containers[2]" (container with index 2 + in this pod). This syntax is chosen only to have some + well-defined way of referencing a part of an object. + TODO: this design is not final and this field is subject + to change in the future. + type: string + kind: + description: >- + Kind of the referent. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + name: + description: >- + Name of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + namespace: + description: >- + Namespace of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + type: string + resourceVersion: + description: >- + Specific resourceVersion to which this reference is + made, if any. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + type: string + uid: + description: >- + UID of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + type: string + type: object + x-kubernetes-map-type: atomic + required: + - destination + - source + type: object + required: + - map + - provider + type: object + status: + description: MapStatus defines the observed state of Maps. + properties: + conditions: + description: List of conditions. + items: + description: Condition + properties: + category: + description: The condition category. + type: string + durable: + description: The condition is durable - never un-staged. + type: boolean + items: + description: A list of items referenced in the `Message`. + items: + type: string + type: array + lastTransitionTime: + description: When the last status transition occurred. + format: date-time + type: string + message: + description: The human readable description of the condition. + type: string + reason: + description: The reason for the condition or transition. + type: string + status: + description: The condition status [true,false]. + type: string + type: + description: The condition type. + type: string + required: + - category + - lastTransitionTime + - status + - type + type: object + type: array + observedGeneration: + description: The most recent generation observed by the controller. + format: int64 + type: integer + references: + items: + description: Source reference. Either the ID or Name must be specified. + properties: + id: + description: 'The object ID. vsphere: The managed object ID.' + type: string + name: + description: 'An object Name. vsphere: A qualified name.' + type: string + namespace: + description: The VM Namespace Only relevant for an openshift source. + type: string + type: + description: Type used to qualify the name. + type: string + type: object + type: array + type: object + type: object + v1beta1OpenstackVolumePopulator: + properties: + apiVersion: + description: >- + APIVersion defines the versioned schema of this representation of an + object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: >- + Kind is a string value representing the REST resource this object + represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + properties: + identityUrl: + type: string + imageId: + type: string + secretName: + type: string + transferNetwork: + description: >- + The network attachment definition that should be used for disk + transfer. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: >- + If referring to a piece of an object instead of an entire + object, this string should contain a valid JSON/Go field + access statement, such as + desiredState.manifest.containers[2]. For example, if the + object reference is to a container within a pod, this would + take on a value like: "spec.containers{name}" (where "name" + refers to the name of the container that triggered the + event) or if no container name is specified + "spec.containers[2]" (container with index 2 in this pod). + This syntax is chosen only to have some well-defined way of + referencing a part of an object. TODO: this design is not + final and this field is subject to change in the future. + type: string + kind: + description: >- + Kind of the referent. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + name: + description: >- + Name of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + namespace: + description: >- + Namespace of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + type: string + resourceVersion: + description: >- + Specific resourceVersion to which this reference is made, if + any. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + type: string + uid: + description: >- + UID of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + type: string + type: object + x-kubernetes-map-type: atomic + required: + - identityUrl + - imageId + - secretName + type: object + status: + properties: + progress: + type: string + type: object + required: + - spec + type: object + v1beta1OvirtVolumePopulator: + properties: + apiVersion: + description: >- + APIVersion defines the versioned schema of this representation of an + object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: >- + Kind is a string value representing the REST resource this object + represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + properties: + diskId: + type: string + engineSecretName: + type: string + engineUrl: + type: string + transferNetwork: + description: >- + The network attachment definition that should be used for disk + transfer. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: >- + If referring to a piece of an object instead of an entire + object, this string should contain a valid JSON/Go field + access statement, such as + desiredState.manifest.containers[2]. For example, if the + object reference is to a container within a pod, this would + take on a value like: "spec.containers{name}" (where "name" + refers to the name of the container that triggered the + event) or if no container name is specified + "spec.containers[2]" (container with index 2 in this pod). + This syntax is chosen only to have some well-defined way of + referencing a part of an object. TODO: this design is not + final and this field is subject to change in the future. + type: string + kind: + description: >- + Kind of the referent. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + name: + description: >- + Name of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + namespace: + description: >- + Namespace of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + type: string + resourceVersion: + description: >- + Specific resourceVersion to which this reference is made, if + any. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + type: string + uid: + description: >- + UID of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + type: string + type: object + x-kubernetes-map-type: atomic + required: + - diskId + - engineSecretName + - engineUrl + type: object + status: + properties: + progress: + type: string + type: object + required: + - spec + type: object + v1beta1Plan: + properties: + apiVersion: + description: >- + APIVersion defines the versioned schema of this representation of an + object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: >- + Kind is a string value representing the REST resource this object + represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: PlanSpec defines the desired state of Plan. + properties: + archived: + description: Whether this plan should be archived. + type: boolean + description: + description: Description + type: string + map: + description: Resource mapping. + properties: + network: + description: Network. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: >- + If referring to a piece of an object instead of an + entire object, this string should contain a valid + JSON/Go field access statement, such as + desiredState.manifest.containers[2]. For example, if the + object reference is to a container within a pod, this + would take on a value like: "spec.containers{name}" + (where "name" refers to the name of the container that + triggered the event) or if no container name is + specified "spec.containers[2]" (container with index 2 + in this pod). This syntax is chosen only to have some + well-defined way of referencing a part of an object. + TODO: this design is not final and this field is subject + to change in the future. + type: string + kind: + description: >- + Kind of the referent. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + name: + description: >- + Name of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + namespace: + description: >- + Namespace of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + type: string + resourceVersion: + description: >- + Specific resourceVersion to which this reference is + made, if any. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + type: string + uid: + description: >- + UID of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + type: string + type: object + x-kubernetes-map-type: atomic + storage: + description: Storage. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: >- + If referring to a piece of an object instead of an + entire object, this string should contain a valid + JSON/Go field access statement, such as + desiredState.manifest.containers[2]. For example, if the + object reference is to a container within a pod, this + would take on a value like: "spec.containers{name}" + (where "name" refers to the name of the container that + triggered the event) or if no container name is + specified "spec.containers[2]" (container with index 2 + in this pod). This syntax is chosen only to have some + well-defined way of referencing a part of an object. + TODO: this design is not final and this field is subject + to change in the future. + type: string + kind: + description: >- + Kind of the referent. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + name: + description: >- + Name of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + namespace: + description: >- + Namespace of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + type: string + resourceVersion: + description: >- + Specific resourceVersion to which this reference is + made, if any. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + type: string + uid: + description: >- + UID of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + type: string + type: object + x-kubernetes-map-type: atomic + required: + - network + - storage + type: object + preserveClusterCpuModel: + description: >- + Preserve the CPU model and flags the VM runs with in its oVirt + cluster. + type: boolean + provider: + description: Providers. + properties: + destination: + description: Destination. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: >- + If referring to a piece of an object instead of an + entire object, this string should contain a valid + JSON/Go field access statement, such as + desiredState.manifest.containers[2]. For example, if the + object reference is to a container within a pod, this + would take on a value like: "spec.containers{name}" + (where "name" refers to the name of the container that + triggered the event) or if no container name is + specified "spec.containers[2]" (container with index 2 + in this pod). This syntax is chosen only to have some + well-defined way of referencing a part of an object. + TODO: this design is not final and this field is subject + to change in the future. + type: string + kind: + description: >- + Kind of the referent. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + name: + description: >- + Name of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + namespace: + description: >- + Namespace of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + type: string + resourceVersion: + description: >- + Specific resourceVersion to which this reference is + made, if any. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + type: string + uid: + description: >- + UID of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + type: string + type: object + x-kubernetes-map-type: atomic + source: + description: Source. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: >- + If referring to a piece of an object instead of an + entire object, this string should contain a valid + JSON/Go field access statement, such as + desiredState.manifest.containers[2]. For example, if the + object reference is to a container within a pod, this + would take on a value like: "spec.containers{name}" + (where "name" refers to the name of the container that + triggered the event) or if no container name is + specified "spec.containers[2]" (container with index 2 + in this pod). This syntax is chosen only to have some + well-defined way of referencing a part of an object. + TODO: this design is not final and this field is subject + to change in the future. + type: string + kind: + description: >- + Kind of the referent. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + name: + description: >- + Name of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + namespace: + description: >- + Namespace of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + type: string + resourceVersion: + description: >- + Specific resourceVersion to which this reference is + made, if any. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + type: string + uid: + description: >- + UID of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + type: string + type: object + x-kubernetes-map-type: atomic + required: + - destination + - source + type: object + targetNamespace: + description: Target namespace. + type: string + transferNetwork: + description: >- + The network attachment definition that should be used for disk + transfer. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: >- + If referring to a piece of an object instead of an entire + object, this string should contain a valid JSON/Go field + access statement, such as + desiredState.manifest.containers[2]. For example, if the + object reference is to a container within a pod, this would + take on a value like: "spec.containers{name}" (where "name" + refers to the name of the container that triggered the + event) or if no container name is specified + "spec.containers[2]" (container with index 2 in this pod). + This syntax is chosen only to have some well-defined way of + referencing a part of an object. TODO: this design is not + final and this field is subject to change in the future. + type: string + kind: + description: >- + Kind of the referent. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + name: + description: >- + Name of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + namespace: + description: >- + Namespace of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + type: string + resourceVersion: + description: >- + Specific resourceVersion to which this reference is made, if + any. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + type: string + uid: + description: >- + UID of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + type: string + type: object + x-kubernetes-map-type: atomic + vms: + description: List of VMs. + items: + description: A VM listed on the plan. + properties: + hooks: + description: Enable hooks. + items: + description: Plan hook. + properties: + hook: + description: Hook reference. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: >- + If referring to a piece of an object instead of + an entire object, this string should contain a + valid JSON/Go field access statement, such as + desiredState.manifest.containers[2]. For + example, if the object reference is to a + container within a pod, this would take on a + value like: "spec.containers{name}" (where + "name" refers to the name of the container that + triggered the event) or if no container name is + specified "spec.containers[2]" (container with + index 2 in this pod). This syntax is chosen only + to have some well-defined way of referencing a + part of an object. TODO: this design is not + final and this field is subject to change in the + future. + type: string + kind: + description: >- + Kind of the referent. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + name: + description: >- + Name of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + namespace: + description: >- + Namespace of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + type: string + resourceVersion: + description: >- + Specific resourceVersion to which this reference + is made, if any. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + type: string + uid: + description: >- + UID of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + type: string + type: object + x-kubernetes-map-type: atomic + step: + description: Pipeline step. + type: string + required: + - hook + - step + type: object + type: array + id: + description: 'The object ID. vsphere: The managed object ID.' + type: string + name: + description: 'An object Name. vsphere: A qualified name.' + type: string + namespace: + description: The VM Namespace Only relevant for an openshift source. + type: string + type: + description: Type used to qualify the name. + type: string + type: object + type: array + warm: + description: Whether this is a warm migration. + type: boolean + required: + - map + - provider + - targetNamespace + - vms + type: object + status: + description: PlanStatus defines the observed state of Plan. + properties: + conditions: + description: List of conditions. + items: + description: Condition + properties: + category: + description: The condition category. + type: string + durable: + description: The condition is durable - never un-staged. + type: boolean + items: + description: A list of items referenced in the `Message`. + items: + type: string + type: array + lastTransitionTime: + description: When the last status transition occurred. + format: date-time + type: string + message: + description: The human readable description of the condition. + type: string + reason: + description: The reason for the condition or transition. + type: string + status: + description: The condition status [true,false]. + type: string + type: + description: The condition type. + type: string + required: + - category + - lastTransitionTime + - status + - type + type: object + type: array + migration: + description: Migration + properties: + completed: + description: Completed timestamp. + format: date-time + type: string + history: + description: History + items: + description: Snapshot + properties: + conditions: + description: List of conditions. + items: + description: Condition + properties: + category: + description: The condition category. + type: string + durable: + description: The condition is durable - never un-staged. + type: boolean + items: + description: A list of items referenced in the `Message`. + items: + type: string + type: array + lastTransitionTime: + description: When the last status transition occurred. + format: date-time + type: string + message: + description: The human readable description of the condition. + type: string + reason: + description: The reason for the condition or transition. + type: string + status: + description: The condition status [true,false]. + type: string + type: + description: The condition type. + type: string + required: + - category + - lastTransitionTime + - status + - type + type: object + type: array + map: + description: Map. + properties: + network: + description: Snapshot object reference. + properties: + generation: + format: int64 + type: integer + name: + type: string + namespace: + type: string + uid: + description: >- + UID is a type that holds unique ID values, + including UUIDs. Because we don't ONLY use + UUIDs, this is an alias to string. Being a + type captures intent and helps make sure that + UIDs and names do not get conflated. + type: string + required: + - generation + - name + - namespace + - uid + type: object + storage: + description: Snapshot object reference. + properties: + generation: + format: int64 + type: integer + name: + type: string + namespace: + type: string + uid: + description: >- + UID is a type that holds unique ID values, + including UUIDs. Because we don't ONLY use + UUIDs, this is an alias to string. Being a + type captures intent and helps make sure that + UIDs and names do not get conflated. + type: string + required: + - generation + - name + - namespace + - uid + type: object + required: + - network + - storage + type: object + migration: + description: Migration + properties: + generation: + format: int64 + type: integer + name: + type: string + namespace: + type: string + uid: + description: >- + UID is a type that holds unique ID values, + including UUIDs. Because we don't ONLY use UUIDs, + this is an alias to string. Being a type captures + intent and helps make sure that UIDs and names do + not get conflated. + type: string + required: + - generation + - name + - namespace + - uid + type: object + plan: + description: Plan + properties: + generation: + format: int64 + type: integer + name: + type: string + namespace: + type: string + uid: + description: >- + UID is a type that holds unique ID values, + including UUIDs. Because we don't ONLY use UUIDs, + this is an alias to string. Being a type captures + intent and helps make sure that UIDs and names do + not get conflated. + type: string + required: + - generation + - name + - namespace + - uid + type: object + provider: + description: Provider + properties: + destination: + description: Snapshot object reference. + properties: + generation: + format: int64 + type: integer + name: + type: string + namespace: + type: string + uid: + description: >- + UID is a type that holds unique ID values, + including UUIDs. Because we don't ONLY use + UUIDs, this is an alias to string. Being a + type captures intent and helps make sure that + UIDs and names do not get conflated. + type: string + required: + - generation + - name + - namespace + - uid + type: object + source: + description: Snapshot object reference. + properties: + generation: + format: int64 + type: integer + name: + type: string + namespace: + type: string + uid: + description: >- + UID is a type that holds unique ID values, + including UUIDs. Because we don't ONLY use + UUIDs, this is an alias to string. Being a + type captures intent and helps make sure that + UIDs and names do not get conflated. + type: string + required: + - generation + - name + - namespace + - uid + type: object + required: + - destination + - source + type: object + required: + - map + - migration + - plan + - provider + type: object + type: array + started: + description: Started timestamp. + format: date-time + type: string + vms: + description: VM status + items: + description: VM Status + properties: + completed: + description: Completed timestamp. + format: date-time + type: string + conditions: + description: List of conditions. + items: + description: Condition + properties: + category: + description: The condition category. + type: string + durable: + description: The condition is durable - never un-staged. + type: boolean + items: + description: A list of items referenced in the `Message`. + items: + type: string + type: array + lastTransitionTime: + description: When the last status transition occurred. + format: date-time + type: string + message: + description: The human readable description of the condition. + type: string + reason: + description: The reason for the condition or transition. + type: string + status: + description: The condition status [true,false]. + type: string + type: + description: The condition type. + type: string + required: + - category + - lastTransitionTime + - status + - type + type: object + type: array + error: + description: Errors + properties: + phase: + type: string + reasons: + items: + type: string + type: array + required: + - phase + - reasons + type: object + hooks: + description: Enable hooks. + items: + description: Plan hook. + properties: + hook: + description: Hook reference. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: >- + If referring to a piece of an object instead + of an entire object, this string should + contain a valid JSON/Go field access + statement, such as + desiredState.manifest.containers[2]. For + example, if the object reference is to a + container within a pod, this would take on a + value like: "spec.containers{name}" (where + "name" refers to the name of the container + that triggered the event) or if no container + name is specified "spec.containers[2]" + (container with index 2 in this pod). This + syntax is chosen only to have some + well-defined way of referencing a part of an + object. TODO: this design is not final and + this field is subject to change in the + future. + type: string + kind: + description: >- + Kind of the referent. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + name: + description: >- + Name of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + namespace: + description: >- + Namespace of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + type: string + resourceVersion: + description: >- + Specific resourceVersion to which this + reference is made, if any. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + type: string + uid: + description: >- + UID of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + type: string + type: object + x-kubernetes-map-type: atomic + step: + description: Pipeline step. + type: string + required: + - hook + - step + type: object + type: array + id: + description: 'The object ID. vsphere: The managed object ID.' + type: string + name: + description: 'An object Name. vsphere: A qualified name.' + type: string + namespace: + description: >- + The VM Namespace Only relevant for an openshift + source. + type: string + phase: + description: Phase + type: string + pipeline: + description: Migration pipeline. + items: + description: Pipeline step. + properties: + annotations: + additionalProperties: + type: string + description: Annotations. + type: object + completed: + description: Completed timestamp. + format: date-time + type: string + description: + description: Name + type: string + error: + description: Error. + properties: + phase: + type: string + reasons: + items: + type: string + type: array + required: + - phase + - reasons + type: object + name: + description: Name. + type: string + phase: + description: Phase + type: string + progress: + description: Progress. + properties: + completed: + description: Completed units. + format: int64 + type: integer + total: + description: Total units. + format: int64 + type: integer + required: + - completed + - total + type: object + reason: + description: Reason + type: string + started: + description: Started timestamp. + format: date-time + type: string + tasks: + description: Nested tasks. + items: + description: Migration task. + properties: + annotations: + additionalProperties: + type: string + description: Annotations. + type: object + completed: + description: Completed timestamp. + format: date-time + type: string + description: + description: Name + type: string + error: + description: Error. + properties: + phase: + type: string + reasons: + items: + type: string + type: array + required: + - phase + - reasons + type: object + name: + description: Name. + type: string + phase: + description: Phase + type: string + progress: + description: Progress. + properties: + completed: + description: Completed units. + format: int64 + type: integer + total: + description: Total units. + format: int64 + type: integer + required: + - completed + - total + type: object + reason: + description: Reason + type: string + started: + description: Started timestamp. + format: date-time + type: string + required: + - name + - progress + type: object + type: array + required: + - name + - progress + type: object + type: array + restorePowerState: + description: Source VM power state before migration. + type: string + started: + description: Started timestamp. + format: date-time + type: string + type: + description: Type used to qualify the name. + type: string + warm: + description: Warm migration status + properties: + consecutiveFailures: + type: integer + failures: + type: integer + nextPrecopyAt: + format: date-time + type: string + precopies: + items: + description: Precopy durations + properties: + end: + format: date-time + type: string + snapshot: + type: string + start: + format: date-time + type: string + type: object + type: array + successes: + type: integer + required: + - consecutiveFailures + - failures + - successes + type: object + required: + - phase + - pipeline + type: object + type: array + type: object + observedGeneration: + description: The most recent generation observed by the controller. + format: int64 + type: integer + type: object + type: object + v1beta1Provider: + properties: + apiVersion: + description: >- + APIVersion defines the versioned schema of this representation of an + object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: >- + Kind is a string value representing the REST resource this object + represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: Defines the desired state of Provider. + properties: + secret: + description: >- + References a secret containing credentials and other + confidential information. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: >- + If referring to a piece of an object instead of an entire + object, this string should contain a valid JSON/Go field + access statement, such as + desiredState.manifest.containers[2]. For example, if the + object reference is to a container within a pod, this would + take on a value like: "spec.containers{name}" (where "name" + refers to the name of the container that triggered the + event) or if no container name is specified + "spec.containers[2]" (container with index 2 in this pod). + This syntax is chosen only to have some well-defined way of + referencing a part of an object. TODO: this design is not + final and this field is subject to change in the future. + type: string + kind: + description: >- + Kind of the referent. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + name: + description: >- + Name of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + namespace: + description: >- + Namespace of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + type: string + resourceVersion: + description: >- + Specific resourceVersion to which this reference is made, if + any. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + type: string + uid: + description: >- + UID of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + type: string + type: object + x-kubernetes-map-type: atomic + settings: + additionalProperties: + type: string + description: Provider settings. + type: object + type: + description: Provider type. + type: string + url: + description: The provider URL. Empty may be used for the `host` provider. + type: string + required: + - secret + - type + type: object + status: + description: ProviderStatus defines the observed state of Provider + properties: + conditions: + description: List of conditions. + items: + description: Condition + properties: + category: + description: The condition category. + type: string + durable: + description: The condition is durable - never un-staged. + type: boolean + items: + description: A list of items referenced in the `Message`. + items: + type: string + type: array + lastTransitionTime: + description: When the last status transition occurred. + format: date-time + type: string + message: + description: The human readable description of the condition. + type: string + reason: + description: The reason for the condition or transition. + type: string + status: + description: The condition status [true,false]. + type: string + type: + description: The condition type. + type: string + required: + - category + - lastTransitionTime + - status + - type + type: object + type: array + fingerprint: + description: Fingerprint. + type: string + observedGeneration: + description: The most recent generation observed by the controller. + format: int64 + type: integer + phase: + description: Current life cycle phase of the provider. + type: string + type: object + type: object + v1beta1StorageMap: + properties: + apiVersion: + description: >- + APIVersion defines the versioned schema of this representation of an + object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: >- + Kind is a string value representing the REST resource this object + represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: Storage map spec. + properties: + map: + description: Map. + items: + description: Mapped storage. + properties: + destination: + description: Destination storage. + properties: + accessMode: + description: Access mode. + enum: + - ReadWriteOnce + - ReadWriteMany + - ReadOnlyMany + type: string + storageClass: + description: A storage class. + type: string + volumeMode: + description: Volume mode. + enum: + - Filesystem + - Block + type: string + required: + - storageClass + type: object + source: + description: Source storage. + properties: + id: + description: 'The object ID. vsphere: The managed object ID.' + type: string + name: + description: 'An object Name. vsphere: A qualified name.' + type: string + namespace: + description: >- + The VM Namespace Only relevant for an openshift + source. + type: string + type: + description: Type used to qualify the name. + type: string + type: object + required: + - destination + - source + type: object + type: array + provider: + description: Provider + properties: + destination: + description: Destination. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: >- + If referring to a piece of an object instead of an + entire object, this string should contain a valid + JSON/Go field access statement, such as + desiredState.manifest.containers[2]. For example, if the + object reference is to a container within a pod, this + would take on a value like: "spec.containers{name}" + (where "name" refers to the name of the container that + triggered the event) or if no container name is + specified "spec.containers[2]" (container with index 2 + in this pod). This syntax is chosen only to have some + well-defined way of referencing a part of an object. + TODO: this design is not final and this field is subject + to change in the future. + type: string + kind: + description: >- + Kind of the referent. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + name: + description: >- + Name of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + namespace: + description: >- + Namespace of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + type: string + resourceVersion: + description: >- + Specific resourceVersion to which this reference is + made, if any. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + type: string + uid: + description: >- + UID of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + type: string + type: object + x-kubernetes-map-type: atomic + source: + description: Source. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: >- + If referring to a piece of an object instead of an + entire object, this string should contain a valid + JSON/Go field access statement, such as + desiredState.manifest.containers[2]. For example, if the + object reference is to a container within a pod, this + would take on a value like: "spec.containers{name}" + (where "name" refers to the name of the container that + triggered the event) or if no container name is + specified "spec.containers[2]" (container with index 2 + in this pod). This syntax is chosen only to have some + well-defined way of referencing a part of an object. + TODO: this design is not final and this field is subject + to change in the future. + type: string + kind: + description: >- + Kind of the referent. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + name: + description: >- + Name of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + namespace: + description: >- + Namespace of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + type: string + resourceVersion: + description: >- + Specific resourceVersion to which this reference is + made, if any. More info: + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + type: string + uid: + description: >- + UID of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + type: string + type: object + x-kubernetes-map-type: atomic + required: + - destination + - source + type: object + required: + - map + - provider + type: object + status: + description: MapStatus defines the observed state of Maps. + properties: + conditions: + description: List of conditions. + items: + description: Condition + properties: + category: + description: The condition category. + type: string + durable: + description: The condition is durable - never un-staged. + type: boolean + items: + description: A list of items referenced in the `Message`. + items: + type: string + type: array + lastTransitionTime: + description: When the last status transition occurred. + format: date-time + type: string + message: + description: The human readable description of the condition. + type: string + reason: + description: The reason for the condition or transition. + type: string + status: + description: The condition status [true,false]. + type: string + type: + description: The condition type. + type: string + required: + - category + - lastTransitionTime + - status + - type + type: object + type: array + observedGeneration: + description: The most recent generation observed by the controller. + format: int64 + type: integer + references: + items: + description: Source reference. Either the ID or Name must be specified. + properties: + id: + description: 'The object ID. vsphere: The managed object ID.' + type: string + name: + description: 'An object Name. vsphere: A qualified name.' + type: string + namespace: + description: The VM Namespace Only relevant for an openshift source. + type: string + type: + description: Type used to qualify the name. + type: string + type: object + type: array + type: object + type: object + diff --git a/packages/types/src/generated/index.ts b/packages/types/src/generated/index.ts new file mode 100644 index 000000000..75f3e35c5 --- /dev/null +++ b/packages/types/src/generated/index.ts @@ -0,0 +1,5 @@ +// @index(['./*', /.ts/g], f => `export * from '${f.path}';`) +export * from './forklift'; +export * from './kubernetes'; +export * from './kubevirt'; +// @endindex diff --git a/packages/types/src/generated/kubernetes/README.md b/packages/types/src/generated/kubernetes/README.md new file mode 100644 index 000000000..2bfd4eb7d --- /dev/null +++ b/packages/types/src/generated/kubernetes/README.md @@ -0,0 +1,15 @@ +## Auto generate typescritp types + +``` bash +npm i @openapitools/openapi-generator-cli + +curl https://raw.githubusercontent.com/kubernetes/kubernetes/master/api/openapi-spec/swagger.json -o swagger.json + +npx openapi-generator-cli generate -g typescript-fetch --skip-validate-spec -o $(pwd) -i $(pwd)/swagger.json + +rm -rf apis index.ts runtime.ts .openapi-generator* + +find ./models -type f -exec sed -i 's/\.\.\/runtime/\.\.\/\.\.\/runtime/g' {} + + +echo "export * from './models';" > index.ts +``` \ No newline at end of file diff --git a/packages/types/src/generated/kubernetes/index.ts b/packages/types/src/generated/kubernetes/index.ts new file mode 100644 index 000000000..e9644dae4 --- /dev/null +++ b/packages/types/src/generated/kubernetes/index.ts @@ -0,0 +1 @@ +export * from './models'; diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1MatchCondition.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1MatchCondition.ts new file mode 100644 index 000000000..2b9f8c6ef --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1MatchCondition.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook. + * @export + * @interface IoK8sApiAdmissionregistrationV1MatchCondition + */ +export interface IoK8sApiAdmissionregistrationV1MatchCondition { + /** + * Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: + * + * 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. + * See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz + * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the + * request resource. + * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ + * + * Required. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1MatchCondition + */ + expression: string; + /** + * Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') + * + * Required. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1MatchCondition + */ + name: string; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1MatchCondition interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1MatchCondition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "expression" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1MatchConditionFromJSON(json: any): IoK8sApiAdmissionregistrationV1MatchCondition { + return IoK8sApiAdmissionregistrationV1MatchConditionFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1MatchConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1MatchCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'expression': json['expression'], + 'name': json['name'], + }; +} + +export function IoK8sApiAdmissionregistrationV1MatchConditionToJSON(value?: IoK8sApiAdmissionregistrationV1MatchCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'expression': value.expression, + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1MutatingWebhook.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1MutatingWebhook.ts new file mode 100644 index 000000000..6ce88809c --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1MutatingWebhook.ts @@ -0,0 +1,203 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAdmissionregistrationV1MatchCondition } from './IoK8sApiAdmissionregistrationV1MatchCondition'; +import { + IoK8sApiAdmissionregistrationV1MatchConditionFromJSON, + IoK8sApiAdmissionregistrationV1MatchConditionFromJSONTyped, + IoK8sApiAdmissionregistrationV1MatchConditionToJSON, +} from './IoK8sApiAdmissionregistrationV1MatchCondition'; +import type { IoK8sApiAdmissionregistrationV1RuleWithOperations } from './IoK8sApiAdmissionregistrationV1RuleWithOperations'; +import { + IoK8sApiAdmissionregistrationV1RuleWithOperationsFromJSON, + IoK8sApiAdmissionregistrationV1RuleWithOperationsFromJSONTyped, + IoK8sApiAdmissionregistrationV1RuleWithOperationsToJSON, +} from './IoK8sApiAdmissionregistrationV1RuleWithOperations'; +import type { IoK8sApiAdmissionregistrationV1WebhookClientConfig } from './IoK8sApiAdmissionregistrationV1WebhookClientConfig'; +import { + IoK8sApiAdmissionregistrationV1WebhookClientConfigFromJSON, + IoK8sApiAdmissionregistrationV1WebhookClientConfigFromJSONTyped, + IoK8sApiAdmissionregistrationV1WebhookClientConfigToJSON, +} from './IoK8sApiAdmissionregistrationV1WebhookClientConfig'; +import type { IoK8sApimachineryPkgApisMetaV1LabelSelector } from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; +import { + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON, + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; + +/** + * MutatingWebhook describes an admission webhook and the resources and operations it applies to. + * @export + * @interface IoK8sApiAdmissionregistrationV1MutatingWebhook + */ +export interface IoK8sApiAdmissionregistrationV1MutatingWebhook { + /** + * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1MutatingWebhook + */ + admissionReviewVersions: Array; + /** + * + * @type {IoK8sApiAdmissionregistrationV1WebhookClientConfig} + * @memberof IoK8sApiAdmissionregistrationV1MutatingWebhook + */ + clientConfig: IoK8sApiAdmissionregistrationV1WebhookClientConfig; + /** + * FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1MutatingWebhook + */ + failurePolicy?: string; + /** + * MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. + * + * The exact matching logic is (in order): + * 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. + * 2. If ALL matchConditions evaluate to TRUE, the webhook is called. + * 3. If any matchCondition evaluates to an error (but none are FALSE): + * - If failurePolicy=Fail, reject the request + * - If failurePolicy=Ignore, the error is ignored and the webhook is skipped + * + * This is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1MutatingWebhook + */ + matchConditions?: Array; + /** + * matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + * + * - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. + * + * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. + * + * Defaults to "Equivalent" + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1MutatingWebhook + */ + matchPolicy?: string; + /** + * The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1MutatingWebhook + */ + name: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1LabelSelector} + * @memberof IoK8sApiAdmissionregistrationV1MutatingWebhook + */ + namespaceSelector?: IoK8sApimachineryPkgApisMetaV1LabelSelector; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1LabelSelector} + * @memberof IoK8sApiAdmissionregistrationV1MutatingWebhook + */ + objectSelector?: IoK8sApimachineryPkgApisMetaV1LabelSelector; + /** + * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". + * + * Never: the webhook will not be called more than once in a single admission evaluation. + * + * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. + * + * Defaults to "Never". + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1MutatingWebhook + */ + reinvocationPolicy?: string; + /** + * Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1MutatingWebhook + */ + rules?: Array; + /** + * SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1MutatingWebhook + */ + sideEffects: string; + /** + * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. + * @type {number} + * @memberof IoK8sApiAdmissionregistrationV1MutatingWebhook + */ + timeoutSeconds?: number; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1MutatingWebhook interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1MutatingWebhook(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "admissionReviewVersions" in value; + isInstance = isInstance && "clientConfig" in value; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "sideEffects" in value; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1MutatingWebhookFromJSON(json: any): IoK8sApiAdmissionregistrationV1MutatingWebhook { + return IoK8sApiAdmissionregistrationV1MutatingWebhookFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1MutatingWebhookFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1MutatingWebhook { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'admissionReviewVersions': json['admissionReviewVersions'], + 'clientConfig': IoK8sApiAdmissionregistrationV1WebhookClientConfigFromJSON(json['clientConfig']), + 'failurePolicy': !exists(json, 'failurePolicy') ? undefined : json['failurePolicy'], + 'matchConditions': !exists(json, 'matchConditions') ? undefined : ((json['matchConditions'] as Array).map(IoK8sApiAdmissionregistrationV1MatchConditionFromJSON)), + 'matchPolicy': !exists(json, 'matchPolicy') ? undefined : json['matchPolicy'], + 'name': json['name'], + 'namespaceSelector': !exists(json, 'namespaceSelector') ? undefined : IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['namespaceSelector']), + 'objectSelector': !exists(json, 'objectSelector') ? undefined : IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['objectSelector']), + 'reinvocationPolicy': !exists(json, 'reinvocationPolicy') ? undefined : json['reinvocationPolicy'], + 'rules': !exists(json, 'rules') ? undefined : ((json['rules'] as Array).map(IoK8sApiAdmissionregistrationV1RuleWithOperationsFromJSON)), + 'sideEffects': json['sideEffects'], + 'timeoutSeconds': !exists(json, 'timeoutSeconds') ? undefined : json['timeoutSeconds'], + }; +} + +export function IoK8sApiAdmissionregistrationV1MutatingWebhookToJSON(value?: IoK8sApiAdmissionregistrationV1MutatingWebhook | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'admissionReviewVersions': value.admissionReviewVersions, + 'clientConfig': IoK8sApiAdmissionregistrationV1WebhookClientConfigToJSON(value.clientConfig), + 'failurePolicy': value.failurePolicy, + 'matchConditions': value.matchConditions === undefined ? undefined : ((value.matchConditions as Array).map(IoK8sApiAdmissionregistrationV1MatchConditionToJSON)), + 'matchPolicy': value.matchPolicy, + 'name': value.name, + 'namespaceSelector': IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value.namespaceSelector), + 'objectSelector': IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value.objectSelector), + 'reinvocationPolicy': value.reinvocationPolicy, + 'rules': value.rules === undefined ? undefined : ((value.rules as Array).map(IoK8sApiAdmissionregistrationV1RuleWithOperationsToJSON)), + 'sideEffects': value.sideEffects, + 'timeoutSeconds': value.timeoutSeconds, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1MutatingWebhookConfiguration.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1MutatingWebhookConfiguration.ts new file mode 100644 index 000000000..30000ab8b --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1MutatingWebhookConfiguration.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAdmissionregistrationV1MutatingWebhook } from './IoK8sApiAdmissionregistrationV1MutatingWebhook'; +import { + IoK8sApiAdmissionregistrationV1MutatingWebhookFromJSON, + IoK8sApiAdmissionregistrationV1MutatingWebhookFromJSONTyped, + IoK8sApiAdmissionregistrationV1MutatingWebhookToJSON, +} from './IoK8sApiAdmissionregistrationV1MutatingWebhook'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. + * @export + * @interface IoK8sApiAdmissionregistrationV1MutatingWebhookConfiguration + */ +export interface IoK8sApiAdmissionregistrationV1MutatingWebhookConfiguration { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1MutatingWebhookConfiguration + */ + 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 + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1MutatingWebhookConfiguration + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiAdmissionregistrationV1MutatingWebhookConfiguration + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * Webhooks is a list of webhooks and the affected resources and operations. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1MutatingWebhookConfiguration + */ + webhooks?: Array; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1MutatingWebhookConfiguration interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1MutatingWebhookConfiguration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationFromJSON(json: any): IoK8sApiAdmissionregistrationV1MutatingWebhookConfiguration { + return IoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1MutatingWebhookConfiguration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'webhooks': !exists(json, 'webhooks') ? undefined : ((json['webhooks'] as Array).map(IoK8sApiAdmissionregistrationV1MutatingWebhookFromJSON)), + }; +} + +export function IoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationToJSON(value?: IoK8sApiAdmissionregistrationV1MutatingWebhookConfiguration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'webhooks': value.webhooks === undefined ? undefined : ((value.webhooks as Array).map(IoK8sApiAdmissionregistrationV1MutatingWebhookToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationList.ts new file mode 100644 index 000000000..fa8236be0 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAdmissionregistrationV1MutatingWebhookConfiguration } from './IoK8sApiAdmissionregistrationV1MutatingWebhookConfiguration'; +import { + IoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationFromJSON, + IoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationFromJSONTyped, + IoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationToJSON, +} from './IoK8sApiAdmissionregistrationV1MutatingWebhookConfiguration'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. + * @export + * @interface IoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationList + */ +export interface IoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationList + */ + apiVersion?: string; + /** + * List of MutatingWebhookConfiguration. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationList + */ + 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 + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationList interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationListFromJSON(json: any): IoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationList { + return IoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationListFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationListToJSON(value?: IoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1RuleWithOperations.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1RuleWithOperations.ts new file mode 100644 index 000000000..28b42914b --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1RuleWithOperations.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid. + * @export + * @interface IoK8sApiAdmissionregistrationV1RuleWithOperations + */ +export interface IoK8sApiAdmissionregistrationV1RuleWithOperations { + /** + * APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1RuleWithOperations + */ + apiGroups?: string[]; + /** + * APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1RuleWithOperations + */ + apiVersions?: Array; + /** + * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1RuleWithOperations + */ + operations?: Array; + /** + * Resources is a list of resources this rule applies to. + * + * For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. means all resources and their subresources. + * + * If wildcard is present, the validation rule will ensure resources do not overlap with each other. + * + * Depending on the enclosing object, subresources might not be allowed. Required. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1RuleWithOperations + */ + resources?: Array; + /** + * scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1RuleWithOperations + */ + scope?: string; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1RuleWithOperations interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1RuleWithOperations(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1RuleWithOperationsFromJSON(json: any): IoK8sApiAdmissionregistrationV1RuleWithOperations { + return IoK8sApiAdmissionregistrationV1RuleWithOperationsFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1RuleWithOperationsFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1RuleWithOperations { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiGroups': !exists(json, 'apiGroups') ? undefined : json['apiGroups'], + 'apiVersions': !exists(json, 'apiVersions') ? undefined : json['apiVersions'], + 'operations': !exists(json, 'operations') ? undefined : json['operations'], + 'resources': !exists(json, 'resources') ? undefined : json['resources'], + 'scope': !exists(json, 'scope') ? undefined : json['scope'], + }; +} + +export function IoK8sApiAdmissionregistrationV1RuleWithOperationsToJSON(value?: IoK8sApiAdmissionregistrationV1RuleWithOperations | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiGroups': value.apiGroups, + 'apiVersions': value.apiVersions, + 'operations': value.operations, + 'resources': value.resources, + 'scope': value.scope, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1ServiceReference.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1ServiceReference.ts new file mode 100644 index 000000000..7b2853edf --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1ServiceReference.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ServiceReference holds a reference to Service.legacy.k8s.io + * @export + * @interface IoK8sApiAdmissionregistrationV1ServiceReference + */ +export interface IoK8sApiAdmissionregistrationV1ServiceReference { + /** + * `name` is the name of the service. Required + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1ServiceReference + */ + name: string; + /** + * `namespace` is the namespace of the service. Required + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1ServiceReference + */ + namespace: string; + /** + * `path` is an optional URL path which will be sent in any request to this service. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1ServiceReference + */ + path?: string; + /** + * If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + * @type {number} + * @memberof IoK8sApiAdmissionregistrationV1ServiceReference + */ + port?: number; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1ServiceReference interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1ServiceReference(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "namespace" in value; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1ServiceReferenceFromJSON(json: any): IoK8sApiAdmissionregistrationV1ServiceReference { + return IoK8sApiAdmissionregistrationV1ServiceReferenceFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1ServiceReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1ServiceReference { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + 'namespace': json['namespace'], + 'path': !exists(json, 'path') ? undefined : json['path'], + 'port': !exists(json, 'port') ? undefined : json['port'], + }; +} + +export function IoK8sApiAdmissionregistrationV1ServiceReferenceToJSON(value?: IoK8sApiAdmissionregistrationV1ServiceReference | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'namespace': value.namespace, + 'path': value.path, + 'port': value.port, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1ValidatingWebhook.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1ValidatingWebhook.ts new file mode 100644 index 000000000..4989f372a --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1ValidatingWebhook.ts @@ -0,0 +1,189 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAdmissionregistrationV1MatchCondition } from './IoK8sApiAdmissionregistrationV1MatchCondition'; +import { + IoK8sApiAdmissionregistrationV1MatchConditionFromJSON, + IoK8sApiAdmissionregistrationV1MatchConditionFromJSONTyped, + IoK8sApiAdmissionregistrationV1MatchConditionToJSON, +} from './IoK8sApiAdmissionregistrationV1MatchCondition'; +import type { IoK8sApiAdmissionregistrationV1RuleWithOperations } from './IoK8sApiAdmissionregistrationV1RuleWithOperations'; +import { + IoK8sApiAdmissionregistrationV1RuleWithOperationsFromJSON, + IoK8sApiAdmissionregistrationV1RuleWithOperationsFromJSONTyped, + IoK8sApiAdmissionregistrationV1RuleWithOperationsToJSON, +} from './IoK8sApiAdmissionregistrationV1RuleWithOperations'; +import type { IoK8sApiAdmissionregistrationV1WebhookClientConfig } from './IoK8sApiAdmissionregistrationV1WebhookClientConfig'; +import { + IoK8sApiAdmissionregistrationV1WebhookClientConfigFromJSON, + IoK8sApiAdmissionregistrationV1WebhookClientConfigFromJSONTyped, + IoK8sApiAdmissionregistrationV1WebhookClientConfigToJSON, +} from './IoK8sApiAdmissionregistrationV1WebhookClientConfig'; +import type { IoK8sApimachineryPkgApisMetaV1LabelSelector } from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; +import { + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON, + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; + +/** + * ValidatingWebhook describes an admission webhook and the resources and operations it applies to. + * @export + * @interface IoK8sApiAdmissionregistrationV1ValidatingWebhook + */ +export interface IoK8sApiAdmissionregistrationV1ValidatingWebhook { + /** + * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1ValidatingWebhook + */ + admissionReviewVersions: string[]; + /** + * + * @type {IoK8sApiAdmissionregistrationV1WebhookClientConfig} + * @memberof IoK8sApiAdmissionregistrationV1ValidatingWebhook + */ + clientConfig: IoK8sApiAdmissionregistrationV1WebhookClientConfig; + /** + * FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1ValidatingWebhook + */ + failurePolicy?: string; + /** + * MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. + * + * The exact matching logic is (in order): + * 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. + * 2. If ALL matchConditions evaluate to TRUE, the webhook is called. + * 3. If any matchCondition evaluates to an error (but none are FALSE): + * - If failurePolicy=Fail, reject the request + * - If failurePolicy=Ignore, the error is ignored and the webhook is skipped + * + * This is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1ValidatingWebhook + */ + matchConditions?: Array; + /** + * matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + * + * - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. + * + * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. + * + * Defaults to "Equivalent" + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1ValidatingWebhook + */ + matchPolicy?: string; + /** + * The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1ValidatingWebhook + */ + name: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1LabelSelector} + * @memberof IoK8sApiAdmissionregistrationV1ValidatingWebhook + */ + namespaceSelector?: IoK8sApimachineryPkgApisMetaV1LabelSelector; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1LabelSelector} + * @memberof IoK8sApiAdmissionregistrationV1ValidatingWebhook + */ + objectSelector?: IoK8sApimachineryPkgApisMetaV1LabelSelector; + /** + * Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1ValidatingWebhook + */ + rules?: Array; + /** + * SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1ValidatingWebhook + */ + sideEffects: string; + /** + * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. + * @type {number} + * @memberof IoK8sApiAdmissionregistrationV1ValidatingWebhook + */ + timeoutSeconds?: number; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1ValidatingWebhook interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1ValidatingWebhook(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "admissionReviewVersions" in value; + isInstance = isInstance && "clientConfig" in value; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "sideEffects" in value; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1ValidatingWebhookFromJSON(json: any): IoK8sApiAdmissionregistrationV1ValidatingWebhook { + return IoK8sApiAdmissionregistrationV1ValidatingWebhookFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1ValidatingWebhookFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1ValidatingWebhook { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'admissionReviewVersions': json['admissionReviewVersions'], + 'clientConfig': IoK8sApiAdmissionregistrationV1WebhookClientConfigFromJSON(json['clientConfig']), + 'failurePolicy': !exists(json, 'failurePolicy') ? undefined : json['failurePolicy'], + 'matchConditions': !exists(json, 'matchConditions') ? undefined : ((json['matchConditions'] as Array).map(IoK8sApiAdmissionregistrationV1MatchConditionFromJSON)), + 'matchPolicy': !exists(json, 'matchPolicy') ? undefined : json['matchPolicy'], + 'name': json['name'], + 'namespaceSelector': !exists(json, 'namespaceSelector') ? undefined : IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['namespaceSelector']), + 'objectSelector': !exists(json, 'objectSelector') ? undefined : IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['objectSelector']), + 'rules': !exists(json, 'rules') ? undefined : ((json['rules'] as Array).map(IoK8sApiAdmissionregistrationV1RuleWithOperationsFromJSON)), + 'sideEffects': json['sideEffects'], + 'timeoutSeconds': !exists(json, 'timeoutSeconds') ? undefined : json['timeoutSeconds'], + }; +} + +export function IoK8sApiAdmissionregistrationV1ValidatingWebhookToJSON(value?: IoK8sApiAdmissionregistrationV1ValidatingWebhook | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'admissionReviewVersions': value.admissionReviewVersions, + 'clientConfig': IoK8sApiAdmissionregistrationV1WebhookClientConfigToJSON(value.clientConfig), + 'failurePolicy': value.failurePolicy, + 'matchConditions': value.matchConditions === undefined ? undefined : ((value.matchConditions as Array).map(IoK8sApiAdmissionregistrationV1MatchConditionToJSON)), + 'matchPolicy': value.matchPolicy, + 'name': value.name, + 'namespaceSelector': IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value.namespaceSelector), + 'objectSelector': IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value.objectSelector), + 'rules': value.rules === undefined ? undefined : ((value.rules as Array).map(IoK8sApiAdmissionregistrationV1RuleWithOperationsToJSON)), + 'sideEffects': value.sideEffects, + 'timeoutSeconds': value.timeoutSeconds, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1ValidatingWebhookConfiguration.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1ValidatingWebhookConfiguration.ts new file mode 100644 index 000000000..1b0f618b7 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1ValidatingWebhookConfiguration.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAdmissionregistrationV1ValidatingWebhook } from './IoK8sApiAdmissionregistrationV1ValidatingWebhook'; +import { + IoK8sApiAdmissionregistrationV1ValidatingWebhookFromJSON, + IoK8sApiAdmissionregistrationV1ValidatingWebhookFromJSONTyped, + IoK8sApiAdmissionregistrationV1ValidatingWebhookToJSON, +} from './IoK8sApiAdmissionregistrationV1ValidatingWebhook'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. + * @export + * @interface IoK8sApiAdmissionregistrationV1ValidatingWebhookConfiguration + */ +export interface IoK8sApiAdmissionregistrationV1ValidatingWebhookConfiguration { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1ValidatingWebhookConfiguration + */ + 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 + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1ValidatingWebhookConfiguration + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiAdmissionregistrationV1ValidatingWebhookConfiguration + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * Webhooks is a list of webhooks and the affected resources and operations. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1ValidatingWebhookConfiguration + */ + webhooks?: Array; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1ValidatingWebhookConfiguration interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1ValidatingWebhookConfiguration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationFromJSON(json: any): IoK8sApiAdmissionregistrationV1ValidatingWebhookConfiguration { + return IoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1ValidatingWebhookConfiguration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'webhooks': !exists(json, 'webhooks') ? undefined : ((json['webhooks'] as Array).map(IoK8sApiAdmissionregistrationV1ValidatingWebhookFromJSON)), + }; +} + +export function IoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationToJSON(value?: IoK8sApiAdmissionregistrationV1ValidatingWebhookConfiguration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'webhooks': value.webhooks === undefined ? undefined : ((value.webhooks as Array).map(IoK8sApiAdmissionregistrationV1ValidatingWebhookToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationList.ts new file mode 100644 index 000000000..5042f7c04 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAdmissionregistrationV1ValidatingWebhookConfiguration } from './IoK8sApiAdmissionregistrationV1ValidatingWebhookConfiguration'; +import { + IoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationFromJSON, + IoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationFromJSONTyped, + IoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationToJSON, +} from './IoK8sApiAdmissionregistrationV1ValidatingWebhookConfiguration'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. + * @export + * @interface IoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationList + */ +export interface IoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationList + */ + apiVersion?: string; + /** + * List of ValidatingWebhookConfiguration. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationList + */ + 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 + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationList interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationListFromJSON(json: any): IoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationList { + return IoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationListFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationListToJSON(value?: IoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1WebhookClientConfig.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1WebhookClientConfig.ts new file mode 100644 index 000000000..834c95cca --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1WebhookClientConfig.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAdmissionregistrationV1ServiceReference } from './IoK8sApiAdmissionregistrationV1ServiceReference'; +import { + IoK8sApiAdmissionregistrationV1ServiceReferenceFromJSON, + IoK8sApiAdmissionregistrationV1ServiceReferenceFromJSONTyped, + IoK8sApiAdmissionregistrationV1ServiceReferenceToJSON, +} from './IoK8sApiAdmissionregistrationV1ServiceReference'; + +/** + * WebhookClientConfig contains the information to make a TLS connection with the webhook + * @export + * @interface IoK8sApiAdmissionregistrationV1WebhookClientConfig + */ +export interface IoK8sApiAdmissionregistrationV1WebhookClientConfig { + /** + * `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1WebhookClientConfig + */ + caBundle?: string; + /** + * + * @type {IoK8sApiAdmissionregistrationV1ServiceReference} + * @memberof IoK8sApiAdmissionregistrationV1WebhookClientConfig + */ + service?: IoK8sApiAdmissionregistrationV1ServiceReference; + /** + * `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + * + * The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + * + * Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + * + * The scheme must be "https"; the URL must begin with "https://". + * + * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + * + * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1WebhookClientConfig + */ + url?: string; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1WebhookClientConfig interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1WebhookClientConfig(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1WebhookClientConfigFromJSON(json: any): IoK8sApiAdmissionregistrationV1WebhookClientConfig { + return IoK8sApiAdmissionregistrationV1WebhookClientConfigFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1WebhookClientConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1WebhookClientConfig { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'caBundle': !exists(json, 'caBundle') ? undefined : json['caBundle'], + 'service': !exists(json, 'service') ? undefined : IoK8sApiAdmissionregistrationV1ServiceReferenceFromJSON(json['service']), + 'url': !exists(json, 'url') ? undefined : json['url'], + }; +} + +export function IoK8sApiAdmissionregistrationV1WebhookClientConfigToJSON(value?: IoK8sApiAdmissionregistrationV1WebhookClientConfig | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'caBundle': value.caBundle, + 'service': IoK8sApiAdmissionregistrationV1ServiceReferenceToJSON(value.service), + 'url': value.url, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1AuditAnnotation.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1AuditAnnotation.ts new file mode 100644 index 000000000..097434ec4 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1AuditAnnotation.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * AuditAnnotation describes how to produce an audit annotation for an API request. + * @export + * @interface IoK8sApiAdmissionregistrationV1alpha1AuditAnnotation + */ +export interface IoK8sApiAdmissionregistrationV1alpha1AuditAnnotation { + /** + * key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. + * + * The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: "{ValidatingAdmissionPolicy name}/{key}". + * + * If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. + * + * Required. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1AuditAnnotation + */ + key: string; + /** + * valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. + * + * If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. + * + * Required. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1AuditAnnotation + */ + valueExpression: string; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1alpha1AuditAnnotation interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1alpha1AuditAnnotation(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "key" in value; + isInstance = isInstance && "valueExpression" in value; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1alpha1AuditAnnotationFromJSON(json: any): IoK8sApiAdmissionregistrationV1alpha1AuditAnnotation { + return IoK8sApiAdmissionregistrationV1alpha1AuditAnnotationFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1alpha1AuditAnnotationFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1alpha1AuditAnnotation { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'key': json['key'], + 'valueExpression': json['valueExpression'], + }; +} + +export function IoK8sApiAdmissionregistrationV1alpha1AuditAnnotationToJSON(value?: IoK8sApiAdmissionregistrationV1alpha1AuditAnnotation | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'key': value.key, + 'valueExpression': value.valueExpression, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ExpressionWarning.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ExpressionWarning.ts new file mode 100644 index 000000000..28158d388 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ExpressionWarning.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ExpressionWarning is a warning information that targets a specific expression. + * @export + * @interface IoK8sApiAdmissionregistrationV1alpha1ExpressionWarning + */ +export interface IoK8sApiAdmissionregistrationV1alpha1ExpressionWarning { + /** + * The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is "spec.validations[0].expression" + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ExpressionWarning + */ + fieldRef: string; + /** + * The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ExpressionWarning + */ + warning: string; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1alpha1ExpressionWarning interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1alpha1ExpressionWarning(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "fieldRef" in value; + isInstance = isInstance && "warning" in value; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1alpha1ExpressionWarningFromJSON(json: any): IoK8sApiAdmissionregistrationV1alpha1ExpressionWarning { + return IoK8sApiAdmissionregistrationV1alpha1ExpressionWarningFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1alpha1ExpressionWarningFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1alpha1ExpressionWarning { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'fieldRef': json['fieldRef'], + 'warning': json['warning'], + }; +} + +export function IoK8sApiAdmissionregistrationV1alpha1ExpressionWarningToJSON(value?: IoK8sApiAdmissionregistrationV1alpha1ExpressionWarning | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'fieldRef': value.fieldRef, + 'warning': value.warning, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1MatchCondition.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1MatchCondition.ts new file mode 100644 index 000000000..f3d146773 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1MatchCondition.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface IoK8sApiAdmissionregistrationV1alpha1MatchCondition + */ +export interface IoK8sApiAdmissionregistrationV1alpha1MatchCondition { + /** + * Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: + * + * 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. + * See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz + * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the + * request resource. + * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ + * + * Required. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1MatchCondition + */ + expression: string; + /** + * Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') + * + * Required. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1MatchCondition + */ + name: string; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1alpha1MatchCondition interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1alpha1MatchCondition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "expression" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1alpha1MatchConditionFromJSON(json: any): IoK8sApiAdmissionregistrationV1alpha1MatchCondition { + return IoK8sApiAdmissionregistrationV1alpha1MatchConditionFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1alpha1MatchConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1alpha1MatchCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'expression': json['expression'], + 'name': json['name'], + }; +} + +export function IoK8sApiAdmissionregistrationV1alpha1MatchConditionToJSON(value?: IoK8sApiAdmissionregistrationV1alpha1MatchCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'expression': value.expression, + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1MatchResources.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1MatchResources.ts new file mode 100644 index 000000000..c935545c8 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1MatchResources.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperations } from './IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperations'; +import { + IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperationsFromJSON, + IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperationsFromJSONTyped, + IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperationsToJSON, +} from './IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperations'; +import type { IoK8sApimachineryPkgApisMetaV1LabelSelector } from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; +import { + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON, + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; + +/** + * MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) + * @export + * @interface IoK8sApiAdmissionregistrationV1alpha1MatchResources + */ +export interface IoK8sApiAdmissionregistrationV1alpha1MatchResources { + /** + * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1alpha1MatchResources + */ + excludeResourceRules?: Array; + /** + * matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + * + * - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. + * + * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. + * + * Defaults to "Equivalent" + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1MatchResources + */ + matchPolicy?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1LabelSelector} + * @memberof IoK8sApiAdmissionregistrationV1alpha1MatchResources + */ + namespaceSelector?: IoK8sApimachineryPkgApisMetaV1LabelSelector; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1LabelSelector} + * @memberof IoK8sApiAdmissionregistrationV1alpha1MatchResources + */ + objectSelector?: IoK8sApimachineryPkgApisMetaV1LabelSelector; + /** + * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1alpha1MatchResources + */ + resourceRules?: Array; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1alpha1MatchResources interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1alpha1MatchResources(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1alpha1MatchResourcesFromJSON(json: any): IoK8sApiAdmissionregistrationV1alpha1MatchResources { + return IoK8sApiAdmissionregistrationV1alpha1MatchResourcesFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1alpha1MatchResourcesFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1alpha1MatchResources { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'excludeResourceRules': !exists(json, 'excludeResourceRules') ? undefined : ((json['excludeResourceRules'] as Array).map(IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperationsFromJSON)), + 'matchPolicy': !exists(json, 'matchPolicy') ? undefined : json['matchPolicy'], + 'namespaceSelector': !exists(json, 'namespaceSelector') ? undefined : IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['namespaceSelector']), + 'objectSelector': !exists(json, 'objectSelector') ? undefined : IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['objectSelector']), + 'resourceRules': !exists(json, 'resourceRules') ? undefined : ((json['resourceRules'] as Array).map(IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperationsFromJSON)), + }; +} + +export function IoK8sApiAdmissionregistrationV1alpha1MatchResourcesToJSON(value?: IoK8sApiAdmissionregistrationV1alpha1MatchResources | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'excludeResourceRules': value.excludeResourceRules === undefined ? undefined : ((value.excludeResourceRules as Array).map(IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperationsToJSON)), + 'matchPolicy': value.matchPolicy, + 'namespaceSelector': IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value.namespaceSelector), + 'objectSelector': IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value.objectSelector), + 'resourceRules': value.resourceRules === undefined ? undefined : ((value.resourceRules as Array).map(IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperationsToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperations.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperations.ts new file mode 100644 index 000000000..7c0cffa17 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperations.ts @@ -0,0 +1,111 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. + * @export + * @interface IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperations + */ +export interface IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperations { + /** + * APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperations + */ + apiGroups?: Array; + /** + * APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperations + */ + apiVersions?: Array; + /** + * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperations + */ + operations?: Array; + /** + * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperations + */ + resourceNames?: Array; + /** + * Resources is a list of resources this rule applies to. + * + * For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '' means all resources and their subresources. + * + * If wildcard is present, the validation rule will ensure resources do not overlap with each other. + * + * Depending on the enclosing object, subresources might not be allowed. Required. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperations + */ + resources?: Array; + /** + * scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperations + */ + scope?: string; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperations interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperations(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperationsFromJSON(json: any): IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperations { + return IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperationsFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperationsFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperations { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiGroups': !exists(json, 'apiGroups') ? undefined : json['apiGroups'], + 'apiVersions': !exists(json, 'apiVersions') ? undefined : json['apiVersions'], + 'operations': !exists(json, 'operations') ? undefined : json['operations'], + 'resourceNames': !exists(json, 'resourceNames') ? undefined : json['resourceNames'], + 'resources': !exists(json, 'resources') ? undefined : json['resources'], + 'scope': !exists(json, 'scope') ? undefined : json['scope'], + }; +} + +export function IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperationsToJSON(value?: IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperations | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiGroups': value.apiGroups, + 'apiVersions': value.apiVersions, + 'operations': value.operations, + 'resourceNames': value.resourceNames, + 'resources': value.resources, + 'scope': value.scope, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ParamKind.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ParamKind.ts new file mode 100644 index 000000000..f4a153ff4 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ParamKind.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ParamKind is a tuple of Group Kind and Version. + * @export + * @interface IoK8sApiAdmissionregistrationV1alpha1ParamKind + */ +export interface IoK8sApiAdmissionregistrationV1alpha1ParamKind { + /** + * APIVersion is the API group version the resources belong to. In format of "group/version". Required. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ParamKind + */ + apiVersion?: string; + /** + * Kind is the API kind the resources belong to. Required. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ParamKind + */ + kind?: string; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1alpha1ParamKind interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1alpha1ParamKind(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1alpha1ParamKindFromJSON(json: any): IoK8sApiAdmissionregistrationV1alpha1ParamKind { + return IoK8sApiAdmissionregistrationV1alpha1ParamKindFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1alpha1ParamKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1alpha1ParamKind { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + }; +} + +export function IoK8sApiAdmissionregistrationV1alpha1ParamKindToJSON(value?: IoK8sApiAdmissionregistrationV1alpha1ParamKind | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ParamRef.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ParamRef.ts new file mode 100644 index 000000000..95352ef3f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ParamRef.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1LabelSelector } from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; +import { + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON, + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; + +/** + * ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding. + * @export + * @interface IoK8sApiAdmissionregistrationV1alpha1ParamRef + */ +export interface IoK8sApiAdmissionregistrationV1alpha1ParamRef { + /** + * `name` is the name of the resource being referenced. + * + * `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ParamRef + */ + name?: string; + /** + * namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. + * + * A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. + * + * - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. + * + * - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ParamRef + */ + namespace?: string; + /** + * `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. + * + * Allowed values are `Allow` or `Deny` Default to `Deny` + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ParamRef + */ + parameterNotFoundAction?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1LabelSelector} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ParamRef + */ + selector?: IoK8sApimachineryPkgApisMetaV1LabelSelector; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1alpha1ParamRef interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1alpha1ParamRef(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1alpha1ParamRefFromJSON(json: any): IoK8sApiAdmissionregistrationV1alpha1ParamRef { + return IoK8sApiAdmissionregistrationV1alpha1ParamRefFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1alpha1ParamRefFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1alpha1ParamRef { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': !exists(json, 'name') ? undefined : json['name'], + 'namespace': !exists(json, 'namespace') ? undefined : json['namespace'], + 'parameterNotFoundAction': !exists(json, 'parameterNotFoundAction') ? undefined : json['parameterNotFoundAction'], + 'selector': !exists(json, 'selector') ? undefined : IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['selector']), + }; +} + +export function IoK8sApiAdmissionregistrationV1alpha1ParamRefToJSON(value?: IoK8sApiAdmissionregistrationV1alpha1ParamRef | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'namespace': value.namespace, + 'parameterNotFoundAction': value.parameterNotFoundAction, + 'selector': IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value.selector), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1TypeChecking.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1TypeChecking.ts new file mode 100644 index 000000000..909ecefe3 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1TypeChecking.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAdmissionregistrationV1alpha1ExpressionWarning } from './IoK8sApiAdmissionregistrationV1alpha1ExpressionWarning'; +import { + IoK8sApiAdmissionregistrationV1alpha1ExpressionWarningFromJSON, + IoK8sApiAdmissionregistrationV1alpha1ExpressionWarningFromJSONTyped, + IoK8sApiAdmissionregistrationV1alpha1ExpressionWarningToJSON, +} from './IoK8sApiAdmissionregistrationV1alpha1ExpressionWarning'; + +/** + * TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy + * @export + * @interface IoK8sApiAdmissionregistrationV1alpha1TypeChecking + */ +export interface IoK8sApiAdmissionregistrationV1alpha1TypeChecking { + /** + * The type checking warnings for each expression. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1alpha1TypeChecking + */ + expressionWarnings?: Array; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1alpha1TypeChecking interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1alpha1TypeChecking(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1alpha1TypeCheckingFromJSON(json: any): IoK8sApiAdmissionregistrationV1alpha1TypeChecking { + return IoK8sApiAdmissionregistrationV1alpha1TypeCheckingFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1alpha1TypeCheckingFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1alpha1TypeChecking { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'expressionWarnings': !exists(json, 'expressionWarnings') ? undefined : ((json['expressionWarnings'] as Array).map(IoK8sApiAdmissionregistrationV1alpha1ExpressionWarningFromJSON)), + }; +} + +export function IoK8sApiAdmissionregistrationV1alpha1TypeCheckingToJSON(value?: IoK8sApiAdmissionregistrationV1alpha1TypeChecking | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'expressionWarnings': value.expressionWarnings === undefined ? undefined : ((value.expressionWarnings as Array).map(IoK8sApiAdmissionregistrationV1alpha1ExpressionWarningToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicy.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicy.ts new file mode 100644 index 000000000..38db983ff --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicy.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpec } from './IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpec'; +import { + IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpecFromJSON, + IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpecFromJSONTyped, + IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpecToJSON, +} from './IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpec'; +import type { IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatus } from './IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatus'; +import { + IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatusFromJSON, + IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatusFromJSONTyped, + IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatusToJSON, +} from './IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. + * @export + * @interface IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicy + */ +export interface IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicy { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicy + */ + 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 + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicy + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicy + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpec} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicy + */ + spec?: IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpec; + /** + * + * @type {IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatus} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicy + */ + status?: IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatus; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicy interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicy(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyFromJSON(json: any): IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicy { + return IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicy { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyToJSON(value?: IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicy | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpecToJSON(value.spec), + 'status': IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding.ts new file mode 100644 index 000000000..36d908614 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpec } from './IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpec'; +import { + IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpecFromJSON, + IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpecFromJSONTyped, + IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpecToJSON, +} from './IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpec'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. + * + * For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. + * + * The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. + * @export + * @interface IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding + */ +export interface IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding + */ + 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 + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpec} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding + */ + spec?: IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpec; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingFromJSON(json: any): IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding { + return IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpecFromJSON(json['spec']), + }; +} + +export function IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingToJSON(value?: IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpecToJSON(value.spec), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingList.ts new file mode 100644 index 000000000..ae046495e --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingList.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding } from './IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding'; +import { + IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingFromJSON, + IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingFromJSONTyped, + IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingToJSON, +} from './IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. + * @export + * @interface IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingList + */ +export interface IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingList + */ + apiVersion?: string; + /** + * List of PolicyBinding. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingList + */ + 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 + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingList interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingList(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingListFromJSON(json: any): IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingList { + return IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingListFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': !exists(json, 'items') ? undefined : ((json['items'] as Array).map(IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingListToJSON(value?: IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': value.items === undefined ? undefined : ((value.items as Array).map(IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpec.ts new file mode 100644 index 000000000..e36f913e1 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpec.ts @@ -0,0 +1,120 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAdmissionregistrationV1alpha1MatchResources } from './IoK8sApiAdmissionregistrationV1alpha1MatchResources'; +import { + IoK8sApiAdmissionregistrationV1alpha1MatchResourcesFromJSON, + IoK8sApiAdmissionregistrationV1alpha1MatchResourcesFromJSONTyped, + IoK8sApiAdmissionregistrationV1alpha1MatchResourcesToJSON, +} from './IoK8sApiAdmissionregistrationV1alpha1MatchResources'; +import type { IoK8sApiAdmissionregistrationV1alpha1ParamRef } from './IoK8sApiAdmissionregistrationV1alpha1ParamRef'; +import { + IoK8sApiAdmissionregistrationV1alpha1ParamRefFromJSON, + IoK8sApiAdmissionregistrationV1alpha1ParamRefFromJSONTyped, + IoK8sApiAdmissionregistrationV1alpha1ParamRefToJSON, +} from './IoK8sApiAdmissionregistrationV1alpha1ParamRef'; + +/** + * ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. + * @export + * @interface IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpec + */ +export interface IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpec { + /** + * + * @type {IoK8sApiAdmissionregistrationV1alpha1MatchResources} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpec + */ + matchResources?: IoK8sApiAdmissionregistrationV1alpha1MatchResources; + /** + * + * @type {IoK8sApiAdmissionregistrationV1alpha1ParamRef} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpec + */ + paramRef?: IoK8sApiAdmissionregistrationV1alpha1ParamRef; + /** + * PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpec + */ + policyName?: string; + /** + * validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. + * + * Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. + * + * validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. + * + * The supported actions values are: + * + * "Deny" specifies that a validation failure results in a denied request. + * + * "Warn" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. + * + * "Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{"message": "Invalid value", {"policy": "policy.example.com", {"binding": "policybinding.example.com", {"expressionIndex": "1", {"validationActions": ["Audit"]}]"` + * + * Clients should expect to handle additional values by ignoring any values not recognized. + * + * "Deny" and "Warn" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. + * + * Required. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpec + */ + validationActions?: string[]; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpec interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpecFromJSON(json: any): IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpec { + return IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpecFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'matchResources': !exists(json, 'matchResources') ? undefined : IoK8sApiAdmissionregistrationV1alpha1MatchResourcesFromJSON(json['matchResources']), + 'paramRef': !exists(json, 'paramRef') ? undefined : IoK8sApiAdmissionregistrationV1alpha1ParamRefFromJSON(json['paramRef']), + 'policyName': !exists(json, 'policyName') ? undefined : json['policyName'], + 'validationActions': !exists(json, 'validationActions') ? undefined : json['validationActions'], + }; +} + +export function IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpecToJSON(value?: IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'matchResources': IoK8sApiAdmissionregistrationV1alpha1MatchResourcesToJSON(value.matchResources), + 'paramRef': IoK8sApiAdmissionregistrationV1alpha1ParamRefToJSON(value.paramRef), + 'policyName': value.policyName, + 'validationActions': value.validationActions, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyList.ts new file mode 100644 index 000000000..f52ba6674 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyList.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicy } from './IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicy'; +import { + IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyFromJSON, + IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyFromJSONTyped, + IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyToJSON, +} from './IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicy'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. + * @export + * @interface IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyList + */ +export interface IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyList + */ + apiVersion?: string; + /** + * List of ValidatingAdmissionPolicy. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyList + */ + 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 + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyList interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyList(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyListFromJSON(json: any): IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyList { + return IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyListFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': !exists(json, 'items') ? undefined : ((json['items'] as Array).map(IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyListToJSON(value?: IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': value.items === undefined ? undefined : ((value.items as Array).map(IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpec.ts new file mode 100644 index 000000000..f670cf0bb --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpec.ts @@ -0,0 +1,169 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAdmissionregistrationV1alpha1AuditAnnotation } from './IoK8sApiAdmissionregistrationV1alpha1AuditAnnotation'; +import { + IoK8sApiAdmissionregistrationV1alpha1AuditAnnotationFromJSON, + IoK8sApiAdmissionregistrationV1alpha1AuditAnnotationFromJSONTyped, + IoK8sApiAdmissionregistrationV1alpha1AuditAnnotationToJSON, +} from './IoK8sApiAdmissionregistrationV1alpha1AuditAnnotation'; +import type { IoK8sApiAdmissionregistrationV1alpha1MatchCondition } from './IoK8sApiAdmissionregistrationV1alpha1MatchCondition'; +import { + IoK8sApiAdmissionregistrationV1alpha1MatchConditionFromJSON, + IoK8sApiAdmissionregistrationV1alpha1MatchConditionFromJSONTyped, + IoK8sApiAdmissionregistrationV1alpha1MatchConditionToJSON, +} from './IoK8sApiAdmissionregistrationV1alpha1MatchCondition'; +import type { IoK8sApiAdmissionregistrationV1alpha1MatchResources } from './IoK8sApiAdmissionregistrationV1alpha1MatchResources'; +import { + IoK8sApiAdmissionregistrationV1alpha1MatchResourcesFromJSON, + IoK8sApiAdmissionregistrationV1alpha1MatchResourcesFromJSONTyped, + IoK8sApiAdmissionregistrationV1alpha1MatchResourcesToJSON, +} from './IoK8sApiAdmissionregistrationV1alpha1MatchResources'; +import type { IoK8sApiAdmissionregistrationV1alpha1ParamKind } from './IoK8sApiAdmissionregistrationV1alpha1ParamKind'; +import { + IoK8sApiAdmissionregistrationV1alpha1ParamKindFromJSON, + IoK8sApiAdmissionregistrationV1alpha1ParamKindFromJSONTyped, + IoK8sApiAdmissionregistrationV1alpha1ParamKindToJSON, +} from './IoK8sApiAdmissionregistrationV1alpha1ParamKind'; +import type { IoK8sApiAdmissionregistrationV1alpha1Validation } from './IoK8sApiAdmissionregistrationV1alpha1Validation'; +import { + IoK8sApiAdmissionregistrationV1alpha1ValidationFromJSON, + IoK8sApiAdmissionregistrationV1alpha1ValidationFromJSONTyped, + IoK8sApiAdmissionregistrationV1alpha1ValidationToJSON, +} from './IoK8sApiAdmissionregistrationV1alpha1Validation'; +import type { IoK8sApiAdmissionregistrationV1alpha1Variable } from './IoK8sApiAdmissionregistrationV1alpha1Variable'; +import { + IoK8sApiAdmissionregistrationV1alpha1VariableFromJSON, + IoK8sApiAdmissionregistrationV1alpha1VariableFromJSONTyped, + IoK8sApiAdmissionregistrationV1alpha1VariableToJSON, +} from './IoK8sApiAdmissionregistrationV1alpha1Variable'; + +/** + * ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. + * @export + * @interface IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpec + */ +export interface IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpec { + /** + * auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpec + */ + auditAnnotations?: Array; + /** + * failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. + * + * A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. + * + * failurePolicy does not define how validations that evaluate to false are handled. + * + * When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced. + * + * Allowed values are Ignore or Fail. Defaults to Fail. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpec + */ + failurePolicy?: string; + /** + * MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. + * + * If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. + * + * The exact matching logic is (in order): + * 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. + * 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. + * 3. If any matchCondition evaluates to an error (but none are FALSE): + * - If failurePolicy=Fail, reject the request + * - If failurePolicy=Ignore, the policy is skipped + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpec + */ + matchConditions?: Array; + /** + * + * @type {IoK8sApiAdmissionregistrationV1alpha1MatchResources} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpec + */ + matchConstraints?: IoK8sApiAdmissionregistrationV1alpha1MatchResources; + /** + * + * @type {IoK8sApiAdmissionregistrationV1alpha1ParamKind} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpec + */ + paramKind?: IoK8sApiAdmissionregistrationV1alpha1ParamKind; + /** + * Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpec + */ + validations?: Array; + /** + * Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. + * + * The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpec + */ + variables?: Array; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpec interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpecFromJSON(json: any): IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpec { + return IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpecFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'auditAnnotations': !exists(json, 'auditAnnotations') ? undefined : ((json['auditAnnotations'] as Array).map(IoK8sApiAdmissionregistrationV1alpha1AuditAnnotationFromJSON)), + 'failurePolicy': !exists(json, 'failurePolicy') ? undefined : json['failurePolicy'], + 'matchConditions': !exists(json, 'matchConditions') ? undefined : ((json['matchConditions'] as Array).map(IoK8sApiAdmissionregistrationV1alpha1MatchConditionFromJSON)), + 'matchConstraints': !exists(json, 'matchConstraints') ? undefined : IoK8sApiAdmissionregistrationV1alpha1MatchResourcesFromJSON(json['matchConstraints']), + 'paramKind': !exists(json, 'paramKind') ? undefined : IoK8sApiAdmissionregistrationV1alpha1ParamKindFromJSON(json['paramKind']), + 'validations': !exists(json, 'validations') ? undefined : ((json['validations'] as Array).map(IoK8sApiAdmissionregistrationV1alpha1ValidationFromJSON)), + 'variables': !exists(json, 'variables') ? undefined : ((json['variables'] as Array).map(IoK8sApiAdmissionregistrationV1alpha1VariableFromJSON)), + }; +} + +export function IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpecToJSON(value?: IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'auditAnnotations': value.auditAnnotations === undefined ? undefined : ((value.auditAnnotations as Array).map(IoK8sApiAdmissionregistrationV1alpha1AuditAnnotationToJSON)), + 'failurePolicy': value.failurePolicy, + 'matchConditions': value.matchConditions === undefined ? undefined : ((value.matchConditions as Array).map(IoK8sApiAdmissionregistrationV1alpha1MatchConditionToJSON)), + 'matchConstraints': IoK8sApiAdmissionregistrationV1alpha1MatchResourcesToJSON(value.matchConstraints), + 'paramKind': IoK8sApiAdmissionregistrationV1alpha1ParamKindToJSON(value.paramKind), + 'validations': value.validations === undefined ? undefined : ((value.validations as Array).map(IoK8sApiAdmissionregistrationV1alpha1ValidationToJSON)), + 'variables': value.variables === undefined ? undefined : ((value.variables as Array).map(IoK8sApiAdmissionregistrationV1alpha1VariableToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatus.ts new file mode 100644 index 000000000..14389954f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatus.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAdmissionregistrationV1alpha1TypeChecking } from './IoK8sApiAdmissionregistrationV1alpha1TypeChecking'; +import { + IoK8sApiAdmissionregistrationV1alpha1TypeCheckingFromJSON, + IoK8sApiAdmissionregistrationV1alpha1TypeCheckingFromJSONTyped, + IoK8sApiAdmissionregistrationV1alpha1TypeCheckingToJSON, +} from './IoK8sApiAdmissionregistrationV1alpha1TypeChecking'; +import type { IoK8sApimachineryPkgApisMetaV1Condition } from './IoK8sApimachineryPkgApisMetaV1Condition'; +import { + IoK8sApimachineryPkgApisMetaV1ConditionFromJSON, + IoK8sApimachineryPkgApisMetaV1ConditionFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ConditionToJSON, +} from './IoK8sApimachineryPkgApisMetaV1Condition'; + +/** + * ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy. + * @export + * @interface IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatus + */ +export interface IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatus { + /** + * The conditions represent the latest available observations of a policy's current state. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatus + */ + conditions?: Array; + /** + * The generation observed by the controller. + * @type {number} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatus + */ + observedGeneration?: number; + /** + * + * @type {IoK8sApiAdmissionregistrationV1alpha1TypeChecking} + * @memberof IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatus + */ + typeChecking?: IoK8sApiAdmissionregistrationV1alpha1TypeChecking; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatus interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatusFromJSON(json: any): IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatus { + return IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatusFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(IoK8sApimachineryPkgApisMetaV1ConditionFromJSON)), + 'observedGeneration': !exists(json, 'observedGeneration') ? undefined : json['observedGeneration'], + 'typeChecking': !exists(json, 'typeChecking') ? undefined : IoK8sApiAdmissionregistrationV1alpha1TypeCheckingFromJSON(json['typeChecking']), + }; +} + +export function IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatusToJSON(value?: IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(IoK8sApimachineryPkgApisMetaV1ConditionToJSON)), + 'observedGeneration': value.observedGeneration, + 'typeChecking': IoK8sApiAdmissionregistrationV1alpha1TypeCheckingToJSON(value.typeChecking), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1Validation.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1Validation.ts new file mode 100644 index 000000000..473d2ca38 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1Validation.ts @@ -0,0 +1,115 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Validation specifies the CEL expression which is used to apply the validation. + * @export + * @interface IoK8sApiAdmissionregistrationV1alpha1Validation + */ +export interface IoK8sApiAdmissionregistrationV1alpha1Validation { + /** + * Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: + * + * - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. + * For example, a variable named 'foo' can be accessed as 'variables.foo'. + * - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. + * See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz + * - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the + * request resource. + * + * The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. + * + * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: + * "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if", + * "import", "let", "loop", "package", "namespace", "return". + * Examples: + * - Expression accessing a property named "namespace": {"Expression": "object.__namespace__ > 0"} + * - Expression accessing a property named "x-prop": {"Expression": "object.x__dash__prop > 0"} + * - Expression accessing a property named "redact__d": {"Expression": "object.redact__underscores__d > 0"} + * + * Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: + * - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and + * non-intersecting elements in `Y` are appended, retaining their partial order. + * - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values + * are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with + * non-intersecting keys are appended, retaining their partial order. + * Required. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1Validation + */ + expression: string; + /** + * Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is "failed rule: {Rule}". e.g. "must be a URL with the host matching spec.host" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is "failed Expression: {Expression}". + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1Validation + */ + message?: string; + /** + * messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: "object.x must be less than max ("+string(params.max)+")" + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1Validation + */ + messageExpression?: string; + /** + * Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: "Unauthorized", "Forbidden", "Invalid", "RequestEntityTooLarge". If not set, StatusReasonInvalid is used in the response to the client. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1Validation + */ + reason?: string; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1alpha1Validation interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1alpha1Validation(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "expression" in value; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1alpha1ValidationFromJSON(json: any): IoK8sApiAdmissionregistrationV1alpha1Validation { + return IoK8sApiAdmissionregistrationV1alpha1ValidationFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1alpha1ValidationFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1alpha1Validation { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'expression': json['expression'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'messageExpression': !exists(json, 'messageExpression') ? undefined : json['messageExpression'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + }; +} + +export function IoK8sApiAdmissionregistrationV1alpha1ValidationToJSON(value?: IoK8sApiAdmissionregistrationV1alpha1Validation | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'expression': value.expression, + 'message': value.message, + 'messageExpression': value.messageExpression, + 'reason': value.reason, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1Variable.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1Variable.ts new file mode 100644 index 000000000..ca970c1c2 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1alpha1Variable.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Variable is the definition of a variable that is used for composition. + * @export + * @interface IoK8sApiAdmissionregistrationV1alpha1Variable + */ +export interface IoK8sApiAdmissionregistrationV1alpha1Variable { + /** + * Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1Variable + */ + expression: string; + /** + * Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is "foo", the variable will be available as `variables.foo` + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1alpha1Variable + */ + name: string; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1alpha1Variable interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1alpha1Variable(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "expression" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1alpha1VariableFromJSON(json: any): IoK8sApiAdmissionregistrationV1alpha1Variable { + return IoK8sApiAdmissionregistrationV1alpha1VariableFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1alpha1VariableFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1alpha1Variable { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'expression': json['expression'], + 'name': json['name'], + }; +} + +export function IoK8sApiAdmissionregistrationV1alpha1VariableToJSON(value?: IoK8sApiAdmissionregistrationV1alpha1Variable | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'expression': value.expression, + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1AuditAnnotation.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1AuditAnnotation.ts new file mode 100644 index 000000000..e5b80866f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1AuditAnnotation.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * AuditAnnotation describes how to produce an audit annotation for an API request. + * @export + * @interface IoK8sApiAdmissionregistrationV1beta1AuditAnnotation + */ +export interface IoK8sApiAdmissionregistrationV1beta1AuditAnnotation { + /** + * key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. + * + * The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: "{ValidatingAdmissionPolicy name}/{key}". + * + * If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. + * + * Required. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1AuditAnnotation + */ + key: string; + /** + * valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. + * + * If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. + * + * Required. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1AuditAnnotation + */ + valueExpression: string; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1beta1AuditAnnotation interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1beta1AuditAnnotation(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "key" in value; + isInstance = isInstance && "valueExpression" in value; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1beta1AuditAnnotationFromJSON(json: any): IoK8sApiAdmissionregistrationV1beta1AuditAnnotation { + return IoK8sApiAdmissionregistrationV1beta1AuditAnnotationFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1beta1AuditAnnotationFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1beta1AuditAnnotation { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'key': json['key'], + 'valueExpression': json['valueExpression'], + }; +} + +export function IoK8sApiAdmissionregistrationV1beta1AuditAnnotationToJSON(value?: IoK8sApiAdmissionregistrationV1beta1AuditAnnotation | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'key': value.key, + 'valueExpression': value.valueExpression, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ExpressionWarning.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ExpressionWarning.ts new file mode 100644 index 000000000..2cf706eb2 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ExpressionWarning.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ExpressionWarning is a warning information that targets a specific expression. + * @export + * @interface IoK8sApiAdmissionregistrationV1beta1ExpressionWarning + */ +export interface IoK8sApiAdmissionregistrationV1beta1ExpressionWarning { + /** + * The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is "spec.validations[0].expression" + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1ExpressionWarning + */ + fieldRef: string; + /** + * The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1ExpressionWarning + */ + warning: string; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1beta1ExpressionWarning interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1beta1ExpressionWarning(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "fieldRef" in value; + isInstance = isInstance && "warning" in value; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1beta1ExpressionWarningFromJSON(json: any): IoK8sApiAdmissionregistrationV1beta1ExpressionWarning { + return IoK8sApiAdmissionregistrationV1beta1ExpressionWarningFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1beta1ExpressionWarningFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1beta1ExpressionWarning { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'fieldRef': json['fieldRef'], + 'warning': json['warning'], + }; +} + +export function IoK8sApiAdmissionregistrationV1beta1ExpressionWarningToJSON(value?: IoK8sApiAdmissionregistrationV1beta1ExpressionWarning | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'fieldRef': value.fieldRef, + 'warning': value.warning, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1MatchCondition.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1MatchCondition.ts new file mode 100644 index 000000000..9e8e53b5d --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1MatchCondition.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook. + * @export + * @interface IoK8sApiAdmissionregistrationV1beta1MatchCondition + */ +export interface IoK8sApiAdmissionregistrationV1beta1MatchCondition { + /** + * Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: + * + * 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. + * See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz + * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the + * request resource. + * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ + * + * Required. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1MatchCondition + */ + expression: string; + /** + * Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') + * + * Required. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1MatchCondition + */ + name: string; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1beta1MatchCondition interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1beta1MatchCondition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "expression" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1beta1MatchConditionFromJSON(json: any): IoK8sApiAdmissionregistrationV1beta1MatchCondition { + return IoK8sApiAdmissionregistrationV1beta1MatchConditionFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1beta1MatchConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1beta1MatchCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'expression': json['expression'], + 'name': json['name'], + }; +} + +export function IoK8sApiAdmissionregistrationV1beta1MatchConditionToJSON(value?: IoK8sApiAdmissionregistrationV1beta1MatchCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'expression': value.expression, + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1MatchResources.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1MatchResources.ts new file mode 100644 index 000000000..6fc1756a4 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1MatchResources.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperations } from './IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperations'; +import { + IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperationsFromJSON, + IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperationsFromJSONTyped, + IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperationsToJSON, +} from './IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperations'; +import type { IoK8sApimachineryPkgApisMetaV1LabelSelector } from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; +import { + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON, + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; + +/** + * MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) + * @export + * @interface IoK8sApiAdmissionregistrationV1beta1MatchResources + */ +export interface IoK8sApiAdmissionregistrationV1beta1MatchResources { + /** + * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1beta1MatchResources + */ + excludeResourceRules?: Array; + /** + * matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + * + * - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. + * + * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. + * + * Defaults to "Equivalent" + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1MatchResources + */ + matchPolicy?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1LabelSelector} + * @memberof IoK8sApiAdmissionregistrationV1beta1MatchResources + */ + namespaceSelector?: IoK8sApimachineryPkgApisMetaV1LabelSelector; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1LabelSelector} + * @memberof IoK8sApiAdmissionregistrationV1beta1MatchResources + */ + objectSelector?: IoK8sApimachineryPkgApisMetaV1LabelSelector; + /** + * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1beta1MatchResources + */ + resourceRules?: Array; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1beta1MatchResources interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1beta1MatchResources(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1beta1MatchResourcesFromJSON(json: any): IoK8sApiAdmissionregistrationV1beta1MatchResources { + return IoK8sApiAdmissionregistrationV1beta1MatchResourcesFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1beta1MatchResourcesFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1beta1MatchResources { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'excludeResourceRules': !exists(json, 'excludeResourceRules') ? undefined : ((json['excludeResourceRules'] as Array).map(IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperationsFromJSON)), + 'matchPolicy': !exists(json, 'matchPolicy') ? undefined : json['matchPolicy'], + 'namespaceSelector': !exists(json, 'namespaceSelector') ? undefined : IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['namespaceSelector']), + 'objectSelector': !exists(json, 'objectSelector') ? undefined : IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['objectSelector']), + 'resourceRules': !exists(json, 'resourceRules') ? undefined : ((json['resourceRules'] as Array).map(IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperationsFromJSON)), + }; +} + +export function IoK8sApiAdmissionregistrationV1beta1MatchResourcesToJSON(value?: IoK8sApiAdmissionregistrationV1beta1MatchResources | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'excludeResourceRules': value.excludeResourceRules === undefined ? undefined : ((value.excludeResourceRules as Array).map(IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperationsToJSON)), + 'matchPolicy': value.matchPolicy, + 'namespaceSelector': IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value.namespaceSelector), + 'objectSelector': IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value.objectSelector), + 'resourceRules': value.resourceRules === undefined ? undefined : ((value.resourceRules as Array).map(IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperationsToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperations.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperations.ts new file mode 100644 index 000000000..7fcbd0b78 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperations.ts @@ -0,0 +1,111 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. + * @export + * @interface IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperations + */ +export interface IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperations { + /** + * APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperations + */ + apiGroups?: Array; + /** + * APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperations + */ + apiVersions?: Array; + /** + * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperations + */ + operations?: Array; + /** + * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperations + */ + resourceNames?: Array; + /** + * Resources is a list of resources this rule applies to. + * + * For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '' means all resources and their subresources. + * + * If wildcard is present, the validation rule will ensure resources do not overlap with each other. + * + * Depending on the enclosing object, subresources might not be allowed. Required. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperations + */ + resources?: Array; + /** + * scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperations + */ + scope?: string; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperations interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperations(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperationsFromJSON(json: any): IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperations { + return IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperationsFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperationsFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperations { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiGroups': !exists(json, 'apiGroups') ? undefined : json['apiGroups'], + 'apiVersions': !exists(json, 'apiVersions') ? undefined : json['apiVersions'], + 'operations': !exists(json, 'operations') ? undefined : json['operations'], + 'resourceNames': !exists(json, 'resourceNames') ? undefined : json['resourceNames'], + 'resources': !exists(json, 'resources') ? undefined : json['resources'], + 'scope': !exists(json, 'scope') ? undefined : json['scope'], + }; +} + +export function IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperationsToJSON(value?: IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperations | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiGroups': value.apiGroups, + 'apiVersions': value.apiVersions, + 'operations': value.operations, + 'resourceNames': value.resourceNames, + 'resources': value.resources, + 'scope': value.scope, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ParamKind.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ParamKind.ts new file mode 100644 index 000000000..82428cfa1 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ParamKind.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ParamKind is a tuple of Group Kind and Version. + * @export + * @interface IoK8sApiAdmissionregistrationV1beta1ParamKind + */ +export interface IoK8sApiAdmissionregistrationV1beta1ParamKind { + /** + * APIVersion is the API group version the resources belong to. In format of "group/version". Required. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1ParamKind + */ + apiVersion?: string; + /** + * Kind is the API kind the resources belong to. Required. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1ParamKind + */ + kind?: string; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1beta1ParamKind interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1beta1ParamKind(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1beta1ParamKindFromJSON(json: any): IoK8sApiAdmissionregistrationV1beta1ParamKind { + return IoK8sApiAdmissionregistrationV1beta1ParamKindFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1beta1ParamKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1beta1ParamKind { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + }; +} + +export function IoK8sApiAdmissionregistrationV1beta1ParamKindToJSON(value?: IoK8sApiAdmissionregistrationV1beta1ParamKind | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ParamRef.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ParamRef.ts new file mode 100644 index 000000000..5559b3acd --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ParamRef.ts @@ -0,0 +1,110 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1LabelSelector } from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; +import { + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON, + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; + +/** + * ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding. + * @export + * @interface IoK8sApiAdmissionregistrationV1beta1ParamRef + */ +export interface IoK8sApiAdmissionregistrationV1beta1ParamRef { + /** + * name is the name of the resource being referenced. + * + * One of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. + * + * A single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1ParamRef + */ + name?: string; + /** + * namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. + * + * A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. + * + * - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. + * + * - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1ParamRef + */ + namespace?: string; + /** + * `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. + * + * Allowed values are `Allow` or `Deny` + * + * Required + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1ParamRef + */ + parameterNotFoundAction?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1LabelSelector} + * @memberof IoK8sApiAdmissionregistrationV1beta1ParamRef + */ + selector?: IoK8sApimachineryPkgApisMetaV1LabelSelector; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1beta1ParamRef interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1beta1ParamRef(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1beta1ParamRefFromJSON(json: any): IoK8sApiAdmissionregistrationV1beta1ParamRef { + return IoK8sApiAdmissionregistrationV1beta1ParamRefFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1beta1ParamRefFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1beta1ParamRef { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': !exists(json, 'name') ? undefined : json['name'], + 'namespace': !exists(json, 'namespace') ? undefined : json['namespace'], + 'parameterNotFoundAction': !exists(json, 'parameterNotFoundAction') ? undefined : json['parameterNotFoundAction'], + 'selector': !exists(json, 'selector') ? undefined : IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['selector']), + }; +} + +export function IoK8sApiAdmissionregistrationV1beta1ParamRefToJSON(value?: IoK8sApiAdmissionregistrationV1beta1ParamRef | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'namespace': value.namespace, + 'parameterNotFoundAction': value.parameterNotFoundAction, + 'selector': IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value.selector), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1TypeChecking.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1TypeChecking.ts new file mode 100644 index 000000000..7c0a91948 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1TypeChecking.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAdmissionregistrationV1beta1ExpressionWarning } from './IoK8sApiAdmissionregistrationV1beta1ExpressionWarning'; +import { + IoK8sApiAdmissionregistrationV1beta1ExpressionWarningFromJSON, + IoK8sApiAdmissionregistrationV1beta1ExpressionWarningFromJSONTyped, + IoK8sApiAdmissionregistrationV1beta1ExpressionWarningToJSON, +} from './IoK8sApiAdmissionregistrationV1beta1ExpressionWarning'; + +/** + * TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy + * @export + * @interface IoK8sApiAdmissionregistrationV1beta1TypeChecking + */ +export interface IoK8sApiAdmissionregistrationV1beta1TypeChecking { + /** + * The type checking warnings for each expression. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1beta1TypeChecking + */ + expressionWarnings?: Array; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1beta1TypeChecking interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1beta1TypeChecking(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1beta1TypeCheckingFromJSON(json: any): IoK8sApiAdmissionregistrationV1beta1TypeChecking { + return IoK8sApiAdmissionregistrationV1beta1TypeCheckingFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1beta1TypeCheckingFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1beta1TypeChecking { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'expressionWarnings': !exists(json, 'expressionWarnings') ? undefined : ((json['expressionWarnings'] as Array).map(IoK8sApiAdmissionregistrationV1beta1ExpressionWarningFromJSON)), + }; +} + +export function IoK8sApiAdmissionregistrationV1beta1TypeCheckingToJSON(value?: IoK8sApiAdmissionregistrationV1beta1TypeChecking | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'expressionWarnings': value.expressionWarnings === undefined ? undefined : ((value.expressionWarnings as Array).map(IoK8sApiAdmissionregistrationV1beta1ExpressionWarningToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicy.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicy.ts new file mode 100644 index 000000000..41d5922f1 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicy.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpec } from './IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpec'; +import { + IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpecFromJSON, + IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpecFromJSONTyped, + IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpecToJSON, +} from './IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpec'; +import type { IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatus } from './IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatus'; +import { + IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatusFromJSON, + IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatusFromJSONTyped, + IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatusToJSON, +} from './IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. + * @export + * @interface IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicy + */ +export interface IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicy { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicy + */ + 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 + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicy + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicy + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpec} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicy + */ + spec?: IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpec; + /** + * + * @type {IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatus} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicy + */ + status?: IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatus; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicy interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicy(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyFromJSON(json: any): IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicy { + return IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicy { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyToJSON(value?: IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicy | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpecToJSON(value.spec), + 'status': IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding.ts new file mode 100644 index 000000000..51ed333b0 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpec } from './IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpec'; +import { + IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpecFromJSON, + IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpecFromJSONTyped, + IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpecToJSON, +} from './IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpec'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. + * + * For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. + * + * The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. + * @export + * @interface IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding + */ +export interface IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding + */ + 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 + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpec} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding + */ + spec?: IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpec; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingFromJSON(json: any): IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding { + return IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpecFromJSON(json['spec']), + }; +} + +export function IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingToJSON(value?: IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpecToJSON(value.spec), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingList.ts new file mode 100644 index 000000000..fa69ddd67 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingList.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding } from './IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding'; +import { + IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingFromJSON, + IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingFromJSONTyped, + IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingToJSON, +} from './IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. + * @export + * @interface IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingList + */ +export interface IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingList + */ + apiVersion?: string; + /** + * List of PolicyBinding. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingList + */ + 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 + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingList interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingList(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingListFromJSON(json: any): IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingList { + return IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingListFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': !exists(json, 'items') ? undefined : ((json['items'] as Array).map(IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingListToJSON(value?: IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': value.items === undefined ? undefined : ((value.items as Array).map(IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpec.ts new file mode 100644 index 000000000..a54681b0e --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpec.ts @@ -0,0 +1,120 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAdmissionregistrationV1beta1MatchResources } from './IoK8sApiAdmissionregistrationV1beta1MatchResources'; +import { + IoK8sApiAdmissionregistrationV1beta1MatchResourcesFromJSON, + IoK8sApiAdmissionregistrationV1beta1MatchResourcesFromJSONTyped, + IoK8sApiAdmissionregistrationV1beta1MatchResourcesToJSON, +} from './IoK8sApiAdmissionregistrationV1beta1MatchResources'; +import type { IoK8sApiAdmissionregistrationV1beta1ParamRef } from './IoK8sApiAdmissionregistrationV1beta1ParamRef'; +import { + IoK8sApiAdmissionregistrationV1beta1ParamRefFromJSON, + IoK8sApiAdmissionregistrationV1beta1ParamRefFromJSONTyped, + IoK8sApiAdmissionregistrationV1beta1ParamRefToJSON, +} from './IoK8sApiAdmissionregistrationV1beta1ParamRef'; + +/** + * ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. + * @export + * @interface IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpec + */ +export interface IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpec { + /** + * + * @type {IoK8sApiAdmissionregistrationV1beta1MatchResources} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpec + */ + matchResources?: IoK8sApiAdmissionregistrationV1beta1MatchResources; + /** + * + * @type {IoK8sApiAdmissionregistrationV1beta1ParamRef} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpec + */ + paramRef?: IoK8sApiAdmissionregistrationV1beta1ParamRef; + /** + * PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpec + */ + policyName?: string; + /** + * validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. + * + * Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. + * + * validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. + * + * The supported actions values are: + * + * "Deny" specifies that a validation failure results in a denied request. + * + * "Warn" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. + * + * "Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{"message": "Invalid value", {"policy": "policy.example.com", {"binding": "policybinding.example.com", {"expressionIndex": "1", {"validationActions": ["Audit"]}]"` + * + * Clients should expect to handle additional values by ignoring any values not recognized. + * + * "Deny" and "Warn" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. + * + * Required. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpec + */ + validationActions?: string[]; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpec interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpecFromJSON(json: any): IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpec { + return IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpecFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'matchResources': !exists(json, 'matchResources') ? undefined : IoK8sApiAdmissionregistrationV1beta1MatchResourcesFromJSON(json['matchResources']), + 'paramRef': !exists(json, 'paramRef') ? undefined : IoK8sApiAdmissionregistrationV1beta1ParamRefFromJSON(json['paramRef']), + 'policyName': !exists(json, 'policyName') ? undefined : json['policyName'], + 'validationActions': !exists(json, 'validationActions') ? undefined : json['validationActions'], + }; +} + +export function IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpecToJSON(value?: IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'matchResources': IoK8sApiAdmissionregistrationV1beta1MatchResourcesToJSON(value.matchResources), + 'paramRef': IoK8sApiAdmissionregistrationV1beta1ParamRefToJSON(value.paramRef), + 'policyName': value.policyName, + 'validationActions': value.validationActions, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyList.ts new file mode 100644 index 000000000..e78d0141e --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyList.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicy } from './IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicy'; +import { + IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyFromJSON, + IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyFromJSONTyped, + IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyToJSON, +} from './IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicy'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. + * @export + * @interface IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyList + */ +export interface IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyList + */ + apiVersion?: string; + /** + * List of ValidatingAdmissionPolicy. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyList + */ + 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 + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyList interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyList(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyListFromJSON(json: any): IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyList { + return IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyListFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': !exists(json, 'items') ? undefined : ((json['items'] as Array).map(IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyListToJSON(value?: IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': value.items === undefined ? undefined : ((value.items as Array).map(IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpec.ts new file mode 100644 index 000000000..5eb57da07 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpec.ts @@ -0,0 +1,169 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAdmissionregistrationV1beta1AuditAnnotation } from './IoK8sApiAdmissionregistrationV1beta1AuditAnnotation'; +import { + IoK8sApiAdmissionregistrationV1beta1AuditAnnotationFromJSON, + IoK8sApiAdmissionregistrationV1beta1AuditAnnotationFromJSONTyped, + IoK8sApiAdmissionregistrationV1beta1AuditAnnotationToJSON, +} from './IoK8sApiAdmissionregistrationV1beta1AuditAnnotation'; +import type { IoK8sApiAdmissionregistrationV1beta1MatchCondition } from './IoK8sApiAdmissionregistrationV1beta1MatchCondition'; +import { + IoK8sApiAdmissionregistrationV1beta1MatchConditionFromJSON, + IoK8sApiAdmissionregistrationV1beta1MatchConditionFromJSONTyped, + IoK8sApiAdmissionregistrationV1beta1MatchConditionToJSON, +} from './IoK8sApiAdmissionregistrationV1beta1MatchCondition'; +import type { IoK8sApiAdmissionregistrationV1beta1MatchResources } from './IoK8sApiAdmissionregistrationV1beta1MatchResources'; +import { + IoK8sApiAdmissionregistrationV1beta1MatchResourcesFromJSON, + IoK8sApiAdmissionregistrationV1beta1MatchResourcesFromJSONTyped, + IoK8sApiAdmissionregistrationV1beta1MatchResourcesToJSON, +} from './IoK8sApiAdmissionregistrationV1beta1MatchResources'; +import type { IoK8sApiAdmissionregistrationV1beta1ParamKind } from './IoK8sApiAdmissionregistrationV1beta1ParamKind'; +import { + IoK8sApiAdmissionregistrationV1beta1ParamKindFromJSON, + IoK8sApiAdmissionregistrationV1beta1ParamKindFromJSONTyped, + IoK8sApiAdmissionregistrationV1beta1ParamKindToJSON, +} from './IoK8sApiAdmissionregistrationV1beta1ParamKind'; +import type { IoK8sApiAdmissionregistrationV1beta1Validation } from './IoK8sApiAdmissionregistrationV1beta1Validation'; +import { + IoK8sApiAdmissionregistrationV1beta1ValidationFromJSON, + IoK8sApiAdmissionregistrationV1beta1ValidationFromJSONTyped, + IoK8sApiAdmissionregistrationV1beta1ValidationToJSON, +} from './IoK8sApiAdmissionregistrationV1beta1Validation'; +import type { IoK8sApiAdmissionregistrationV1beta1Variable } from './IoK8sApiAdmissionregistrationV1beta1Variable'; +import { + IoK8sApiAdmissionregistrationV1beta1VariableFromJSON, + IoK8sApiAdmissionregistrationV1beta1VariableFromJSONTyped, + IoK8sApiAdmissionregistrationV1beta1VariableToJSON, +} from './IoK8sApiAdmissionregistrationV1beta1Variable'; + +/** + * ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. + * @export + * @interface IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpec + */ +export interface IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpec { + /** + * auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpec + */ + auditAnnotations?: Array; + /** + * failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. + * + * A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. + * + * failurePolicy does not define how validations that evaluate to false are handled. + * + * When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced. + * + * Allowed values are Ignore or Fail. Defaults to Fail. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpec + */ + failurePolicy?: string; + /** + * MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. + * + * If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. + * + * The exact matching logic is (in order): + * 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. + * 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. + * 3. If any matchCondition evaluates to an error (but none are FALSE): + * - If failurePolicy=Fail, reject the request + * - If failurePolicy=Ignore, the policy is skipped + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpec + */ + matchConditions?: Array; + /** + * + * @type {IoK8sApiAdmissionregistrationV1beta1MatchResources} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpec + */ + matchConstraints?: IoK8sApiAdmissionregistrationV1beta1MatchResources; + /** + * + * @type {IoK8sApiAdmissionregistrationV1beta1ParamKind} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpec + */ + paramKind?: IoK8sApiAdmissionregistrationV1beta1ParamKind; + /** + * Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpec + */ + validations?: Array; + /** + * Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. + * + * The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpec + */ + variables?: Array; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpec interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpecFromJSON(json: any): IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpec { + return IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpecFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'auditAnnotations': !exists(json, 'auditAnnotations') ? undefined : ((json['auditAnnotations'] as Array).map(IoK8sApiAdmissionregistrationV1beta1AuditAnnotationFromJSON)), + 'failurePolicy': !exists(json, 'failurePolicy') ? undefined : json['failurePolicy'], + 'matchConditions': !exists(json, 'matchConditions') ? undefined : ((json['matchConditions'] as Array).map(IoK8sApiAdmissionregistrationV1beta1MatchConditionFromJSON)), + 'matchConstraints': !exists(json, 'matchConstraints') ? undefined : IoK8sApiAdmissionregistrationV1beta1MatchResourcesFromJSON(json['matchConstraints']), + 'paramKind': !exists(json, 'paramKind') ? undefined : IoK8sApiAdmissionregistrationV1beta1ParamKindFromJSON(json['paramKind']), + 'validations': !exists(json, 'validations') ? undefined : ((json['validations'] as Array).map(IoK8sApiAdmissionregistrationV1beta1ValidationFromJSON)), + 'variables': !exists(json, 'variables') ? undefined : ((json['variables'] as Array).map(IoK8sApiAdmissionregistrationV1beta1VariableFromJSON)), + }; +} + +export function IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpecToJSON(value?: IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'auditAnnotations': value.auditAnnotations === undefined ? undefined : ((value.auditAnnotations as Array).map(IoK8sApiAdmissionregistrationV1beta1AuditAnnotationToJSON)), + 'failurePolicy': value.failurePolicy, + 'matchConditions': value.matchConditions === undefined ? undefined : ((value.matchConditions as Array).map(IoK8sApiAdmissionregistrationV1beta1MatchConditionToJSON)), + 'matchConstraints': IoK8sApiAdmissionregistrationV1beta1MatchResourcesToJSON(value.matchConstraints), + 'paramKind': IoK8sApiAdmissionregistrationV1beta1ParamKindToJSON(value.paramKind), + 'validations': value.validations === undefined ? undefined : ((value.validations as Array).map(IoK8sApiAdmissionregistrationV1beta1ValidationToJSON)), + 'variables': value.variables === undefined ? undefined : ((value.variables as Array).map(IoK8sApiAdmissionregistrationV1beta1VariableToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatus.ts new file mode 100644 index 000000000..402ab7a99 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatus.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAdmissionregistrationV1beta1TypeChecking } from './IoK8sApiAdmissionregistrationV1beta1TypeChecking'; +import { + IoK8sApiAdmissionregistrationV1beta1TypeCheckingFromJSON, + IoK8sApiAdmissionregistrationV1beta1TypeCheckingFromJSONTyped, + IoK8sApiAdmissionregistrationV1beta1TypeCheckingToJSON, +} from './IoK8sApiAdmissionregistrationV1beta1TypeChecking'; +import type { IoK8sApimachineryPkgApisMetaV1Condition } from './IoK8sApimachineryPkgApisMetaV1Condition'; +import { + IoK8sApimachineryPkgApisMetaV1ConditionFromJSON, + IoK8sApimachineryPkgApisMetaV1ConditionFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ConditionToJSON, +} from './IoK8sApimachineryPkgApisMetaV1Condition'; + +/** + * ValidatingAdmissionPolicyStatus represents the status of an admission validation policy. + * @export + * @interface IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatus + */ +export interface IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatus { + /** + * The conditions represent the latest available observations of a policy's current state. + * @type {Array} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatus + */ + conditions?: Array; + /** + * The generation observed by the controller. + * @type {number} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatus + */ + observedGeneration?: number; + /** + * + * @type {IoK8sApiAdmissionregistrationV1beta1TypeChecking} + * @memberof IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatus + */ + typeChecking?: IoK8sApiAdmissionregistrationV1beta1TypeChecking; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatus interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatusFromJSON(json: any): IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatus { + return IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatusFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(IoK8sApimachineryPkgApisMetaV1ConditionFromJSON)), + 'observedGeneration': !exists(json, 'observedGeneration') ? undefined : json['observedGeneration'], + 'typeChecking': !exists(json, 'typeChecking') ? undefined : IoK8sApiAdmissionregistrationV1beta1TypeCheckingFromJSON(json['typeChecking']), + }; +} + +export function IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatusToJSON(value?: IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(IoK8sApimachineryPkgApisMetaV1ConditionToJSON)), + 'observedGeneration': value.observedGeneration, + 'typeChecking': IoK8sApiAdmissionregistrationV1beta1TypeCheckingToJSON(value.typeChecking), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1Validation.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1Validation.ts new file mode 100644 index 000000000..18f6fd6fd --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1Validation.ts @@ -0,0 +1,115 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Validation specifies the CEL expression which is used to apply the validation. + * @export + * @interface IoK8sApiAdmissionregistrationV1beta1Validation + */ +export interface IoK8sApiAdmissionregistrationV1beta1Validation { + /** + * Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: + * + * - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. + * For example, a variable named 'foo' can be accessed as 'variables.foo'. + * - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. + * See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz + * - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the + * request resource. + * + * The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. + * + * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: + * "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if", + * "import", "let", "loop", "package", "namespace", "return". + * Examples: + * - Expression accessing a property named "namespace": {"Expression": "object.__namespace__ > 0"} + * - Expression accessing a property named "x-prop": {"Expression": "object.x__dash__prop > 0"} + * - Expression accessing a property named "redact__d": {"Expression": "object.redact__underscores__d > 0"} + * + * Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: + * - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and + * non-intersecting elements in `Y` are appended, retaining their partial order. + * - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values + * are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with + * non-intersecting keys are appended, retaining their partial order. + * Required. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1Validation + */ + expression: string; + /** + * Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is "failed rule: {Rule}". e.g. "must be a URL with the host matching spec.host" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is "failed Expression: {Expression}". + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1Validation + */ + message?: string; + /** + * messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: "object.x must be less than max ("+string(params.max)+")" + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1Validation + */ + messageExpression?: string; + /** + * Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: "Unauthorized", "Forbidden", "Invalid", "RequestEntityTooLarge". If not set, StatusReasonInvalid is used in the response to the client. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1Validation + */ + reason?: string; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1beta1Validation interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1beta1Validation(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "expression" in value; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1beta1ValidationFromJSON(json: any): IoK8sApiAdmissionregistrationV1beta1Validation { + return IoK8sApiAdmissionregistrationV1beta1ValidationFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1beta1ValidationFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1beta1Validation { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'expression': json['expression'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'messageExpression': !exists(json, 'messageExpression') ? undefined : json['messageExpression'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + }; +} + +export function IoK8sApiAdmissionregistrationV1beta1ValidationToJSON(value?: IoK8sApiAdmissionregistrationV1beta1Validation | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'expression': value.expression, + 'message': value.message, + 'messageExpression': value.messageExpression, + 'reason': value.reason, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1Variable.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1Variable.ts new file mode 100644 index 000000000..7bd3c99c7 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAdmissionregistrationV1beta1Variable.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Variable is the definition of a variable that is used for composition. A variable is defined as a named expression. + * @export + * @interface IoK8sApiAdmissionregistrationV1beta1Variable + */ +export interface IoK8sApiAdmissionregistrationV1beta1Variable { + /** + * Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation. + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1Variable + */ + expression: string; + /** + * Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is "foo", the variable will be available as `variables.foo` + * @type {string} + * @memberof IoK8sApiAdmissionregistrationV1beta1Variable + */ + name: string; +} + +/** + * Check if a given object implements the IoK8sApiAdmissionregistrationV1beta1Variable interface. + */ +export function instanceOfIoK8sApiAdmissionregistrationV1beta1Variable(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "expression" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiAdmissionregistrationV1beta1VariableFromJSON(json: any): IoK8sApiAdmissionregistrationV1beta1Variable { + return IoK8sApiAdmissionregistrationV1beta1VariableFromJSONTyped(json, false); +} + +export function IoK8sApiAdmissionregistrationV1beta1VariableFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1beta1Variable { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'expression': json['expression'], + 'name': json['name'], + }; +} + +export function IoK8sApiAdmissionregistrationV1beta1VariableToJSON(value?: IoK8sApiAdmissionregistrationV1beta1Variable | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'expression': value.expression, + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiApiserverinternalV1alpha1ServerStorageVersion.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiApiserverinternalV1alpha1ServerStorageVersion.ts new file mode 100644 index 000000000..fa5626158 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiApiserverinternalV1alpha1ServerStorageVersion.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend. + * @export + * @interface IoK8sApiApiserverinternalV1alpha1ServerStorageVersion + */ +export interface IoK8sApiApiserverinternalV1alpha1ServerStorageVersion { + /** + * The ID of the reporting API server. + * @type {string} + * @memberof IoK8sApiApiserverinternalV1alpha1ServerStorageVersion + */ + apiServerID?: string; + /** + * The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions. + * @type {Array} + * @memberof IoK8sApiApiserverinternalV1alpha1ServerStorageVersion + */ + decodableVersions?: string[]; + /** + * The API server encodes the object to this version when persisting it in the backend (e.g., etcd). + * @type {string} + * @memberof IoK8sApiApiserverinternalV1alpha1ServerStorageVersion + */ + encodingVersion?: string; + /** + * The API server can serve these versions. DecodableVersions must include all ServedVersions. + * @type {Array} + * @memberof IoK8sApiApiserverinternalV1alpha1ServerStorageVersion + */ + servedVersions?: string[]; +} + +/** + * Check if a given object implements the IoK8sApiApiserverinternalV1alpha1ServerStorageVersion interface. + */ +export function instanceOfIoK8sApiApiserverinternalV1alpha1ServerStorageVersion(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiApiserverinternalV1alpha1ServerStorageVersionFromJSON(json: any): IoK8sApiApiserverinternalV1alpha1ServerStorageVersion { + return IoK8sApiApiserverinternalV1alpha1ServerStorageVersionFromJSONTyped(json, false); +} + +export function IoK8sApiApiserverinternalV1alpha1ServerStorageVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiApiserverinternalV1alpha1ServerStorageVersion { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiServerID': !exists(json, 'apiServerID') ? undefined : json['apiServerID'], + 'decodableVersions': !exists(json, 'decodableVersions') ? undefined : json['decodableVersions'], + 'encodingVersion': !exists(json, 'encodingVersion') ? undefined : json['encodingVersion'], + 'servedVersions': !exists(json, 'servedVersions') ? undefined : json['servedVersions'], + }; +} + +export function IoK8sApiApiserverinternalV1alpha1ServerStorageVersionToJSON(value?: IoK8sApiApiserverinternalV1alpha1ServerStorageVersion | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiServerID': value.apiServerID, + 'decodableVersions': value.decodableVersions, + 'encodingVersion': value.encodingVersion, + 'servedVersions': value.servedVersions, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiApiserverinternalV1alpha1StorageVersion.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiApiserverinternalV1alpha1StorageVersion.ts new file mode 100644 index 000000000..5425a2ebc --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiApiserverinternalV1alpha1StorageVersion.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiApiserverinternalV1alpha1StorageVersionStatus } from './IoK8sApiApiserverinternalV1alpha1StorageVersionStatus'; +import { + IoK8sApiApiserverinternalV1alpha1StorageVersionStatusFromJSON, + IoK8sApiApiserverinternalV1alpha1StorageVersionStatusFromJSONTyped, + IoK8sApiApiserverinternalV1alpha1StorageVersionStatusToJSON, +} from './IoK8sApiApiserverinternalV1alpha1StorageVersionStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * Storage version of a specific resource. + * @export + * @interface IoK8sApiApiserverinternalV1alpha1StorageVersion + */ +export interface IoK8sApiApiserverinternalV1alpha1StorageVersion { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiApiserverinternalV1alpha1StorageVersion + */ + 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 + * @type {string} + * @memberof IoK8sApiApiserverinternalV1alpha1StorageVersion + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiApiserverinternalV1alpha1StorageVersion + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * StorageVersionSpec is an empty spec. + * @type {object} + * @memberof IoK8sApiApiserverinternalV1alpha1StorageVersion + */ + spec: object; + /** + * + * @type {IoK8sApiApiserverinternalV1alpha1StorageVersionStatus} + * @memberof IoK8sApiApiserverinternalV1alpha1StorageVersion + */ + status: IoK8sApiApiserverinternalV1alpha1StorageVersionStatus; +} + +/** + * Check if a given object implements the IoK8sApiApiserverinternalV1alpha1StorageVersion interface. + */ +export function instanceOfIoK8sApiApiserverinternalV1alpha1StorageVersion(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + isInstance = isInstance && "status" in value; + + return isInstance; +} + +export function IoK8sApiApiserverinternalV1alpha1StorageVersionFromJSON(json: any): IoK8sApiApiserverinternalV1alpha1StorageVersion { + return IoK8sApiApiserverinternalV1alpha1StorageVersionFromJSONTyped(json, false); +} + +export function IoK8sApiApiserverinternalV1alpha1StorageVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiApiserverinternalV1alpha1StorageVersion { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': json['spec'], + 'status': IoK8sApiApiserverinternalV1alpha1StorageVersionStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiApiserverinternalV1alpha1StorageVersionToJSON(value?: IoK8sApiApiserverinternalV1alpha1StorageVersion | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': value.spec, + 'status': IoK8sApiApiserverinternalV1alpha1StorageVersionStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiApiserverinternalV1alpha1StorageVersionCondition.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiApiserverinternalV1alpha1StorageVersionCondition.ts new file mode 100644 index 000000000..817be5280 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiApiserverinternalV1alpha1StorageVersionCondition.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Describes the state of the storageVersion at a certain point. + * @export + * @interface IoK8sApiApiserverinternalV1alpha1StorageVersionCondition + */ +export interface IoK8sApiApiserverinternalV1alpha1StorageVersionCondition { + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiApiserverinternalV1alpha1StorageVersionCondition + */ + lastTransitionTime?: string; + /** + * A human readable message indicating details about the transition. + * @type {string} + * @memberof IoK8sApiApiserverinternalV1alpha1StorageVersionCondition + */ + message?: string; + /** + * If set, this represents the .metadata.generation that the condition was set based upon. + * @type {number} + * @memberof IoK8sApiApiserverinternalV1alpha1StorageVersionCondition + */ + observedGeneration?: number; + /** + * The reason for the condition's last transition. + * @type {string} + * @memberof IoK8sApiApiserverinternalV1alpha1StorageVersionCondition + */ + reason: string; + /** + * Status of the condition, one of True, False, Unknown. + * @type {string} + * @memberof IoK8sApiApiserverinternalV1alpha1StorageVersionCondition + */ + status: string; + /** + * Type of the condition. + * @type {string} + * @memberof IoK8sApiApiserverinternalV1alpha1StorageVersionCondition + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApiApiserverinternalV1alpha1StorageVersionCondition interface. + */ +export function instanceOfIoK8sApiApiserverinternalV1alpha1StorageVersionCondition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "reason" in value; + isInstance = isInstance && "status" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiApiserverinternalV1alpha1StorageVersionConditionFromJSON(json: any): IoK8sApiApiserverinternalV1alpha1StorageVersionCondition { + return IoK8sApiApiserverinternalV1alpha1StorageVersionConditionFromJSONTyped(json, false); +} + +export function IoK8sApiApiserverinternalV1alpha1StorageVersionConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiApiserverinternalV1alpha1StorageVersionCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'lastTransitionTime': !exists(json, 'lastTransitionTime') ? undefined : json['lastTransitionTime'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'observedGeneration': !exists(json, 'observedGeneration') ? undefined : json['observedGeneration'], + 'reason': json['reason'], + 'status': json['status'], + 'type': json['type'], + }; +} + +export function IoK8sApiApiserverinternalV1alpha1StorageVersionConditionToJSON(value?: IoK8sApiApiserverinternalV1alpha1StorageVersionCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'lastTransitionTime': value.lastTransitionTime === undefined ? undefined : (value.lastTransitionTime), + 'message': value.message, + 'observedGeneration': value.observedGeneration, + 'reason': value.reason, + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiApiserverinternalV1alpha1StorageVersionList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiApiserverinternalV1alpha1StorageVersionList.ts new file mode 100644 index 000000000..a34a0c420 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiApiserverinternalV1alpha1StorageVersionList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiApiserverinternalV1alpha1StorageVersion } from './IoK8sApiApiserverinternalV1alpha1StorageVersion'; +import { + IoK8sApiApiserverinternalV1alpha1StorageVersionFromJSON, + IoK8sApiApiserverinternalV1alpha1StorageVersionFromJSONTyped, + IoK8sApiApiserverinternalV1alpha1StorageVersionToJSON, +} from './IoK8sApiApiserverinternalV1alpha1StorageVersion'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * A list of StorageVersions. + * @export + * @interface IoK8sApiApiserverinternalV1alpha1StorageVersionList + */ +export interface IoK8sApiApiserverinternalV1alpha1StorageVersionList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiApiserverinternalV1alpha1StorageVersionList + */ + apiVersion?: string; + /** + * Items holds a list of StorageVersion + * @type {Array} + * @memberof IoK8sApiApiserverinternalV1alpha1StorageVersionList + */ + 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 + * @type {string} + * @memberof IoK8sApiApiserverinternalV1alpha1StorageVersionList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiApiserverinternalV1alpha1StorageVersionList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiApiserverinternalV1alpha1StorageVersionList interface. + */ +export function instanceOfIoK8sApiApiserverinternalV1alpha1StorageVersionList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiApiserverinternalV1alpha1StorageVersionListFromJSON(json: any): IoK8sApiApiserverinternalV1alpha1StorageVersionList { + return IoK8sApiApiserverinternalV1alpha1StorageVersionListFromJSONTyped(json, false); +} + +export function IoK8sApiApiserverinternalV1alpha1StorageVersionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiApiserverinternalV1alpha1StorageVersionList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiApiserverinternalV1alpha1StorageVersionFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiApiserverinternalV1alpha1StorageVersionListToJSON(value?: IoK8sApiApiserverinternalV1alpha1StorageVersionList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiApiserverinternalV1alpha1StorageVersionToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiApiserverinternalV1alpha1StorageVersionStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiApiserverinternalV1alpha1StorageVersionStatus.ts new file mode 100644 index 000000000..0bd41f1cd --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiApiserverinternalV1alpha1StorageVersionStatus.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiApiserverinternalV1alpha1ServerStorageVersion } from './IoK8sApiApiserverinternalV1alpha1ServerStorageVersion'; +import { + IoK8sApiApiserverinternalV1alpha1ServerStorageVersionFromJSON, + IoK8sApiApiserverinternalV1alpha1ServerStorageVersionFromJSONTyped, + IoK8sApiApiserverinternalV1alpha1ServerStorageVersionToJSON, +} from './IoK8sApiApiserverinternalV1alpha1ServerStorageVersion'; +import type { IoK8sApiApiserverinternalV1alpha1StorageVersionCondition } from './IoK8sApiApiserverinternalV1alpha1StorageVersionCondition'; +import { + IoK8sApiApiserverinternalV1alpha1StorageVersionConditionFromJSON, + IoK8sApiApiserverinternalV1alpha1StorageVersionConditionFromJSONTyped, + IoK8sApiApiserverinternalV1alpha1StorageVersionConditionToJSON, +} from './IoK8sApiApiserverinternalV1alpha1StorageVersionCondition'; + +/** + * API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend. + * @export + * @interface IoK8sApiApiserverinternalV1alpha1StorageVersionStatus + */ +export interface IoK8sApiApiserverinternalV1alpha1StorageVersionStatus { + /** + * If all API server instances agree on the same encoding storage version, then this field is set to that version. Otherwise this field is left empty. API servers should finish updating its storageVersionStatus entry before serving write operations, so that this field will be in sync with the reality. + * @type {string} + * @memberof IoK8sApiApiserverinternalV1alpha1StorageVersionStatus + */ + commonEncodingVersion?: string; + /** + * The latest available observations of the storageVersion's state. + * @type {Array} + * @memberof IoK8sApiApiserverinternalV1alpha1StorageVersionStatus + */ + conditions?: Array; + /** + * The reported versions per API server instance. + * @type {Array} + * @memberof IoK8sApiApiserverinternalV1alpha1StorageVersionStatus + */ + storageVersions?: Array; +} + +/** + * Check if a given object implements the IoK8sApiApiserverinternalV1alpha1StorageVersionStatus interface. + */ +export function instanceOfIoK8sApiApiserverinternalV1alpha1StorageVersionStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiApiserverinternalV1alpha1StorageVersionStatusFromJSON(json: any): IoK8sApiApiserverinternalV1alpha1StorageVersionStatus { + return IoK8sApiApiserverinternalV1alpha1StorageVersionStatusFromJSONTyped(json, false); +} + +export function IoK8sApiApiserverinternalV1alpha1StorageVersionStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiApiserverinternalV1alpha1StorageVersionStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'commonEncodingVersion': !exists(json, 'commonEncodingVersion') ? undefined : json['commonEncodingVersion'], + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(IoK8sApiApiserverinternalV1alpha1StorageVersionConditionFromJSON)), + 'storageVersions': !exists(json, 'storageVersions') ? undefined : ((json['storageVersions'] as Array).map(IoK8sApiApiserverinternalV1alpha1ServerStorageVersionFromJSON)), + }; +} + +export function IoK8sApiApiserverinternalV1alpha1StorageVersionStatusToJSON(value?: IoK8sApiApiserverinternalV1alpha1StorageVersionStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'commonEncodingVersion': value.commonEncodingVersion, + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(IoK8sApiApiserverinternalV1alpha1StorageVersionConditionToJSON)), + 'storageVersions': value.storageVersions === undefined ? undefined : ((value.storageVersions as Array).map(IoK8sApiApiserverinternalV1alpha1ServerStorageVersionToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1ControllerRevision.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1ControllerRevision.ts new file mode 100644 index 000000000..ed58b4310 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1ControllerRevision.ts @@ -0,0 +1,142 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. + * @export + * @interface IoK8sApiAppsV1ControllerRevision + */ +export interface IoK8sApiAppsV1ControllerRevision { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAppsV1ControllerRevision + */ + apiVersion?: string; + /** + * RawExtension is used to hold extensions in external versions. + * + * To use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types. + * + * // Internal package: + * + * type MyAPIObject struct { + * runtime.TypeMeta `json:",inline"` + * MyPlugin runtime.Object `json:"myPlugin"` + * } + * + * type PluginA struct { + * AOption string `json:"aOption"` + * } + * + * // External package: + * + * type MyAPIObject struct { + * runtime.TypeMeta `json:",inline"` + * MyPlugin runtime.RawExtension `json:"myPlugin"` + * } + * + * type PluginA struct { + * AOption string `json:"aOption"` + * } + * + * // On the wire, the JSON will look something like this: + * + * { + * "kind":"MyAPIObject", + * "apiVersion":"v1", + * "myPlugin": { + * "kind":"PluginA", + * "aOption":"foo", + * }, + * } + * + * So what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.) + * @type {object} + * @memberof IoK8sApiAppsV1ControllerRevision + */ + data?: object; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof IoK8sApiAppsV1ControllerRevision + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiAppsV1ControllerRevision + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * Revision indicates the revision of the state represented by Data. + * @type {number} + * @memberof IoK8sApiAppsV1ControllerRevision + */ + revision: number; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1ControllerRevision interface. + */ +export function instanceOfIoK8sApiAppsV1ControllerRevision(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "revision" in value; + + return isInstance; +} + +export function IoK8sApiAppsV1ControllerRevisionFromJSON(json: any): IoK8sApiAppsV1ControllerRevision { + return IoK8sApiAppsV1ControllerRevisionFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1ControllerRevisionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1ControllerRevision { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'data': !exists(json, 'data') ? undefined : json['data'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'revision': json['revision'], + }; +} + +export function IoK8sApiAppsV1ControllerRevisionToJSON(value?: IoK8sApiAppsV1ControllerRevision | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'data': value.data, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'revision': value.revision, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1ControllerRevisionList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1ControllerRevisionList.ts new file mode 100644 index 000000000..fc1b3a392 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1ControllerRevisionList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAppsV1ControllerRevision } from './IoK8sApiAppsV1ControllerRevision'; +import { + IoK8sApiAppsV1ControllerRevisionFromJSON, + IoK8sApiAppsV1ControllerRevisionFromJSONTyped, + IoK8sApiAppsV1ControllerRevisionToJSON, +} from './IoK8sApiAppsV1ControllerRevision'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * ControllerRevisionList is a resource containing a list of ControllerRevision objects. + * @export + * @interface IoK8sApiAppsV1ControllerRevisionList + */ +export interface IoK8sApiAppsV1ControllerRevisionList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAppsV1ControllerRevisionList + */ + apiVersion?: string; + /** + * Items is the list of ControllerRevisions + * @type {Array} + * @memberof IoK8sApiAppsV1ControllerRevisionList + */ + 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 + * @type {string} + * @memberof IoK8sApiAppsV1ControllerRevisionList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiAppsV1ControllerRevisionList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1ControllerRevisionList interface. + */ +export function instanceOfIoK8sApiAppsV1ControllerRevisionList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiAppsV1ControllerRevisionListFromJSON(json: any): IoK8sApiAppsV1ControllerRevisionList { + return IoK8sApiAppsV1ControllerRevisionListFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1ControllerRevisionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1ControllerRevisionList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiAppsV1ControllerRevisionFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiAppsV1ControllerRevisionListToJSON(value?: IoK8sApiAppsV1ControllerRevisionList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiAppsV1ControllerRevisionToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DaemonSet.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DaemonSet.ts new file mode 100644 index 000000000..1b2a8a4f7 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DaemonSet.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAppsV1DaemonSetSpec } from './IoK8sApiAppsV1DaemonSetSpec'; +import { + IoK8sApiAppsV1DaemonSetSpecFromJSON, + IoK8sApiAppsV1DaemonSetSpecFromJSONTyped, + IoK8sApiAppsV1DaemonSetSpecToJSON, +} from './IoK8sApiAppsV1DaemonSetSpec'; +import type { IoK8sApiAppsV1DaemonSetStatus } from './IoK8sApiAppsV1DaemonSetStatus'; +import { + IoK8sApiAppsV1DaemonSetStatusFromJSON, + IoK8sApiAppsV1DaemonSetStatusFromJSONTyped, + IoK8sApiAppsV1DaemonSetStatusToJSON, +} from './IoK8sApiAppsV1DaemonSetStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * DaemonSet represents the configuration of a daemon set. + * @export + * @interface IoK8sApiAppsV1DaemonSet + */ +export interface IoK8sApiAppsV1DaemonSet { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAppsV1DaemonSet + */ + 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 + * @type {string} + * @memberof IoK8sApiAppsV1DaemonSet + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiAppsV1DaemonSet + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiAppsV1DaemonSetSpec} + * @memberof IoK8sApiAppsV1DaemonSet + */ + spec?: IoK8sApiAppsV1DaemonSetSpec; + /** + * + * @type {IoK8sApiAppsV1DaemonSetStatus} + * @memberof IoK8sApiAppsV1DaemonSet + */ + status?: IoK8sApiAppsV1DaemonSetStatus; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1DaemonSet interface. + */ +export function instanceOfIoK8sApiAppsV1DaemonSet(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAppsV1DaemonSetFromJSON(json: any): IoK8sApiAppsV1DaemonSet { + return IoK8sApiAppsV1DaemonSetFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1DaemonSetFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1DaemonSet { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiAppsV1DaemonSetSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiAppsV1DaemonSetStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiAppsV1DaemonSetToJSON(value?: IoK8sApiAppsV1DaemonSet | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiAppsV1DaemonSetSpecToJSON(value.spec), + 'status': IoK8sApiAppsV1DaemonSetStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DaemonSetCondition.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DaemonSetCondition.ts new file mode 100644 index 000000000..c40d28da3 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DaemonSetCondition.ts @@ -0,0 +1,99 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * DaemonSetCondition describes the state of a DaemonSet at a certain point. + * @export + * @interface IoK8sApiAppsV1DaemonSetCondition + */ +export interface IoK8sApiAppsV1DaemonSetCondition { + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiAppsV1DaemonSetCondition + */ + lastTransitionTime?: string; + /** + * A human readable message indicating details about the transition. + * @type {string} + * @memberof IoK8sApiAppsV1DaemonSetCondition + */ + message?: string; + /** + * The reason for the condition's last transition. + * @type {string} + * @memberof IoK8sApiAppsV1DaemonSetCondition + */ + reason?: string; + /** + * Status of the condition, one of True, False, Unknown. + * @type {string} + * @memberof IoK8sApiAppsV1DaemonSetCondition + */ + status: string; + /** + * Type of DaemonSet condition. + * @type {string} + * @memberof IoK8sApiAppsV1DaemonSetCondition + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1DaemonSetCondition interface. + */ +export function instanceOfIoK8sApiAppsV1DaemonSetCondition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "status" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiAppsV1DaemonSetConditionFromJSON(json: any): IoK8sApiAppsV1DaemonSetCondition { + return IoK8sApiAppsV1DaemonSetConditionFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1DaemonSetConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1DaemonSetCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'lastTransitionTime': !exists(json, 'lastTransitionTime') ? undefined : json['lastTransitionTime'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'status': json['status'], + 'type': json['type'], + }; +} + +export function IoK8sApiAppsV1DaemonSetConditionToJSON(value?: IoK8sApiAppsV1DaemonSetCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'lastTransitionTime': value.lastTransitionTime === undefined ? undefined : (value.lastTransitionTime), + 'message': value.message, + 'reason': value.reason, + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DaemonSetList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DaemonSetList.ts new file mode 100644 index 000000000..7e770bb21 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DaemonSetList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAppsV1DaemonSet } from './IoK8sApiAppsV1DaemonSet'; +import { + IoK8sApiAppsV1DaemonSetFromJSON, + IoK8sApiAppsV1DaemonSetFromJSONTyped, + IoK8sApiAppsV1DaemonSetToJSON, +} from './IoK8sApiAppsV1DaemonSet'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * DaemonSetList is a collection of daemon sets. + * @export + * @interface IoK8sApiAppsV1DaemonSetList + */ +export interface IoK8sApiAppsV1DaemonSetList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAppsV1DaemonSetList + */ + apiVersion?: string; + /** + * A list of daemon sets. + * @type {Array} + * @memberof IoK8sApiAppsV1DaemonSetList + */ + 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 + * @type {string} + * @memberof IoK8sApiAppsV1DaemonSetList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiAppsV1DaemonSetList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1DaemonSetList interface. + */ +export function instanceOfIoK8sApiAppsV1DaemonSetList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiAppsV1DaemonSetListFromJSON(json: any): IoK8sApiAppsV1DaemonSetList { + return IoK8sApiAppsV1DaemonSetListFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1DaemonSetListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1DaemonSetList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiAppsV1DaemonSetFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiAppsV1DaemonSetListToJSON(value?: IoK8sApiAppsV1DaemonSetList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiAppsV1DaemonSetToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DaemonSetSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DaemonSetSpec.ts new file mode 100644 index 000000000..f349b7a61 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DaemonSetSpec.ts @@ -0,0 +1,118 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAppsV1DaemonSetUpdateStrategy } from './IoK8sApiAppsV1DaemonSetUpdateStrategy'; +import { + IoK8sApiAppsV1DaemonSetUpdateStrategyFromJSON, + IoK8sApiAppsV1DaemonSetUpdateStrategyFromJSONTyped, + IoK8sApiAppsV1DaemonSetUpdateStrategyToJSON, +} from './IoK8sApiAppsV1DaemonSetUpdateStrategy'; +import type { IoK8sApiCoreV1PodTemplateSpec } from './IoK8sApiCoreV1PodTemplateSpec'; +import { + IoK8sApiCoreV1PodTemplateSpecFromJSON, + IoK8sApiCoreV1PodTemplateSpecFromJSONTyped, + IoK8sApiCoreV1PodTemplateSpecToJSON, +} from './IoK8sApiCoreV1PodTemplateSpec'; +import type { IoK8sApimachineryPkgApisMetaV1LabelSelector } from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; +import { + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON, + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; + +/** + * DaemonSetSpec is the specification of a daemon set. + * @export + * @interface IoK8sApiAppsV1DaemonSetSpec + */ +export interface IoK8sApiAppsV1DaemonSetSpec { + /** + * The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). + * @type {number} + * @memberof IoK8sApiAppsV1DaemonSetSpec + */ + minReadySeconds?: number; + /** + * The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + * @type {number} + * @memberof IoK8sApiAppsV1DaemonSetSpec + */ + revisionHistoryLimit?: number; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1LabelSelector} + * @memberof IoK8sApiAppsV1DaemonSetSpec + */ + selector: IoK8sApimachineryPkgApisMetaV1LabelSelector; + /** + * + * @type {IoK8sApiCoreV1PodTemplateSpec} + * @memberof IoK8sApiAppsV1DaemonSetSpec + */ + template: IoK8sApiCoreV1PodTemplateSpec; + /** + * + * @type {IoK8sApiAppsV1DaemonSetUpdateStrategy} + * @memberof IoK8sApiAppsV1DaemonSetSpec + */ + updateStrategy?: IoK8sApiAppsV1DaemonSetUpdateStrategy; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1DaemonSetSpec interface. + */ +export function instanceOfIoK8sApiAppsV1DaemonSetSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "selector" in value; + isInstance = isInstance && "template" in value; + + return isInstance; +} + +export function IoK8sApiAppsV1DaemonSetSpecFromJSON(json: any): IoK8sApiAppsV1DaemonSetSpec { + return IoK8sApiAppsV1DaemonSetSpecFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1DaemonSetSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1DaemonSetSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'minReadySeconds': !exists(json, 'minReadySeconds') ? undefined : json['minReadySeconds'], + 'revisionHistoryLimit': !exists(json, 'revisionHistoryLimit') ? undefined : json['revisionHistoryLimit'], + 'selector': IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['selector']), + 'template': IoK8sApiCoreV1PodTemplateSpecFromJSON(json['template']), + 'updateStrategy': !exists(json, 'updateStrategy') ? undefined : IoK8sApiAppsV1DaemonSetUpdateStrategyFromJSON(json['updateStrategy']), + }; +} + +export function IoK8sApiAppsV1DaemonSetSpecToJSON(value?: IoK8sApiAppsV1DaemonSetSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'minReadySeconds': value.minReadySeconds, + 'revisionHistoryLimit': value.revisionHistoryLimit, + 'selector': IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value.selector), + 'template': IoK8sApiCoreV1PodTemplateSpecToJSON(value.template), + 'updateStrategy': IoK8sApiAppsV1DaemonSetUpdateStrategyToJSON(value.updateStrategy), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DaemonSetStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DaemonSetStatus.ts new file mode 100644 index 000000000..d56856eba --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DaemonSetStatus.ts @@ -0,0 +1,148 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAppsV1DaemonSetCondition } from './IoK8sApiAppsV1DaemonSetCondition'; +import { + IoK8sApiAppsV1DaemonSetConditionFromJSON, + IoK8sApiAppsV1DaemonSetConditionFromJSONTyped, + IoK8sApiAppsV1DaemonSetConditionToJSON, +} from './IoK8sApiAppsV1DaemonSetCondition'; + +/** + * DaemonSetStatus represents the current status of a daemon set. + * @export + * @interface IoK8sApiAppsV1DaemonSetStatus + */ +export interface IoK8sApiAppsV1DaemonSetStatus { + /** + * Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + * @type {number} + * @memberof IoK8sApiAppsV1DaemonSetStatus + */ + collisionCount?: number; + /** + * Represents the latest available observations of a DaemonSet's current state. + * @type {Array} + * @memberof IoK8sApiAppsV1DaemonSetStatus + */ + conditions?: Array; + /** + * The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * @type {number} + * @memberof IoK8sApiAppsV1DaemonSetStatus + */ + currentNumberScheduled: number; + /** + * The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * @type {number} + * @memberof IoK8sApiAppsV1DaemonSetStatus + */ + desiredNumberScheduled: number; + /** + * The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) + * @type {number} + * @memberof IoK8sApiAppsV1DaemonSetStatus + */ + numberAvailable?: number; + /** + * The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * @type {number} + * @memberof IoK8sApiAppsV1DaemonSetStatus + */ + numberMisscheduled: number; + /** + * numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition. + * @type {number} + * @memberof IoK8sApiAppsV1DaemonSetStatus + */ + numberReady: number; + /** + * The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) + * @type {number} + * @memberof IoK8sApiAppsV1DaemonSetStatus + */ + numberUnavailable?: number; + /** + * The most recent generation observed by the daemon set controller. + * @type {number} + * @memberof IoK8sApiAppsV1DaemonSetStatus + */ + observedGeneration?: number; + /** + * The total number of nodes that are running updated daemon pod + * @type {number} + * @memberof IoK8sApiAppsV1DaemonSetStatus + */ + updatedNumberScheduled?: number; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1DaemonSetStatus interface. + */ +export function instanceOfIoK8sApiAppsV1DaemonSetStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "currentNumberScheduled" in value; + isInstance = isInstance && "desiredNumberScheduled" in value; + isInstance = isInstance && "numberMisscheduled" in value; + isInstance = isInstance && "numberReady" in value; + + return isInstance; +} + +export function IoK8sApiAppsV1DaemonSetStatusFromJSON(json: any): IoK8sApiAppsV1DaemonSetStatus { + return IoK8sApiAppsV1DaemonSetStatusFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1DaemonSetStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1DaemonSetStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'collisionCount': !exists(json, 'collisionCount') ? undefined : json['collisionCount'], + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(IoK8sApiAppsV1DaemonSetConditionFromJSON)), + 'currentNumberScheduled': json['currentNumberScheduled'], + 'desiredNumberScheduled': json['desiredNumberScheduled'], + 'numberAvailable': !exists(json, 'numberAvailable') ? undefined : json['numberAvailable'], + 'numberMisscheduled': json['numberMisscheduled'], + 'numberReady': json['numberReady'], + 'numberUnavailable': !exists(json, 'numberUnavailable') ? undefined : json['numberUnavailable'], + 'observedGeneration': !exists(json, 'observedGeneration') ? undefined : json['observedGeneration'], + 'updatedNumberScheduled': !exists(json, 'updatedNumberScheduled') ? undefined : json['updatedNumberScheduled'], + }; +} + +export function IoK8sApiAppsV1DaemonSetStatusToJSON(value?: IoK8sApiAppsV1DaemonSetStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'collisionCount': value.collisionCount, + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(IoK8sApiAppsV1DaemonSetConditionToJSON)), + 'currentNumberScheduled': value.currentNumberScheduled, + 'desiredNumberScheduled': value.desiredNumberScheduled, + 'numberAvailable': value.numberAvailable, + 'numberMisscheduled': value.numberMisscheduled, + 'numberReady': value.numberReady, + 'numberUnavailable': value.numberUnavailable, + 'observedGeneration': value.observedGeneration, + 'updatedNumberScheduled': value.updatedNumberScheduled, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DaemonSetUpdateStrategy.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DaemonSetUpdateStrategy.ts new file mode 100644 index 000000000..d68fff48e --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DaemonSetUpdateStrategy.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAppsV1RollingUpdateDaemonSet } from './IoK8sApiAppsV1RollingUpdateDaemonSet'; +import { + IoK8sApiAppsV1RollingUpdateDaemonSetFromJSON, + IoK8sApiAppsV1RollingUpdateDaemonSetFromJSONTyped, + IoK8sApiAppsV1RollingUpdateDaemonSetToJSON, +} from './IoK8sApiAppsV1RollingUpdateDaemonSet'; + +/** + * DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet. + * @export + * @interface IoK8sApiAppsV1DaemonSetUpdateStrategy + */ +export interface IoK8sApiAppsV1DaemonSetUpdateStrategy { + /** + * + * @type {IoK8sApiAppsV1RollingUpdateDaemonSet} + * @memberof IoK8sApiAppsV1DaemonSetUpdateStrategy + */ + rollingUpdate?: IoK8sApiAppsV1RollingUpdateDaemonSet; + /** + * Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. + * @type {string} + * @memberof IoK8sApiAppsV1DaemonSetUpdateStrategy + */ + type?: string; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1DaemonSetUpdateStrategy interface. + */ +export function instanceOfIoK8sApiAppsV1DaemonSetUpdateStrategy(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAppsV1DaemonSetUpdateStrategyFromJSON(json: any): IoK8sApiAppsV1DaemonSetUpdateStrategy { + return IoK8sApiAppsV1DaemonSetUpdateStrategyFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1DaemonSetUpdateStrategyFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1DaemonSetUpdateStrategy { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'rollingUpdate': !exists(json, 'rollingUpdate') ? undefined : IoK8sApiAppsV1RollingUpdateDaemonSetFromJSON(json['rollingUpdate']), + 'type': !exists(json, 'type') ? undefined : json['type'], + }; +} + +export function IoK8sApiAppsV1DaemonSetUpdateStrategyToJSON(value?: IoK8sApiAppsV1DaemonSetUpdateStrategy | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'rollingUpdate': IoK8sApiAppsV1RollingUpdateDaemonSetToJSON(value.rollingUpdate), + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1Deployment.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1Deployment.ts new file mode 100644 index 000000000..bb0f259d0 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1Deployment.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAppsV1DeploymentSpec } from './IoK8sApiAppsV1DeploymentSpec'; +import { + IoK8sApiAppsV1DeploymentSpecFromJSON, + IoK8sApiAppsV1DeploymentSpecFromJSONTyped, + IoK8sApiAppsV1DeploymentSpecToJSON, +} from './IoK8sApiAppsV1DeploymentSpec'; +import type { IoK8sApiAppsV1DeploymentStatus } from './IoK8sApiAppsV1DeploymentStatus'; +import { + IoK8sApiAppsV1DeploymentStatusFromJSON, + IoK8sApiAppsV1DeploymentStatusFromJSONTyped, + IoK8sApiAppsV1DeploymentStatusToJSON, +} from './IoK8sApiAppsV1DeploymentStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * Deployment enables declarative updates for Pods and ReplicaSets. + * @export + * @interface IoK8sApiAppsV1Deployment + */ +export interface IoK8sApiAppsV1Deployment { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAppsV1Deployment + */ + 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 + * @type {string} + * @memberof IoK8sApiAppsV1Deployment + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiAppsV1Deployment + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiAppsV1DeploymentSpec} + * @memberof IoK8sApiAppsV1Deployment + */ + spec?: IoK8sApiAppsV1DeploymentSpec; + /** + * + * @type {IoK8sApiAppsV1DeploymentStatus} + * @memberof IoK8sApiAppsV1Deployment + */ + status?: IoK8sApiAppsV1DeploymentStatus; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1Deployment interface. + */ +export function instanceOfIoK8sApiAppsV1Deployment(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAppsV1DeploymentFromJSON(json: any): IoK8sApiAppsV1Deployment { + return IoK8sApiAppsV1DeploymentFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1DeploymentFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1Deployment { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiAppsV1DeploymentSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiAppsV1DeploymentStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiAppsV1DeploymentToJSON(value?: IoK8sApiAppsV1Deployment | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiAppsV1DeploymentSpecToJSON(value.spec), + 'status': IoK8sApiAppsV1DeploymentStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DeploymentCondition.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DeploymentCondition.ts new file mode 100644 index 000000000..29cc83793 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DeploymentCondition.ts @@ -0,0 +1,107 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * DeploymentCondition describes the state of a deployment at a certain point. + * @export + * @interface IoK8sApiAppsV1DeploymentCondition + */ +export interface IoK8sApiAppsV1DeploymentCondition { + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiAppsV1DeploymentCondition + */ + lastTransitionTime?: string; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiAppsV1DeploymentCondition + */ + lastUpdateTime?: string; + /** + * A human readable message indicating details about the transition. + * @type {string} + * @memberof IoK8sApiAppsV1DeploymentCondition + */ + message?: string; + /** + * The reason for the condition's last transition. + * @type {string} + * @memberof IoK8sApiAppsV1DeploymentCondition + */ + reason?: string; + /** + * Status of the condition, one of True, False, Unknown. + * @type {string} + * @memberof IoK8sApiAppsV1DeploymentCondition + */ + status: string; + /** + * Type of deployment condition. + * @type {string} + * @memberof IoK8sApiAppsV1DeploymentCondition + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1DeploymentCondition interface. + */ +export function instanceOfIoK8sApiAppsV1DeploymentCondition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "status" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiAppsV1DeploymentConditionFromJSON(json: any): IoK8sApiAppsV1DeploymentCondition { + return IoK8sApiAppsV1DeploymentConditionFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1DeploymentConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1DeploymentCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'lastTransitionTime': !exists(json, 'lastTransitionTime') ? undefined : json['lastTransitionTime'], + 'lastUpdateTime': !exists(json, 'lastUpdateTime') ? undefined : json['lastUpdateTime'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'status': json['status'], + 'type': json['type'], + }; +} + +export function IoK8sApiAppsV1DeploymentConditionToJSON(value?: IoK8sApiAppsV1DeploymentCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'lastTransitionTime': value.lastTransitionTime === undefined ? undefined : (value.lastTransitionTime), + 'lastUpdateTime': value.lastUpdateTime === undefined ? undefined : (value.lastUpdateTime), + 'message': value.message, + 'reason': value.reason, + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DeploymentList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DeploymentList.ts new file mode 100644 index 000000000..fba9f20c0 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DeploymentList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAppsV1Deployment } from './IoK8sApiAppsV1Deployment'; +import { + IoK8sApiAppsV1DeploymentFromJSON, + IoK8sApiAppsV1DeploymentFromJSONTyped, + IoK8sApiAppsV1DeploymentToJSON, +} from './IoK8sApiAppsV1Deployment'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * DeploymentList is a list of Deployments. + * @export + * @interface IoK8sApiAppsV1DeploymentList + */ +export interface IoK8sApiAppsV1DeploymentList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAppsV1DeploymentList + */ + apiVersion?: string; + /** + * Items is the list of Deployments. + * @type {Array} + * @memberof IoK8sApiAppsV1DeploymentList + */ + 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 + * @type {string} + * @memberof IoK8sApiAppsV1DeploymentList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiAppsV1DeploymentList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1DeploymentList interface. + */ +export function instanceOfIoK8sApiAppsV1DeploymentList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiAppsV1DeploymentListFromJSON(json: any): IoK8sApiAppsV1DeploymentList { + return IoK8sApiAppsV1DeploymentListFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1DeploymentListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1DeploymentList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiAppsV1DeploymentFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiAppsV1DeploymentListToJSON(value?: IoK8sApiAppsV1DeploymentList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiAppsV1DeploymentToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DeploymentSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DeploymentSpec.ts new file mode 100644 index 000000000..bc4b8cdb0 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DeploymentSpec.ts @@ -0,0 +1,142 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAppsV1DeploymentStrategy } from './IoK8sApiAppsV1DeploymentStrategy'; +import { + IoK8sApiAppsV1DeploymentStrategyFromJSON, + IoK8sApiAppsV1DeploymentStrategyFromJSONTyped, + IoK8sApiAppsV1DeploymentStrategyToJSON, +} from './IoK8sApiAppsV1DeploymentStrategy'; +import type { IoK8sApiCoreV1PodTemplateSpec } from './IoK8sApiCoreV1PodTemplateSpec'; +import { + IoK8sApiCoreV1PodTemplateSpecFromJSON, + IoK8sApiCoreV1PodTemplateSpecFromJSONTyped, + IoK8sApiCoreV1PodTemplateSpecToJSON, +} from './IoK8sApiCoreV1PodTemplateSpec'; +import type { IoK8sApimachineryPkgApisMetaV1LabelSelector } from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; +import { + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON, + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; + +/** + * DeploymentSpec is the specification of the desired behavior of the Deployment. + * @export + * @interface IoK8sApiAppsV1DeploymentSpec + */ +export interface IoK8sApiAppsV1DeploymentSpec { + /** + * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * @type {number} + * @memberof IoK8sApiAppsV1DeploymentSpec + */ + minReadySeconds?: number; + /** + * Indicates that the deployment is paused. + * @type {boolean} + * @memberof IoK8sApiAppsV1DeploymentSpec + */ + paused?: boolean; + /** + * The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. + * @type {number} + * @memberof IoK8sApiAppsV1DeploymentSpec + */ + progressDeadlineSeconds?: number; + /** + * Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + * @type {number} + * @memberof IoK8sApiAppsV1DeploymentSpec + */ + replicas?: number; + /** + * The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + * @type {number} + * @memberof IoK8sApiAppsV1DeploymentSpec + */ + revisionHistoryLimit?: number; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1LabelSelector} + * @memberof IoK8sApiAppsV1DeploymentSpec + */ + selector: IoK8sApimachineryPkgApisMetaV1LabelSelector; + /** + * + * @type {IoK8sApiAppsV1DeploymentStrategy} + * @memberof IoK8sApiAppsV1DeploymentSpec + */ + strategy?: IoK8sApiAppsV1DeploymentStrategy; + /** + * + * @type {IoK8sApiCoreV1PodTemplateSpec} + * @memberof IoK8sApiAppsV1DeploymentSpec + */ + template: IoK8sApiCoreV1PodTemplateSpec; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1DeploymentSpec interface. + */ +export function instanceOfIoK8sApiAppsV1DeploymentSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "selector" in value; + isInstance = isInstance && "template" in value; + + return isInstance; +} + +export function IoK8sApiAppsV1DeploymentSpecFromJSON(json: any): IoK8sApiAppsV1DeploymentSpec { + return IoK8sApiAppsV1DeploymentSpecFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1DeploymentSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1DeploymentSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'minReadySeconds': !exists(json, 'minReadySeconds') ? undefined : json['minReadySeconds'], + 'paused': !exists(json, 'paused') ? undefined : json['paused'], + 'progressDeadlineSeconds': !exists(json, 'progressDeadlineSeconds') ? undefined : json['progressDeadlineSeconds'], + 'replicas': !exists(json, 'replicas') ? undefined : json['replicas'], + 'revisionHistoryLimit': !exists(json, 'revisionHistoryLimit') ? undefined : json['revisionHistoryLimit'], + 'selector': IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['selector']), + 'strategy': !exists(json, 'strategy') ? undefined : IoK8sApiAppsV1DeploymentStrategyFromJSON(json['strategy']), + 'template': IoK8sApiCoreV1PodTemplateSpecFromJSON(json['template']), + }; +} + +export function IoK8sApiAppsV1DeploymentSpecToJSON(value?: IoK8sApiAppsV1DeploymentSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'minReadySeconds': value.minReadySeconds, + 'paused': value.paused, + 'progressDeadlineSeconds': value.progressDeadlineSeconds, + 'replicas': value.replicas, + 'revisionHistoryLimit': value.revisionHistoryLimit, + 'selector': IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value.selector), + 'strategy': IoK8sApiAppsV1DeploymentStrategyToJSON(value.strategy), + 'template': IoK8sApiCoreV1PodTemplateSpecToJSON(value.template), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DeploymentStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DeploymentStatus.ts new file mode 100644 index 000000000..aa049abf3 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DeploymentStatus.ts @@ -0,0 +1,128 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAppsV1DeploymentCondition } from './IoK8sApiAppsV1DeploymentCondition'; +import { + IoK8sApiAppsV1DeploymentConditionFromJSON, + IoK8sApiAppsV1DeploymentConditionFromJSONTyped, + IoK8sApiAppsV1DeploymentConditionToJSON, +} from './IoK8sApiAppsV1DeploymentCondition'; + +/** + * DeploymentStatus is the most recently observed status of the Deployment. + * @export + * @interface IoK8sApiAppsV1DeploymentStatus + */ +export interface IoK8sApiAppsV1DeploymentStatus { + /** + * Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + * @type {number} + * @memberof IoK8sApiAppsV1DeploymentStatus + */ + availableReplicas?: number; + /** + * Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. + * @type {number} + * @memberof IoK8sApiAppsV1DeploymentStatus + */ + collisionCount?: number; + /** + * Represents the latest available observations of a deployment's current state. + * @type {Array} + * @memberof IoK8sApiAppsV1DeploymentStatus + */ + conditions?: Array; + /** + * The generation observed by the deployment controller. + * @type {number} + * @memberof IoK8sApiAppsV1DeploymentStatus + */ + observedGeneration?: number; + /** + * readyReplicas is the number of pods targeted by this Deployment with a Ready Condition. + * @type {number} + * @memberof IoK8sApiAppsV1DeploymentStatus + */ + readyReplicas?: number; + /** + * Total number of non-terminated pods targeted by this deployment (their labels match the selector). + * @type {number} + * @memberof IoK8sApiAppsV1DeploymentStatus + */ + replicas?: number; + /** + * Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. + * @type {number} + * @memberof IoK8sApiAppsV1DeploymentStatus + */ + unavailableReplicas?: number; + /** + * Total number of non-terminated pods targeted by this deployment that have the desired template spec. + * @type {number} + * @memberof IoK8sApiAppsV1DeploymentStatus + */ + updatedReplicas?: number; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1DeploymentStatus interface. + */ +export function instanceOfIoK8sApiAppsV1DeploymentStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAppsV1DeploymentStatusFromJSON(json: any): IoK8sApiAppsV1DeploymentStatus { + return IoK8sApiAppsV1DeploymentStatusFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1DeploymentStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1DeploymentStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'availableReplicas': !exists(json, 'availableReplicas') ? undefined : json['availableReplicas'], + 'collisionCount': !exists(json, 'collisionCount') ? undefined : json['collisionCount'], + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(IoK8sApiAppsV1DeploymentConditionFromJSON)), + 'observedGeneration': !exists(json, 'observedGeneration') ? undefined : json['observedGeneration'], + 'readyReplicas': !exists(json, 'readyReplicas') ? undefined : json['readyReplicas'], + 'replicas': !exists(json, 'replicas') ? undefined : json['replicas'], + 'unavailableReplicas': !exists(json, 'unavailableReplicas') ? undefined : json['unavailableReplicas'], + 'updatedReplicas': !exists(json, 'updatedReplicas') ? undefined : json['updatedReplicas'], + }; +} + +export function IoK8sApiAppsV1DeploymentStatusToJSON(value?: IoK8sApiAppsV1DeploymentStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'availableReplicas': value.availableReplicas, + 'collisionCount': value.collisionCount, + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(IoK8sApiAppsV1DeploymentConditionToJSON)), + 'observedGeneration': value.observedGeneration, + 'readyReplicas': value.readyReplicas, + 'replicas': value.replicas, + 'unavailableReplicas': value.unavailableReplicas, + 'updatedReplicas': value.updatedReplicas, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DeploymentStrategy.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DeploymentStrategy.ts new file mode 100644 index 000000000..845a0fc5a --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1DeploymentStrategy.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAppsV1RollingUpdateDeployment } from './IoK8sApiAppsV1RollingUpdateDeployment'; +import { + IoK8sApiAppsV1RollingUpdateDeploymentFromJSON, + IoK8sApiAppsV1RollingUpdateDeploymentFromJSONTyped, + IoK8sApiAppsV1RollingUpdateDeploymentToJSON, +} from './IoK8sApiAppsV1RollingUpdateDeployment'; + +/** + * DeploymentStrategy describes how to replace existing pods with new ones. + * @export + * @interface IoK8sApiAppsV1DeploymentStrategy + */ +export interface IoK8sApiAppsV1DeploymentStrategy { + /** + * + * @type {IoK8sApiAppsV1RollingUpdateDeployment} + * @memberof IoK8sApiAppsV1DeploymentStrategy + */ + rollingUpdate?: IoK8sApiAppsV1RollingUpdateDeployment; + /** + * Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. + * @type {string} + * @memberof IoK8sApiAppsV1DeploymentStrategy + */ + type?: string; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1DeploymentStrategy interface. + */ +export function instanceOfIoK8sApiAppsV1DeploymentStrategy(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAppsV1DeploymentStrategyFromJSON(json: any): IoK8sApiAppsV1DeploymentStrategy { + return IoK8sApiAppsV1DeploymentStrategyFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1DeploymentStrategyFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1DeploymentStrategy { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'rollingUpdate': !exists(json, 'rollingUpdate') ? undefined : IoK8sApiAppsV1RollingUpdateDeploymentFromJSON(json['rollingUpdate']), + 'type': !exists(json, 'type') ? undefined : json['type'], + }; +} + +export function IoK8sApiAppsV1DeploymentStrategyToJSON(value?: IoK8sApiAppsV1DeploymentStrategy | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'rollingUpdate': IoK8sApiAppsV1RollingUpdateDeploymentToJSON(value.rollingUpdate), + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1ReplicaSet.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1ReplicaSet.ts new file mode 100644 index 000000000..f8181a045 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1ReplicaSet.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAppsV1ReplicaSetSpec } from './IoK8sApiAppsV1ReplicaSetSpec'; +import { + IoK8sApiAppsV1ReplicaSetSpecFromJSON, + IoK8sApiAppsV1ReplicaSetSpecFromJSONTyped, + IoK8sApiAppsV1ReplicaSetSpecToJSON, +} from './IoK8sApiAppsV1ReplicaSetSpec'; +import type { IoK8sApiAppsV1ReplicaSetStatus } from './IoK8sApiAppsV1ReplicaSetStatus'; +import { + IoK8sApiAppsV1ReplicaSetStatusFromJSON, + IoK8sApiAppsV1ReplicaSetStatusFromJSONTyped, + IoK8sApiAppsV1ReplicaSetStatusToJSON, +} from './IoK8sApiAppsV1ReplicaSetStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * ReplicaSet ensures that a specified number of pod replicas are running at any given time. + * @export + * @interface IoK8sApiAppsV1ReplicaSet + */ +export interface IoK8sApiAppsV1ReplicaSet { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAppsV1ReplicaSet + */ + 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 + * @type {string} + * @memberof IoK8sApiAppsV1ReplicaSet + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiAppsV1ReplicaSet + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiAppsV1ReplicaSetSpec} + * @memberof IoK8sApiAppsV1ReplicaSet + */ + spec?: IoK8sApiAppsV1ReplicaSetSpec; + /** + * + * @type {IoK8sApiAppsV1ReplicaSetStatus} + * @memberof IoK8sApiAppsV1ReplicaSet + */ + status?: IoK8sApiAppsV1ReplicaSetStatus; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1ReplicaSet interface. + */ +export function instanceOfIoK8sApiAppsV1ReplicaSet(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAppsV1ReplicaSetFromJSON(json: any): IoK8sApiAppsV1ReplicaSet { + return IoK8sApiAppsV1ReplicaSetFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1ReplicaSetFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1ReplicaSet { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiAppsV1ReplicaSetSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiAppsV1ReplicaSetStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiAppsV1ReplicaSetToJSON(value?: IoK8sApiAppsV1ReplicaSet | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiAppsV1ReplicaSetSpecToJSON(value.spec), + 'status': IoK8sApiAppsV1ReplicaSetStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1ReplicaSetCondition.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1ReplicaSetCondition.ts new file mode 100644 index 000000000..669e97198 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1ReplicaSetCondition.ts @@ -0,0 +1,99 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ReplicaSetCondition describes the state of a replica set at a certain point. + * @export + * @interface IoK8sApiAppsV1ReplicaSetCondition + */ +export interface IoK8sApiAppsV1ReplicaSetCondition { + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiAppsV1ReplicaSetCondition + */ + lastTransitionTime?: string; + /** + * A human readable message indicating details about the transition. + * @type {string} + * @memberof IoK8sApiAppsV1ReplicaSetCondition + */ + message?: string; + /** + * The reason for the condition's last transition. + * @type {string} + * @memberof IoK8sApiAppsV1ReplicaSetCondition + */ + reason?: string; + /** + * Status of the condition, one of True, False, Unknown. + * @type {string} + * @memberof IoK8sApiAppsV1ReplicaSetCondition + */ + status: string; + /** + * Type of replica set condition. + * @type {string} + * @memberof IoK8sApiAppsV1ReplicaSetCondition + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1ReplicaSetCondition interface. + */ +export function instanceOfIoK8sApiAppsV1ReplicaSetCondition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "status" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiAppsV1ReplicaSetConditionFromJSON(json: any): IoK8sApiAppsV1ReplicaSetCondition { + return IoK8sApiAppsV1ReplicaSetConditionFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1ReplicaSetConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1ReplicaSetCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'lastTransitionTime': !exists(json, 'lastTransitionTime') ? undefined : json['lastTransitionTime'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'status': json['status'], + 'type': json['type'], + }; +} + +export function IoK8sApiAppsV1ReplicaSetConditionToJSON(value?: IoK8sApiAppsV1ReplicaSetCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'lastTransitionTime': value.lastTransitionTime === undefined ? undefined : (value.lastTransitionTime), + 'message': value.message, + 'reason': value.reason, + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1ReplicaSetList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1ReplicaSetList.ts new file mode 100644 index 000000000..0ae5e091e --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1ReplicaSetList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAppsV1ReplicaSet } from './IoK8sApiAppsV1ReplicaSet'; +import { + IoK8sApiAppsV1ReplicaSetFromJSON, + IoK8sApiAppsV1ReplicaSetFromJSONTyped, + IoK8sApiAppsV1ReplicaSetToJSON, +} from './IoK8sApiAppsV1ReplicaSet'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * ReplicaSetList is a collection of ReplicaSets. + * @export + * @interface IoK8sApiAppsV1ReplicaSetList + */ +export interface IoK8sApiAppsV1ReplicaSetList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAppsV1ReplicaSetList + */ + apiVersion?: string; + /** + * List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + * @type {Array} + * @memberof IoK8sApiAppsV1ReplicaSetList + */ + 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 + * @type {string} + * @memberof IoK8sApiAppsV1ReplicaSetList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiAppsV1ReplicaSetList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1ReplicaSetList interface. + */ +export function instanceOfIoK8sApiAppsV1ReplicaSetList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiAppsV1ReplicaSetListFromJSON(json: any): IoK8sApiAppsV1ReplicaSetList { + return IoK8sApiAppsV1ReplicaSetListFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1ReplicaSetListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1ReplicaSetList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiAppsV1ReplicaSetFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiAppsV1ReplicaSetListToJSON(value?: IoK8sApiAppsV1ReplicaSetList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiAppsV1ReplicaSetToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1ReplicaSetSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1ReplicaSetSpec.ts new file mode 100644 index 000000000..3d8f1d690 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1ReplicaSetSpec.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1PodTemplateSpec } from './IoK8sApiCoreV1PodTemplateSpec'; +import { + IoK8sApiCoreV1PodTemplateSpecFromJSON, + IoK8sApiCoreV1PodTemplateSpecFromJSONTyped, + IoK8sApiCoreV1PodTemplateSpecToJSON, +} from './IoK8sApiCoreV1PodTemplateSpec'; +import type { IoK8sApimachineryPkgApisMetaV1LabelSelector } from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; +import { + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON, + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; + +/** + * ReplicaSetSpec is the specification of a ReplicaSet. + * @export + * @interface IoK8sApiAppsV1ReplicaSetSpec + */ +export interface IoK8sApiAppsV1ReplicaSetSpec { + /** + * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * @type {number} + * @memberof IoK8sApiAppsV1ReplicaSetSpec + */ + minReadySeconds?: number; + /** + * Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + * @type {number} + * @memberof IoK8sApiAppsV1ReplicaSetSpec + */ + replicas?: number; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1LabelSelector} + * @memberof IoK8sApiAppsV1ReplicaSetSpec + */ + selector: IoK8sApimachineryPkgApisMetaV1LabelSelector; + /** + * + * @type {IoK8sApiCoreV1PodTemplateSpec} + * @memberof IoK8sApiAppsV1ReplicaSetSpec + */ + template?: IoK8sApiCoreV1PodTemplateSpec; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1ReplicaSetSpec interface. + */ +export function instanceOfIoK8sApiAppsV1ReplicaSetSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "selector" in value; + + return isInstance; +} + +export function IoK8sApiAppsV1ReplicaSetSpecFromJSON(json: any): IoK8sApiAppsV1ReplicaSetSpec { + return IoK8sApiAppsV1ReplicaSetSpecFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1ReplicaSetSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1ReplicaSetSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'minReadySeconds': !exists(json, 'minReadySeconds') ? undefined : json['minReadySeconds'], + 'replicas': !exists(json, 'replicas') ? undefined : json['replicas'], + 'selector': IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['selector']), + 'template': !exists(json, 'template') ? undefined : IoK8sApiCoreV1PodTemplateSpecFromJSON(json['template']), + }; +} + +export function IoK8sApiAppsV1ReplicaSetSpecToJSON(value?: IoK8sApiAppsV1ReplicaSetSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'minReadySeconds': value.minReadySeconds, + 'replicas': value.replicas, + 'selector': IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value.selector), + 'template': IoK8sApiCoreV1PodTemplateSpecToJSON(value.template), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1ReplicaSetStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1ReplicaSetStatus.ts new file mode 100644 index 000000000..c99258bb0 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1ReplicaSetStatus.ts @@ -0,0 +1,113 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAppsV1ReplicaSetCondition } from './IoK8sApiAppsV1ReplicaSetCondition'; +import { + IoK8sApiAppsV1ReplicaSetConditionFromJSON, + IoK8sApiAppsV1ReplicaSetConditionFromJSONTyped, + IoK8sApiAppsV1ReplicaSetConditionToJSON, +} from './IoK8sApiAppsV1ReplicaSetCondition'; + +/** + * ReplicaSetStatus represents the current status of a ReplicaSet. + * @export + * @interface IoK8sApiAppsV1ReplicaSetStatus + */ +export interface IoK8sApiAppsV1ReplicaSetStatus { + /** + * The number of available replicas (ready for at least minReadySeconds) for this replica set. + * @type {number} + * @memberof IoK8sApiAppsV1ReplicaSetStatus + */ + availableReplicas?: number; + /** + * Represents the latest available observations of a replica set's current state. + * @type {Array} + * @memberof IoK8sApiAppsV1ReplicaSetStatus + */ + conditions?: Array; + /** + * The number of pods that have labels matching the labels of the pod template of the replicaset. + * @type {number} + * @memberof IoK8sApiAppsV1ReplicaSetStatus + */ + fullyLabeledReplicas?: number; + /** + * ObservedGeneration reflects the generation of the most recently observed ReplicaSet. + * @type {number} + * @memberof IoK8sApiAppsV1ReplicaSetStatus + */ + observedGeneration?: number; + /** + * readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition. + * @type {number} + * @memberof IoK8sApiAppsV1ReplicaSetStatus + */ + readyReplicas?: number; + /** + * Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + * @type {number} + * @memberof IoK8sApiAppsV1ReplicaSetStatus + */ + replicas: number; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1ReplicaSetStatus interface. + */ +export function instanceOfIoK8sApiAppsV1ReplicaSetStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "replicas" in value; + + return isInstance; +} + +export function IoK8sApiAppsV1ReplicaSetStatusFromJSON(json: any): IoK8sApiAppsV1ReplicaSetStatus { + return IoK8sApiAppsV1ReplicaSetStatusFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1ReplicaSetStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1ReplicaSetStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'availableReplicas': !exists(json, 'availableReplicas') ? undefined : json['availableReplicas'], + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(IoK8sApiAppsV1ReplicaSetConditionFromJSON)), + 'fullyLabeledReplicas': !exists(json, 'fullyLabeledReplicas') ? undefined : json['fullyLabeledReplicas'], + 'observedGeneration': !exists(json, 'observedGeneration') ? undefined : json['observedGeneration'], + 'readyReplicas': !exists(json, 'readyReplicas') ? undefined : json['readyReplicas'], + 'replicas': json['replicas'], + }; +} + +export function IoK8sApiAppsV1ReplicaSetStatusToJSON(value?: IoK8sApiAppsV1ReplicaSetStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'availableReplicas': value.availableReplicas, + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(IoK8sApiAppsV1ReplicaSetConditionToJSON)), + 'fullyLabeledReplicas': value.fullyLabeledReplicas, + 'observedGeneration': value.observedGeneration, + 'readyReplicas': value.readyReplicas, + 'replicas': value.replicas, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1RollingUpdateDaemonSet.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1RollingUpdateDaemonSet.ts new file mode 100644 index 000000000..10a5229ed --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1RollingUpdateDaemonSet.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Spec to control the desired behavior of daemon set rolling update. + * @export + * @interface IoK8sApiAppsV1RollingUpdateDaemonSet + */ +export interface IoK8sApiAppsV1RollingUpdateDaemonSet { + /** + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. + * @type {string} + * @memberof IoK8sApiAppsV1RollingUpdateDaemonSet + */ + maxSurge?: string; + /** + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. + * @type {string} + * @memberof IoK8sApiAppsV1RollingUpdateDaemonSet + */ + maxUnavailable?: string; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1RollingUpdateDaemonSet interface. + */ +export function instanceOfIoK8sApiAppsV1RollingUpdateDaemonSet(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAppsV1RollingUpdateDaemonSetFromJSON(json: any): IoK8sApiAppsV1RollingUpdateDaemonSet { + return IoK8sApiAppsV1RollingUpdateDaemonSetFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1RollingUpdateDaemonSetFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1RollingUpdateDaemonSet { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'maxSurge': !exists(json, 'maxSurge') ? undefined : json['maxSurge'], + 'maxUnavailable': !exists(json, 'maxUnavailable') ? undefined : json['maxUnavailable'], + }; +} + +export function IoK8sApiAppsV1RollingUpdateDaemonSetToJSON(value?: IoK8sApiAppsV1RollingUpdateDaemonSet | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'maxSurge': value.maxSurge, + 'maxUnavailable': value.maxUnavailable, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1RollingUpdateDeployment.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1RollingUpdateDeployment.ts new file mode 100644 index 000000000..61cffa3dc --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1RollingUpdateDeployment.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Spec to control the desired behavior of rolling update. + * @export + * @interface IoK8sApiAppsV1RollingUpdateDeployment + */ +export interface IoK8sApiAppsV1RollingUpdateDeployment { + /** + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. + * @type {string} + * @memberof IoK8sApiAppsV1RollingUpdateDeployment + */ + maxSurge?: string; + /** + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. + * @type {string} + * @memberof IoK8sApiAppsV1RollingUpdateDeployment + */ + maxUnavailable?: string; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1RollingUpdateDeployment interface. + */ +export function instanceOfIoK8sApiAppsV1RollingUpdateDeployment(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAppsV1RollingUpdateDeploymentFromJSON(json: any): IoK8sApiAppsV1RollingUpdateDeployment { + return IoK8sApiAppsV1RollingUpdateDeploymentFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1RollingUpdateDeploymentFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1RollingUpdateDeployment { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'maxSurge': !exists(json, 'maxSurge') ? undefined : json['maxSurge'], + 'maxUnavailable': !exists(json, 'maxUnavailable') ? undefined : json['maxUnavailable'], + }; +} + +export function IoK8sApiAppsV1RollingUpdateDeploymentToJSON(value?: IoK8sApiAppsV1RollingUpdateDeployment | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'maxSurge': value.maxSurge, + 'maxUnavailable': value.maxUnavailable, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1RollingUpdateStatefulSetStrategy.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1RollingUpdateStatefulSetStrategy.ts new file mode 100644 index 000000000..2b51a66b9 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1RollingUpdateStatefulSetStrategy.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. + * @export + * @interface IoK8sApiAppsV1RollingUpdateStatefulSetStrategy + */ +export interface IoK8sApiAppsV1RollingUpdateStatefulSetStrategy { + /** + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. + * @type {string} + * @memberof IoK8sApiAppsV1RollingUpdateStatefulSetStrategy + */ + maxUnavailable?: string; + /** + * Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0. + * @type {number} + * @memberof IoK8sApiAppsV1RollingUpdateStatefulSetStrategy + */ + partition?: number; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1RollingUpdateStatefulSetStrategy interface. + */ +export function instanceOfIoK8sApiAppsV1RollingUpdateStatefulSetStrategy(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAppsV1RollingUpdateStatefulSetStrategyFromJSON(json: any): IoK8sApiAppsV1RollingUpdateStatefulSetStrategy { + return IoK8sApiAppsV1RollingUpdateStatefulSetStrategyFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1RollingUpdateStatefulSetStrategyFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1RollingUpdateStatefulSetStrategy { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'maxUnavailable': !exists(json, 'maxUnavailable') ? undefined : json['maxUnavailable'], + 'partition': !exists(json, 'partition') ? undefined : json['partition'], + }; +} + +export function IoK8sApiAppsV1RollingUpdateStatefulSetStrategyToJSON(value?: IoK8sApiAppsV1RollingUpdateStatefulSetStrategy | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'maxUnavailable': value.maxUnavailable, + 'partition': value.partition, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSet.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSet.ts new file mode 100644 index 000000000..6a5aa98e6 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSet.ts @@ -0,0 +1,120 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAppsV1StatefulSetSpec } from './IoK8sApiAppsV1StatefulSetSpec'; +import { + IoK8sApiAppsV1StatefulSetSpecFromJSON, + IoK8sApiAppsV1StatefulSetSpecFromJSONTyped, + IoK8sApiAppsV1StatefulSetSpecToJSON, +} from './IoK8sApiAppsV1StatefulSetSpec'; +import type { IoK8sApiAppsV1StatefulSetStatus } from './IoK8sApiAppsV1StatefulSetStatus'; +import { + IoK8sApiAppsV1StatefulSetStatusFromJSON, + IoK8sApiAppsV1StatefulSetStatusFromJSONTyped, + IoK8sApiAppsV1StatefulSetStatusToJSON, +} from './IoK8sApiAppsV1StatefulSetStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * StatefulSet represents a set of pods with consistent identities. Identities are defined as: + * - Network: A single stable DNS and hostname. + * - Storage: As many VolumeClaims as requested. + * + * The StatefulSet guarantees that a given network identity will always map to the same storage identity. + * @export + * @interface IoK8sApiAppsV1StatefulSet + */ +export interface IoK8sApiAppsV1StatefulSet { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAppsV1StatefulSet + */ + 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 + * @type {string} + * @memberof IoK8sApiAppsV1StatefulSet + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiAppsV1StatefulSet + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiAppsV1StatefulSetSpec} + * @memberof IoK8sApiAppsV1StatefulSet + */ + spec?: IoK8sApiAppsV1StatefulSetSpec; + /** + * + * @type {IoK8sApiAppsV1StatefulSetStatus} + * @memberof IoK8sApiAppsV1StatefulSet + */ + status?: IoK8sApiAppsV1StatefulSetStatus; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1StatefulSet interface. + */ +export function instanceOfIoK8sApiAppsV1StatefulSet(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAppsV1StatefulSetFromJSON(json: any): IoK8sApiAppsV1StatefulSet { + return IoK8sApiAppsV1StatefulSetFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1StatefulSetFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1StatefulSet { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiAppsV1StatefulSetSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiAppsV1StatefulSetStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiAppsV1StatefulSetToJSON(value?: IoK8sApiAppsV1StatefulSet | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiAppsV1StatefulSetSpecToJSON(value.spec), + 'status': IoK8sApiAppsV1StatefulSetStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSetCondition.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSetCondition.ts new file mode 100644 index 000000000..4e3804876 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSetCondition.ts @@ -0,0 +1,99 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * StatefulSetCondition describes the state of a statefulset at a certain point. + * @export + * @interface IoK8sApiAppsV1StatefulSetCondition + */ +export interface IoK8sApiAppsV1StatefulSetCondition { + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiAppsV1StatefulSetCondition + */ + lastTransitionTime?: string; + /** + * A human readable message indicating details about the transition. + * @type {string} + * @memberof IoK8sApiAppsV1StatefulSetCondition + */ + message?: string; + /** + * The reason for the condition's last transition. + * @type {string} + * @memberof IoK8sApiAppsV1StatefulSetCondition + */ + reason?: string; + /** + * Status of the condition, one of True, False, Unknown. + * @type {string} + * @memberof IoK8sApiAppsV1StatefulSetCondition + */ + status: string; + /** + * Type of statefulset condition. + * @type {string} + * @memberof IoK8sApiAppsV1StatefulSetCondition + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1StatefulSetCondition interface. + */ +export function instanceOfIoK8sApiAppsV1StatefulSetCondition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "status" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiAppsV1StatefulSetConditionFromJSON(json: any): IoK8sApiAppsV1StatefulSetCondition { + return IoK8sApiAppsV1StatefulSetConditionFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1StatefulSetConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1StatefulSetCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'lastTransitionTime': !exists(json, 'lastTransitionTime') ? undefined : json['lastTransitionTime'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'status': json['status'], + 'type': json['type'], + }; +} + +export function IoK8sApiAppsV1StatefulSetConditionToJSON(value?: IoK8sApiAppsV1StatefulSetCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'lastTransitionTime': value.lastTransitionTime === undefined ? undefined : (value.lastTransitionTime), + 'message': value.message, + 'reason': value.reason, + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSetList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSetList.ts new file mode 100644 index 000000000..380eb8986 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSetList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAppsV1StatefulSet } from './IoK8sApiAppsV1StatefulSet'; +import { + IoK8sApiAppsV1StatefulSetFromJSON, + IoK8sApiAppsV1StatefulSetFromJSONTyped, + IoK8sApiAppsV1StatefulSetToJSON, +} from './IoK8sApiAppsV1StatefulSet'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * StatefulSetList is a collection of StatefulSets. + * @export + * @interface IoK8sApiAppsV1StatefulSetList + */ +export interface IoK8sApiAppsV1StatefulSetList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAppsV1StatefulSetList + */ + apiVersion?: string; + /** + * Items is the list of stateful sets. + * @type {Array} + * @memberof IoK8sApiAppsV1StatefulSetList + */ + 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 + * @type {string} + * @memberof IoK8sApiAppsV1StatefulSetList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiAppsV1StatefulSetList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1StatefulSetList interface. + */ +export function instanceOfIoK8sApiAppsV1StatefulSetList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiAppsV1StatefulSetListFromJSON(json: any): IoK8sApiAppsV1StatefulSetList { + return IoK8sApiAppsV1StatefulSetListFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1StatefulSetListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1StatefulSetList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiAppsV1StatefulSetFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiAppsV1StatefulSetListToJSON(value?: IoK8sApiAppsV1StatefulSetList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiAppsV1StatefulSetToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSetOrdinals.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSetOrdinals.ts new file mode 100644 index 000000000..6b4f16024 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSetOrdinals.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet. + * @export + * @interface IoK8sApiAppsV1StatefulSetOrdinals + */ +export interface IoK8sApiAppsV1StatefulSetOrdinals { + /** + * start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range: + * [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas). + * If unset, defaults to 0. Replica indices will be in the range: + * [0, .spec.replicas). + * @type {number} + * @memberof IoK8sApiAppsV1StatefulSetOrdinals + */ + start?: number; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1StatefulSetOrdinals interface. + */ +export function instanceOfIoK8sApiAppsV1StatefulSetOrdinals(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAppsV1StatefulSetOrdinalsFromJSON(json: any): IoK8sApiAppsV1StatefulSetOrdinals { + return IoK8sApiAppsV1StatefulSetOrdinalsFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1StatefulSetOrdinalsFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1StatefulSetOrdinals { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'start': !exists(json, 'start') ? undefined : json['start'], + }; +} + +export function IoK8sApiAppsV1StatefulSetOrdinalsToJSON(value?: IoK8sApiAppsV1StatefulSetOrdinals | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'start': value.start, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSetPersistentVolumeClaimRetentionPolicy.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSetPersistentVolumeClaimRetentionPolicy.ts new file mode 100644 index 000000000..b82692052 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSetPersistentVolumeClaimRetentionPolicy.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates. + * @export + * @interface IoK8sApiAppsV1StatefulSetPersistentVolumeClaimRetentionPolicy + */ +export interface IoK8sApiAppsV1StatefulSetPersistentVolumeClaimRetentionPolicy { + /** + * WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted. + * @type {string} + * @memberof IoK8sApiAppsV1StatefulSetPersistentVolumeClaimRetentionPolicy + */ + whenDeleted?: string; + /** + * WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted. + * @type {string} + * @memberof IoK8sApiAppsV1StatefulSetPersistentVolumeClaimRetentionPolicy + */ + whenScaled?: string; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1StatefulSetPersistentVolumeClaimRetentionPolicy interface. + */ +export function instanceOfIoK8sApiAppsV1StatefulSetPersistentVolumeClaimRetentionPolicy(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAppsV1StatefulSetPersistentVolumeClaimRetentionPolicyFromJSON(json: any): IoK8sApiAppsV1StatefulSetPersistentVolumeClaimRetentionPolicy { + return IoK8sApiAppsV1StatefulSetPersistentVolumeClaimRetentionPolicyFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1StatefulSetPersistentVolumeClaimRetentionPolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1StatefulSetPersistentVolumeClaimRetentionPolicy { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'whenDeleted': !exists(json, 'whenDeleted') ? undefined : json['whenDeleted'], + 'whenScaled': !exists(json, 'whenScaled') ? undefined : json['whenScaled'], + }; +} + +export function IoK8sApiAppsV1StatefulSetPersistentVolumeClaimRetentionPolicyToJSON(value?: IoK8sApiAppsV1StatefulSetPersistentVolumeClaimRetentionPolicy | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'whenDeleted': value.whenDeleted, + 'whenScaled': value.whenScaled, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSetSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSetSpec.ts new file mode 100644 index 000000000..b3f639828 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSetSpec.ts @@ -0,0 +1,185 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAppsV1StatefulSetOrdinals } from './IoK8sApiAppsV1StatefulSetOrdinals'; +import { + IoK8sApiAppsV1StatefulSetOrdinalsFromJSON, + IoK8sApiAppsV1StatefulSetOrdinalsFromJSONTyped, + IoK8sApiAppsV1StatefulSetOrdinalsToJSON, +} from './IoK8sApiAppsV1StatefulSetOrdinals'; +import type { IoK8sApiAppsV1StatefulSetPersistentVolumeClaimRetentionPolicy } from './IoK8sApiAppsV1StatefulSetPersistentVolumeClaimRetentionPolicy'; +import { + IoK8sApiAppsV1StatefulSetPersistentVolumeClaimRetentionPolicyFromJSON, + IoK8sApiAppsV1StatefulSetPersistentVolumeClaimRetentionPolicyFromJSONTyped, + IoK8sApiAppsV1StatefulSetPersistentVolumeClaimRetentionPolicyToJSON, +} from './IoK8sApiAppsV1StatefulSetPersistentVolumeClaimRetentionPolicy'; +import type { IoK8sApiAppsV1StatefulSetUpdateStrategy } from './IoK8sApiAppsV1StatefulSetUpdateStrategy'; +import { + IoK8sApiAppsV1StatefulSetUpdateStrategyFromJSON, + IoK8sApiAppsV1StatefulSetUpdateStrategyFromJSONTyped, + IoK8sApiAppsV1StatefulSetUpdateStrategyToJSON, +} from './IoK8sApiAppsV1StatefulSetUpdateStrategy'; +import type { IoK8sApiCoreV1PersistentVolumeClaim } from './IoK8sApiCoreV1PersistentVolumeClaim'; +import { + IoK8sApiCoreV1PersistentVolumeClaimFromJSON, + IoK8sApiCoreV1PersistentVolumeClaimFromJSONTyped, + IoK8sApiCoreV1PersistentVolumeClaimToJSON, +} from './IoK8sApiCoreV1PersistentVolumeClaim'; +import type { IoK8sApiCoreV1PodTemplateSpec } from './IoK8sApiCoreV1PodTemplateSpec'; +import { + IoK8sApiCoreV1PodTemplateSpecFromJSON, + IoK8sApiCoreV1PodTemplateSpecFromJSONTyped, + IoK8sApiCoreV1PodTemplateSpecToJSON, +} from './IoK8sApiCoreV1PodTemplateSpec'; +import type { IoK8sApimachineryPkgApisMetaV1LabelSelector } from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; +import { + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON, + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; + +/** + * A StatefulSetSpec is the specification of a StatefulSet. + * @export + * @interface IoK8sApiAppsV1StatefulSetSpec + */ +export interface IoK8sApiAppsV1StatefulSetSpec { + /** + * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * @type {number} + * @memberof IoK8sApiAppsV1StatefulSetSpec + */ + minReadySeconds?: number; + /** + * + * @type {IoK8sApiAppsV1StatefulSetOrdinals} + * @memberof IoK8sApiAppsV1StatefulSetSpec + */ + ordinals?: IoK8sApiAppsV1StatefulSetOrdinals; + /** + * + * @type {IoK8sApiAppsV1StatefulSetPersistentVolumeClaimRetentionPolicy} + * @memberof IoK8sApiAppsV1StatefulSetSpec + */ + persistentVolumeClaimRetentionPolicy?: IoK8sApiAppsV1StatefulSetPersistentVolumeClaimRetentionPolicy; + /** + * podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. + * @type {string} + * @memberof IoK8sApiAppsV1StatefulSetSpec + */ + podManagementPolicy?: string; + /** + * replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. + * @type {number} + * @memberof IoK8sApiAppsV1StatefulSetSpec + */ + replicas?: number; + /** + * revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. + * @type {number} + * @memberof IoK8sApiAppsV1StatefulSetSpec + */ + revisionHistoryLimit?: number; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1LabelSelector} + * @memberof IoK8sApiAppsV1StatefulSetSpec + */ + selector: IoK8sApimachineryPkgApisMetaV1LabelSelector; + /** + * serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller. + * @type {string} + * @memberof IoK8sApiAppsV1StatefulSetSpec + */ + serviceName: string; + /** + * + * @type {IoK8sApiCoreV1PodTemplateSpec} + * @memberof IoK8sApiAppsV1StatefulSetSpec + */ + template: IoK8sApiCoreV1PodTemplateSpec; + /** + * + * @type {IoK8sApiAppsV1StatefulSetUpdateStrategy} + * @memberof IoK8sApiAppsV1StatefulSetSpec + */ + updateStrategy?: IoK8sApiAppsV1StatefulSetUpdateStrategy; + /** + * volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. + * @type {Array} + * @memberof IoK8sApiAppsV1StatefulSetSpec + */ + volumeClaimTemplates?: Array; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1StatefulSetSpec interface. + */ +export function instanceOfIoK8sApiAppsV1StatefulSetSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "selector" in value; + isInstance = isInstance && "serviceName" in value; + isInstance = isInstance && "template" in value; + + return isInstance; +} + +export function IoK8sApiAppsV1StatefulSetSpecFromJSON(json: any): IoK8sApiAppsV1StatefulSetSpec { + return IoK8sApiAppsV1StatefulSetSpecFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1StatefulSetSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1StatefulSetSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'minReadySeconds': !exists(json, 'minReadySeconds') ? undefined : json['minReadySeconds'], + 'ordinals': !exists(json, 'ordinals') ? undefined : IoK8sApiAppsV1StatefulSetOrdinalsFromJSON(json['ordinals']), + 'persistentVolumeClaimRetentionPolicy': !exists(json, 'persistentVolumeClaimRetentionPolicy') ? undefined : IoK8sApiAppsV1StatefulSetPersistentVolumeClaimRetentionPolicyFromJSON(json['persistentVolumeClaimRetentionPolicy']), + 'podManagementPolicy': !exists(json, 'podManagementPolicy') ? undefined : json['podManagementPolicy'], + 'replicas': !exists(json, 'replicas') ? undefined : json['replicas'], + 'revisionHistoryLimit': !exists(json, 'revisionHistoryLimit') ? undefined : json['revisionHistoryLimit'], + 'selector': IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['selector']), + 'serviceName': json['serviceName'], + 'template': IoK8sApiCoreV1PodTemplateSpecFromJSON(json['template']), + 'updateStrategy': !exists(json, 'updateStrategy') ? undefined : IoK8sApiAppsV1StatefulSetUpdateStrategyFromJSON(json['updateStrategy']), + 'volumeClaimTemplates': !exists(json, 'volumeClaimTemplates') ? undefined : ((json['volumeClaimTemplates'] as Array).map(IoK8sApiCoreV1PersistentVolumeClaimFromJSON)), + }; +} + +export function IoK8sApiAppsV1StatefulSetSpecToJSON(value?: IoK8sApiAppsV1StatefulSetSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'minReadySeconds': value.minReadySeconds, + 'ordinals': IoK8sApiAppsV1StatefulSetOrdinalsToJSON(value.ordinals), + 'persistentVolumeClaimRetentionPolicy': IoK8sApiAppsV1StatefulSetPersistentVolumeClaimRetentionPolicyToJSON(value.persistentVolumeClaimRetentionPolicy), + 'podManagementPolicy': value.podManagementPolicy, + 'replicas': value.replicas, + 'revisionHistoryLimit': value.revisionHistoryLimit, + 'selector': IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value.selector), + 'serviceName': value.serviceName, + 'template': IoK8sApiCoreV1PodTemplateSpecToJSON(value.template), + 'updateStrategy': IoK8sApiAppsV1StatefulSetUpdateStrategyToJSON(value.updateStrategy), + 'volumeClaimTemplates': value.volumeClaimTemplates === undefined ? undefined : ((value.volumeClaimTemplates as Array).map(IoK8sApiCoreV1PersistentVolumeClaimToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSetStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSetStatus.ts new file mode 100644 index 000000000..2b43fb4e0 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSetStatus.ts @@ -0,0 +1,145 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAppsV1StatefulSetCondition } from './IoK8sApiAppsV1StatefulSetCondition'; +import { + IoK8sApiAppsV1StatefulSetConditionFromJSON, + IoK8sApiAppsV1StatefulSetConditionFromJSONTyped, + IoK8sApiAppsV1StatefulSetConditionToJSON, +} from './IoK8sApiAppsV1StatefulSetCondition'; + +/** + * StatefulSetStatus represents the current state of a StatefulSet. + * @export + * @interface IoK8sApiAppsV1StatefulSetStatus + */ +export interface IoK8sApiAppsV1StatefulSetStatus { + /** + * Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset. + * @type {number} + * @memberof IoK8sApiAppsV1StatefulSetStatus + */ + availableReplicas?: number; + /** + * collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + * @type {number} + * @memberof IoK8sApiAppsV1StatefulSetStatus + */ + collisionCount?: number; + /** + * Represents the latest available observations of a statefulset's current state. + * @type {Array} + * @memberof IoK8sApiAppsV1StatefulSetStatus + */ + conditions?: Array; + /** + * currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. + * @type {number} + * @memberof IoK8sApiAppsV1StatefulSetStatus + */ + currentReplicas?: number; + /** + * currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). + * @type {string} + * @memberof IoK8sApiAppsV1StatefulSetStatus + */ + currentRevision?: string; + /** + * observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. + * @type {number} + * @memberof IoK8sApiAppsV1StatefulSetStatus + */ + observedGeneration?: number; + /** + * readyReplicas is the number of pods created for this StatefulSet with a Ready Condition. + * @type {number} + * @memberof IoK8sApiAppsV1StatefulSetStatus + */ + readyReplicas?: number; + /** + * replicas is the number of Pods created by the StatefulSet controller. + * @type {number} + * @memberof IoK8sApiAppsV1StatefulSetStatus + */ + replicas: number; + /** + * updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) + * @type {string} + * @memberof IoK8sApiAppsV1StatefulSetStatus + */ + updateRevision?: string; + /** + * updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. + * @type {number} + * @memberof IoK8sApiAppsV1StatefulSetStatus + */ + updatedReplicas?: number; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1StatefulSetStatus interface. + */ +export function instanceOfIoK8sApiAppsV1StatefulSetStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "replicas" in value; + + return isInstance; +} + +export function IoK8sApiAppsV1StatefulSetStatusFromJSON(json: any): IoK8sApiAppsV1StatefulSetStatus { + return IoK8sApiAppsV1StatefulSetStatusFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1StatefulSetStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1StatefulSetStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'availableReplicas': !exists(json, 'availableReplicas') ? undefined : json['availableReplicas'], + 'collisionCount': !exists(json, 'collisionCount') ? undefined : json['collisionCount'], + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(IoK8sApiAppsV1StatefulSetConditionFromJSON)), + 'currentReplicas': !exists(json, 'currentReplicas') ? undefined : json['currentReplicas'], + 'currentRevision': !exists(json, 'currentRevision') ? undefined : json['currentRevision'], + 'observedGeneration': !exists(json, 'observedGeneration') ? undefined : json['observedGeneration'], + 'readyReplicas': !exists(json, 'readyReplicas') ? undefined : json['readyReplicas'], + 'replicas': json['replicas'], + 'updateRevision': !exists(json, 'updateRevision') ? undefined : json['updateRevision'], + 'updatedReplicas': !exists(json, 'updatedReplicas') ? undefined : json['updatedReplicas'], + }; +} + +export function IoK8sApiAppsV1StatefulSetStatusToJSON(value?: IoK8sApiAppsV1StatefulSetStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'availableReplicas': value.availableReplicas, + 'collisionCount': value.collisionCount, + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(IoK8sApiAppsV1StatefulSetConditionToJSON)), + 'currentReplicas': value.currentReplicas, + 'currentRevision': value.currentRevision, + 'observedGeneration': value.observedGeneration, + 'readyReplicas': value.readyReplicas, + 'replicas': value.replicas, + 'updateRevision': value.updateRevision, + 'updatedReplicas': value.updatedReplicas, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSetUpdateStrategy.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSetUpdateStrategy.ts new file mode 100644 index 000000000..3692ba8ef --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAppsV1StatefulSetUpdateStrategy.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAppsV1RollingUpdateStatefulSetStrategy } from './IoK8sApiAppsV1RollingUpdateStatefulSetStrategy'; +import { + IoK8sApiAppsV1RollingUpdateStatefulSetStrategyFromJSON, + IoK8sApiAppsV1RollingUpdateStatefulSetStrategyFromJSONTyped, + IoK8sApiAppsV1RollingUpdateStatefulSetStrategyToJSON, +} from './IoK8sApiAppsV1RollingUpdateStatefulSetStrategy'; + +/** + * StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy. + * @export + * @interface IoK8sApiAppsV1StatefulSetUpdateStrategy + */ +export interface IoK8sApiAppsV1StatefulSetUpdateStrategy { + /** + * + * @type {IoK8sApiAppsV1RollingUpdateStatefulSetStrategy} + * @memberof IoK8sApiAppsV1StatefulSetUpdateStrategy + */ + rollingUpdate?: IoK8sApiAppsV1RollingUpdateStatefulSetStrategy; + /** + * Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. + * @type {string} + * @memberof IoK8sApiAppsV1StatefulSetUpdateStrategy + */ + type?: string; +} + +/** + * Check if a given object implements the IoK8sApiAppsV1StatefulSetUpdateStrategy interface. + */ +export function instanceOfIoK8sApiAppsV1StatefulSetUpdateStrategy(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAppsV1StatefulSetUpdateStrategyFromJSON(json: any): IoK8sApiAppsV1StatefulSetUpdateStrategy { + return IoK8sApiAppsV1StatefulSetUpdateStrategyFromJSONTyped(json, false); +} + +export function IoK8sApiAppsV1StatefulSetUpdateStrategyFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAppsV1StatefulSetUpdateStrategy { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'rollingUpdate': !exists(json, 'rollingUpdate') ? undefined : IoK8sApiAppsV1RollingUpdateStatefulSetStrategyFromJSON(json['rollingUpdate']), + 'type': !exists(json, 'type') ? undefined : json['type'], + }; +} + +export function IoK8sApiAppsV1StatefulSetUpdateStrategyToJSON(value?: IoK8sApiAppsV1StatefulSetUpdateStrategy | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'rollingUpdate': IoK8sApiAppsV1RollingUpdateStatefulSetStrategyToJSON(value.rollingUpdate), + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1BoundObjectReference.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1BoundObjectReference.ts new file mode 100644 index 000000000..6be4085ba --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1BoundObjectReference.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * BoundObjectReference is a reference to an object that a token is bound to. + * @export + * @interface IoK8sApiAuthenticationV1BoundObjectReference + */ +export interface IoK8sApiAuthenticationV1BoundObjectReference { + /** + * API version of the referent. + * @type {string} + * @memberof IoK8sApiAuthenticationV1BoundObjectReference + */ + apiVersion?: string; + /** + * Kind of the referent. Valid kinds are 'Pod' and 'Secret'. + * @type {string} + * @memberof IoK8sApiAuthenticationV1BoundObjectReference + */ + kind?: string; + /** + * Name of the referent. + * @type {string} + * @memberof IoK8sApiAuthenticationV1BoundObjectReference + */ + name?: string; + /** + * UID of the referent. + * @type {string} + * @memberof IoK8sApiAuthenticationV1BoundObjectReference + */ + uid?: string; +} + +/** + * Check if a given object implements the IoK8sApiAuthenticationV1BoundObjectReference interface. + */ +export function instanceOfIoK8sApiAuthenticationV1BoundObjectReference(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAuthenticationV1BoundObjectReferenceFromJSON(json: any): IoK8sApiAuthenticationV1BoundObjectReference { + return IoK8sApiAuthenticationV1BoundObjectReferenceFromJSONTyped(json, false); +} + +export function IoK8sApiAuthenticationV1BoundObjectReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAuthenticationV1BoundObjectReference { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'name': !exists(json, 'name') ? undefined : json['name'], + 'uid': !exists(json, 'uid') ? undefined : json['uid'], + }; +} + +export function IoK8sApiAuthenticationV1BoundObjectReferenceToJSON(value?: IoK8sApiAuthenticationV1BoundObjectReference | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'name': value.name, + 'uid': value.uid, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1SelfSubjectReview.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1SelfSubjectReview.ts new file mode 100644 index 000000000..b91b7c5ec --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1SelfSubjectReview.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAuthenticationV1SelfSubjectReviewStatus } from './IoK8sApiAuthenticationV1SelfSubjectReviewStatus'; +import { + IoK8sApiAuthenticationV1SelfSubjectReviewStatusFromJSON, + IoK8sApiAuthenticationV1SelfSubjectReviewStatusFromJSONTyped, + IoK8sApiAuthenticationV1SelfSubjectReviewStatusToJSON, +} from './IoK8sApiAuthenticationV1SelfSubjectReviewStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase. + * @export + * @interface IoK8sApiAuthenticationV1SelfSubjectReview + */ +export interface IoK8sApiAuthenticationV1SelfSubjectReview { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAuthenticationV1SelfSubjectReview + */ + 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 + * @type {string} + * @memberof IoK8sApiAuthenticationV1SelfSubjectReview + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiAuthenticationV1SelfSubjectReview + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiAuthenticationV1SelfSubjectReviewStatus} + * @memberof IoK8sApiAuthenticationV1SelfSubjectReview + */ + status?: IoK8sApiAuthenticationV1SelfSubjectReviewStatus; +} + +/** + * Check if a given object implements the IoK8sApiAuthenticationV1SelfSubjectReview interface. + */ +export function instanceOfIoK8sApiAuthenticationV1SelfSubjectReview(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAuthenticationV1SelfSubjectReviewFromJSON(json: any): IoK8sApiAuthenticationV1SelfSubjectReview { + return IoK8sApiAuthenticationV1SelfSubjectReviewFromJSONTyped(json, false); +} + +export function IoK8sApiAuthenticationV1SelfSubjectReviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAuthenticationV1SelfSubjectReview { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiAuthenticationV1SelfSubjectReviewStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiAuthenticationV1SelfSubjectReviewToJSON(value?: IoK8sApiAuthenticationV1SelfSubjectReview | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'status': IoK8sApiAuthenticationV1SelfSubjectReviewStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1SelfSubjectReviewStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1SelfSubjectReviewStatus.ts new file mode 100644 index 000000000..7c3cc3b2c --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1SelfSubjectReviewStatus.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAuthenticationV1UserInfo } from './IoK8sApiAuthenticationV1UserInfo'; +import { + IoK8sApiAuthenticationV1UserInfoFromJSON, + IoK8sApiAuthenticationV1UserInfoFromJSONTyped, + IoK8sApiAuthenticationV1UserInfoToJSON, +} from './IoK8sApiAuthenticationV1UserInfo'; + +/** + * SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. + * @export + * @interface IoK8sApiAuthenticationV1SelfSubjectReviewStatus + */ +export interface IoK8sApiAuthenticationV1SelfSubjectReviewStatus { + /** + * + * @type {IoK8sApiAuthenticationV1UserInfo} + * @memberof IoK8sApiAuthenticationV1SelfSubjectReviewStatus + */ + userInfo?: IoK8sApiAuthenticationV1UserInfo; +} + +/** + * Check if a given object implements the IoK8sApiAuthenticationV1SelfSubjectReviewStatus interface. + */ +export function instanceOfIoK8sApiAuthenticationV1SelfSubjectReviewStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAuthenticationV1SelfSubjectReviewStatusFromJSON(json: any): IoK8sApiAuthenticationV1SelfSubjectReviewStatus { + return IoK8sApiAuthenticationV1SelfSubjectReviewStatusFromJSONTyped(json, false); +} + +export function IoK8sApiAuthenticationV1SelfSubjectReviewStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAuthenticationV1SelfSubjectReviewStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'userInfo': !exists(json, 'userInfo') ? undefined : IoK8sApiAuthenticationV1UserInfoFromJSON(json['userInfo']), + }; +} + +export function IoK8sApiAuthenticationV1SelfSubjectReviewStatusToJSON(value?: IoK8sApiAuthenticationV1SelfSubjectReviewStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'userInfo': IoK8sApiAuthenticationV1UserInfoToJSON(value.userInfo), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1TokenRequest.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1TokenRequest.ts new file mode 100644 index 000000000..788d1b6e0 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1TokenRequest.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAuthenticationV1TokenRequestSpec } from './IoK8sApiAuthenticationV1TokenRequestSpec'; +import { + IoK8sApiAuthenticationV1TokenRequestSpecFromJSON, + IoK8sApiAuthenticationV1TokenRequestSpecFromJSONTyped, + IoK8sApiAuthenticationV1TokenRequestSpecToJSON, +} from './IoK8sApiAuthenticationV1TokenRequestSpec'; +import type { IoK8sApiAuthenticationV1TokenRequestStatus } from './IoK8sApiAuthenticationV1TokenRequestStatus'; +import { + IoK8sApiAuthenticationV1TokenRequestStatusFromJSON, + IoK8sApiAuthenticationV1TokenRequestStatusFromJSONTyped, + IoK8sApiAuthenticationV1TokenRequestStatusToJSON, +} from './IoK8sApiAuthenticationV1TokenRequestStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * TokenRequest requests a token for a given service account. + * @export + * @interface IoK8sApiAuthenticationV1TokenRequest + */ +export interface IoK8sApiAuthenticationV1TokenRequest { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAuthenticationV1TokenRequest + */ + 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 + * @type {string} + * @memberof IoK8sApiAuthenticationV1TokenRequest + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiAuthenticationV1TokenRequest + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiAuthenticationV1TokenRequestSpec} + * @memberof IoK8sApiAuthenticationV1TokenRequest + */ + spec: IoK8sApiAuthenticationV1TokenRequestSpec; + /** + * + * @type {IoK8sApiAuthenticationV1TokenRequestStatus} + * @memberof IoK8sApiAuthenticationV1TokenRequest + */ + status?: IoK8sApiAuthenticationV1TokenRequestStatus; +} + +/** + * Check if a given object implements the IoK8sApiAuthenticationV1TokenRequest interface. + */ +export function instanceOfIoK8sApiAuthenticationV1TokenRequest(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function IoK8sApiAuthenticationV1TokenRequestFromJSON(json: any): IoK8sApiAuthenticationV1TokenRequest { + return IoK8sApiAuthenticationV1TokenRequestFromJSONTyped(json, false); +} + +export function IoK8sApiAuthenticationV1TokenRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAuthenticationV1TokenRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': IoK8sApiAuthenticationV1TokenRequestSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiAuthenticationV1TokenRequestStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiAuthenticationV1TokenRequestToJSON(value?: IoK8sApiAuthenticationV1TokenRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiAuthenticationV1TokenRequestSpecToJSON(value.spec), + 'status': IoK8sApiAuthenticationV1TokenRequestStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1TokenRequestSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1TokenRequestSpec.ts new file mode 100644 index 000000000..faaa4d75b --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1TokenRequestSpec.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAuthenticationV1BoundObjectReference } from './IoK8sApiAuthenticationV1BoundObjectReference'; +import { + IoK8sApiAuthenticationV1BoundObjectReferenceFromJSON, + IoK8sApiAuthenticationV1BoundObjectReferenceFromJSONTyped, + IoK8sApiAuthenticationV1BoundObjectReferenceToJSON, +} from './IoK8sApiAuthenticationV1BoundObjectReference'; + +/** + * TokenRequestSpec contains client provided parameters of a token request. + * @export + * @interface IoK8sApiAuthenticationV1TokenRequestSpec + */ +export interface IoK8sApiAuthenticationV1TokenRequestSpec { + /** + * Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences. + * @type {Array} + * @memberof IoK8sApiAuthenticationV1TokenRequestSpec + */ + audiences: string[]; + /** + * + * @type {IoK8sApiAuthenticationV1BoundObjectReference} + * @memberof IoK8sApiAuthenticationV1TokenRequestSpec + */ + boundObjectRef?: IoK8sApiAuthenticationV1BoundObjectReference; + /** + * ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response. + * @type {number} + * @memberof IoK8sApiAuthenticationV1TokenRequestSpec + */ + expirationSeconds?: number; +} + +/** + * Check if a given object implements the IoK8sApiAuthenticationV1TokenRequestSpec interface. + */ +export function instanceOfIoK8sApiAuthenticationV1TokenRequestSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "audiences" in value; + + return isInstance; +} + +export function IoK8sApiAuthenticationV1TokenRequestSpecFromJSON(json: any): IoK8sApiAuthenticationV1TokenRequestSpec { + return IoK8sApiAuthenticationV1TokenRequestSpecFromJSONTyped(json, false); +} + +export function IoK8sApiAuthenticationV1TokenRequestSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAuthenticationV1TokenRequestSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'audiences': json['audiences'], + 'boundObjectRef': !exists(json, 'boundObjectRef') ? undefined : IoK8sApiAuthenticationV1BoundObjectReferenceFromJSON(json['boundObjectRef']), + 'expirationSeconds': !exists(json, 'expirationSeconds') ? undefined : json['expirationSeconds'], + }; +} + +export function IoK8sApiAuthenticationV1TokenRequestSpecToJSON(value?: IoK8sApiAuthenticationV1TokenRequestSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'audiences': value.audiences, + 'boundObjectRef': IoK8sApiAuthenticationV1BoundObjectReferenceToJSON(value.boundObjectRef), + 'expirationSeconds': value.expirationSeconds, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1TokenRequestStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1TokenRequestStatus.ts new file mode 100644 index 000000000..c247fe93e --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1TokenRequestStatus.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * TokenRequestStatus is the result of a token request. + * @export + * @interface IoK8sApiAuthenticationV1TokenRequestStatus + */ +export interface IoK8sApiAuthenticationV1TokenRequestStatus { + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiAuthenticationV1TokenRequestStatus + */ + expirationTimestamp: string; + /** + * Token is the opaque bearer token. + * @type {string} + * @memberof IoK8sApiAuthenticationV1TokenRequestStatus + */ + token: string; +} + +/** + * Check if a given object implements the IoK8sApiAuthenticationV1TokenRequestStatus interface. + */ +export function instanceOfIoK8sApiAuthenticationV1TokenRequestStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "expirationTimestamp" in value; + isInstance = isInstance && "token" in value; + + return isInstance; +} + +export function IoK8sApiAuthenticationV1TokenRequestStatusFromJSON(json: any): IoK8sApiAuthenticationV1TokenRequestStatus { + return IoK8sApiAuthenticationV1TokenRequestStatusFromJSONTyped(json, false); +} + +export function IoK8sApiAuthenticationV1TokenRequestStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAuthenticationV1TokenRequestStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'expirationTimestamp': json['expirationTimestamp'], + 'token': json['token'], + }; +} + +export function IoK8sApiAuthenticationV1TokenRequestStatusToJSON(value?: IoK8sApiAuthenticationV1TokenRequestStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'expirationTimestamp': (value.expirationTimestamp), + 'token': value.token, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1TokenReview.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1TokenReview.ts new file mode 100644 index 000000000..a06430041 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1TokenReview.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAuthenticationV1TokenReviewSpec } from './IoK8sApiAuthenticationV1TokenReviewSpec'; +import { + IoK8sApiAuthenticationV1TokenReviewSpecFromJSON, + IoK8sApiAuthenticationV1TokenReviewSpecFromJSONTyped, + IoK8sApiAuthenticationV1TokenReviewSpecToJSON, +} from './IoK8sApiAuthenticationV1TokenReviewSpec'; +import type { IoK8sApiAuthenticationV1TokenReviewStatus } from './IoK8sApiAuthenticationV1TokenReviewStatus'; +import { + IoK8sApiAuthenticationV1TokenReviewStatusFromJSON, + IoK8sApiAuthenticationV1TokenReviewStatusFromJSONTyped, + IoK8sApiAuthenticationV1TokenReviewStatusToJSON, +} from './IoK8sApiAuthenticationV1TokenReviewStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. + * @export + * @interface IoK8sApiAuthenticationV1TokenReview + */ +export interface IoK8sApiAuthenticationV1TokenReview { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAuthenticationV1TokenReview + */ + 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 + * @type {string} + * @memberof IoK8sApiAuthenticationV1TokenReview + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiAuthenticationV1TokenReview + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiAuthenticationV1TokenReviewSpec} + * @memberof IoK8sApiAuthenticationV1TokenReview + */ + spec: IoK8sApiAuthenticationV1TokenReviewSpec; + /** + * + * @type {IoK8sApiAuthenticationV1TokenReviewStatus} + * @memberof IoK8sApiAuthenticationV1TokenReview + */ + status?: IoK8sApiAuthenticationV1TokenReviewStatus; +} + +/** + * Check if a given object implements the IoK8sApiAuthenticationV1TokenReview interface. + */ +export function instanceOfIoK8sApiAuthenticationV1TokenReview(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function IoK8sApiAuthenticationV1TokenReviewFromJSON(json: any): IoK8sApiAuthenticationV1TokenReview { + return IoK8sApiAuthenticationV1TokenReviewFromJSONTyped(json, false); +} + +export function IoK8sApiAuthenticationV1TokenReviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAuthenticationV1TokenReview { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': IoK8sApiAuthenticationV1TokenReviewSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiAuthenticationV1TokenReviewStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiAuthenticationV1TokenReviewToJSON(value?: IoK8sApiAuthenticationV1TokenReview | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiAuthenticationV1TokenReviewSpecToJSON(value.spec), + 'status': IoK8sApiAuthenticationV1TokenReviewStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1TokenReviewSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1TokenReviewSpec.ts new file mode 100644 index 000000000..51764ad4a --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1TokenReviewSpec.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * TokenReviewSpec is a description of the token authentication request. + * @export + * @interface IoK8sApiAuthenticationV1TokenReviewSpec + */ +export interface IoK8sApiAuthenticationV1TokenReviewSpec { + /** + * Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. + * @type {Array} + * @memberof IoK8sApiAuthenticationV1TokenReviewSpec + */ + audiences?: string[]; + /** + * Token is the opaque bearer token. + * @type {string} + * @memberof IoK8sApiAuthenticationV1TokenReviewSpec + */ + token?: string; +} + +/** + * Check if a given object implements the IoK8sApiAuthenticationV1TokenReviewSpec interface. + */ +export function instanceOfIoK8sApiAuthenticationV1TokenReviewSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAuthenticationV1TokenReviewSpecFromJSON(json: any): IoK8sApiAuthenticationV1TokenReviewSpec { + return IoK8sApiAuthenticationV1TokenReviewSpecFromJSONTyped(json, false); +} + +export function IoK8sApiAuthenticationV1TokenReviewSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAuthenticationV1TokenReviewSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'audiences': !exists(json, 'audiences') ? undefined : json['audiences'], + 'token': !exists(json, 'token') ? undefined : json['token'], + }; +} + +export function IoK8sApiAuthenticationV1TokenReviewSpecToJSON(value?: IoK8sApiAuthenticationV1TokenReviewSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'audiences': value.audiences, + 'token': value.token, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1TokenReviewStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1TokenReviewStatus.ts new file mode 100644 index 000000000..448c41710 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1TokenReviewStatus.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAuthenticationV1UserInfo } from './IoK8sApiAuthenticationV1UserInfo'; +import { + IoK8sApiAuthenticationV1UserInfoFromJSON, + IoK8sApiAuthenticationV1UserInfoFromJSONTyped, + IoK8sApiAuthenticationV1UserInfoToJSON, +} from './IoK8sApiAuthenticationV1UserInfo'; + +/** + * TokenReviewStatus is the result of the token authentication request. + * @export + * @interface IoK8sApiAuthenticationV1TokenReviewStatus + */ +export interface IoK8sApiAuthenticationV1TokenReviewStatus { + /** + * Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is "true", the token is valid against the audience of the Kubernetes API server. + * @type {Array} + * @memberof IoK8sApiAuthenticationV1TokenReviewStatus + */ + audiences?: string[]; + /** + * Authenticated indicates that the token was associated with a known user. + * @type {boolean} + * @memberof IoK8sApiAuthenticationV1TokenReviewStatus + */ + authenticated?: boolean; + /** + * Error indicates that the token couldn't be checked + * @type {string} + * @memberof IoK8sApiAuthenticationV1TokenReviewStatus + */ + error?: string; + /** + * + * @type {IoK8sApiAuthenticationV1UserInfo} + * @memberof IoK8sApiAuthenticationV1TokenReviewStatus + */ + user?: IoK8sApiAuthenticationV1UserInfo; +} + +/** + * Check if a given object implements the IoK8sApiAuthenticationV1TokenReviewStatus interface. + */ +export function instanceOfIoK8sApiAuthenticationV1TokenReviewStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAuthenticationV1TokenReviewStatusFromJSON(json: any): IoK8sApiAuthenticationV1TokenReviewStatus { + return IoK8sApiAuthenticationV1TokenReviewStatusFromJSONTyped(json, false); +} + +export function IoK8sApiAuthenticationV1TokenReviewStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAuthenticationV1TokenReviewStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'audiences': !exists(json, 'audiences') ? undefined : json['audiences'], + 'authenticated': !exists(json, 'authenticated') ? undefined : json['authenticated'], + 'error': !exists(json, 'error') ? undefined : json['error'], + 'user': !exists(json, 'user') ? undefined : IoK8sApiAuthenticationV1UserInfoFromJSON(json['user']), + }; +} + +export function IoK8sApiAuthenticationV1TokenReviewStatusToJSON(value?: IoK8sApiAuthenticationV1TokenReviewStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'audiences': value.audiences, + 'authenticated': value.authenticated, + 'error': value.error, + 'user': IoK8sApiAuthenticationV1UserInfoToJSON(value.user), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1UserInfo.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1UserInfo.ts new file mode 100644 index 000000000..d4f337ec1 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1UserInfo.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * UserInfo holds the information about the user needed to implement the user.Info interface. + * @export + * @interface IoK8sApiAuthenticationV1UserInfo + */ +export interface IoK8sApiAuthenticationV1UserInfo { + /** + * Any additional information provided by the authenticator. + * @type {{ [key: string]: string[]; }} + * @memberof IoK8sApiAuthenticationV1UserInfo + */ + extra?: { [key: string]: string[]; }; + /** + * The names of groups this user is a part of. + * @type {Array} + * @memberof IoK8sApiAuthenticationV1UserInfo + */ + groups?: string[]; + /** + * A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. + * @type {string} + * @memberof IoK8sApiAuthenticationV1UserInfo + */ + uid?: string; + /** + * The name that uniquely identifies this user among all active users. + * @type {string} + * @memberof IoK8sApiAuthenticationV1UserInfo + */ + username?: string; +} + +/** + * Check if a given object implements the IoK8sApiAuthenticationV1UserInfo interface. + */ +export function instanceOfIoK8sApiAuthenticationV1UserInfo(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAuthenticationV1UserInfoFromJSON(json: any): IoK8sApiAuthenticationV1UserInfo { + return IoK8sApiAuthenticationV1UserInfoFromJSONTyped(json, false); +} + +export function IoK8sApiAuthenticationV1UserInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAuthenticationV1UserInfo { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'extra': !exists(json, 'extra') ? undefined : json['extra'], + 'groups': !exists(json, 'groups') ? undefined : json['groups'], + 'uid': !exists(json, 'uid') ? undefined : json['uid'], + 'username': !exists(json, 'username') ? undefined : json['username'], + }; +} + +export function IoK8sApiAuthenticationV1UserInfoToJSON(value?: IoK8sApiAuthenticationV1UserInfo | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'extra': value.extra, + 'groups': value.groups, + 'uid': value.uid, + 'username': value.username, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1alpha1SelfSubjectReview.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1alpha1SelfSubjectReview.ts new file mode 100644 index 000000000..874b58c5c --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1alpha1SelfSubjectReview.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAuthenticationV1alpha1SelfSubjectReviewStatus } from './IoK8sApiAuthenticationV1alpha1SelfSubjectReviewStatus'; +import { + IoK8sApiAuthenticationV1alpha1SelfSubjectReviewStatusFromJSON, + IoK8sApiAuthenticationV1alpha1SelfSubjectReviewStatusFromJSONTyped, + IoK8sApiAuthenticationV1alpha1SelfSubjectReviewStatusToJSON, +} from './IoK8sApiAuthenticationV1alpha1SelfSubjectReviewStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase. + * @export + * @interface IoK8sApiAuthenticationV1alpha1SelfSubjectReview + */ +export interface IoK8sApiAuthenticationV1alpha1SelfSubjectReview { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAuthenticationV1alpha1SelfSubjectReview + */ + 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 + * @type {string} + * @memberof IoK8sApiAuthenticationV1alpha1SelfSubjectReview + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiAuthenticationV1alpha1SelfSubjectReview + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiAuthenticationV1alpha1SelfSubjectReviewStatus} + * @memberof IoK8sApiAuthenticationV1alpha1SelfSubjectReview + */ + status?: IoK8sApiAuthenticationV1alpha1SelfSubjectReviewStatus; +} + +/** + * Check if a given object implements the IoK8sApiAuthenticationV1alpha1SelfSubjectReview interface. + */ +export function instanceOfIoK8sApiAuthenticationV1alpha1SelfSubjectReview(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAuthenticationV1alpha1SelfSubjectReviewFromJSON(json: any): IoK8sApiAuthenticationV1alpha1SelfSubjectReview { + return IoK8sApiAuthenticationV1alpha1SelfSubjectReviewFromJSONTyped(json, false); +} + +export function IoK8sApiAuthenticationV1alpha1SelfSubjectReviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAuthenticationV1alpha1SelfSubjectReview { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiAuthenticationV1alpha1SelfSubjectReviewStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiAuthenticationV1alpha1SelfSubjectReviewToJSON(value?: IoK8sApiAuthenticationV1alpha1SelfSubjectReview | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'status': IoK8sApiAuthenticationV1alpha1SelfSubjectReviewStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1alpha1SelfSubjectReviewStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1alpha1SelfSubjectReviewStatus.ts new file mode 100644 index 000000000..332681373 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1alpha1SelfSubjectReviewStatus.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAuthenticationV1UserInfo } from './IoK8sApiAuthenticationV1UserInfo'; +import { + IoK8sApiAuthenticationV1UserInfoFromJSON, + IoK8sApiAuthenticationV1UserInfoFromJSONTyped, + IoK8sApiAuthenticationV1UserInfoToJSON, +} from './IoK8sApiAuthenticationV1UserInfo'; + +/** + * SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. + * @export + * @interface IoK8sApiAuthenticationV1alpha1SelfSubjectReviewStatus + */ +export interface IoK8sApiAuthenticationV1alpha1SelfSubjectReviewStatus { + /** + * + * @type {IoK8sApiAuthenticationV1UserInfo} + * @memberof IoK8sApiAuthenticationV1alpha1SelfSubjectReviewStatus + */ + userInfo?: IoK8sApiAuthenticationV1UserInfo; +} + +/** + * Check if a given object implements the IoK8sApiAuthenticationV1alpha1SelfSubjectReviewStatus interface. + */ +export function instanceOfIoK8sApiAuthenticationV1alpha1SelfSubjectReviewStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAuthenticationV1alpha1SelfSubjectReviewStatusFromJSON(json: any): IoK8sApiAuthenticationV1alpha1SelfSubjectReviewStatus { + return IoK8sApiAuthenticationV1alpha1SelfSubjectReviewStatusFromJSONTyped(json, false); +} + +export function IoK8sApiAuthenticationV1alpha1SelfSubjectReviewStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAuthenticationV1alpha1SelfSubjectReviewStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'userInfo': !exists(json, 'userInfo') ? undefined : IoK8sApiAuthenticationV1UserInfoFromJSON(json['userInfo']), + }; +} + +export function IoK8sApiAuthenticationV1alpha1SelfSubjectReviewStatusToJSON(value?: IoK8sApiAuthenticationV1alpha1SelfSubjectReviewStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'userInfo': IoK8sApiAuthenticationV1UserInfoToJSON(value.userInfo), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1beta1SelfSubjectReview.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1beta1SelfSubjectReview.ts new file mode 100644 index 000000000..9d024fd1a --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1beta1SelfSubjectReview.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAuthenticationV1beta1SelfSubjectReviewStatus } from './IoK8sApiAuthenticationV1beta1SelfSubjectReviewStatus'; +import { + IoK8sApiAuthenticationV1beta1SelfSubjectReviewStatusFromJSON, + IoK8sApiAuthenticationV1beta1SelfSubjectReviewStatusFromJSONTyped, + IoK8sApiAuthenticationV1beta1SelfSubjectReviewStatusToJSON, +} from './IoK8sApiAuthenticationV1beta1SelfSubjectReviewStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase. + * @export + * @interface IoK8sApiAuthenticationV1beta1SelfSubjectReview + */ +export interface IoK8sApiAuthenticationV1beta1SelfSubjectReview { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAuthenticationV1beta1SelfSubjectReview + */ + 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 + * @type {string} + * @memberof IoK8sApiAuthenticationV1beta1SelfSubjectReview + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiAuthenticationV1beta1SelfSubjectReview + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiAuthenticationV1beta1SelfSubjectReviewStatus} + * @memberof IoK8sApiAuthenticationV1beta1SelfSubjectReview + */ + status?: IoK8sApiAuthenticationV1beta1SelfSubjectReviewStatus; +} + +/** + * Check if a given object implements the IoK8sApiAuthenticationV1beta1SelfSubjectReview interface. + */ +export function instanceOfIoK8sApiAuthenticationV1beta1SelfSubjectReview(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAuthenticationV1beta1SelfSubjectReviewFromJSON(json: any): IoK8sApiAuthenticationV1beta1SelfSubjectReview { + return IoK8sApiAuthenticationV1beta1SelfSubjectReviewFromJSONTyped(json, false); +} + +export function IoK8sApiAuthenticationV1beta1SelfSubjectReviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAuthenticationV1beta1SelfSubjectReview { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiAuthenticationV1beta1SelfSubjectReviewStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiAuthenticationV1beta1SelfSubjectReviewToJSON(value?: IoK8sApiAuthenticationV1beta1SelfSubjectReview | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'status': IoK8sApiAuthenticationV1beta1SelfSubjectReviewStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1beta1SelfSubjectReviewStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1beta1SelfSubjectReviewStatus.ts new file mode 100644 index 000000000..dfce84a27 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthenticationV1beta1SelfSubjectReviewStatus.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAuthenticationV1UserInfo } from './IoK8sApiAuthenticationV1UserInfo'; +import { + IoK8sApiAuthenticationV1UserInfoFromJSON, + IoK8sApiAuthenticationV1UserInfoFromJSONTyped, + IoK8sApiAuthenticationV1UserInfoToJSON, +} from './IoK8sApiAuthenticationV1UserInfo'; + +/** + * SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. + * @export + * @interface IoK8sApiAuthenticationV1beta1SelfSubjectReviewStatus + */ +export interface IoK8sApiAuthenticationV1beta1SelfSubjectReviewStatus { + /** + * + * @type {IoK8sApiAuthenticationV1UserInfo} + * @memberof IoK8sApiAuthenticationV1beta1SelfSubjectReviewStatus + */ + userInfo?: IoK8sApiAuthenticationV1UserInfo; +} + +/** + * Check if a given object implements the IoK8sApiAuthenticationV1beta1SelfSubjectReviewStatus interface. + */ +export function instanceOfIoK8sApiAuthenticationV1beta1SelfSubjectReviewStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAuthenticationV1beta1SelfSubjectReviewStatusFromJSON(json: any): IoK8sApiAuthenticationV1beta1SelfSubjectReviewStatus { + return IoK8sApiAuthenticationV1beta1SelfSubjectReviewStatusFromJSONTyped(json, false); +} + +export function IoK8sApiAuthenticationV1beta1SelfSubjectReviewStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAuthenticationV1beta1SelfSubjectReviewStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'userInfo': !exists(json, 'userInfo') ? undefined : IoK8sApiAuthenticationV1UserInfoFromJSON(json['userInfo']), + }; +} + +export function IoK8sApiAuthenticationV1beta1SelfSubjectReviewStatusToJSON(value?: IoK8sApiAuthenticationV1beta1SelfSubjectReviewStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'userInfo': IoK8sApiAuthenticationV1UserInfoToJSON(value.userInfo), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1LocalSubjectAccessReview.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1LocalSubjectAccessReview.ts new file mode 100644 index 000000000..7d92bcaa8 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1LocalSubjectAccessReview.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAuthorizationV1SubjectAccessReviewSpec } from './IoK8sApiAuthorizationV1SubjectAccessReviewSpec'; +import { + IoK8sApiAuthorizationV1SubjectAccessReviewSpecFromJSON, + IoK8sApiAuthorizationV1SubjectAccessReviewSpecFromJSONTyped, + IoK8sApiAuthorizationV1SubjectAccessReviewSpecToJSON, +} from './IoK8sApiAuthorizationV1SubjectAccessReviewSpec'; +import type { IoK8sApiAuthorizationV1SubjectAccessReviewStatus } from './IoK8sApiAuthorizationV1SubjectAccessReviewStatus'; +import { + IoK8sApiAuthorizationV1SubjectAccessReviewStatusFromJSON, + IoK8sApiAuthorizationV1SubjectAccessReviewStatusFromJSONTyped, + IoK8sApiAuthorizationV1SubjectAccessReviewStatusToJSON, +} from './IoK8sApiAuthorizationV1SubjectAccessReviewStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. + * @export + * @interface IoK8sApiAuthorizationV1LocalSubjectAccessReview + */ +export interface IoK8sApiAuthorizationV1LocalSubjectAccessReview { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAuthorizationV1LocalSubjectAccessReview + */ + 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 + * @type {string} + * @memberof IoK8sApiAuthorizationV1LocalSubjectAccessReview + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiAuthorizationV1LocalSubjectAccessReview + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiAuthorizationV1SubjectAccessReviewSpec} + * @memberof IoK8sApiAuthorizationV1LocalSubjectAccessReview + */ + spec: IoK8sApiAuthorizationV1SubjectAccessReviewSpec; + /** + * + * @type {IoK8sApiAuthorizationV1SubjectAccessReviewStatus} + * @memberof IoK8sApiAuthorizationV1LocalSubjectAccessReview + */ + status?: IoK8sApiAuthorizationV1SubjectAccessReviewStatus; +} + +/** + * Check if a given object implements the IoK8sApiAuthorizationV1LocalSubjectAccessReview interface. + */ +export function instanceOfIoK8sApiAuthorizationV1LocalSubjectAccessReview(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function IoK8sApiAuthorizationV1LocalSubjectAccessReviewFromJSON(json: any): IoK8sApiAuthorizationV1LocalSubjectAccessReview { + return IoK8sApiAuthorizationV1LocalSubjectAccessReviewFromJSONTyped(json, false); +} + +export function IoK8sApiAuthorizationV1LocalSubjectAccessReviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAuthorizationV1LocalSubjectAccessReview { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': IoK8sApiAuthorizationV1SubjectAccessReviewSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiAuthorizationV1SubjectAccessReviewStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiAuthorizationV1LocalSubjectAccessReviewToJSON(value?: IoK8sApiAuthorizationV1LocalSubjectAccessReview | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiAuthorizationV1SubjectAccessReviewSpecToJSON(value.spec), + 'status': IoK8sApiAuthorizationV1SubjectAccessReviewStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1NonResourceAttributes.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1NonResourceAttributes.ts new file mode 100644 index 000000000..48ceda3a2 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1NonResourceAttributes.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface + * @export + * @interface IoK8sApiAuthorizationV1NonResourceAttributes + */ +export interface IoK8sApiAuthorizationV1NonResourceAttributes { + /** + * Path is the URL path of the request + * @type {string} + * @memberof IoK8sApiAuthorizationV1NonResourceAttributes + */ + path?: string; + /** + * Verb is the standard HTTP verb + * @type {string} + * @memberof IoK8sApiAuthorizationV1NonResourceAttributes + */ + verb?: string; +} + +/** + * Check if a given object implements the IoK8sApiAuthorizationV1NonResourceAttributes interface. + */ +export function instanceOfIoK8sApiAuthorizationV1NonResourceAttributes(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAuthorizationV1NonResourceAttributesFromJSON(json: any): IoK8sApiAuthorizationV1NonResourceAttributes { + return IoK8sApiAuthorizationV1NonResourceAttributesFromJSONTyped(json, false); +} + +export function IoK8sApiAuthorizationV1NonResourceAttributesFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAuthorizationV1NonResourceAttributes { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'path': !exists(json, 'path') ? undefined : json['path'], + 'verb': !exists(json, 'verb') ? undefined : json['verb'], + }; +} + +export function IoK8sApiAuthorizationV1NonResourceAttributesToJSON(value?: IoK8sApiAuthorizationV1NonResourceAttributes | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'path': value.path, + 'verb': value.verb, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1NonResourceRule.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1NonResourceRule.ts new file mode 100644 index 000000000..0c8184738 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1NonResourceRule.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * NonResourceRule holds information that describes a rule for the non-resource + * @export + * @interface IoK8sApiAuthorizationV1NonResourceRule + */ +export interface IoK8sApiAuthorizationV1NonResourceRule { + /** + * NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. "*" means all. + * @type {Array} + * @memberof IoK8sApiAuthorizationV1NonResourceRule + */ + nonResourceURLs?: string[]; + /** + * Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. "*" means all. + * @type {Array} + * @memberof IoK8sApiAuthorizationV1NonResourceRule + */ + verbs: string[]; +} + +/** + * Check if a given object implements the IoK8sApiAuthorizationV1NonResourceRule interface. + */ +export function instanceOfIoK8sApiAuthorizationV1NonResourceRule(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "verbs" in value; + + return isInstance; +} + +export function IoK8sApiAuthorizationV1NonResourceRuleFromJSON(json: any): IoK8sApiAuthorizationV1NonResourceRule { + return IoK8sApiAuthorizationV1NonResourceRuleFromJSONTyped(json, false); +} + +export function IoK8sApiAuthorizationV1NonResourceRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAuthorizationV1NonResourceRule { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'nonResourceURLs': !exists(json, 'nonResourceURLs') ? undefined : json['nonResourceURLs'], + 'verbs': json['verbs'], + }; +} + +export function IoK8sApiAuthorizationV1NonResourceRuleToJSON(value?: IoK8sApiAuthorizationV1NonResourceRule | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'nonResourceURLs': value.nonResourceURLs, + 'verbs': value.verbs, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1ResourceAttributes.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1ResourceAttributes.ts new file mode 100644 index 000000000..b79b5afdc --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1ResourceAttributes.ts @@ -0,0 +1,113 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface + * @export + * @interface IoK8sApiAuthorizationV1ResourceAttributes + */ +export interface IoK8sApiAuthorizationV1ResourceAttributes { + /** + * Group is the API Group of the Resource. "*" means all. + * @type {string} + * @memberof IoK8sApiAuthorizationV1ResourceAttributes + */ + group?: string; + /** + * Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. + * @type {string} + * @memberof IoK8sApiAuthorizationV1ResourceAttributes + */ + name?: string; + /** + * Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview + * @type {string} + * @memberof IoK8sApiAuthorizationV1ResourceAttributes + */ + namespace?: string; + /** + * Resource is one of the existing resource types. "*" means all. + * @type {string} + * @memberof IoK8sApiAuthorizationV1ResourceAttributes + */ + resource?: string; + /** + * Subresource is one of the existing resource types. "" means none. + * @type {string} + * @memberof IoK8sApiAuthorizationV1ResourceAttributes + */ + subresource?: string; + /** + * Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. + * @type {string} + * @memberof IoK8sApiAuthorizationV1ResourceAttributes + */ + verb?: string; + /** + * Version is the API Version of the Resource. "*" means all. + * @type {string} + * @memberof IoK8sApiAuthorizationV1ResourceAttributes + */ + version?: string; +} + +/** + * Check if a given object implements the IoK8sApiAuthorizationV1ResourceAttributes interface. + */ +export function instanceOfIoK8sApiAuthorizationV1ResourceAttributes(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAuthorizationV1ResourceAttributesFromJSON(json: any): IoK8sApiAuthorizationV1ResourceAttributes { + return IoK8sApiAuthorizationV1ResourceAttributesFromJSONTyped(json, false); +} + +export function IoK8sApiAuthorizationV1ResourceAttributesFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAuthorizationV1ResourceAttributes { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'group': !exists(json, 'group') ? undefined : json['group'], + 'name': !exists(json, 'name') ? undefined : json['name'], + 'namespace': !exists(json, 'namespace') ? undefined : json['namespace'], + 'resource': !exists(json, 'resource') ? undefined : json['resource'], + 'subresource': !exists(json, 'subresource') ? undefined : json['subresource'], + 'verb': !exists(json, 'verb') ? undefined : json['verb'], + 'version': !exists(json, 'version') ? undefined : json['version'], + }; +} + +export function IoK8sApiAuthorizationV1ResourceAttributesToJSON(value?: IoK8sApiAuthorizationV1ResourceAttributes | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'group': value.group, + 'name': value.name, + 'namespace': value.namespace, + 'resource': value.resource, + 'subresource': value.subresource, + 'verb': value.verb, + 'version': value.version, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1ResourceRule.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1ResourceRule.ts new file mode 100644 index 000000000..457a94560 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1ResourceRule.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. + * @export + * @interface IoK8sApiAuthorizationV1ResourceRule + */ +export interface IoK8sApiAuthorizationV1ResourceRule { + /** + * APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "*" means all. + * @type {Array} + * @memberof IoK8sApiAuthorizationV1ResourceRule + */ + apiGroups?: Array; + /** + * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all. + * @type {Array} + * @memberof IoK8sApiAuthorizationV1ResourceRule + */ + resourceNames?: Array; + /** + * Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups. + * "/foo" represents the subresource 'foo' for all resources in the specified apiGroups. + * @type {Array} + * @memberof IoK8sApiAuthorizationV1ResourceRule + */ + resources?: Array; + /** + * Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all. + * @type {Array} + * @memberof IoK8sApiAuthorizationV1ResourceRule + */ + verbs: Array; +} + +/** + * Check if a given object implements the IoK8sApiAuthorizationV1ResourceRule interface. + */ +export function instanceOfIoK8sApiAuthorizationV1ResourceRule(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "verbs" in value; + + return isInstance; +} + +export function IoK8sApiAuthorizationV1ResourceRuleFromJSON(json: any): IoK8sApiAuthorizationV1ResourceRule { + return IoK8sApiAuthorizationV1ResourceRuleFromJSONTyped(json, false); +} + +export function IoK8sApiAuthorizationV1ResourceRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAuthorizationV1ResourceRule { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiGroups': !exists(json, 'apiGroups') ? undefined : json['apiGroups'], + 'resourceNames': !exists(json, 'resourceNames') ? undefined : json['resourceNames'], + 'resources': !exists(json, 'resources') ? undefined : json['resources'], + 'verbs': json['verbs'], + }; +} + +export function IoK8sApiAuthorizationV1ResourceRuleToJSON(value?: IoK8sApiAuthorizationV1ResourceRule | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiGroups': value.apiGroups, + 'resourceNames': value.resourceNames, + 'resources': value.resources, + 'verbs': value.verbs, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SelfSubjectAccessReview.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SelfSubjectAccessReview.ts new file mode 100644 index 000000000..f14c6bc00 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SelfSubjectAccessReview.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpec } from './IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpec'; +import { + IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpecFromJSON, + IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpecFromJSONTyped, + IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpecToJSON, +} from './IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpec'; +import type { IoK8sApiAuthorizationV1SubjectAccessReviewStatus } from './IoK8sApiAuthorizationV1SubjectAccessReviewStatus'; +import { + IoK8sApiAuthorizationV1SubjectAccessReviewStatusFromJSON, + IoK8sApiAuthorizationV1SubjectAccessReviewStatusFromJSONTyped, + IoK8sApiAuthorizationV1SubjectAccessReviewStatusToJSON, +} from './IoK8sApiAuthorizationV1SubjectAccessReviewStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means "in all namespaces". Self is a special case, because users should always be able to check whether they can perform an action + * @export + * @interface IoK8sApiAuthorizationV1SelfSubjectAccessReview + */ +export interface IoK8sApiAuthorizationV1SelfSubjectAccessReview { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAuthorizationV1SelfSubjectAccessReview + */ + 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 + * @type {string} + * @memberof IoK8sApiAuthorizationV1SelfSubjectAccessReview + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiAuthorizationV1SelfSubjectAccessReview + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpec} + * @memberof IoK8sApiAuthorizationV1SelfSubjectAccessReview + */ + spec: IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpec; + /** + * + * @type {IoK8sApiAuthorizationV1SubjectAccessReviewStatus} + * @memberof IoK8sApiAuthorizationV1SelfSubjectAccessReview + */ + status?: IoK8sApiAuthorizationV1SubjectAccessReviewStatus; +} + +/** + * Check if a given object implements the IoK8sApiAuthorizationV1SelfSubjectAccessReview interface. + */ +export function instanceOfIoK8sApiAuthorizationV1SelfSubjectAccessReview(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function IoK8sApiAuthorizationV1SelfSubjectAccessReviewFromJSON(json: any): IoK8sApiAuthorizationV1SelfSubjectAccessReview { + return IoK8sApiAuthorizationV1SelfSubjectAccessReviewFromJSONTyped(json, false); +} + +export function IoK8sApiAuthorizationV1SelfSubjectAccessReviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAuthorizationV1SelfSubjectAccessReview { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiAuthorizationV1SubjectAccessReviewStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiAuthorizationV1SelfSubjectAccessReviewToJSON(value?: IoK8sApiAuthorizationV1SelfSubjectAccessReview | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpecToJSON(value.spec), + 'status': IoK8sApiAuthorizationV1SubjectAccessReviewStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpec.ts new file mode 100644 index 000000000..7b502977e --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpec.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAuthorizationV1NonResourceAttributes } from './IoK8sApiAuthorizationV1NonResourceAttributes'; +import { + IoK8sApiAuthorizationV1NonResourceAttributesFromJSON, + IoK8sApiAuthorizationV1NonResourceAttributesFromJSONTyped, + IoK8sApiAuthorizationV1NonResourceAttributesToJSON, +} from './IoK8sApiAuthorizationV1NonResourceAttributes'; +import type { IoK8sApiAuthorizationV1ResourceAttributes } from './IoK8sApiAuthorizationV1ResourceAttributes'; +import { + IoK8sApiAuthorizationV1ResourceAttributesFromJSON, + IoK8sApiAuthorizationV1ResourceAttributesFromJSONTyped, + IoK8sApiAuthorizationV1ResourceAttributesToJSON, +} from './IoK8sApiAuthorizationV1ResourceAttributes'; + +/** + * SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set + * @export + * @interface IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpec + */ +export interface IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpec { + /** + * + * @type {IoK8sApiAuthorizationV1NonResourceAttributes} + * @memberof IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpec + */ + nonResourceAttributes?: IoK8sApiAuthorizationV1NonResourceAttributes; + /** + * + * @type {IoK8sApiAuthorizationV1ResourceAttributes} + * @memberof IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpec + */ + resourceAttributes?: IoK8sApiAuthorizationV1ResourceAttributes; +} + +/** + * Check if a given object implements the IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpec interface. + */ +export function instanceOfIoK8sApiAuthorizationV1SelfSubjectAccessReviewSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpecFromJSON(json: any): IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpec { + return IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpecFromJSONTyped(json, false); +} + +export function IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'nonResourceAttributes': !exists(json, 'nonResourceAttributes') ? undefined : IoK8sApiAuthorizationV1NonResourceAttributesFromJSON(json['nonResourceAttributes']), + 'resourceAttributes': !exists(json, 'resourceAttributes') ? undefined : IoK8sApiAuthorizationV1ResourceAttributesFromJSON(json['resourceAttributes']), + }; +} + +export function IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpecToJSON(value?: IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'nonResourceAttributes': IoK8sApiAuthorizationV1NonResourceAttributesToJSON(value.nonResourceAttributes), + 'resourceAttributes': IoK8sApiAuthorizationV1ResourceAttributesToJSON(value.resourceAttributes), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SelfSubjectRulesReview.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SelfSubjectRulesReview.ts new file mode 100644 index 000000000..55b03868e --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SelfSubjectRulesReview.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAuthorizationV1SelfSubjectRulesReviewSpec } from './IoK8sApiAuthorizationV1SelfSubjectRulesReviewSpec'; +import { + IoK8sApiAuthorizationV1SelfSubjectRulesReviewSpecFromJSON, + IoK8sApiAuthorizationV1SelfSubjectRulesReviewSpecFromJSONTyped, + IoK8sApiAuthorizationV1SelfSubjectRulesReviewSpecToJSON, +} from './IoK8sApiAuthorizationV1SelfSubjectRulesReviewSpec'; +import type { IoK8sApiAuthorizationV1SubjectRulesReviewStatus } from './IoK8sApiAuthorizationV1SubjectRulesReviewStatus'; +import { + IoK8sApiAuthorizationV1SubjectRulesReviewStatusFromJSON, + IoK8sApiAuthorizationV1SubjectRulesReviewStatusFromJSONTyped, + IoK8sApiAuthorizationV1SubjectRulesReviewStatusToJSON, +} from './IoK8sApiAuthorizationV1SubjectRulesReviewStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. + * @export + * @interface IoK8sApiAuthorizationV1SelfSubjectRulesReview + */ +export interface IoK8sApiAuthorizationV1SelfSubjectRulesReview { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAuthorizationV1SelfSubjectRulesReview + */ + 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 + * @type {string} + * @memberof IoK8sApiAuthorizationV1SelfSubjectRulesReview + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiAuthorizationV1SelfSubjectRulesReview + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiAuthorizationV1SelfSubjectRulesReviewSpec} + * @memberof IoK8sApiAuthorizationV1SelfSubjectRulesReview + */ + spec: IoK8sApiAuthorizationV1SelfSubjectRulesReviewSpec; + /** + * + * @type {IoK8sApiAuthorizationV1SubjectRulesReviewStatus} + * @memberof IoK8sApiAuthorizationV1SelfSubjectRulesReview + */ + status?: IoK8sApiAuthorizationV1SubjectRulesReviewStatus; +} + +/** + * Check if a given object implements the IoK8sApiAuthorizationV1SelfSubjectRulesReview interface. + */ +export function instanceOfIoK8sApiAuthorizationV1SelfSubjectRulesReview(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function IoK8sApiAuthorizationV1SelfSubjectRulesReviewFromJSON(json: any): IoK8sApiAuthorizationV1SelfSubjectRulesReview { + return IoK8sApiAuthorizationV1SelfSubjectRulesReviewFromJSONTyped(json, false); +} + +export function IoK8sApiAuthorizationV1SelfSubjectRulesReviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAuthorizationV1SelfSubjectRulesReview { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': IoK8sApiAuthorizationV1SelfSubjectRulesReviewSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiAuthorizationV1SubjectRulesReviewStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiAuthorizationV1SelfSubjectRulesReviewToJSON(value?: IoK8sApiAuthorizationV1SelfSubjectRulesReview | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiAuthorizationV1SelfSubjectRulesReviewSpecToJSON(value.spec), + 'status': IoK8sApiAuthorizationV1SubjectRulesReviewStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SelfSubjectRulesReviewSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SelfSubjectRulesReviewSpec.ts new file mode 100644 index 000000000..f8d55e30f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SelfSubjectRulesReviewSpec.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview. + * @export + * @interface IoK8sApiAuthorizationV1SelfSubjectRulesReviewSpec + */ +export interface IoK8sApiAuthorizationV1SelfSubjectRulesReviewSpec { + /** + * Namespace to evaluate rules for. Required. + * @type {string} + * @memberof IoK8sApiAuthorizationV1SelfSubjectRulesReviewSpec + */ + namespace?: string; +} + +/** + * Check if a given object implements the IoK8sApiAuthorizationV1SelfSubjectRulesReviewSpec interface. + */ +export function instanceOfIoK8sApiAuthorizationV1SelfSubjectRulesReviewSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAuthorizationV1SelfSubjectRulesReviewSpecFromJSON(json: any): IoK8sApiAuthorizationV1SelfSubjectRulesReviewSpec { + return IoK8sApiAuthorizationV1SelfSubjectRulesReviewSpecFromJSONTyped(json, false); +} + +export function IoK8sApiAuthorizationV1SelfSubjectRulesReviewSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAuthorizationV1SelfSubjectRulesReviewSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'namespace': !exists(json, 'namespace') ? undefined : json['namespace'], + }; +} + +export function IoK8sApiAuthorizationV1SelfSubjectRulesReviewSpecToJSON(value?: IoK8sApiAuthorizationV1SelfSubjectRulesReviewSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'namespace': value.namespace, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SubjectAccessReview.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SubjectAccessReview.ts new file mode 100644 index 000000000..85f09d104 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SubjectAccessReview.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAuthorizationV1SubjectAccessReviewSpec } from './IoK8sApiAuthorizationV1SubjectAccessReviewSpec'; +import { + IoK8sApiAuthorizationV1SubjectAccessReviewSpecFromJSON, + IoK8sApiAuthorizationV1SubjectAccessReviewSpecFromJSONTyped, + IoK8sApiAuthorizationV1SubjectAccessReviewSpecToJSON, +} from './IoK8sApiAuthorizationV1SubjectAccessReviewSpec'; +import type { IoK8sApiAuthorizationV1SubjectAccessReviewStatus } from './IoK8sApiAuthorizationV1SubjectAccessReviewStatus'; +import { + IoK8sApiAuthorizationV1SubjectAccessReviewStatusFromJSON, + IoK8sApiAuthorizationV1SubjectAccessReviewStatusFromJSONTyped, + IoK8sApiAuthorizationV1SubjectAccessReviewStatusToJSON, +} from './IoK8sApiAuthorizationV1SubjectAccessReviewStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * SubjectAccessReview checks whether or not a user or group can perform an action. + * @export + * @interface IoK8sApiAuthorizationV1SubjectAccessReview + */ +export interface IoK8sApiAuthorizationV1SubjectAccessReview { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAuthorizationV1SubjectAccessReview + */ + 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 + * @type {string} + * @memberof IoK8sApiAuthorizationV1SubjectAccessReview + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiAuthorizationV1SubjectAccessReview + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiAuthorizationV1SubjectAccessReviewSpec} + * @memberof IoK8sApiAuthorizationV1SubjectAccessReview + */ + spec: IoK8sApiAuthorizationV1SubjectAccessReviewSpec; + /** + * + * @type {IoK8sApiAuthorizationV1SubjectAccessReviewStatus} + * @memberof IoK8sApiAuthorizationV1SubjectAccessReview + */ + status?: IoK8sApiAuthorizationV1SubjectAccessReviewStatus; +} + +/** + * Check if a given object implements the IoK8sApiAuthorizationV1SubjectAccessReview interface. + */ +export function instanceOfIoK8sApiAuthorizationV1SubjectAccessReview(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function IoK8sApiAuthorizationV1SubjectAccessReviewFromJSON(json: any): IoK8sApiAuthorizationV1SubjectAccessReview { + return IoK8sApiAuthorizationV1SubjectAccessReviewFromJSONTyped(json, false); +} + +export function IoK8sApiAuthorizationV1SubjectAccessReviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAuthorizationV1SubjectAccessReview { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': IoK8sApiAuthorizationV1SubjectAccessReviewSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiAuthorizationV1SubjectAccessReviewStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiAuthorizationV1SubjectAccessReviewToJSON(value?: IoK8sApiAuthorizationV1SubjectAccessReview | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiAuthorizationV1SubjectAccessReviewSpecToJSON(value.spec), + 'status': IoK8sApiAuthorizationV1SubjectAccessReviewStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SubjectAccessReviewSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SubjectAccessReviewSpec.ts new file mode 100644 index 000000000..faef5c504 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SubjectAccessReviewSpec.ts @@ -0,0 +1,118 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAuthorizationV1NonResourceAttributes } from './IoK8sApiAuthorizationV1NonResourceAttributes'; +import { + IoK8sApiAuthorizationV1NonResourceAttributesFromJSON, + IoK8sApiAuthorizationV1NonResourceAttributesFromJSONTyped, + IoK8sApiAuthorizationV1NonResourceAttributesToJSON, +} from './IoK8sApiAuthorizationV1NonResourceAttributes'; +import type { IoK8sApiAuthorizationV1ResourceAttributes } from './IoK8sApiAuthorizationV1ResourceAttributes'; +import { + IoK8sApiAuthorizationV1ResourceAttributesFromJSON, + IoK8sApiAuthorizationV1ResourceAttributesFromJSONTyped, + IoK8sApiAuthorizationV1ResourceAttributesToJSON, +} from './IoK8sApiAuthorizationV1ResourceAttributes'; + +/** + * SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set + * @export + * @interface IoK8sApiAuthorizationV1SubjectAccessReviewSpec + */ +export interface IoK8sApiAuthorizationV1SubjectAccessReviewSpec { + /** + * Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. + * @type {{ [key: string]: string[]; }} + * @memberof IoK8sApiAuthorizationV1SubjectAccessReviewSpec + */ + extra?: { [key: string]: string[]; }; + /** + * Groups is the groups you're testing for. + * @type {Array} + * @memberof IoK8sApiAuthorizationV1SubjectAccessReviewSpec + */ + groups?: string[]; + /** + * + * @type {IoK8sApiAuthorizationV1NonResourceAttributes} + * @memberof IoK8sApiAuthorizationV1SubjectAccessReviewSpec + */ + nonResourceAttributes?: IoK8sApiAuthorizationV1NonResourceAttributes; + /** + * + * @type {IoK8sApiAuthorizationV1ResourceAttributes} + * @memberof IoK8sApiAuthorizationV1SubjectAccessReviewSpec + */ + resourceAttributes?: IoK8sApiAuthorizationV1ResourceAttributes; + /** + * UID information about the requesting user. + * @type {string} + * @memberof IoK8sApiAuthorizationV1SubjectAccessReviewSpec + */ + uid?: string; + /** + * User is the user you're testing for. If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups + * @type {string} + * @memberof IoK8sApiAuthorizationV1SubjectAccessReviewSpec + */ + user?: string; +} + +/** + * Check if a given object implements the IoK8sApiAuthorizationV1SubjectAccessReviewSpec interface. + */ +export function instanceOfIoK8sApiAuthorizationV1SubjectAccessReviewSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAuthorizationV1SubjectAccessReviewSpecFromJSON(json: any): IoK8sApiAuthorizationV1SubjectAccessReviewSpec { + return IoK8sApiAuthorizationV1SubjectAccessReviewSpecFromJSONTyped(json, false); +} + +export function IoK8sApiAuthorizationV1SubjectAccessReviewSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAuthorizationV1SubjectAccessReviewSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'extra': !exists(json, 'extra') ? undefined : json['extra'], + 'groups': !exists(json, 'groups') ? undefined : json['groups'], + 'nonResourceAttributes': !exists(json, 'nonResourceAttributes') ? undefined : IoK8sApiAuthorizationV1NonResourceAttributesFromJSON(json['nonResourceAttributes']), + 'resourceAttributes': !exists(json, 'resourceAttributes') ? undefined : IoK8sApiAuthorizationV1ResourceAttributesFromJSON(json['resourceAttributes']), + 'uid': !exists(json, 'uid') ? undefined : json['uid'], + 'user': !exists(json, 'user') ? undefined : json['user'], + }; +} + +export function IoK8sApiAuthorizationV1SubjectAccessReviewSpecToJSON(value?: IoK8sApiAuthorizationV1SubjectAccessReviewSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'extra': value.extra, + 'groups': value.groups, + 'nonResourceAttributes': IoK8sApiAuthorizationV1NonResourceAttributesToJSON(value.nonResourceAttributes), + 'resourceAttributes': IoK8sApiAuthorizationV1ResourceAttributesToJSON(value.resourceAttributes), + 'uid': value.uid, + 'user': value.user, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SubjectAccessReviewStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SubjectAccessReviewStatus.ts new file mode 100644 index 000000000..73c05c275 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SubjectAccessReviewStatus.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * SubjectAccessReviewStatus + * @export + * @interface IoK8sApiAuthorizationV1SubjectAccessReviewStatus + */ +export interface IoK8sApiAuthorizationV1SubjectAccessReviewStatus { + /** + * Allowed is required. True if the action would be allowed, false otherwise. + * @type {boolean} + * @memberof IoK8sApiAuthorizationV1SubjectAccessReviewStatus + */ + allowed: boolean; + /** + * Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. + * @type {boolean} + * @memberof IoK8sApiAuthorizationV1SubjectAccessReviewStatus + */ + denied?: boolean; + /** + * EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. + * @type {string} + * @memberof IoK8sApiAuthorizationV1SubjectAccessReviewStatus + */ + evaluationError?: string; + /** + * Reason is optional. It indicates why a request was allowed or denied. + * @type {string} + * @memberof IoK8sApiAuthorizationV1SubjectAccessReviewStatus + */ + reason?: string; +} + +/** + * Check if a given object implements the IoK8sApiAuthorizationV1SubjectAccessReviewStatus interface. + */ +export function instanceOfIoK8sApiAuthorizationV1SubjectAccessReviewStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "allowed" in value; + + return isInstance; +} + +export function IoK8sApiAuthorizationV1SubjectAccessReviewStatusFromJSON(json: any): IoK8sApiAuthorizationV1SubjectAccessReviewStatus { + return IoK8sApiAuthorizationV1SubjectAccessReviewStatusFromJSONTyped(json, false); +} + +export function IoK8sApiAuthorizationV1SubjectAccessReviewStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAuthorizationV1SubjectAccessReviewStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'allowed': json['allowed'], + 'denied': !exists(json, 'denied') ? undefined : json['denied'], + 'evaluationError': !exists(json, 'evaluationError') ? undefined : json['evaluationError'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + }; +} + +export function IoK8sApiAuthorizationV1SubjectAccessReviewStatusToJSON(value?: IoK8sApiAuthorizationV1SubjectAccessReviewStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'allowed': value.allowed, + 'denied': value.denied, + 'evaluationError': value.evaluationError, + 'reason': value.reason, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SubjectRulesReviewStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SubjectRulesReviewStatus.ts new file mode 100644 index 000000000..29d36381f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAuthorizationV1SubjectRulesReviewStatus.ts @@ -0,0 +1,105 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAuthorizationV1NonResourceRule } from './IoK8sApiAuthorizationV1NonResourceRule'; +import { + IoK8sApiAuthorizationV1NonResourceRuleFromJSON, + IoK8sApiAuthorizationV1NonResourceRuleFromJSONTyped, + IoK8sApiAuthorizationV1NonResourceRuleToJSON, +} from './IoK8sApiAuthorizationV1NonResourceRule'; +import type { IoK8sApiAuthorizationV1ResourceRule } from './IoK8sApiAuthorizationV1ResourceRule'; +import { + IoK8sApiAuthorizationV1ResourceRuleFromJSON, + IoK8sApiAuthorizationV1ResourceRuleFromJSONTyped, + IoK8sApiAuthorizationV1ResourceRuleToJSON, +} from './IoK8sApiAuthorizationV1ResourceRule'; + +/** + * SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete. + * @export + * @interface IoK8sApiAuthorizationV1SubjectRulesReviewStatus + */ +export interface IoK8sApiAuthorizationV1SubjectRulesReviewStatus { + /** + * EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. + * @type {string} + * @memberof IoK8sApiAuthorizationV1SubjectRulesReviewStatus + */ + evaluationError?: string; + /** + * Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. + * @type {boolean} + * @memberof IoK8sApiAuthorizationV1SubjectRulesReviewStatus + */ + incomplete: boolean; + /** + * NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. + * @type {Array} + * @memberof IoK8sApiAuthorizationV1SubjectRulesReviewStatus + */ + nonResourceRules: Array; + /** + * ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. + * @type {Array} + * @memberof IoK8sApiAuthorizationV1SubjectRulesReviewStatus + */ + resourceRules: Array; +} + +/** + * Check if a given object implements the IoK8sApiAuthorizationV1SubjectRulesReviewStatus interface. + */ +export function instanceOfIoK8sApiAuthorizationV1SubjectRulesReviewStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "incomplete" in value; + isInstance = isInstance && "nonResourceRules" in value; + isInstance = isInstance && "resourceRules" in value; + + return isInstance; +} + +export function IoK8sApiAuthorizationV1SubjectRulesReviewStatusFromJSON(json: any): IoK8sApiAuthorizationV1SubjectRulesReviewStatus { + return IoK8sApiAuthorizationV1SubjectRulesReviewStatusFromJSONTyped(json, false); +} + +export function IoK8sApiAuthorizationV1SubjectRulesReviewStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAuthorizationV1SubjectRulesReviewStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'evaluationError': !exists(json, 'evaluationError') ? undefined : json['evaluationError'], + 'incomplete': json['incomplete'], + 'nonResourceRules': ((json['nonResourceRules'] as Array).map(IoK8sApiAuthorizationV1NonResourceRuleFromJSON)), + 'resourceRules': ((json['resourceRules'] as Array).map(IoK8sApiAuthorizationV1ResourceRuleFromJSON)), + }; +} + +export function IoK8sApiAuthorizationV1SubjectRulesReviewStatusToJSON(value?: IoK8sApiAuthorizationV1SubjectRulesReviewStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'evaluationError': value.evaluationError, + 'incomplete': value.incomplete, + 'nonResourceRules': ((value.nonResourceRules as Array).map(IoK8sApiAuthorizationV1NonResourceRuleToJSON)), + 'resourceRules': ((value.resourceRules as Array).map(IoK8sApiAuthorizationV1ResourceRuleToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1CrossVersionObjectReference.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1CrossVersionObjectReference.ts new file mode 100644 index 000000000..f2a7bbe6b --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1CrossVersionObjectReference.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * CrossVersionObjectReference contains enough information to let you identify the referred resource. + * @export + * @interface IoK8sApiAutoscalingV1CrossVersionObjectReference + */ +export interface IoK8sApiAutoscalingV1CrossVersionObjectReference { + /** + * apiVersion is the API version of the referent + * @type {string} + * @memberof IoK8sApiAutoscalingV1CrossVersionObjectReference + */ + apiVersion?: string; + /** + * kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof IoK8sApiAutoscalingV1CrossVersionObjectReference + */ + kind: string; + /** + * name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * @type {string} + * @memberof IoK8sApiAutoscalingV1CrossVersionObjectReference + */ + name: string; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV1CrossVersionObjectReference interface. + */ +export function instanceOfIoK8sApiAutoscalingV1CrossVersionObjectReference(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "kind" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiAutoscalingV1CrossVersionObjectReferenceFromJSON(json: any): IoK8sApiAutoscalingV1CrossVersionObjectReference { + return IoK8sApiAutoscalingV1CrossVersionObjectReferenceFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV1CrossVersionObjectReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV1CrossVersionObjectReference { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': json['kind'], + 'name': json['name'], + }; +} + +export function IoK8sApiAutoscalingV1CrossVersionObjectReferenceToJSON(value?: IoK8sApiAutoscalingV1CrossVersionObjectReference | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1HorizontalPodAutoscaler.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1HorizontalPodAutoscaler.ts new file mode 100644 index 000000000..74a385e23 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1HorizontalPodAutoscaler.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec } from './IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec'; +import { + IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpecFromJSON, + IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpecFromJSONTyped, + IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpecToJSON, +} from './IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec'; +import type { IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatus } from './IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatus'; +import { + IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatusFromJSON, + IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatusFromJSONTyped, + IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatusToJSON, +} from './IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * configuration of a horizontal pod autoscaler. + * @export + * @interface IoK8sApiAutoscalingV1HorizontalPodAutoscaler + */ +export interface IoK8sApiAutoscalingV1HorizontalPodAutoscaler { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAutoscalingV1HorizontalPodAutoscaler + */ + 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 + * @type {string} + * @memberof IoK8sApiAutoscalingV1HorizontalPodAutoscaler + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiAutoscalingV1HorizontalPodAutoscaler + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec} + * @memberof IoK8sApiAutoscalingV1HorizontalPodAutoscaler + */ + spec?: IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec; + /** + * + * @type {IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatus} + * @memberof IoK8sApiAutoscalingV1HorizontalPodAutoscaler + */ + status?: IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatus; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV1HorizontalPodAutoscaler interface. + */ +export function instanceOfIoK8sApiAutoscalingV1HorizontalPodAutoscaler(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAutoscalingV1HorizontalPodAutoscalerFromJSON(json: any): IoK8sApiAutoscalingV1HorizontalPodAutoscaler { + return IoK8sApiAutoscalingV1HorizontalPodAutoscalerFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV1HorizontalPodAutoscalerFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV1HorizontalPodAutoscaler { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiAutoscalingV1HorizontalPodAutoscalerToJSON(value?: IoK8sApiAutoscalingV1HorizontalPodAutoscaler | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpecToJSON(value.spec), + 'status': IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1HorizontalPodAutoscalerList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1HorizontalPodAutoscalerList.ts new file mode 100644 index 000000000..dd309c8d8 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1HorizontalPodAutoscalerList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAutoscalingV1HorizontalPodAutoscaler } from './IoK8sApiAutoscalingV1HorizontalPodAutoscaler'; +import { + IoK8sApiAutoscalingV1HorizontalPodAutoscalerFromJSON, + IoK8sApiAutoscalingV1HorizontalPodAutoscalerFromJSONTyped, + IoK8sApiAutoscalingV1HorizontalPodAutoscalerToJSON, +} from './IoK8sApiAutoscalingV1HorizontalPodAutoscaler'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * list of horizontal pod autoscaler objects. + * @export + * @interface IoK8sApiAutoscalingV1HorizontalPodAutoscalerList + */ +export interface IoK8sApiAutoscalingV1HorizontalPodAutoscalerList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAutoscalingV1HorizontalPodAutoscalerList + */ + apiVersion?: string; + /** + * items is the list of horizontal pod autoscaler objects. + * @type {Array} + * @memberof IoK8sApiAutoscalingV1HorizontalPodAutoscalerList + */ + 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 + * @type {string} + * @memberof IoK8sApiAutoscalingV1HorizontalPodAutoscalerList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiAutoscalingV1HorizontalPodAutoscalerList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV1HorizontalPodAutoscalerList interface. + */ +export function instanceOfIoK8sApiAutoscalingV1HorizontalPodAutoscalerList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiAutoscalingV1HorizontalPodAutoscalerListFromJSON(json: any): IoK8sApiAutoscalingV1HorizontalPodAutoscalerList { + return IoK8sApiAutoscalingV1HorizontalPodAutoscalerListFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV1HorizontalPodAutoscalerListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV1HorizontalPodAutoscalerList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiAutoscalingV1HorizontalPodAutoscalerFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiAutoscalingV1HorizontalPodAutoscalerListToJSON(value?: IoK8sApiAutoscalingV1HorizontalPodAutoscalerList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiAutoscalingV1HorizontalPodAutoscalerToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec.ts new file mode 100644 index 000000000..f89b04151 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAutoscalingV1CrossVersionObjectReference } from './IoK8sApiAutoscalingV1CrossVersionObjectReference'; +import { + IoK8sApiAutoscalingV1CrossVersionObjectReferenceFromJSON, + IoK8sApiAutoscalingV1CrossVersionObjectReferenceFromJSONTyped, + IoK8sApiAutoscalingV1CrossVersionObjectReferenceToJSON, +} from './IoK8sApiAutoscalingV1CrossVersionObjectReference'; + +/** + * specification of a horizontal pod autoscaler. + * @export + * @interface IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec + */ +export interface IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec { + /** + * maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. + * @type {number} + * @memberof IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec + */ + maxReplicas: number; + /** + * minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. + * @type {number} + * @memberof IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec + */ + minReplicas?: number; + /** + * + * @type {IoK8sApiAutoscalingV1CrossVersionObjectReference} + * @memberof IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec + */ + scaleTargetRef: IoK8sApiAutoscalingV1CrossVersionObjectReference; + /** + * targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. + * @type {number} + * @memberof IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec + */ + targetCPUUtilizationPercentage?: number; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec interface. + */ +export function instanceOfIoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "maxReplicas" in value; + isInstance = isInstance && "scaleTargetRef" in value; + + return isInstance; +} + +export function IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpecFromJSON(json: any): IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec { + return IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpecFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'maxReplicas': json['maxReplicas'], + 'minReplicas': !exists(json, 'minReplicas') ? undefined : json['minReplicas'], + 'scaleTargetRef': IoK8sApiAutoscalingV1CrossVersionObjectReferenceFromJSON(json['scaleTargetRef']), + 'targetCPUUtilizationPercentage': !exists(json, 'targetCPUUtilizationPercentage') ? undefined : json['targetCPUUtilizationPercentage'], + }; +} + +export function IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpecToJSON(value?: IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'maxReplicas': value.maxReplicas, + 'minReplicas': value.minReplicas, + 'scaleTargetRef': IoK8sApiAutoscalingV1CrossVersionObjectReferenceToJSON(value.scaleTargetRef), + 'targetCPUUtilizationPercentage': value.targetCPUUtilizationPercentage, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatus.ts new file mode 100644 index 000000000..8adc939e2 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatus.ts @@ -0,0 +1,99 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * current status of a horizontal pod autoscaler + * @export + * @interface IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatus + */ +export interface IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatus { + /** + * currentCPUUtilizationPercentage is the current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. + * @type {number} + * @memberof IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatus + */ + currentCPUUtilizationPercentage?: number; + /** + * currentReplicas is the current number of replicas of pods managed by this autoscaler. + * @type {number} + * @memberof IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatus + */ + currentReplicas: number; + /** + * desiredReplicas is the desired number of replicas of pods managed by this autoscaler. + * @type {number} + * @memberof IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatus + */ + desiredReplicas: number; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatus + */ + lastScaleTime?: string; + /** + * observedGeneration is the most recent generation observed by this autoscaler. + * @type {number} + * @memberof IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatus + */ + observedGeneration?: number; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatus interface. + */ +export function instanceOfIoK8sApiAutoscalingV1HorizontalPodAutoscalerStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "currentReplicas" in value; + isInstance = isInstance && "desiredReplicas" in value; + + return isInstance; +} + +export function IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatusFromJSON(json: any): IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatus { + return IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatusFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'currentCPUUtilizationPercentage': !exists(json, 'currentCPUUtilizationPercentage') ? undefined : json['currentCPUUtilizationPercentage'], + 'currentReplicas': json['currentReplicas'], + 'desiredReplicas': json['desiredReplicas'], + 'lastScaleTime': !exists(json, 'lastScaleTime') ? undefined : json['lastScaleTime'], + 'observedGeneration': !exists(json, 'observedGeneration') ? undefined : json['observedGeneration'], + }; +} + +export function IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatusToJSON(value?: IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'currentCPUUtilizationPercentage': value.currentCPUUtilizationPercentage, + 'currentReplicas': value.currentReplicas, + 'desiredReplicas': value.desiredReplicas, + 'lastScaleTime': value.lastScaleTime === undefined ? undefined : (value.lastScaleTime), + 'observedGeneration': value.observedGeneration, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1Scale.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1Scale.ts new file mode 100644 index 000000000..ee78a785a --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1Scale.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAutoscalingV1ScaleSpec } from './IoK8sApiAutoscalingV1ScaleSpec'; +import { + IoK8sApiAutoscalingV1ScaleSpecFromJSON, + IoK8sApiAutoscalingV1ScaleSpecFromJSONTyped, + IoK8sApiAutoscalingV1ScaleSpecToJSON, +} from './IoK8sApiAutoscalingV1ScaleSpec'; +import type { IoK8sApiAutoscalingV1ScaleStatus } from './IoK8sApiAutoscalingV1ScaleStatus'; +import { + IoK8sApiAutoscalingV1ScaleStatusFromJSON, + IoK8sApiAutoscalingV1ScaleStatusFromJSONTyped, + IoK8sApiAutoscalingV1ScaleStatusToJSON, +} from './IoK8sApiAutoscalingV1ScaleStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * Scale represents a scaling request for a resource. + * @export + * @interface IoK8sApiAutoscalingV1Scale + */ +export interface IoK8sApiAutoscalingV1Scale { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAutoscalingV1Scale + */ + 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 + * @type {string} + * @memberof IoK8sApiAutoscalingV1Scale + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiAutoscalingV1Scale + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiAutoscalingV1ScaleSpec} + * @memberof IoK8sApiAutoscalingV1Scale + */ + spec?: IoK8sApiAutoscalingV1ScaleSpec; + /** + * + * @type {IoK8sApiAutoscalingV1ScaleStatus} + * @memberof IoK8sApiAutoscalingV1Scale + */ + status?: IoK8sApiAutoscalingV1ScaleStatus; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV1Scale interface. + */ +export function instanceOfIoK8sApiAutoscalingV1Scale(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAutoscalingV1ScaleFromJSON(json: any): IoK8sApiAutoscalingV1Scale { + return IoK8sApiAutoscalingV1ScaleFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV1ScaleFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV1Scale { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiAutoscalingV1ScaleSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiAutoscalingV1ScaleStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiAutoscalingV1ScaleToJSON(value?: IoK8sApiAutoscalingV1Scale | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiAutoscalingV1ScaleSpecToJSON(value.spec), + 'status': IoK8sApiAutoscalingV1ScaleStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1ScaleSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1ScaleSpec.ts new file mode 100644 index 000000000..d75f05fd9 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1ScaleSpec.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ScaleSpec describes the attributes of a scale subresource. + * @export + * @interface IoK8sApiAutoscalingV1ScaleSpec + */ +export interface IoK8sApiAutoscalingV1ScaleSpec { + /** + * replicas is the desired number of instances for the scaled object. + * @type {number} + * @memberof IoK8sApiAutoscalingV1ScaleSpec + */ + replicas?: number; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV1ScaleSpec interface. + */ +export function instanceOfIoK8sApiAutoscalingV1ScaleSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAutoscalingV1ScaleSpecFromJSON(json: any): IoK8sApiAutoscalingV1ScaleSpec { + return IoK8sApiAutoscalingV1ScaleSpecFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV1ScaleSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV1ScaleSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'replicas': !exists(json, 'replicas') ? undefined : json['replicas'], + }; +} + +export function IoK8sApiAutoscalingV1ScaleSpecToJSON(value?: IoK8sApiAutoscalingV1ScaleSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'replicas': value.replicas, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1ScaleStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1ScaleStatus.ts new file mode 100644 index 000000000..dbf1f0414 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV1ScaleStatus.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ScaleStatus represents the current status of a scale subresource. + * @export + * @interface IoK8sApiAutoscalingV1ScaleStatus + */ +export interface IoK8sApiAutoscalingV1ScaleStatus { + /** + * replicas is the actual number of observed instances of the scaled object. + * @type {number} + * @memberof IoK8sApiAutoscalingV1ScaleStatus + */ + replicas: number; + /** + * selector is the label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ + * @type {string} + * @memberof IoK8sApiAutoscalingV1ScaleStatus + */ + selector?: string; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV1ScaleStatus interface. + */ +export function instanceOfIoK8sApiAutoscalingV1ScaleStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "replicas" in value; + + return isInstance; +} + +export function IoK8sApiAutoscalingV1ScaleStatusFromJSON(json: any): IoK8sApiAutoscalingV1ScaleStatus { + return IoK8sApiAutoscalingV1ScaleStatusFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV1ScaleStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV1ScaleStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'replicas': json['replicas'], + 'selector': !exists(json, 'selector') ? undefined : json['selector'], + }; +} + +export function IoK8sApiAutoscalingV1ScaleStatusToJSON(value?: IoK8sApiAutoscalingV1ScaleStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'replicas': value.replicas, + 'selector': value.selector, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ContainerResourceMetricSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ContainerResourceMetricSource.ts new file mode 100644 index 000000000..aceda4044 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ContainerResourceMetricSource.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAutoscalingV2MetricTarget } from './IoK8sApiAutoscalingV2MetricTarget'; +import { + IoK8sApiAutoscalingV2MetricTargetFromJSON, + IoK8sApiAutoscalingV2MetricTargetFromJSONTyped, + IoK8sApiAutoscalingV2MetricTargetToJSON, +} from './IoK8sApiAutoscalingV2MetricTarget'; + +/** + * ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set. + * @export + * @interface IoK8sApiAutoscalingV2ContainerResourceMetricSource + */ +export interface IoK8sApiAutoscalingV2ContainerResourceMetricSource { + /** + * container is the name of the container in the pods of the scaling target + * @type {string} + * @memberof IoK8sApiAutoscalingV2ContainerResourceMetricSource + */ + container: string; + /** + * name is the name of the resource in question. + * @type {string} + * @memberof IoK8sApiAutoscalingV2ContainerResourceMetricSource + */ + name: string; + /** + * + * @type {IoK8sApiAutoscalingV2MetricTarget} + * @memberof IoK8sApiAutoscalingV2ContainerResourceMetricSource + */ + target: IoK8sApiAutoscalingV2MetricTarget; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV2ContainerResourceMetricSource interface. + */ +export function instanceOfIoK8sApiAutoscalingV2ContainerResourceMetricSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "container" in value; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "target" in value; + + return isInstance; +} + +export function IoK8sApiAutoscalingV2ContainerResourceMetricSourceFromJSON(json: any): IoK8sApiAutoscalingV2ContainerResourceMetricSource { + return IoK8sApiAutoscalingV2ContainerResourceMetricSourceFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV2ContainerResourceMetricSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV2ContainerResourceMetricSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'container': json['container'], + 'name': json['name'], + 'target': IoK8sApiAutoscalingV2MetricTargetFromJSON(json['target']), + }; +} + +export function IoK8sApiAutoscalingV2ContainerResourceMetricSourceToJSON(value?: IoK8sApiAutoscalingV2ContainerResourceMetricSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'container': value.container, + 'name': value.name, + 'target': IoK8sApiAutoscalingV2MetricTargetToJSON(value.target), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ContainerResourceMetricStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ContainerResourceMetricStatus.ts new file mode 100644 index 000000000..571c98f2a --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ContainerResourceMetricStatus.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAutoscalingV2MetricValueStatus } from './IoK8sApiAutoscalingV2MetricValueStatus'; +import { + IoK8sApiAutoscalingV2MetricValueStatusFromJSON, + IoK8sApiAutoscalingV2MetricValueStatusFromJSONTyped, + IoK8sApiAutoscalingV2MetricValueStatusToJSON, +} from './IoK8sApiAutoscalingV2MetricValueStatus'; + +/** + * ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. + * @export + * @interface IoK8sApiAutoscalingV2ContainerResourceMetricStatus + */ +export interface IoK8sApiAutoscalingV2ContainerResourceMetricStatus { + /** + * container is the name of the container in the pods of the scaling target + * @type {string} + * @memberof IoK8sApiAutoscalingV2ContainerResourceMetricStatus + */ + container: string; + /** + * + * @type {IoK8sApiAutoscalingV2MetricValueStatus} + * @memberof IoK8sApiAutoscalingV2ContainerResourceMetricStatus + */ + current: IoK8sApiAutoscalingV2MetricValueStatus; + /** + * name is the name of the resource in question. + * @type {string} + * @memberof IoK8sApiAutoscalingV2ContainerResourceMetricStatus + */ + name: string; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV2ContainerResourceMetricStatus interface. + */ +export function instanceOfIoK8sApiAutoscalingV2ContainerResourceMetricStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "container" in value; + isInstance = isInstance && "current" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiAutoscalingV2ContainerResourceMetricStatusFromJSON(json: any): IoK8sApiAutoscalingV2ContainerResourceMetricStatus { + return IoK8sApiAutoscalingV2ContainerResourceMetricStatusFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV2ContainerResourceMetricStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV2ContainerResourceMetricStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'container': json['container'], + 'current': IoK8sApiAutoscalingV2MetricValueStatusFromJSON(json['current']), + 'name': json['name'], + }; +} + +export function IoK8sApiAutoscalingV2ContainerResourceMetricStatusToJSON(value?: IoK8sApiAutoscalingV2ContainerResourceMetricStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'container': value.container, + 'current': IoK8sApiAutoscalingV2MetricValueStatusToJSON(value.current), + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2CrossVersionObjectReference.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2CrossVersionObjectReference.ts new file mode 100644 index 000000000..6323220d4 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2CrossVersionObjectReference.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * CrossVersionObjectReference contains enough information to let you identify the referred resource. + * @export + * @interface IoK8sApiAutoscalingV2CrossVersionObjectReference + */ +export interface IoK8sApiAutoscalingV2CrossVersionObjectReference { + /** + * apiVersion is the API version of the referent + * @type {string} + * @memberof IoK8sApiAutoscalingV2CrossVersionObjectReference + */ + apiVersion?: string; + /** + * kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof IoK8sApiAutoscalingV2CrossVersionObjectReference + */ + kind: string; + /** + * name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * @type {string} + * @memberof IoK8sApiAutoscalingV2CrossVersionObjectReference + */ + name: string; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV2CrossVersionObjectReference interface. + */ +export function instanceOfIoK8sApiAutoscalingV2CrossVersionObjectReference(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "kind" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiAutoscalingV2CrossVersionObjectReferenceFromJSON(json: any): IoK8sApiAutoscalingV2CrossVersionObjectReference { + return IoK8sApiAutoscalingV2CrossVersionObjectReferenceFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV2CrossVersionObjectReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV2CrossVersionObjectReference { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': json['kind'], + 'name': json['name'], + }; +} + +export function IoK8sApiAutoscalingV2CrossVersionObjectReferenceToJSON(value?: IoK8sApiAutoscalingV2CrossVersionObjectReference | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ExternalMetricSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ExternalMetricSource.ts new file mode 100644 index 000000000..708fd03df --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ExternalMetricSource.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAutoscalingV2MetricIdentifier } from './IoK8sApiAutoscalingV2MetricIdentifier'; +import { + IoK8sApiAutoscalingV2MetricIdentifierFromJSON, + IoK8sApiAutoscalingV2MetricIdentifierFromJSONTyped, + IoK8sApiAutoscalingV2MetricIdentifierToJSON, +} from './IoK8sApiAutoscalingV2MetricIdentifier'; +import type { IoK8sApiAutoscalingV2MetricTarget } from './IoK8sApiAutoscalingV2MetricTarget'; +import { + IoK8sApiAutoscalingV2MetricTargetFromJSON, + IoK8sApiAutoscalingV2MetricTargetFromJSONTyped, + IoK8sApiAutoscalingV2MetricTargetToJSON, +} from './IoK8sApiAutoscalingV2MetricTarget'; + +/** + * ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). + * @export + * @interface IoK8sApiAutoscalingV2ExternalMetricSource + */ +export interface IoK8sApiAutoscalingV2ExternalMetricSource { + /** + * + * @type {IoK8sApiAutoscalingV2MetricIdentifier} + * @memberof IoK8sApiAutoscalingV2ExternalMetricSource + */ + metric: IoK8sApiAutoscalingV2MetricIdentifier; + /** + * + * @type {IoK8sApiAutoscalingV2MetricTarget} + * @memberof IoK8sApiAutoscalingV2ExternalMetricSource + */ + target: IoK8sApiAutoscalingV2MetricTarget; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV2ExternalMetricSource interface. + */ +export function instanceOfIoK8sApiAutoscalingV2ExternalMetricSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "metric" in value; + isInstance = isInstance && "target" in value; + + return isInstance; +} + +export function IoK8sApiAutoscalingV2ExternalMetricSourceFromJSON(json: any): IoK8sApiAutoscalingV2ExternalMetricSource { + return IoK8sApiAutoscalingV2ExternalMetricSourceFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV2ExternalMetricSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV2ExternalMetricSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'metric': IoK8sApiAutoscalingV2MetricIdentifierFromJSON(json['metric']), + 'target': IoK8sApiAutoscalingV2MetricTargetFromJSON(json['target']), + }; +} + +export function IoK8sApiAutoscalingV2ExternalMetricSourceToJSON(value?: IoK8sApiAutoscalingV2ExternalMetricSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'metric': IoK8sApiAutoscalingV2MetricIdentifierToJSON(value.metric), + 'target': IoK8sApiAutoscalingV2MetricTargetToJSON(value.target), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ExternalMetricStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ExternalMetricStatus.ts new file mode 100644 index 000000000..da1660c60 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ExternalMetricStatus.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAutoscalingV2MetricIdentifier } from './IoK8sApiAutoscalingV2MetricIdentifier'; +import { + IoK8sApiAutoscalingV2MetricIdentifierFromJSON, + IoK8sApiAutoscalingV2MetricIdentifierFromJSONTyped, + IoK8sApiAutoscalingV2MetricIdentifierToJSON, +} from './IoK8sApiAutoscalingV2MetricIdentifier'; +import type { IoK8sApiAutoscalingV2MetricValueStatus } from './IoK8sApiAutoscalingV2MetricValueStatus'; +import { + IoK8sApiAutoscalingV2MetricValueStatusFromJSON, + IoK8sApiAutoscalingV2MetricValueStatusFromJSONTyped, + IoK8sApiAutoscalingV2MetricValueStatusToJSON, +} from './IoK8sApiAutoscalingV2MetricValueStatus'; + +/** + * ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object. + * @export + * @interface IoK8sApiAutoscalingV2ExternalMetricStatus + */ +export interface IoK8sApiAutoscalingV2ExternalMetricStatus { + /** + * + * @type {IoK8sApiAutoscalingV2MetricValueStatus} + * @memberof IoK8sApiAutoscalingV2ExternalMetricStatus + */ + current: IoK8sApiAutoscalingV2MetricValueStatus; + /** + * + * @type {IoK8sApiAutoscalingV2MetricIdentifier} + * @memberof IoK8sApiAutoscalingV2ExternalMetricStatus + */ + metric: IoK8sApiAutoscalingV2MetricIdentifier; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV2ExternalMetricStatus interface. + */ +export function instanceOfIoK8sApiAutoscalingV2ExternalMetricStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "current" in value; + isInstance = isInstance && "metric" in value; + + return isInstance; +} + +export function IoK8sApiAutoscalingV2ExternalMetricStatusFromJSON(json: any): IoK8sApiAutoscalingV2ExternalMetricStatus { + return IoK8sApiAutoscalingV2ExternalMetricStatusFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV2ExternalMetricStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV2ExternalMetricStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'current': IoK8sApiAutoscalingV2MetricValueStatusFromJSON(json['current']), + 'metric': IoK8sApiAutoscalingV2MetricIdentifierFromJSON(json['metric']), + }; +} + +export function IoK8sApiAutoscalingV2ExternalMetricStatusToJSON(value?: IoK8sApiAutoscalingV2ExternalMetricStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'current': IoK8sApiAutoscalingV2MetricValueStatusToJSON(value.current), + 'metric': IoK8sApiAutoscalingV2MetricIdentifierToJSON(value.metric), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HPAScalingPolicy.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HPAScalingPolicy.ts new file mode 100644 index 000000000..4aa29680e --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HPAScalingPolicy.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * HPAScalingPolicy is a single policy which must hold true for a specified past interval. + * @export + * @interface IoK8sApiAutoscalingV2HPAScalingPolicy + */ +export interface IoK8sApiAutoscalingV2HPAScalingPolicy { + /** + * periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). + * @type {number} + * @memberof IoK8sApiAutoscalingV2HPAScalingPolicy + */ + periodSeconds: number; + /** + * type is used to specify the scaling policy. + * @type {string} + * @memberof IoK8sApiAutoscalingV2HPAScalingPolicy + */ + type: string; + /** + * value contains the amount of change which is permitted by the policy. It must be greater than zero + * @type {number} + * @memberof IoK8sApiAutoscalingV2HPAScalingPolicy + */ + value: number; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV2HPAScalingPolicy interface. + */ +export function instanceOfIoK8sApiAutoscalingV2HPAScalingPolicy(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "periodSeconds" in value; + isInstance = isInstance && "type" in value; + isInstance = isInstance && "value" in value; + + return isInstance; +} + +export function IoK8sApiAutoscalingV2HPAScalingPolicyFromJSON(json: any): IoK8sApiAutoscalingV2HPAScalingPolicy { + return IoK8sApiAutoscalingV2HPAScalingPolicyFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV2HPAScalingPolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV2HPAScalingPolicy { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'periodSeconds': json['periodSeconds'], + 'type': json['type'], + 'value': json['value'], + }; +} + +export function IoK8sApiAutoscalingV2HPAScalingPolicyToJSON(value?: IoK8sApiAutoscalingV2HPAScalingPolicy | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'periodSeconds': value.periodSeconds, + 'type': value.type, + 'value': value.value, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HPAScalingRules.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HPAScalingRules.ts new file mode 100644 index 000000000..889a4fa49 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HPAScalingRules.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAutoscalingV2HPAScalingPolicy } from './IoK8sApiAutoscalingV2HPAScalingPolicy'; +import { + IoK8sApiAutoscalingV2HPAScalingPolicyFromJSON, + IoK8sApiAutoscalingV2HPAScalingPolicyFromJSONTyped, + IoK8sApiAutoscalingV2HPAScalingPolicyToJSON, +} from './IoK8sApiAutoscalingV2HPAScalingPolicy'; + +/** + * HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen. + * @export + * @interface IoK8sApiAutoscalingV2HPAScalingRules + */ +export interface IoK8sApiAutoscalingV2HPAScalingRules { + /** + * policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid + * @type {Array} + * @memberof IoK8sApiAutoscalingV2HPAScalingRules + */ + policies?: Array; + /** + * selectPolicy is used to specify which policy should be used. If not set, the default value Max is used. + * @type {string} + * @memberof IoK8sApiAutoscalingV2HPAScalingRules + */ + selectPolicy?: string; + /** + * stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long). + * @type {number} + * @memberof IoK8sApiAutoscalingV2HPAScalingRules + */ + stabilizationWindowSeconds?: number; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV2HPAScalingRules interface. + */ +export function instanceOfIoK8sApiAutoscalingV2HPAScalingRules(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAutoscalingV2HPAScalingRulesFromJSON(json: any): IoK8sApiAutoscalingV2HPAScalingRules { + return IoK8sApiAutoscalingV2HPAScalingRulesFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV2HPAScalingRulesFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV2HPAScalingRules { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'policies': !exists(json, 'policies') ? undefined : ((json['policies'] as Array).map(IoK8sApiAutoscalingV2HPAScalingPolicyFromJSON)), + 'selectPolicy': !exists(json, 'selectPolicy') ? undefined : json['selectPolicy'], + 'stabilizationWindowSeconds': !exists(json, 'stabilizationWindowSeconds') ? undefined : json['stabilizationWindowSeconds'], + }; +} + +export function IoK8sApiAutoscalingV2HPAScalingRulesToJSON(value?: IoK8sApiAutoscalingV2HPAScalingRules | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'policies': value.policies === undefined ? undefined : ((value.policies as Array).map(IoK8sApiAutoscalingV2HPAScalingPolicyToJSON)), + 'selectPolicy': value.selectPolicy, + 'stabilizationWindowSeconds': value.stabilizationWindowSeconds, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HorizontalPodAutoscaler.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HorizontalPodAutoscaler.ts new file mode 100644 index 000000000..7f54d1d8b --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HorizontalPodAutoscaler.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpec } from './IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpec'; +import { + IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpecFromJSON, + IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpecFromJSONTyped, + IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpecToJSON, +} from './IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpec'; +import type { IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatus } from './IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatus'; +import { + IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatusFromJSON, + IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatusFromJSONTyped, + IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatusToJSON, +} from './IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. + * @export + * @interface IoK8sApiAutoscalingV2HorizontalPodAutoscaler + */ +export interface IoK8sApiAutoscalingV2HorizontalPodAutoscaler { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAutoscalingV2HorizontalPodAutoscaler + */ + 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 + * @type {string} + * @memberof IoK8sApiAutoscalingV2HorizontalPodAutoscaler + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiAutoscalingV2HorizontalPodAutoscaler + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpec} + * @memberof IoK8sApiAutoscalingV2HorizontalPodAutoscaler + */ + spec?: IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpec; + /** + * + * @type {IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatus} + * @memberof IoK8sApiAutoscalingV2HorizontalPodAutoscaler + */ + status?: IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatus; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV2HorizontalPodAutoscaler interface. + */ +export function instanceOfIoK8sApiAutoscalingV2HorizontalPodAutoscaler(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAutoscalingV2HorizontalPodAutoscalerFromJSON(json: any): IoK8sApiAutoscalingV2HorizontalPodAutoscaler { + return IoK8sApiAutoscalingV2HorizontalPodAutoscalerFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV2HorizontalPodAutoscalerFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV2HorizontalPodAutoscaler { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiAutoscalingV2HorizontalPodAutoscalerToJSON(value?: IoK8sApiAutoscalingV2HorizontalPodAutoscaler | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpecToJSON(value.spec), + 'status': IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehavior.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehavior.ts new file mode 100644 index 000000000..a08de6b14 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehavior.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAutoscalingV2HPAScalingRules } from './IoK8sApiAutoscalingV2HPAScalingRules'; +import { + IoK8sApiAutoscalingV2HPAScalingRulesFromJSON, + IoK8sApiAutoscalingV2HPAScalingRulesFromJSONTyped, + IoK8sApiAutoscalingV2HPAScalingRulesToJSON, +} from './IoK8sApiAutoscalingV2HPAScalingRules'; + +/** + * HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). + * @export + * @interface IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehavior + */ +export interface IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehavior { + /** + * + * @type {IoK8sApiAutoscalingV2HPAScalingRules} + * @memberof IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehavior + */ + scaleDown?: IoK8sApiAutoscalingV2HPAScalingRules; + /** + * + * @type {IoK8sApiAutoscalingV2HPAScalingRules} + * @memberof IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehavior + */ + scaleUp?: IoK8sApiAutoscalingV2HPAScalingRules; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehavior interface. + */ +export function instanceOfIoK8sApiAutoscalingV2HorizontalPodAutoscalerBehavior(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehaviorFromJSON(json: any): IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehavior { + return IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehaviorFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehaviorFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehavior { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'scaleDown': !exists(json, 'scaleDown') ? undefined : IoK8sApiAutoscalingV2HPAScalingRulesFromJSON(json['scaleDown']), + 'scaleUp': !exists(json, 'scaleUp') ? undefined : IoK8sApiAutoscalingV2HPAScalingRulesFromJSON(json['scaleUp']), + }; +} + +export function IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehaviorToJSON(value?: IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehavior | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'scaleDown': IoK8sApiAutoscalingV2HPAScalingRulesToJSON(value.scaleDown), + 'scaleUp': IoK8sApiAutoscalingV2HPAScalingRulesToJSON(value.scaleUp), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HorizontalPodAutoscalerCondition.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HorizontalPodAutoscalerCondition.ts new file mode 100644 index 000000000..0d8625d4a --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HorizontalPodAutoscalerCondition.ts @@ -0,0 +1,99 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point. + * @export + * @interface IoK8sApiAutoscalingV2HorizontalPodAutoscalerCondition + */ +export interface IoK8sApiAutoscalingV2HorizontalPodAutoscalerCondition { + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiAutoscalingV2HorizontalPodAutoscalerCondition + */ + lastTransitionTime?: string; + /** + * message is a human-readable explanation containing details about the transition + * @type {string} + * @memberof IoK8sApiAutoscalingV2HorizontalPodAutoscalerCondition + */ + message?: string; + /** + * reason is the reason for the condition's last transition. + * @type {string} + * @memberof IoK8sApiAutoscalingV2HorizontalPodAutoscalerCondition + */ + reason?: string; + /** + * status is the status of the condition (True, False, Unknown) + * @type {string} + * @memberof IoK8sApiAutoscalingV2HorizontalPodAutoscalerCondition + */ + status: string; + /** + * type describes the current condition + * @type {string} + * @memberof IoK8sApiAutoscalingV2HorizontalPodAutoscalerCondition + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV2HorizontalPodAutoscalerCondition interface. + */ +export function instanceOfIoK8sApiAutoscalingV2HorizontalPodAutoscalerCondition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "status" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiAutoscalingV2HorizontalPodAutoscalerConditionFromJSON(json: any): IoK8sApiAutoscalingV2HorizontalPodAutoscalerCondition { + return IoK8sApiAutoscalingV2HorizontalPodAutoscalerConditionFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV2HorizontalPodAutoscalerConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV2HorizontalPodAutoscalerCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'lastTransitionTime': !exists(json, 'lastTransitionTime') ? undefined : json['lastTransitionTime'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'status': json['status'], + 'type': json['type'], + }; +} + +export function IoK8sApiAutoscalingV2HorizontalPodAutoscalerConditionToJSON(value?: IoK8sApiAutoscalingV2HorizontalPodAutoscalerCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'lastTransitionTime': value.lastTransitionTime === undefined ? undefined : (value.lastTransitionTime), + 'message': value.message, + 'reason': value.reason, + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HorizontalPodAutoscalerList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HorizontalPodAutoscalerList.ts new file mode 100644 index 000000000..c056f584f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HorizontalPodAutoscalerList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAutoscalingV2HorizontalPodAutoscaler } from './IoK8sApiAutoscalingV2HorizontalPodAutoscaler'; +import { + IoK8sApiAutoscalingV2HorizontalPodAutoscalerFromJSON, + IoK8sApiAutoscalingV2HorizontalPodAutoscalerFromJSONTyped, + IoK8sApiAutoscalingV2HorizontalPodAutoscalerToJSON, +} from './IoK8sApiAutoscalingV2HorizontalPodAutoscaler'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. + * @export + * @interface IoK8sApiAutoscalingV2HorizontalPodAutoscalerList + */ +export interface IoK8sApiAutoscalingV2HorizontalPodAutoscalerList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiAutoscalingV2HorizontalPodAutoscalerList + */ + apiVersion?: string; + /** + * items is the list of horizontal pod autoscaler objects. + * @type {Array} + * @memberof IoK8sApiAutoscalingV2HorizontalPodAutoscalerList + */ + 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 + * @type {string} + * @memberof IoK8sApiAutoscalingV2HorizontalPodAutoscalerList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiAutoscalingV2HorizontalPodAutoscalerList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV2HorizontalPodAutoscalerList interface. + */ +export function instanceOfIoK8sApiAutoscalingV2HorizontalPodAutoscalerList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiAutoscalingV2HorizontalPodAutoscalerListFromJSON(json: any): IoK8sApiAutoscalingV2HorizontalPodAutoscalerList { + return IoK8sApiAutoscalingV2HorizontalPodAutoscalerListFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV2HorizontalPodAutoscalerListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV2HorizontalPodAutoscalerList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiAutoscalingV2HorizontalPodAutoscalerFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiAutoscalingV2HorizontalPodAutoscalerListToJSON(value?: IoK8sApiAutoscalingV2HorizontalPodAutoscalerList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiAutoscalingV2HorizontalPodAutoscalerToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpec.ts new file mode 100644 index 000000000..45e656b22 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpec.ts @@ -0,0 +1,118 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAutoscalingV2CrossVersionObjectReference } from './IoK8sApiAutoscalingV2CrossVersionObjectReference'; +import { + IoK8sApiAutoscalingV2CrossVersionObjectReferenceFromJSON, + IoK8sApiAutoscalingV2CrossVersionObjectReferenceFromJSONTyped, + IoK8sApiAutoscalingV2CrossVersionObjectReferenceToJSON, +} from './IoK8sApiAutoscalingV2CrossVersionObjectReference'; +import type { IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehavior } from './IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehavior'; +import { + IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehaviorFromJSON, + IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehaviorFromJSONTyped, + IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehaviorToJSON, +} from './IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehavior'; +import type { IoK8sApiAutoscalingV2MetricSpec } from './IoK8sApiAutoscalingV2MetricSpec'; +import { + IoK8sApiAutoscalingV2MetricSpecFromJSON, + IoK8sApiAutoscalingV2MetricSpecFromJSONTyped, + IoK8sApiAutoscalingV2MetricSpecToJSON, +} from './IoK8sApiAutoscalingV2MetricSpec'; + +/** + * HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. + * @export + * @interface IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpec + */ +export interface IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpec { + /** + * + * @type {IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehavior} + * @memberof IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpec + */ + behavior?: IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehavior; + /** + * maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. + * @type {number} + * @memberof IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpec + */ + maxReplicas: number; + /** + * metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization. + * @type {Array} + * @memberof IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpec + */ + metrics?: Array; + /** + * minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. + * @type {number} + * @memberof IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpec + */ + minReplicas?: number; + /** + * + * @type {IoK8sApiAutoscalingV2CrossVersionObjectReference} + * @memberof IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpec + */ + scaleTargetRef: IoK8sApiAutoscalingV2CrossVersionObjectReference; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpec interface. + */ +export function instanceOfIoK8sApiAutoscalingV2HorizontalPodAutoscalerSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "maxReplicas" in value; + isInstance = isInstance && "scaleTargetRef" in value; + + return isInstance; +} + +export function IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpecFromJSON(json: any): IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpec { + return IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpecFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'behavior': !exists(json, 'behavior') ? undefined : IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehaviorFromJSON(json['behavior']), + 'maxReplicas': json['maxReplicas'], + 'metrics': !exists(json, 'metrics') ? undefined : ((json['metrics'] as Array).map(IoK8sApiAutoscalingV2MetricSpecFromJSON)), + 'minReplicas': !exists(json, 'minReplicas') ? undefined : json['minReplicas'], + 'scaleTargetRef': IoK8sApiAutoscalingV2CrossVersionObjectReferenceFromJSON(json['scaleTargetRef']), + }; +} + +export function IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpecToJSON(value?: IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'behavior': IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehaviorToJSON(value.behavior), + 'maxReplicas': value.maxReplicas, + 'metrics': value.metrics === undefined ? undefined : ((value.metrics as Array).map(IoK8sApiAutoscalingV2MetricSpecToJSON)), + 'minReplicas': value.minReplicas, + 'scaleTargetRef': IoK8sApiAutoscalingV2CrossVersionObjectReferenceToJSON(value.scaleTargetRef), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatus.ts new file mode 100644 index 000000000..49000dbd5 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatus.ts @@ -0,0 +1,119 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAutoscalingV2HorizontalPodAutoscalerCondition } from './IoK8sApiAutoscalingV2HorizontalPodAutoscalerCondition'; +import { + IoK8sApiAutoscalingV2HorizontalPodAutoscalerConditionFromJSON, + IoK8sApiAutoscalingV2HorizontalPodAutoscalerConditionFromJSONTyped, + IoK8sApiAutoscalingV2HorizontalPodAutoscalerConditionToJSON, +} from './IoK8sApiAutoscalingV2HorizontalPodAutoscalerCondition'; +import type { IoK8sApiAutoscalingV2MetricStatus } from './IoK8sApiAutoscalingV2MetricStatus'; +import { + IoK8sApiAutoscalingV2MetricStatusFromJSON, + IoK8sApiAutoscalingV2MetricStatusFromJSONTyped, + IoK8sApiAutoscalingV2MetricStatusToJSON, +} from './IoK8sApiAutoscalingV2MetricStatus'; + +/** + * HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. + * @export + * @interface IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatus + */ +export interface IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatus { + /** + * conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. + * @type {Array} + * @memberof IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatus + */ + conditions?: Array; + /** + * currentMetrics is the last read state of the metrics used by this autoscaler. + * @type {Array} + * @memberof IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatus + */ + currentMetrics?: Array; + /** + * currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. + * @type {number} + * @memberof IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatus + */ + currentReplicas?: number; + /** + * desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. + * @type {number} + * @memberof IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatus + */ + desiredReplicas: number; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatus + */ + lastScaleTime?: string; + /** + * observedGeneration is the most recent generation observed by this autoscaler. + * @type {number} + * @memberof IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatus + */ + observedGeneration?: number; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatus interface. + */ +export function instanceOfIoK8sApiAutoscalingV2HorizontalPodAutoscalerStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "desiredReplicas" in value; + + return isInstance; +} + +export function IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatusFromJSON(json: any): IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatus { + return IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatusFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(IoK8sApiAutoscalingV2HorizontalPodAutoscalerConditionFromJSON)), + 'currentMetrics': !exists(json, 'currentMetrics') ? undefined : ((json['currentMetrics'] as Array).map(IoK8sApiAutoscalingV2MetricStatusFromJSON)), + 'currentReplicas': !exists(json, 'currentReplicas') ? undefined : json['currentReplicas'], + 'desiredReplicas': json['desiredReplicas'], + 'lastScaleTime': !exists(json, 'lastScaleTime') ? undefined : json['lastScaleTime'], + 'observedGeneration': !exists(json, 'observedGeneration') ? undefined : json['observedGeneration'], + }; +} + +export function IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatusToJSON(value?: IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(IoK8sApiAutoscalingV2HorizontalPodAutoscalerConditionToJSON)), + 'currentMetrics': value.currentMetrics === undefined ? undefined : ((value.currentMetrics as Array).map(IoK8sApiAutoscalingV2MetricStatusToJSON)), + 'currentReplicas': value.currentReplicas, + 'desiredReplicas': value.desiredReplicas, + 'lastScaleTime': value.lastScaleTime === undefined ? undefined : (value.lastScaleTime), + 'observedGeneration': value.observedGeneration, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2MetricIdentifier.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2MetricIdentifier.ts new file mode 100644 index 000000000..954583d1f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2MetricIdentifier.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1LabelSelector } from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; +import { + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON, + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; + +/** + * MetricIdentifier defines the name and optionally selector for a metric + * @export + * @interface IoK8sApiAutoscalingV2MetricIdentifier + */ +export interface IoK8sApiAutoscalingV2MetricIdentifier { + /** + * name is the name of the given metric + * @type {string} + * @memberof IoK8sApiAutoscalingV2MetricIdentifier + */ + name: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1LabelSelector} + * @memberof IoK8sApiAutoscalingV2MetricIdentifier + */ + selector?: IoK8sApimachineryPkgApisMetaV1LabelSelector; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV2MetricIdentifier interface. + */ +export function instanceOfIoK8sApiAutoscalingV2MetricIdentifier(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiAutoscalingV2MetricIdentifierFromJSON(json: any): IoK8sApiAutoscalingV2MetricIdentifier { + return IoK8sApiAutoscalingV2MetricIdentifierFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV2MetricIdentifierFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV2MetricIdentifier { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + 'selector': !exists(json, 'selector') ? undefined : IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['selector']), + }; +} + +export function IoK8sApiAutoscalingV2MetricIdentifierToJSON(value?: IoK8sApiAutoscalingV2MetricIdentifier | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'selector': IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value.selector), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2MetricSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2MetricSpec.ts new file mode 100644 index 000000000..ccfc536ed --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2MetricSpec.ts @@ -0,0 +1,137 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAutoscalingV2ContainerResourceMetricSource } from './IoK8sApiAutoscalingV2ContainerResourceMetricSource'; +import { + IoK8sApiAutoscalingV2ContainerResourceMetricSourceFromJSON, + IoK8sApiAutoscalingV2ContainerResourceMetricSourceFromJSONTyped, + IoK8sApiAutoscalingV2ContainerResourceMetricSourceToJSON, +} from './IoK8sApiAutoscalingV2ContainerResourceMetricSource'; +import type { IoK8sApiAutoscalingV2ExternalMetricSource } from './IoK8sApiAutoscalingV2ExternalMetricSource'; +import { + IoK8sApiAutoscalingV2ExternalMetricSourceFromJSON, + IoK8sApiAutoscalingV2ExternalMetricSourceFromJSONTyped, + IoK8sApiAutoscalingV2ExternalMetricSourceToJSON, +} from './IoK8sApiAutoscalingV2ExternalMetricSource'; +import type { IoK8sApiAutoscalingV2ObjectMetricSource } from './IoK8sApiAutoscalingV2ObjectMetricSource'; +import { + IoK8sApiAutoscalingV2ObjectMetricSourceFromJSON, + IoK8sApiAutoscalingV2ObjectMetricSourceFromJSONTyped, + IoK8sApiAutoscalingV2ObjectMetricSourceToJSON, +} from './IoK8sApiAutoscalingV2ObjectMetricSource'; +import type { IoK8sApiAutoscalingV2PodsMetricSource } from './IoK8sApiAutoscalingV2PodsMetricSource'; +import { + IoK8sApiAutoscalingV2PodsMetricSourceFromJSON, + IoK8sApiAutoscalingV2PodsMetricSourceFromJSONTyped, + IoK8sApiAutoscalingV2PodsMetricSourceToJSON, +} from './IoK8sApiAutoscalingV2PodsMetricSource'; +import type { IoK8sApiAutoscalingV2ResourceMetricSource } from './IoK8sApiAutoscalingV2ResourceMetricSource'; +import { + IoK8sApiAutoscalingV2ResourceMetricSourceFromJSON, + IoK8sApiAutoscalingV2ResourceMetricSourceFromJSONTyped, + IoK8sApiAutoscalingV2ResourceMetricSourceToJSON, +} from './IoK8sApiAutoscalingV2ResourceMetricSource'; + +/** + * MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once). + * @export + * @interface IoK8sApiAutoscalingV2MetricSpec + */ +export interface IoK8sApiAutoscalingV2MetricSpec { + /** + * + * @type {IoK8sApiAutoscalingV2ContainerResourceMetricSource} + * @memberof IoK8sApiAutoscalingV2MetricSpec + */ + containerResource?: IoK8sApiAutoscalingV2ContainerResourceMetricSource; + /** + * + * @type {IoK8sApiAutoscalingV2ExternalMetricSource} + * @memberof IoK8sApiAutoscalingV2MetricSpec + */ + external?: IoK8sApiAutoscalingV2ExternalMetricSource; + /** + * + * @type {IoK8sApiAutoscalingV2ObjectMetricSource} + * @memberof IoK8sApiAutoscalingV2MetricSpec + */ + object?: IoK8sApiAutoscalingV2ObjectMetricSource; + /** + * + * @type {IoK8sApiAutoscalingV2PodsMetricSource} + * @memberof IoK8sApiAutoscalingV2MetricSpec + */ + pods?: IoK8sApiAutoscalingV2PodsMetricSource; + /** + * + * @type {IoK8sApiAutoscalingV2ResourceMetricSource} + * @memberof IoK8sApiAutoscalingV2MetricSpec + */ + resource?: IoK8sApiAutoscalingV2ResourceMetricSource; + /** + * type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled + * @type {string} + * @memberof IoK8sApiAutoscalingV2MetricSpec + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV2MetricSpec interface. + */ +export function instanceOfIoK8sApiAutoscalingV2MetricSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiAutoscalingV2MetricSpecFromJSON(json: any): IoK8sApiAutoscalingV2MetricSpec { + return IoK8sApiAutoscalingV2MetricSpecFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV2MetricSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV2MetricSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'containerResource': !exists(json, 'containerResource') ? undefined : IoK8sApiAutoscalingV2ContainerResourceMetricSourceFromJSON(json['containerResource']), + 'external': !exists(json, 'external') ? undefined : IoK8sApiAutoscalingV2ExternalMetricSourceFromJSON(json['external']), + 'object': !exists(json, 'object') ? undefined : IoK8sApiAutoscalingV2ObjectMetricSourceFromJSON(json['object']), + 'pods': !exists(json, 'pods') ? undefined : IoK8sApiAutoscalingV2PodsMetricSourceFromJSON(json['pods']), + 'resource': !exists(json, 'resource') ? undefined : IoK8sApiAutoscalingV2ResourceMetricSourceFromJSON(json['resource']), + 'type': json['type'], + }; +} + +export function IoK8sApiAutoscalingV2MetricSpecToJSON(value?: IoK8sApiAutoscalingV2MetricSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'containerResource': IoK8sApiAutoscalingV2ContainerResourceMetricSourceToJSON(value.containerResource), + 'external': IoK8sApiAutoscalingV2ExternalMetricSourceToJSON(value.external), + 'object': IoK8sApiAutoscalingV2ObjectMetricSourceToJSON(value.object), + 'pods': IoK8sApiAutoscalingV2PodsMetricSourceToJSON(value.pods), + 'resource': IoK8sApiAutoscalingV2ResourceMetricSourceToJSON(value.resource), + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2MetricStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2MetricStatus.ts new file mode 100644 index 000000000..aa1e135a4 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2MetricStatus.ts @@ -0,0 +1,137 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAutoscalingV2ContainerResourceMetricStatus } from './IoK8sApiAutoscalingV2ContainerResourceMetricStatus'; +import { + IoK8sApiAutoscalingV2ContainerResourceMetricStatusFromJSON, + IoK8sApiAutoscalingV2ContainerResourceMetricStatusFromJSONTyped, + IoK8sApiAutoscalingV2ContainerResourceMetricStatusToJSON, +} from './IoK8sApiAutoscalingV2ContainerResourceMetricStatus'; +import type { IoK8sApiAutoscalingV2ExternalMetricStatus } from './IoK8sApiAutoscalingV2ExternalMetricStatus'; +import { + IoK8sApiAutoscalingV2ExternalMetricStatusFromJSON, + IoK8sApiAutoscalingV2ExternalMetricStatusFromJSONTyped, + IoK8sApiAutoscalingV2ExternalMetricStatusToJSON, +} from './IoK8sApiAutoscalingV2ExternalMetricStatus'; +import type { IoK8sApiAutoscalingV2ObjectMetricStatus } from './IoK8sApiAutoscalingV2ObjectMetricStatus'; +import { + IoK8sApiAutoscalingV2ObjectMetricStatusFromJSON, + IoK8sApiAutoscalingV2ObjectMetricStatusFromJSONTyped, + IoK8sApiAutoscalingV2ObjectMetricStatusToJSON, +} from './IoK8sApiAutoscalingV2ObjectMetricStatus'; +import type { IoK8sApiAutoscalingV2PodsMetricStatus } from './IoK8sApiAutoscalingV2PodsMetricStatus'; +import { + IoK8sApiAutoscalingV2PodsMetricStatusFromJSON, + IoK8sApiAutoscalingV2PodsMetricStatusFromJSONTyped, + IoK8sApiAutoscalingV2PodsMetricStatusToJSON, +} from './IoK8sApiAutoscalingV2PodsMetricStatus'; +import type { IoK8sApiAutoscalingV2ResourceMetricStatus } from './IoK8sApiAutoscalingV2ResourceMetricStatus'; +import { + IoK8sApiAutoscalingV2ResourceMetricStatusFromJSON, + IoK8sApiAutoscalingV2ResourceMetricStatusFromJSONTyped, + IoK8sApiAutoscalingV2ResourceMetricStatusToJSON, +} from './IoK8sApiAutoscalingV2ResourceMetricStatus'; + +/** + * MetricStatus describes the last-read state of a single metric. + * @export + * @interface IoK8sApiAutoscalingV2MetricStatus + */ +export interface IoK8sApiAutoscalingV2MetricStatus { + /** + * + * @type {IoK8sApiAutoscalingV2ContainerResourceMetricStatus} + * @memberof IoK8sApiAutoscalingV2MetricStatus + */ + containerResource?: IoK8sApiAutoscalingV2ContainerResourceMetricStatus; + /** + * + * @type {IoK8sApiAutoscalingV2ExternalMetricStatus} + * @memberof IoK8sApiAutoscalingV2MetricStatus + */ + external?: IoK8sApiAutoscalingV2ExternalMetricStatus; + /** + * + * @type {IoK8sApiAutoscalingV2ObjectMetricStatus} + * @memberof IoK8sApiAutoscalingV2MetricStatus + */ + object?: IoK8sApiAutoscalingV2ObjectMetricStatus; + /** + * + * @type {IoK8sApiAutoscalingV2PodsMetricStatus} + * @memberof IoK8sApiAutoscalingV2MetricStatus + */ + pods?: IoK8sApiAutoscalingV2PodsMetricStatus; + /** + * + * @type {IoK8sApiAutoscalingV2ResourceMetricStatus} + * @memberof IoK8sApiAutoscalingV2MetricStatus + */ + resource?: IoK8sApiAutoscalingV2ResourceMetricStatus; + /** + * type is the type of metric source. It will be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each corresponds to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled + * @type {string} + * @memberof IoK8sApiAutoscalingV2MetricStatus + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV2MetricStatus interface. + */ +export function instanceOfIoK8sApiAutoscalingV2MetricStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiAutoscalingV2MetricStatusFromJSON(json: any): IoK8sApiAutoscalingV2MetricStatus { + return IoK8sApiAutoscalingV2MetricStatusFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV2MetricStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV2MetricStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'containerResource': !exists(json, 'containerResource') ? undefined : IoK8sApiAutoscalingV2ContainerResourceMetricStatusFromJSON(json['containerResource']), + 'external': !exists(json, 'external') ? undefined : IoK8sApiAutoscalingV2ExternalMetricStatusFromJSON(json['external']), + 'object': !exists(json, 'object') ? undefined : IoK8sApiAutoscalingV2ObjectMetricStatusFromJSON(json['object']), + 'pods': !exists(json, 'pods') ? undefined : IoK8sApiAutoscalingV2PodsMetricStatusFromJSON(json['pods']), + 'resource': !exists(json, 'resource') ? undefined : IoK8sApiAutoscalingV2ResourceMetricStatusFromJSON(json['resource']), + 'type': json['type'], + }; +} + +export function IoK8sApiAutoscalingV2MetricStatusToJSON(value?: IoK8sApiAutoscalingV2MetricStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'containerResource': IoK8sApiAutoscalingV2ContainerResourceMetricStatusToJSON(value.containerResource), + 'external': IoK8sApiAutoscalingV2ExternalMetricStatusToJSON(value.external), + 'object': IoK8sApiAutoscalingV2ObjectMetricStatusToJSON(value.object), + 'pods': IoK8sApiAutoscalingV2PodsMetricStatusToJSON(value.pods), + 'resource': IoK8sApiAutoscalingV2ResourceMetricStatusToJSON(value.resource), + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2MetricTarget.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2MetricTarget.ts new file mode 100644 index 000000000..53e20524c --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2MetricTarget.ts @@ -0,0 +1,162 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * MetricTarget defines the target value, average value, or average utilization of a specific metric + * @export + * @interface IoK8sApiAutoscalingV2MetricTarget + */ +export interface IoK8sApiAutoscalingV2MetricTarget { + /** + * averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type + * @type {number} + * @memberof IoK8sApiAutoscalingV2MetricTarget + */ + averageUtilization?: number; + /** + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + * + * The serialization format is: + * + * ``` ::= + * + * (Note that may be empty, from the "" case in .) + * + * ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + * + * (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + * + * ::= m | "" | k | M | G | T | P | E + * + * (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + * + * ::= "e" | "E" ``` + * + * No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + * + * When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + * + * Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + * + * - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. + * + * The sign will be omitted unless the number is negative. + * + * Examples: + * + * - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" + * + * Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + * + * Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + * + * This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + * @type {string} + * @memberof IoK8sApiAutoscalingV2MetricTarget + */ + averageValue?: string; + /** + * type represents whether the metric type is Utilization, Value, or AverageValue + * @type {string} + * @memberof IoK8sApiAutoscalingV2MetricTarget + */ + type: string; + /** + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + * + * The serialization format is: + * + * ``` ::= + * + * (Note that may be empty, from the "" case in .) + * + * ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + * + * (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + * + * ::= m | "" | k | M | G | T | P | E + * + * (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + * + * ::= "e" | "E" ``` + * + * No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + * + * When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + * + * Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + * + * - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. + * + * The sign will be omitted unless the number is negative. + * + * Examples: + * + * - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" + * + * Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + * + * Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + * + * This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + * @type {string} + * @memberof IoK8sApiAutoscalingV2MetricTarget + */ + value?: string; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV2MetricTarget interface. + */ +export function instanceOfIoK8sApiAutoscalingV2MetricTarget(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiAutoscalingV2MetricTargetFromJSON(json: any): IoK8sApiAutoscalingV2MetricTarget { + return IoK8sApiAutoscalingV2MetricTargetFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV2MetricTargetFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV2MetricTarget { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'averageUtilization': !exists(json, 'averageUtilization') ? undefined : json['averageUtilization'], + 'averageValue': !exists(json, 'averageValue') ? undefined : json['averageValue'], + 'type': json['type'], + 'value': !exists(json, 'value') ? undefined : json['value'], + }; +} + +export function IoK8sApiAutoscalingV2MetricTargetToJSON(value?: IoK8sApiAutoscalingV2MetricTarget | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'averageUtilization': value.averageUtilization, + 'averageValue': value.averageValue, + 'type': value.type, + 'value': value.value, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2MetricValueStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2MetricValueStatus.ts new file mode 100644 index 000000000..f6d48e828 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2MetricValueStatus.ts @@ -0,0 +1,153 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * MetricValueStatus holds the current value for a metric + * @export + * @interface IoK8sApiAutoscalingV2MetricValueStatus + */ +export interface IoK8sApiAutoscalingV2MetricValueStatus { + /** + * currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. + * @type {number} + * @memberof IoK8sApiAutoscalingV2MetricValueStatus + */ + averageUtilization?: number; + /** + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + * + * The serialization format is: + * + * ``` ::= + * + * (Note that may be empty, from the "" case in .) + * + * ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + * + * (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + * + * ::= m | "" | k | M | G | T | P | E + * + * (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + * + * ::= "e" | "E" ``` + * + * No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + * + * When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + * + * Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + * + * - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. + * + * The sign will be omitted unless the number is negative. + * + * Examples: + * + * - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" + * + * Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + * + * Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + * + * This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + * @type {string} + * @memberof IoK8sApiAutoscalingV2MetricValueStatus + */ + averageValue?: string; + /** + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + * + * The serialization format is: + * + * ``` ::= + * + * (Note that may be empty, from the "" case in .) + * + * ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + * + * (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + * + * ::= m | "" | k | M | G | T | P | E + * + * (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + * + * ::= "e" | "E" ``` + * + * No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + * + * When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + * + * Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + * + * - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. + * + * The sign will be omitted unless the number is negative. + * + * Examples: + * + * - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" + * + * Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + * + * Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + * + * This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + * @type {string} + * @memberof IoK8sApiAutoscalingV2MetricValueStatus + */ + value?: string; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV2MetricValueStatus interface. + */ +export function instanceOfIoK8sApiAutoscalingV2MetricValueStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiAutoscalingV2MetricValueStatusFromJSON(json: any): IoK8sApiAutoscalingV2MetricValueStatus { + return IoK8sApiAutoscalingV2MetricValueStatusFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV2MetricValueStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV2MetricValueStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'averageUtilization': !exists(json, 'averageUtilization') ? undefined : json['averageUtilization'], + 'averageValue': !exists(json, 'averageValue') ? undefined : json['averageValue'], + 'value': !exists(json, 'value') ? undefined : json['value'], + }; +} + +export function IoK8sApiAutoscalingV2MetricValueStatusToJSON(value?: IoK8sApiAutoscalingV2MetricValueStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'averageUtilization': value.averageUtilization, + 'averageValue': value.averageValue, + 'value': value.value, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ObjectMetricSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ObjectMetricSource.ts new file mode 100644 index 000000000..dcb11c508 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ObjectMetricSource.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAutoscalingV2CrossVersionObjectReference } from './IoK8sApiAutoscalingV2CrossVersionObjectReference'; +import { + IoK8sApiAutoscalingV2CrossVersionObjectReferenceFromJSON, + IoK8sApiAutoscalingV2CrossVersionObjectReferenceFromJSONTyped, + IoK8sApiAutoscalingV2CrossVersionObjectReferenceToJSON, +} from './IoK8sApiAutoscalingV2CrossVersionObjectReference'; +import type { IoK8sApiAutoscalingV2MetricIdentifier } from './IoK8sApiAutoscalingV2MetricIdentifier'; +import { + IoK8sApiAutoscalingV2MetricIdentifierFromJSON, + IoK8sApiAutoscalingV2MetricIdentifierFromJSONTyped, + IoK8sApiAutoscalingV2MetricIdentifierToJSON, +} from './IoK8sApiAutoscalingV2MetricIdentifier'; +import type { IoK8sApiAutoscalingV2MetricTarget } from './IoK8sApiAutoscalingV2MetricTarget'; +import { + IoK8sApiAutoscalingV2MetricTargetFromJSON, + IoK8sApiAutoscalingV2MetricTargetFromJSONTyped, + IoK8sApiAutoscalingV2MetricTargetToJSON, +} from './IoK8sApiAutoscalingV2MetricTarget'; + +/** + * ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). + * @export + * @interface IoK8sApiAutoscalingV2ObjectMetricSource + */ +export interface IoK8sApiAutoscalingV2ObjectMetricSource { + /** + * + * @type {IoK8sApiAutoscalingV2CrossVersionObjectReference} + * @memberof IoK8sApiAutoscalingV2ObjectMetricSource + */ + describedObject: IoK8sApiAutoscalingV2CrossVersionObjectReference; + /** + * + * @type {IoK8sApiAutoscalingV2MetricIdentifier} + * @memberof IoK8sApiAutoscalingV2ObjectMetricSource + */ + metric: IoK8sApiAutoscalingV2MetricIdentifier; + /** + * + * @type {IoK8sApiAutoscalingV2MetricTarget} + * @memberof IoK8sApiAutoscalingV2ObjectMetricSource + */ + target: IoK8sApiAutoscalingV2MetricTarget; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV2ObjectMetricSource interface. + */ +export function instanceOfIoK8sApiAutoscalingV2ObjectMetricSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "describedObject" in value; + isInstance = isInstance && "metric" in value; + isInstance = isInstance && "target" in value; + + return isInstance; +} + +export function IoK8sApiAutoscalingV2ObjectMetricSourceFromJSON(json: any): IoK8sApiAutoscalingV2ObjectMetricSource { + return IoK8sApiAutoscalingV2ObjectMetricSourceFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV2ObjectMetricSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV2ObjectMetricSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'describedObject': IoK8sApiAutoscalingV2CrossVersionObjectReferenceFromJSON(json['describedObject']), + 'metric': IoK8sApiAutoscalingV2MetricIdentifierFromJSON(json['metric']), + 'target': IoK8sApiAutoscalingV2MetricTargetFromJSON(json['target']), + }; +} + +export function IoK8sApiAutoscalingV2ObjectMetricSourceToJSON(value?: IoK8sApiAutoscalingV2ObjectMetricSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'describedObject': IoK8sApiAutoscalingV2CrossVersionObjectReferenceToJSON(value.describedObject), + 'metric': IoK8sApiAutoscalingV2MetricIdentifierToJSON(value.metric), + 'target': IoK8sApiAutoscalingV2MetricTargetToJSON(value.target), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ObjectMetricStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ObjectMetricStatus.ts new file mode 100644 index 000000000..ddb909738 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ObjectMetricStatus.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAutoscalingV2CrossVersionObjectReference } from './IoK8sApiAutoscalingV2CrossVersionObjectReference'; +import { + IoK8sApiAutoscalingV2CrossVersionObjectReferenceFromJSON, + IoK8sApiAutoscalingV2CrossVersionObjectReferenceFromJSONTyped, + IoK8sApiAutoscalingV2CrossVersionObjectReferenceToJSON, +} from './IoK8sApiAutoscalingV2CrossVersionObjectReference'; +import type { IoK8sApiAutoscalingV2MetricIdentifier } from './IoK8sApiAutoscalingV2MetricIdentifier'; +import { + IoK8sApiAutoscalingV2MetricIdentifierFromJSON, + IoK8sApiAutoscalingV2MetricIdentifierFromJSONTyped, + IoK8sApiAutoscalingV2MetricIdentifierToJSON, +} from './IoK8sApiAutoscalingV2MetricIdentifier'; +import type { IoK8sApiAutoscalingV2MetricValueStatus } from './IoK8sApiAutoscalingV2MetricValueStatus'; +import { + IoK8sApiAutoscalingV2MetricValueStatusFromJSON, + IoK8sApiAutoscalingV2MetricValueStatusFromJSONTyped, + IoK8sApiAutoscalingV2MetricValueStatusToJSON, +} from './IoK8sApiAutoscalingV2MetricValueStatus'; + +/** + * ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). + * @export + * @interface IoK8sApiAutoscalingV2ObjectMetricStatus + */ +export interface IoK8sApiAutoscalingV2ObjectMetricStatus { + /** + * + * @type {IoK8sApiAutoscalingV2MetricValueStatus} + * @memberof IoK8sApiAutoscalingV2ObjectMetricStatus + */ + current: IoK8sApiAutoscalingV2MetricValueStatus; + /** + * + * @type {IoK8sApiAutoscalingV2CrossVersionObjectReference} + * @memberof IoK8sApiAutoscalingV2ObjectMetricStatus + */ + describedObject: IoK8sApiAutoscalingV2CrossVersionObjectReference; + /** + * + * @type {IoK8sApiAutoscalingV2MetricIdentifier} + * @memberof IoK8sApiAutoscalingV2ObjectMetricStatus + */ + metric: IoK8sApiAutoscalingV2MetricIdentifier; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV2ObjectMetricStatus interface. + */ +export function instanceOfIoK8sApiAutoscalingV2ObjectMetricStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "current" in value; + isInstance = isInstance && "describedObject" in value; + isInstance = isInstance && "metric" in value; + + return isInstance; +} + +export function IoK8sApiAutoscalingV2ObjectMetricStatusFromJSON(json: any): IoK8sApiAutoscalingV2ObjectMetricStatus { + return IoK8sApiAutoscalingV2ObjectMetricStatusFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV2ObjectMetricStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV2ObjectMetricStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'current': IoK8sApiAutoscalingV2MetricValueStatusFromJSON(json['current']), + 'describedObject': IoK8sApiAutoscalingV2CrossVersionObjectReferenceFromJSON(json['describedObject']), + 'metric': IoK8sApiAutoscalingV2MetricIdentifierFromJSON(json['metric']), + }; +} + +export function IoK8sApiAutoscalingV2ObjectMetricStatusToJSON(value?: IoK8sApiAutoscalingV2ObjectMetricStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'current': IoK8sApiAutoscalingV2MetricValueStatusToJSON(value.current), + 'describedObject': IoK8sApiAutoscalingV2CrossVersionObjectReferenceToJSON(value.describedObject), + 'metric': IoK8sApiAutoscalingV2MetricIdentifierToJSON(value.metric), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2PodsMetricSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2PodsMetricSource.ts new file mode 100644 index 000000000..5e4cb8f30 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2PodsMetricSource.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAutoscalingV2MetricIdentifier } from './IoK8sApiAutoscalingV2MetricIdentifier'; +import { + IoK8sApiAutoscalingV2MetricIdentifierFromJSON, + IoK8sApiAutoscalingV2MetricIdentifierFromJSONTyped, + IoK8sApiAutoscalingV2MetricIdentifierToJSON, +} from './IoK8sApiAutoscalingV2MetricIdentifier'; +import type { IoK8sApiAutoscalingV2MetricTarget } from './IoK8sApiAutoscalingV2MetricTarget'; +import { + IoK8sApiAutoscalingV2MetricTargetFromJSON, + IoK8sApiAutoscalingV2MetricTargetFromJSONTyped, + IoK8sApiAutoscalingV2MetricTargetToJSON, +} from './IoK8sApiAutoscalingV2MetricTarget'; + +/** + * PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + * @export + * @interface IoK8sApiAutoscalingV2PodsMetricSource + */ +export interface IoK8sApiAutoscalingV2PodsMetricSource { + /** + * + * @type {IoK8sApiAutoscalingV2MetricIdentifier} + * @memberof IoK8sApiAutoscalingV2PodsMetricSource + */ + metric: IoK8sApiAutoscalingV2MetricIdentifier; + /** + * + * @type {IoK8sApiAutoscalingV2MetricTarget} + * @memberof IoK8sApiAutoscalingV2PodsMetricSource + */ + target: IoK8sApiAutoscalingV2MetricTarget; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV2PodsMetricSource interface. + */ +export function instanceOfIoK8sApiAutoscalingV2PodsMetricSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "metric" in value; + isInstance = isInstance && "target" in value; + + return isInstance; +} + +export function IoK8sApiAutoscalingV2PodsMetricSourceFromJSON(json: any): IoK8sApiAutoscalingV2PodsMetricSource { + return IoK8sApiAutoscalingV2PodsMetricSourceFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV2PodsMetricSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV2PodsMetricSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'metric': IoK8sApiAutoscalingV2MetricIdentifierFromJSON(json['metric']), + 'target': IoK8sApiAutoscalingV2MetricTargetFromJSON(json['target']), + }; +} + +export function IoK8sApiAutoscalingV2PodsMetricSourceToJSON(value?: IoK8sApiAutoscalingV2PodsMetricSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'metric': IoK8sApiAutoscalingV2MetricIdentifierToJSON(value.metric), + 'target': IoK8sApiAutoscalingV2MetricTargetToJSON(value.target), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2PodsMetricStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2PodsMetricStatus.ts new file mode 100644 index 000000000..5d42f1f92 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2PodsMetricStatus.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAutoscalingV2MetricIdentifier } from './IoK8sApiAutoscalingV2MetricIdentifier'; +import { + IoK8sApiAutoscalingV2MetricIdentifierFromJSON, + IoK8sApiAutoscalingV2MetricIdentifierFromJSONTyped, + IoK8sApiAutoscalingV2MetricIdentifierToJSON, +} from './IoK8sApiAutoscalingV2MetricIdentifier'; +import type { IoK8sApiAutoscalingV2MetricValueStatus } from './IoK8sApiAutoscalingV2MetricValueStatus'; +import { + IoK8sApiAutoscalingV2MetricValueStatusFromJSON, + IoK8sApiAutoscalingV2MetricValueStatusFromJSONTyped, + IoK8sApiAutoscalingV2MetricValueStatusToJSON, +} from './IoK8sApiAutoscalingV2MetricValueStatus'; + +/** + * PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second). + * @export + * @interface IoK8sApiAutoscalingV2PodsMetricStatus + */ +export interface IoK8sApiAutoscalingV2PodsMetricStatus { + /** + * + * @type {IoK8sApiAutoscalingV2MetricValueStatus} + * @memberof IoK8sApiAutoscalingV2PodsMetricStatus + */ + current: IoK8sApiAutoscalingV2MetricValueStatus; + /** + * + * @type {IoK8sApiAutoscalingV2MetricIdentifier} + * @memberof IoK8sApiAutoscalingV2PodsMetricStatus + */ + metric: IoK8sApiAutoscalingV2MetricIdentifier; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV2PodsMetricStatus interface. + */ +export function instanceOfIoK8sApiAutoscalingV2PodsMetricStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "current" in value; + isInstance = isInstance && "metric" in value; + + return isInstance; +} + +export function IoK8sApiAutoscalingV2PodsMetricStatusFromJSON(json: any): IoK8sApiAutoscalingV2PodsMetricStatus { + return IoK8sApiAutoscalingV2PodsMetricStatusFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV2PodsMetricStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV2PodsMetricStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'current': IoK8sApiAutoscalingV2MetricValueStatusFromJSON(json['current']), + 'metric': IoK8sApiAutoscalingV2MetricIdentifierFromJSON(json['metric']), + }; +} + +export function IoK8sApiAutoscalingV2PodsMetricStatusToJSON(value?: IoK8sApiAutoscalingV2PodsMetricStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'current': IoK8sApiAutoscalingV2MetricValueStatusToJSON(value.current), + 'metric': IoK8sApiAutoscalingV2MetricIdentifierToJSON(value.metric), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ResourceMetricSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ResourceMetricSource.ts new file mode 100644 index 000000000..010658d79 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ResourceMetricSource.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAutoscalingV2MetricTarget } from './IoK8sApiAutoscalingV2MetricTarget'; +import { + IoK8sApiAutoscalingV2MetricTargetFromJSON, + IoK8sApiAutoscalingV2MetricTargetFromJSONTyped, + IoK8sApiAutoscalingV2MetricTargetToJSON, +} from './IoK8sApiAutoscalingV2MetricTarget'; + +/** + * ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set. + * @export + * @interface IoK8sApiAutoscalingV2ResourceMetricSource + */ +export interface IoK8sApiAutoscalingV2ResourceMetricSource { + /** + * name is the name of the resource in question. + * @type {string} + * @memberof IoK8sApiAutoscalingV2ResourceMetricSource + */ + name: string; + /** + * + * @type {IoK8sApiAutoscalingV2MetricTarget} + * @memberof IoK8sApiAutoscalingV2ResourceMetricSource + */ + target: IoK8sApiAutoscalingV2MetricTarget; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV2ResourceMetricSource interface. + */ +export function instanceOfIoK8sApiAutoscalingV2ResourceMetricSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "target" in value; + + return isInstance; +} + +export function IoK8sApiAutoscalingV2ResourceMetricSourceFromJSON(json: any): IoK8sApiAutoscalingV2ResourceMetricSource { + return IoK8sApiAutoscalingV2ResourceMetricSourceFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV2ResourceMetricSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV2ResourceMetricSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + 'target': IoK8sApiAutoscalingV2MetricTargetFromJSON(json['target']), + }; +} + +export function IoK8sApiAutoscalingV2ResourceMetricSourceToJSON(value?: IoK8sApiAutoscalingV2ResourceMetricSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'target': IoK8sApiAutoscalingV2MetricTargetToJSON(value.target), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ResourceMetricStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ResourceMetricStatus.ts new file mode 100644 index 000000000..3da26bc07 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiAutoscalingV2ResourceMetricStatus.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiAutoscalingV2MetricValueStatus } from './IoK8sApiAutoscalingV2MetricValueStatus'; +import { + IoK8sApiAutoscalingV2MetricValueStatusFromJSON, + IoK8sApiAutoscalingV2MetricValueStatusFromJSONTyped, + IoK8sApiAutoscalingV2MetricValueStatusToJSON, +} from './IoK8sApiAutoscalingV2MetricValueStatus'; + +/** + * ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. + * @export + * @interface IoK8sApiAutoscalingV2ResourceMetricStatus + */ +export interface IoK8sApiAutoscalingV2ResourceMetricStatus { + /** + * + * @type {IoK8sApiAutoscalingV2MetricValueStatus} + * @memberof IoK8sApiAutoscalingV2ResourceMetricStatus + */ + current: IoK8sApiAutoscalingV2MetricValueStatus; + /** + * name is the name of the resource in question. + * @type {string} + * @memberof IoK8sApiAutoscalingV2ResourceMetricStatus + */ + name: string; +} + +/** + * Check if a given object implements the IoK8sApiAutoscalingV2ResourceMetricStatus interface. + */ +export function instanceOfIoK8sApiAutoscalingV2ResourceMetricStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "current" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiAutoscalingV2ResourceMetricStatusFromJSON(json: any): IoK8sApiAutoscalingV2ResourceMetricStatus { + return IoK8sApiAutoscalingV2ResourceMetricStatusFromJSONTyped(json, false); +} + +export function IoK8sApiAutoscalingV2ResourceMetricStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiAutoscalingV2ResourceMetricStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'current': IoK8sApiAutoscalingV2MetricValueStatusFromJSON(json['current']), + 'name': json['name'], + }; +} + +export function IoK8sApiAutoscalingV2ResourceMetricStatusToJSON(value?: IoK8sApiAutoscalingV2ResourceMetricStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'current': IoK8sApiAutoscalingV2MetricValueStatusToJSON(value.current), + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1CronJob.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1CronJob.ts new file mode 100644 index 000000000..a8ed864ee --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1CronJob.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiBatchV1CronJobSpec } from './IoK8sApiBatchV1CronJobSpec'; +import { + IoK8sApiBatchV1CronJobSpecFromJSON, + IoK8sApiBatchV1CronJobSpecFromJSONTyped, + IoK8sApiBatchV1CronJobSpecToJSON, +} from './IoK8sApiBatchV1CronJobSpec'; +import type { IoK8sApiBatchV1CronJobStatus } from './IoK8sApiBatchV1CronJobStatus'; +import { + IoK8sApiBatchV1CronJobStatusFromJSON, + IoK8sApiBatchV1CronJobStatusFromJSONTyped, + IoK8sApiBatchV1CronJobStatusToJSON, +} from './IoK8sApiBatchV1CronJobStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * CronJob represents the configuration of a single cron job. + * @export + * @interface IoK8sApiBatchV1CronJob + */ +export interface IoK8sApiBatchV1CronJob { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiBatchV1CronJob + */ + 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 + * @type {string} + * @memberof IoK8sApiBatchV1CronJob + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiBatchV1CronJob + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiBatchV1CronJobSpec} + * @memberof IoK8sApiBatchV1CronJob + */ + spec?: IoK8sApiBatchV1CronJobSpec; + /** + * + * @type {IoK8sApiBatchV1CronJobStatus} + * @memberof IoK8sApiBatchV1CronJob + */ + status?: IoK8sApiBatchV1CronJobStatus; +} + +/** + * Check if a given object implements the IoK8sApiBatchV1CronJob interface. + */ +export function instanceOfIoK8sApiBatchV1CronJob(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiBatchV1CronJobFromJSON(json: any): IoK8sApiBatchV1CronJob { + return IoK8sApiBatchV1CronJobFromJSONTyped(json, false); +} + +export function IoK8sApiBatchV1CronJobFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiBatchV1CronJob { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiBatchV1CronJobSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiBatchV1CronJobStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiBatchV1CronJobToJSON(value?: IoK8sApiBatchV1CronJob | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiBatchV1CronJobSpecToJSON(value.spec), + 'status': IoK8sApiBatchV1CronJobStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1CronJobList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1CronJobList.ts new file mode 100644 index 000000000..bd0eea8c0 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1CronJobList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiBatchV1CronJob } from './IoK8sApiBatchV1CronJob'; +import { + IoK8sApiBatchV1CronJobFromJSON, + IoK8sApiBatchV1CronJobFromJSONTyped, + IoK8sApiBatchV1CronJobToJSON, +} from './IoK8sApiBatchV1CronJob'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * CronJobList is a collection of cron jobs. + * @export + * @interface IoK8sApiBatchV1CronJobList + */ +export interface IoK8sApiBatchV1CronJobList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiBatchV1CronJobList + */ + apiVersion?: string; + /** + * items is the list of CronJobs. + * @type {Array} + * @memberof IoK8sApiBatchV1CronJobList + */ + 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 + * @type {string} + * @memberof IoK8sApiBatchV1CronJobList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiBatchV1CronJobList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiBatchV1CronJobList interface. + */ +export function instanceOfIoK8sApiBatchV1CronJobList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiBatchV1CronJobListFromJSON(json: any): IoK8sApiBatchV1CronJobList { + return IoK8sApiBatchV1CronJobListFromJSONTyped(json, false); +} + +export function IoK8sApiBatchV1CronJobListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiBatchV1CronJobList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiBatchV1CronJobFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiBatchV1CronJobListToJSON(value?: IoK8sApiBatchV1CronJobList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiBatchV1CronJobToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1CronJobSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1CronJobSpec.ts new file mode 100644 index 000000000..43bcc4ad5 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1CronJobSpec.ts @@ -0,0 +1,132 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiBatchV1JobTemplateSpec } from './IoK8sApiBatchV1JobTemplateSpec'; +import { + IoK8sApiBatchV1JobTemplateSpecFromJSON, + IoK8sApiBatchV1JobTemplateSpecFromJSONTyped, + IoK8sApiBatchV1JobTemplateSpecToJSON, +} from './IoK8sApiBatchV1JobTemplateSpec'; + +/** + * CronJobSpec describes how the job execution will look like and when it will actually run. + * @export + * @interface IoK8sApiBatchV1CronJobSpec + */ +export interface IoK8sApiBatchV1CronJobSpec { + /** + * Specifies how to treat concurrent executions of a Job. Valid values are: + * + * - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one + * @type {string} + * @memberof IoK8sApiBatchV1CronJobSpec + */ + concurrencyPolicy?: string; + /** + * The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1. + * @type {number} + * @memberof IoK8sApiBatchV1CronJobSpec + */ + failedJobsHistoryLimit?: number; + /** + * + * @type {IoK8sApiBatchV1JobTemplateSpec} + * @memberof IoK8sApiBatchV1CronJobSpec + */ + jobTemplate: IoK8sApiBatchV1JobTemplateSpec; + /** + * The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. + * @type {string} + * @memberof IoK8sApiBatchV1CronJobSpec + */ + schedule: string; + /** + * Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. + * @type {number} + * @memberof IoK8sApiBatchV1CronJobSpec + */ + startingDeadlineSeconds?: number; + /** + * The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3. + * @type {number} + * @memberof IoK8sApiBatchV1CronJobSpec + */ + successfulJobsHistoryLimit?: number; + /** + * This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. + * @type {boolean} + * @memberof IoK8sApiBatchV1CronJobSpec + */ + suspend?: boolean; + /** + * The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones + * @type {string} + * @memberof IoK8sApiBatchV1CronJobSpec + */ + timeZone?: string; +} + +/** + * Check if a given object implements the IoK8sApiBatchV1CronJobSpec interface. + */ +export function instanceOfIoK8sApiBatchV1CronJobSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "jobTemplate" in value; + isInstance = isInstance && "schedule" in value; + + return isInstance; +} + +export function IoK8sApiBatchV1CronJobSpecFromJSON(json: any): IoK8sApiBatchV1CronJobSpec { + return IoK8sApiBatchV1CronJobSpecFromJSONTyped(json, false); +} + +export function IoK8sApiBatchV1CronJobSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiBatchV1CronJobSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'concurrencyPolicy': !exists(json, 'concurrencyPolicy') ? undefined : json['concurrencyPolicy'], + 'failedJobsHistoryLimit': !exists(json, 'failedJobsHistoryLimit') ? undefined : json['failedJobsHistoryLimit'], + 'jobTemplate': IoK8sApiBatchV1JobTemplateSpecFromJSON(json['jobTemplate']), + 'schedule': json['schedule'], + 'startingDeadlineSeconds': !exists(json, 'startingDeadlineSeconds') ? undefined : json['startingDeadlineSeconds'], + 'successfulJobsHistoryLimit': !exists(json, 'successfulJobsHistoryLimit') ? undefined : json['successfulJobsHistoryLimit'], + 'suspend': !exists(json, 'suspend') ? undefined : json['suspend'], + 'timeZone': !exists(json, 'timeZone') ? undefined : json['timeZone'], + }; +} + +export function IoK8sApiBatchV1CronJobSpecToJSON(value?: IoK8sApiBatchV1CronJobSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'concurrencyPolicy': value.concurrencyPolicy, + 'failedJobsHistoryLimit': value.failedJobsHistoryLimit, + 'jobTemplate': IoK8sApiBatchV1JobTemplateSpecToJSON(value.jobTemplate), + 'schedule': value.schedule, + 'startingDeadlineSeconds': value.startingDeadlineSeconds, + 'successfulJobsHistoryLimit': value.successfulJobsHistoryLimit, + 'suspend': value.suspend, + 'timeZone': value.timeZone, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1CronJobStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1CronJobStatus.ts new file mode 100644 index 000000000..33eef09cb --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1CronJobStatus.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ObjectReference } from './IoK8sApiCoreV1ObjectReference'; +import { + IoK8sApiCoreV1ObjectReferenceFromJSON, + IoK8sApiCoreV1ObjectReferenceFromJSONTyped, + IoK8sApiCoreV1ObjectReferenceToJSON, +} from './IoK8sApiCoreV1ObjectReference'; + +/** + * CronJobStatus represents the current state of a cron job. + * @export + * @interface IoK8sApiBatchV1CronJobStatus + */ +export interface IoK8sApiBatchV1CronJobStatus { + /** + * A list of pointers to currently running jobs. + * @type {Array} + * @memberof IoK8sApiBatchV1CronJobStatus + */ + active?: Array; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiBatchV1CronJobStatus + */ + lastScheduleTime?: string; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiBatchV1CronJobStatus + */ + lastSuccessfulTime?: string; +} + +/** + * Check if a given object implements the IoK8sApiBatchV1CronJobStatus interface. + */ +export function instanceOfIoK8sApiBatchV1CronJobStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiBatchV1CronJobStatusFromJSON(json: any): IoK8sApiBatchV1CronJobStatus { + return IoK8sApiBatchV1CronJobStatusFromJSONTyped(json, false); +} + +export function IoK8sApiBatchV1CronJobStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiBatchV1CronJobStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'active': !exists(json, 'active') ? undefined : ((json['active'] as Array).map(IoK8sApiCoreV1ObjectReferenceFromJSON)), + 'lastScheduleTime': !exists(json, 'lastScheduleTime') ? undefined : json['lastScheduleTime'], + 'lastSuccessfulTime': !exists(json, 'lastSuccessfulTime') ? undefined : json['lastSuccessfulTime'], + }; +} + +export function IoK8sApiBatchV1CronJobStatusToJSON(value?: IoK8sApiBatchV1CronJobStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'active': value.active === undefined ? undefined : ((value.active as Array).map(IoK8sApiCoreV1ObjectReferenceToJSON)), + 'lastScheduleTime': value.lastScheduleTime === undefined ? undefined : (value.lastScheduleTime), + 'lastSuccessfulTime': value.lastSuccessfulTime === undefined ? undefined : (value.lastSuccessfulTime), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1Job.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1Job.ts new file mode 100644 index 000000000..a3ef7f5ff --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1Job.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiBatchV1JobSpec } from './IoK8sApiBatchV1JobSpec'; +import { + IoK8sApiBatchV1JobSpecFromJSON, + IoK8sApiBatchV1JobSpecFromJSONTyped, + IoK8sApiBatchV1JobSpecToJSON, +} from './IoK8sApiBatchV1JobSpec'; +import type { IoK8sApiBatchV1JobStatus } from './IoK8sApiBatchV1JobStatus'; +import { + IoK8sApiBatchV1JobStatusFromJSON, + IoK8sApiBatchV1JobStatusFromJSONTyped, + IoK8sApiBatchV1JobStatusToJSON, +} from './IoK8sApiBatchV1JobStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * Job represents the configuration of a single job. + * @export + * @interface IoK8sApiBatchV1Job + */ +export interface IoK8sApiBatchV1Job { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiBatchV1Job + */ + 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 + * @type {string} + * @memberof IoK8sApiBatchV1Job + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiBatchV1Job + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiBatchV1JobSpec} + * @memberof IoK8sApiBatchV1Job + */ + spec?: IoK8sApiBatchV1JobSpec; + /** + * + * @type {IoK8sApiBatchV1JobStatus} + * @memberof IoK8sApiBatchV1Job + */ + status?: IoK8sApiBatchV1JobStatus; +} + +/** + * Check if a given object implements the IoK8sApiBatchV1Job interface. + */ +export function instanceOfIoK8sApiBatchV1Job(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiBatchV1JobFromJSON(json: any): IoK8sApiBatchV1Job { + return IoK8sApiBatchV1JobFromJSONTyped(json, false); +} + +export function IoK8sApiBatchV1JobFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiBatchV1Job { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiBatchV1JobSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiBatchV1JobStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiBatchV1JobToJSON(value?: IoK8sApiBatchV1Job | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiBatchV1JobSpecToJSON(value.spec), + 'status': IoK8sApiBatchV1JobStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1JobCondition.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1JobCondition.ts new file mode 100644 index 000000000..6db1d65b6 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1JobCondition.ts @@ -0,0 +1,107 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * JobCondition describes current state of a job. + * @export + * @interface IoK8sApiBatchV1JobCondition + */ +export interface IoK8sApiBatchV1JobCondition { + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiBatchV1JobCondition + */ + lastProbeTime?: string; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiBatchV1JobCondition + */ + lastTransitionTime?: string; + /** + * Human readable message indicating details about last transition. + * @type {string} + * @memberof IoK8sApiBatchV1JobCondition + */ + message?: string; + /** + * (brief) reason for the condition's last transition. + * @type {string} + * @memberof IoK8sApiBatchV1JobCondition + */ + reason?: string; + /** + * Status of the condition, one of True, False, Unknown. + * @type {string} + * @memberof IoK8sApiBatchV1JobCondition + */ + status: string; + /** + * Type of job condition, Complete or Failed. + * @type {string} + * @memberof IoK8sApiBatchV1JobCondition + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApiBatchV1JobCondition interface. + */ +export function instanceOfIoK8sApiBatchV1JobCondition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "status" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiBatchV1JobConditionFromJSON(json: any): IoK8sApiBatchV1JobCondition { + return IoK8sApiBatchV1JobConditionFromJSONTyped(json, false); +} + +export function IoK8sApiBatchV1JobConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiBatchV1JobCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'lastProbeTime': !exists(json, 'lastProbeTime') ? undefined : json['lastProbeTime'], + 'lastTransitionTime': !exists(json, 'lastTransitionTime') ? undefined : json['lastTransitionTime'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'status': json['status'], + 'type': json['type'], + }; +} + +export function IoK8sApiBatchV1JobConditionToJSON(value?: IoK8sApiBatchV1JobCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'lastProbeTime': value.lastProbeTime === undefined ? undefined : (value.lastProbeTime), + 'lastTransitionTime': value.lastTransitionTime === undefined ? undefined : (value.lastTransitionTime), + 'message': value.message, + 'reason': value.reason, + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1JobList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1JobList.ts new file mode 100644 index 000000000..98f9f6764 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1JobList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiBatchV1Job } from './IoK8sApiBatchV1Job'; +import { + IoK8sApiBatchV1JobFromJSON, + IoK8sApiBatchV1JobFromJSONTyped, + IoK8sApiBatchV1JobToJSON, +} from './IoK8sApiBatchV1Job'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * JobList is a collection of jobs. + * @export + * @interface IoK8sApiBatchV1JobList + */ +export interface IoK8sApiBatchV1JobList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiBatchV1JobList + */ + apiVersion?: string; + /** + * items is the list of Jobs. + * @type {Array} + * @memberof IoK8sApiBatchV1JobList + */ + 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 + * @type {string} + * @memberof IoK8sApiBatchV1JobList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiBatchV1JobList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiBatchV1JobList interface. + */ +export function instanceOfIoK8sApiBatchV1JobList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiBatchV1JobListFromJSON(json: any): IoK8sApiBatchV1JobList { + return IoK8sApiBatchV1JobListFromJSONTyped(json, false); +} + +export function IoK8sApiBatchV1JobListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiBatchV1JobList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiBatchV1JobFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiBatchV1JobListToJSON(value?: IoK8sApiBatchV1JobList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiBatchV1JobToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1JobSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1JobSpec.ts new file mode 100644 index 000000000..475090ebf --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1JobSpec.ts @@ -0,0 +1,200 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiBatchV1PodFailurePolicy } from './IoK8sApiBatchV1PodFailurePolicy'; +import { + IoK8sApiBatchV1PodFailurePolicyFromJSON, + IoK8sApiBatchV1PodFailurePolicyFromJSONTyped, + IoK8sApiBatchV1PodFailurePolicyToJSON, +} from './IoK8sApiBatchV1PodFailurePolicy'; +import type { IoK8sApiCoreV1PodTemplateSpec } from './IoK8sApiCoreV1PodTemplateSpec'; +import { + IoK8sApiCoreV1PodTemplateSpecFromJSON, + IoK8sApiCoreV1PodTemplateSpecFromJSONTyped, + IoK8sApiCoreV1PodTemplateSpecToJSON, +} from './IoK8sApiCoreV1PodTemplateSpec'; +import type { IoK8sApimachineryPkgApisMetaV1LabelSelector } from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; +import { + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON, + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; + +/** + * JobSpec describes how the job execution will look like. + * @export + * @interface IoK8sApiBatchV1JobSpec + */ +export interface IoK8sApiBatchV1JobSpec { + /** + * Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again. + * @type {number} + * @memberof IoK8sApiBatchV1JobSpec + */ + activeDeadlineSeconds?: number; + /** + * Specifies the number of retries before marking this job failed. Defaults to 6 + * @type {number} + * @memberof IoK8sApiBatchV1JobSpec + */ + backoffLimit?: number; + /** + * Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). + * @type {number} + * @memberof IoK8sApiBatchV1JobSpec + */ + backoffLimitPerIndex?: number; + /** + * completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`. + * + * `NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other. + * + * `Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`. + * + * More completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job. + * @type {string} + * @memberof IoK8sApiBatchV1JobSpec + */ + completionMode?: string; + /** + * Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * @type {number} + * @memberof IoK8sApiBatchV1JobSpec + */ + completions?: number; + /** + * manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector + * @type {boolean} + * @memberof IoK8sApiBatchV1JobSpec + */ + manualSelector?: boolean; + /** + * Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). + * @type {number} + * @memberof IoK8sApiBatchV1JobSpec + */ + maxFailedIndexes?: number; + /** + * Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * @type {number} + * @memberof IoK8sApiBatchV1JobSpec + */ + parallelism?: number; + /** + * + * @type {IoK8sApiBatchV1PodFailurePolicy} + * @memberof IoK8sApiBatchV1JobSpec + */ + podFailurePolicy?: IoK8sApiBatchV1PodFailurePolicy; + /** + * podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods + * when they are terminating (has a metadata.deletionTimestamp) or failed. + * - Failed means to wait until a previously created Pod is fully terminated (has phase + * Failed or Succeeded) before creating a replacement Pod. + * + * When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default. + * @type {string} + * @memberof IoK8sApiBatchV1JobSpec + */ + podReplacementPolicy?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1LabelSelector} + * @memberof IoK8sApiBatchV1JobSpec + */ + selector?: IoK8sApimachineryPkgApisMetaV1LabelSelector; + /** + * suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false. + * @type {boolean} + * @memberof IoK8sApiBatchV1JobSpec + */ + suspend?: boolean; + /** + * + * @type {IoK8sApiCoreV1PodTemplateSpec} + * @memberof IoK8sApiBatchV1JobSpec + */ + template: IoK8sApiCoreV1PodTemplateSpec; + /** + * ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. + * @type {number} + * @memberof IoK8sApiBatchV1JobSpec + */ + ttlSecondsAfterFinished?: number; +} + +/** + * Check if a given object implements the IoK8sApiBatchV1JobSpec interface. + */ +export function instanceOfIoK8sApiBatchV1JobSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "template" in value; + + return isInstance; +} + +export function IoK8sApiBatchV1JobSpecFromJSON(json: any): IoK8sApiBatchV1JobSpec { + return IoK8sApiBatchV1JobSpecFromJSONTyped(json, false); +} + +export function IoK8sApiBatchV1JobSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiBatchV1JobSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'activeDeadlineSeconds': !exists(json, 'activeDeadlineSeconds') ? undefined : json['activeDeadlineSeconds'], + 'backoffLimit': !exists(json, 'backoffLimit') ? undefined : json['backoffLimit'], + 'backoffLimitPerIndex': !exists(json, 'backoffLimitPerIndex') ? undefined : json['backoffLimitPerIndex'], + 'completionMode': !exists(json, 'completionMode') ? undefined : json['completionMode'], + 'completions': !exists(json, 'completions') ? undefined : json['completions'], + 'manualSelector': !exists(json, 'manualSelector') ? undefined : json['manualSelector'], + 'maxFailedIndexes': !exists(json, 'maxFailedIndexes') ? undefined : json['maxFailedIndexes'], + 'parallelism': !exists(json, 'parallelism') ? undefined : json['parallelism'], + 'podFailurePolicy': !exists(json, 'podFailurePolicy') ? undefined : IoK8sApiBatchV1PodFailurePolicyFromJSON(json['podFailurePolicy']), + 'podReplacementPolicy': !exists(json, 'podReplacementPolicy') ? undefined : json['podReplacementPolicy'], + 'selector': !exists(json, 'selector') ? undefined : IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['selector']), + 'suspend': !exists(json, 'suspend') ? undefined : json['suspend'], + 'template': IoK8sApiCoreV1PodTemplateSpecFromJSON(json['template']), + 'ttlSecondsAfterFinished': !exists(json, 'ttlSecondsAfterFinished') ? undefined : json['ttlSecondsAfterFinished'], + }; +} + +export function IoK8sApiBatchV1JobSpecToJSON(value?: IoK8sApiBatchV1JobSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'activeDeadlineSeconds': value.activeDeadlineSeconds, + 'backoffLimit': value.backoffLimit, + 'backoffLimitPerIndex': value.backoffLimitPerIndex, + 'completionMode': value.completionMode, + 'completions': value.completions, + 'manualSelector': value.manualSelector, + 'maxFailedIndexes': value.maxFailedIndexes, + 'parallelism': value.parallelism, + 'podFailurePolicy': IoK8sApiBatchV1PodFailurePolicyToJSON(value.podFailurePolicy), + 'podReplacementPolicy': value.podReplacementPolicy, + 'selector': IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value.selector), + 'suspend': value.suspend, + 'template': IoK8sApiCoreV1PodTemplateSpecToJSON(value.template), + 'ttlSecondsAfterFinished': value.ttlSecondsAfterFinished, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1JobStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1JobStatus.ts new file mode 100644 index 000000000..b79401804 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1JobStatus.ts @@ -0,0 +1,160 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiBatchV1JobCondition } from './IoK8sApiBatchV1JobCondition'; +import { + IoK8sApiBatchV1JobConditionFromJSON, + IoK8sApiBatchV1JobConditionFromJSONTyped, + IoK8sApiBatchV1JobConditionToJSON, +} from './IoK8sApiBatchV1JobCondition'; +import type { IoK8sApiBatchV1UncountedTerminatedPods } from './IoK8sApiBatchV1UncountedTerminatedPods'; +import { + IoK8sApiBatchV1UncountedTerminatedPodsFromJSON, + IoK8sApiBatchV1UncountedTerminatedPodsFromJSONTyped, + IoK8sApiBatchV1UncountedTerminatedPodsToJSON, +} from './IoK8sApiBatchV1UncountedTerminatedPods'; + +/** + * JobStatus represents the current state of a Job. + * @export + * @interface IoK8sApiBatchV1JobStatus + */ +export interface IoK8sApiBatchV1JobStatus { + /** + * The number of pending and running pods. + * @type {number} + * @memberof IoK8sApiBatchV1JobStatus + */ + active?: number; + /** + * completedIndexes holds the completed indexes when .spec.completionMode = "Indexed" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". + * @type {string} + * @memberof IoK8sApiBatchV1JobStatus + */ + completedIndexes?: string; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiBatchV1JobStatus + */ + completionTime?: string; + /** + * The latest available observations of an object's current state. When a Job fails, one of the conditions will have type "Failed" and status true. When a Job is suspended, one of the conditions will have type "Suspended" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type "Complete" and status true. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * @type {Array} + * @memberof IoK8sApiBatchV1JobStatus + */ + conditions?: Array; + /** + * The number of pods which reached phase Failed. + * @type {number} + * @memberof IoK8sApiBatchV1JobStatus + */ + failed?: number; + /** + * FailedIndexes holds the failed indexes when backoffLimitPerIndex=true. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). + * @type {string} + * @memberof IoK8sApiBatchV1JobStatus + */ + failedIndexes?: string; + /** + * The number of pods which have a Ready condition. + * @type {number} + * @memberof IoK8sApiBatchV1JobStatus + */ + ready?: number; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiBatchV1JobStatus + */ + startTime?: string; + /** + * The number of pods which reached phase Succeeded. + * @type {number} + * @memberof IoK8sApiBatchV1JobStatus + */ + succeeded?: number; + /** + * The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp). + * + * This field is beta-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (enabled by default). + * @type {number} + * @memberof IoK8sApiBatchV1JobStatus + */ + terminating?: number; + /** + * + * @type {IoK8sApiBatchV1UncountedTerminatedPods} + * @memberof IoK8sApiBatchV1JobStatus + */ + uncountedTerminatedPods?: IoK8sApiBatchV1UncountedTerminatedPods; +} + +/** + * Check if a given object implements the IoK8sApiBatchV1JobStatus interface. + */ +export function instanceOfIoK8sApiBatchV1JobStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiBatchV1JobStatusFromJSON(json: any): IoK8sApiBatchV1JobStatus { + return IoK8sApiBatchV1JobStatusFromJSONTyped(json, false); +} + +export function IoK8sApiBatchV1JobStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiBatchV1JobStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'active': !exists(json, 'active') ? undefined : json['active'], + 'completedIndexes': !exists(json, 'completedIndexes') ? undefined : json['completedIndexes'], + 'completionTime': !exists(json, 'completionTime') ? undefined : json['completionTime'], + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(IoK8sApiBatchV1JobConditionFromJSON)), + 'failed': !exists(json, 'failed') ? undefined : json['failed'], + 'failedIndexes': !exists(json, 'failedIndexes') ? undefined : json['failedIndexes'], + 'ready': !exists(json, 'ready') ? undefined : json['ready'], + 'startTime': !exists(json, 'startTime') ? undefined : json['startTime'], + 'succeeded': !exists(json, 'succeeded') ? undefined : json['succeeded'], + 'terminating': !exists(json, 'terminating') ? undefined : json['terminating'], + 'uncountedTerminatedPods': !exists(json, 'uncountedTerminatedPods') ? undefined : IoK8sApiBatchV1UncountedTerminatedPodsFromJSON(json['uncountedTerminatedPods']), + }; +} + +export function IoK8sApiBatchV1JobStatusToJSON(value?: IoK8sApiBatchV1JobStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'active': value.active, + 'completedIndexes': value.completedIndexes, + 'completionTime': value.completionTime === undefined ? undefined : (value.completionTime), + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(IoK8sApiBatchV1JobConditionToJSON)), + 'failed': value.failed, + 'failedIndexes': value.failedIndexes, + 'ready': value.ready, + 'startTime': value.startTime === undefined ? undefined : (value.startTime), + 'succeeded': value.succeeded, + 'terminating': value.terminating, + 'uncountedTerminatedPods': IoK8sApiBatchV1UncountedTerminatedPodsToJSON(value.uncountedTerminatedPods), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1JobTemplateSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1JobTemplateSpec.ts new file mode 100644 index 000000000..e056f3745 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1JobTemplateSpec.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiBatchV1JobSpec } from './IoK8sApiBatchV1JobSpec'; +import { + IoK8sApiBatchV1JobSpecFromJSON, + IoK8sApiBatchV1JobSpecFromJSONTyped, + IoK8sApiBatchV1JobSpecToJSON, +} from './IoK8sApiBatchV1JobSpec'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * JobTemplateSpec describes the data a Job should have when created from a template + * @export + * @interface IoK8sApiBatchV1JobTemplateSpec + */ +export interface IoK8sApiBatchV1JobTemplateSpec { + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiBatchV1JobTemplateSpec + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiBatchV1JobSpec} + * @memberof IoK8sApiBatchV1JobTemplateSpec + */ + spec?: IoK8sApiBatchV1JobSpec; +} + +/** + * Check if a given object implements the IoK8sApiBatchV1JobTemplateSpec interface. + */ +export function instanceOfIoK8sApiBatchV1JobTemplateSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiBatchV1JobTemplateSpecFromJSON(json: any): IoK8sApiBatchV1JobTemplateSpec { + return IoK8sApiBatchV1JobTemplateSpecFromJSONTyped(json, false); +} + +export function IoK8sApiBatchV1JobTemplateSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiBatchV1JobTemplateSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiBatchV1JobSpecFromJSON(json['spec']), + }; +} + +export function IoK8sApiBatchV1JobTemplateSpecToJSON(value?: IoK8sApiBatchV1JobTemplateSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiBatchV1JobSpecToJSON(value.spec), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1PodFailurePolicy.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1PodFailurePolicy.ts new file mode 100644 index 000000000..00441d916 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1PodFailurePolicy.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiBatchV1PodFailurePolicyRule } from './IoK8sApiBatchV1PodFailurePolicyRule'; +import { + IoK8sApiBatchV1PodFailurePolicyRuleFromJSON, + IoK8sApiBatchV1PodFailurePolicyRuleFromJSONTyped, + IoK8sApiBatchV1PodFailurePolicyRuleToJSON, +} from './IoK8sApiBatchV1PodFailurePolicyRule'; + +/** + * PodFailurePolicy describes how failed pods influence the backoffLimit. + * @export + * @interface IoK8sApiBatchV1PodFailurePolicy + */ +export interface IoK8sApiBatchV1PodFailurePolicy { + /** + * A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed. + * @type {Array} + * @memberof IoK8sApiBatchV1PodFailurePolicy + */ + rules: Array; +} + +/** + * Check if a given object implements the IoK8sApiBatchV1PodFailurePolicy interface. + */ +export function instanceOfIoK8sApiBatchV1PodFailurePolicy(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "rules" in value; + + return isInstance; +} + +export function IoK8sApiBatchV1PodFailurePolicyFromJSON(json: any): IoK8sApiBatchV1PodFailurePolicy { + return IoK8sApiBatchV1PodFailurePolicyFromJSONTyped(json, false); +} + +export function IoK8sApiBatchV1PodFailurePolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiBatchV1PodFailurePolicy { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'rules': ((json['rules'] as Array).map(IoK8sApiBatchV1PodFailurePolicyRuleFromJSON)), + }; +} + +export function IoK8sApiBatchV1PodFailurePolicyToJSON(value?: IoK8sApiBatchV1PodFailurePolicy | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'rules': ((value.rules as Array).map(IoK8sApiBatchV1PodFailurePolicyRuleToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirement.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirement.ts new file mode 100644 index 000000000..ee7cda43b --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirement.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check. + * @export + * @interface IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirement + */ +export interface IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirement { + /** + * Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template. + * @type {string} + * @memberof IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirement + */ + containerName?: string; + /** + * Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are: + * + * - In: the requirement is satisfied if at least one container exit code + * (might be multiple if there are multiple containers not restricted + * by the 'containerName' field) is in the set of specified values. + * - NotIn: the requirement is satisfied if at least one container exit code + * (might be multiple if there are multiple containers not restricted + * by the 'containerName' field) is not in the set of specified values. + * Additional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied. + * @type {string} + * @memberof IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirement + */ + operator: string; + /** + * Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed. + * @type {Array} + * @memberof IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirement + */ + values: Array; +} + +/** + * Check if a given object implements the IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirement interface. + */ +export function instanceOfIoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirement(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "operator" in value; + isInstance = isInstance && "values" in value; + + return isInstance; +} + +export function IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirementFromJSON(json: any): IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirement { + return IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirementFromJSONTyped(json, false); +} + +export function IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirementFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirement { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'containerName': !exists(json, 'containerName') ? undefined : json['containerName'], + 'operator': json['operator'], + 'values': json['values'], + }; +} + +export function IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirementToJSON(value?: IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirement | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'containerName': value.containerName, + 'operator': value.operator, + 'values': value.values, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1PodFailurePolicyOnPodConditionsPattern.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1PodFailurePolicyOnPodConditionsPattern.ts new file mode 100644 index 000000000..f19f611cd --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1PodFailurePolicyOnPodConditionsPattern.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type. + * @export + * @interface IoK8sApiBatchV1PodFailurePolicyOnPodConditionsPattern + */ +export interface IoK8sApiBatchV1PodFailurePolicyOnPodConditionsPattern { + /** + * Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True. + * @type {string} + * @memberof IoK8sApiBatchV1PodFailurePolicyOnPodConditionsPattern + */ + status: string; + /** + * Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type. + * @type {string} + * @memberof IoK8sApiBatchV1PodFailurePolicyOnPodConditionsPattern + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApiBatchV1PodFailurePolicyOnPodConditionsPattern interface. + */ +export function instanceOfIoK8sApiBatchV1PodFailurePolicyOnPodConditionsPattern(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "status" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiBatchV1PodFailurePolicyOnPodConditionsPatternFromJSON(json: any): IoK8sApiBatchV1PodFailurePolicyOnPodConditionsPattern { + return IoK8sApiBatchV1PodFailurePolicyOnPodConditionsPatternFromJSONTyped(json, false); +} + +export function IoK8sApiBatchV1PodFailurePolicyOnPodConditionsPatternFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiBatchV1PodFailurePolicyOnPodConditionsPattern { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'status': json['status'], + 'type': json['type'], + }; +} + +export function IoK8sApiBatchV1PodFailurePolicyOnPodConditionsPatternToJSON(value?: IoK8sApiBatchV1PodFailurePolicyOnPodConditionsPattern | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1PodFailurePolicyRule.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1PodFailurePolicyRule.ts new file mode 100644 index 000000000..c4de8fcc2 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1PodFailurePolicyRule.ts @@ -0,0 +1,107 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirement } from './IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirement'; +import { + IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirementFromJSON, + IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirementFromJSONTyped, + IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirementToJSON, +} from './IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirement'; +import type { IoK8sApiBatchV1PodFailurePolicyOnPodConditionsPattern } from './IoK8sApiBatchV1PodFailurePolicyOnPodConditionsPattern'; +import { + IoK8sApiBatchV1PodFailurePolicyOnPodConditionsPatternFromJSON, + IoK8sApiBatchV1PodFailurePolicyOnPodConditionsPatternFromJSONTyped, + IoK8sApiBatchV1PodFailurePolicyOnPodConditionsPatternToJSON, +} from './IoK8sApiBatchV1PodFailurePolicyOnPodConditionsPattern'; + +/** + * PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule. + * @export + * @interface IoK8sApiBatchV1PodFailurePolicyRule + */ +export interface IoK8sApiBatchV1PodFailurePolicyRule { + /** + * Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: + * + * - FailJob: indicates that the pod's job is marked as Failed and all + * running pods are terminated. + * - FailIndex: indicates that the pod's index is marked as Failed and will + * not be restarted. + * This value is beta-level. It can be used when the + * `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). + * - Ignore: indicates that the counter towards the .backoffLimit is not + * incremented and a replacement pod is created. + * - Count: indicates that the pod is handled in the default way - the + * counter towards the .backoffLimit is incremented. + * Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule. + * @type {string} + * @memberof IoK8sApiBatchV1PodFailurePolicyRule + */ + action: string; + /** + * + * @type {IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirement} + * @memberof IoK8sApiBatchV1PodFailurePolicyRule + */ + onExitCodes?: IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirement; + /** + * Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed. + * @type {Array} + * @memberof IoK8sApiBatchV1PodFailurePolicyRule + */ + onPodConditions?: Array; +} + +/** + * Check if a given object implements the IoK8sApiBatchV1PodFailurePolicyRule interface. + */ +export function instanceOfIoK8sApiBatchV1PodFailurePolicyRule(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "action" in value; + + return isInstance; +} + +export function IoK8sApiBatchV1PodFailurePolicyRuleFromJSON(json: any): IoK8sApiBatchV1PodFailurePolicyRule { + return IoK8sApiBatchV1PodFailurePolicyRuleFromJSONTyped(json, false); +} + +export function IoK8sApiBatchV1PodFailurePolicyRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiBatchV1PodFailurePolicyRule { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'action': json['action'], + 'onExitCodes': !exists(json, 'onExitCodes') ? undefined : IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirementFromJSON(json['onExitCodes']), + 'onPodConditions': !exists(json, 'onPodConditions') ? undefined : ((json['onPodConditions'] as Array).map(IoK8sApiBatchV1PodFailurePolicyOnPodConditionsPatternFromJSON)), + }; +} + +export function IoK8sApiBatchV1PodFailurePolicyRuleToJSON(value?: IoK8sApiBatchV1PodFailurePolicyRule | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'action': value.action, + 'onExitCodes': IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirementToJSON(value.onExitCodes), + 'onPodConditions': value.onPodConditions === undefined ? undefined : ((value.onPodConditions as Array).map(IoK8sApiBatchV1PodFailurePolicyOnPodConditionsPatternToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1UncountedTerminatedPods.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1UncountedTerminatedPods.ts new file mode 100644 index 000000000..24c802e35 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiBatchV1UncountedTerminatedPods.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters. + * @export + * @interface IoK8sApiBatchV1UncountedTerminatedPods + */ +export interface IoK8sApiBatchV1UncountedTerminatedPods { + /** + * failed holds UIDs of failed Pods. + * @type {Array} + * @memberof IoK8sApiBatchV1UncountedTerminatedPods + */ + failed?: string[]; + /** + * succeeded holds UIDs of succeeded Pods. + * @type {Array} + * @memberof IoK8sApiBatchV1UncountedTerminatedPods + */ + succeeded?: string[]; +} + +/** + * Check if a given object implements the IoK8sApiBatchV1UncountedTerminatedPods interface. + */ +export function instanceOfIoK8sApiBatchV1UncountedTerminatedPods(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiBatchV1UncountedTerminatedPodsFromJSON(json: any): IoK8sApiBatchV1UncountedTerminatedPods { + return IoK8sApiBatchV1UncountedTerminatedPodsFromJSONTyped(json, false); +} + +export function IoK8sApiBatchV1UncountedTerminatedPodsFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiBatchV1UncountedTerminatedPods { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'failed': !exists(json, 'failed') ? undefined : json['failed'], + 'succeeded': !exists(json, 'succeeded') ? undefined : json['succeeded'], + }; +} + +export function IoK8sApiBatchV1UncountedTerminatedPodsToJSON(value?: IoK8sApiBatchV1UncountedTerminatedPods | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'failed': value.failed, + 'succeeded': value.succeeded, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1CertificateSigningRequest.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1CertificateSigningRequest.ts new file mode 100644 index 000000000..fba8febb9 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1CertificateSigningRequest.ts @@ -0,0 +1,123 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCertificatesV1CertificateSigningRequestSpec } from './IoK8sApiCertificatesV1CertificateSigningRequestSpec'; +import { + IoK8sApiCertificatesV1CertificateSigningRequestSpecFromJSON, + IoK8sApiCertificatesV1CertificateSigningRequestSpecFromJSONTyped, + IoK8sApiCertificatesV1CertificateSigningRequestSpecToJSON, +} from './IoK8sApiCertificatesV1CertificateSigningRequestSpec'; +import type { IoK8sApiCertificatesV1CertificateSigningRequestStatus } from './IoK8sApiCertificatesV1CertificateSigningRequestStatus'; +import { + IoK8sApiCertificatesV1CertificateSigningRequestStatusFromJSON, + IoK8sApiCertificatesV1CertificateSigningRequestStatusFromJSONTyped, + IoK8sApiCertificatesV1CertificateSigningRequestStatusToJSON, +} from './IoK8sApiCertificatesV1CertificateSigningRequestStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued. + * + * Kubelets use this API to obtain: + * 1. client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client-kubelet" signerName). + * 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the "kubernetes.io/kubelet-serving" signerName). + * + * This API can be used to request client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client" signerName), or to obtain certificates from custom non-Kubernetes signers. + * @export + * @interface IoK8sApiCertificatesV1CertificateSigningRequest + */ +export interface IoK8sApiCertificatesV1CertificateSigningRequest { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCertificatesV1CertificateSigningRequest + */ + 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 + * @type {string} + * @memberof IoK8sApiCertificatesV1CertificateSigningRequest + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiCertificatesV1CertificateSigningRequest + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiCertificatesV1CertificateSigningRequestSpec} + * @memberof IoK8sApiCertificatesV1CertificateSigningRequest + */ + spec: IoK8sApiCertificatesV1CertificateSigningRequestSpec; + /** + * + * @type {IoK8sApiCertificatesV1CertificateSigningRequestStatus} + * @memberof IoK8sApiCertificatesV1CertificateSigningRequest + */ + status?: IoK8sApiCertificatesV1CertificateSigningRequestStatus; +} + +/** + * Check if a given object implements the IoK8sApiCertificatesV1CertificateSigningRequest interface. + */ +export function instanceOfIoK8sApiCertificatesV1CertificateSigningRequest(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function IoK8sApiCertificatesV1CertificateSigningRequestFromJSON(json: any): IoK8sApiCertificatesV1CertificateSigningRequest { + return IoK8sApiCertificatesV1CertificateSigningRequestFromJSONTyped(json, false); +} + +export function IoK8sApiCertificatesV1CertificateSigningRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCertificatesV1CertificateSigningRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': IoK8sApiCertificatesV1CertificateSigningRequestSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiCertificatesV1CertificateSigningRequestStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiCertificatesV1CertificateSigningRequestToJSON(value?: IoK8sApiCertificatesV1CertificateSigningRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiCertificatesV1CertificateSigningRequestSpecToJSON(value.spec), + 'status': IoK8sApiCertificatesV1CertificateSigningRequestStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1CertificateSigningRequestCondition.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1CertificateSigningRequestCondition.ts new file mode 100644 index 000000000..57b354423 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1CertificateSigningRequestCondition.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object + * @export + * @interface IoK8sApiCertificatesV1CertificateSigningRequestCondition + */ +export interface IoK8sApiCertificatesV1CertificateSigningRequestCondition { + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiCertificatesV1CertificateSigningRequestCondition + */ + lastTransitionTime?: string; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiCertificatesV1CertificateSigningRequestCondition + */ + lastUpdateTime?: string; + /** + * message contains a human readable message with details about the request state + * @type {string} + * @memberof IoK8sApiCertificatesV1CertificateSigningRequestCondition + */ + message?: string; + /** + * reason indicates a brief reason for the request state + * @type {string} + * @memberof IoK8sApiCertificatesV1CertificateSigningRequestCondition + */ + reason?: string; + /** + * status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be "False" or "Unknown". + * @type {string} + * @memberof IoK8sApiCertificatesV1CertificateSigningRequestCondition + */ + status: string; + /** + * type of the condition. Known conditions are "Approved", "Denied", and "Failed". + * + * An "Approved" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer. + * + * A "Denied" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer. + * + * A "Failed" condition is added via the /status subresource, indicating the signer failed to issue the certificate. + * + * Approved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added. + * + * Only one condition of a given type is allowed. + * @type {string} + * @memberof IoK8sApiCertificatesV1CertificateSigningRequestCondition + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApiCertificatesV1CertificateSigningRequestCondition interface. + */ +export function instanceOfIoK8sApiCertificatesV1CertificateSigningRequestCondition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "status" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiCertificatesV1CertificateSigningRequestConditionFromJSON(json: any): IoK8sApiCertificatesV1CertificateSigningRequestCondition { + return IoK8sApiCertificatesV1CertificateSigningRequestConditionFromJSONTyped(json, false); +} + +export function IoK8sApiCertificatesV1CertificateSigningRequestConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCertificatesV1CertificateSigningRequestCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'lastTransitionTime': !exists(json, 'lastTransitionTime') ? undefined : json['lastTransitionTime'], + 'lastUpdateTime': !exists(json, 'lastUpdateTime') ? undefined : json['lastUpdateTime'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'status': json['status'], + 'type': json['type'], + }; +} + +export function IoK8sApiCertificatesV1CertificateSigningRequestConditionToJSON(value?: IoK8sApiCertificatesV1CertificateSigningRequestCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'lastTransitionTime': value.lastTransitionTime === undefined ? undefined : (value.lastTransitionTime), + 'lastUpdateTime': value.lastUpdateTime === undefined ? undefined : (value.lastUpdateTime), + 'message': value.message, + 'reason': value.reason, + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1CertificateSigningRequestList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1CertificateSigningRequestList.ts new file mode 100644 index 000000000..f87581ffc --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1CertificateSigningRequestList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCertificatesV1CertificateSigningRequest } from './IoK8sApiCertificatesV1CertificateSigningRequest'; +import { + IoK8sApiCertificatesV1CertificateSigningRequestFromJSON, + IoK8sApiCertificatesV1CertificateSigningRequestFromJSONTyped, + IoK8sApiCertificatesV1CertificateSigningRequestToJSON, +} from './IoK8sApiCertificatesV1CertificateSigningRequest'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * CertificateSigningRequestList is a collection of CertificateSigningRequest objects + * @export + * @interface IoK8sApiCertificatesV1CertificateSigningRequestList + */ +export interface IoK8sApiCertificatesV1CertificateSigningRequestList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCertificatesV1CertificateSigningRequestList + */ + apiVersion?: string; + /** + * items is a collection of CertificateSigningRequest objects + * @type {Array} + * @memberof IoK8sApiCertificatesV1CertificateSigningRequestList + */ + 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 + * @type {string} + * @memberof IoK8sApiCertificatesV1CertificateSigningRequestList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiCertificatesV1CertificateSigningRequestList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiCertificatesV1CertificateSigningRequestList interface. + */ +export function instanceOfIoK8sApiCertificatesV1CertificateSigningRequestList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiCertificatesV1CertificateSigningRequestListFromJSON(json: any): IoK8sApiCertificatesV1CertificateSigningRequestList { + return IoK8sApiCertificatesV1CertificateSigningRequestListFromJSONTyped(json, false); +} + +export function IoK8sApiCertificatesV1CertificateSigningRequestListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCertificatesV1CertificateSigningRequestList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiCertificatesV1CertificateSigningRequestFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiCertificatesV1CertificateSigningRequestListToJSON(value?: IoK8sApiCertificatesV1CertificateSigningRequestList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiCertificatesV1CertificateSigningRequestToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1CertificateSigningRequestSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1CertificateSigningRequestSpec.ts new file mode 100644 index 000000000..23e5e97ea --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1CertificateSigningRequestSpec.ts @@ -0,0 +1,167 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * CertificateSigningRequestSpec contains the certificate request. + * @export + * @interface IoK8sApiCertificatesV1CertificateSigningRequestSpec + */ +export interface IoK8sApiCertificatesV1CertificateSigningRequestSpec { + /** + * expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the issued certificate to determine the actual duration. + * + * The v1.22+ in-tree implementations of the well-known Kubernetes signers will honor this field as long as the requested duration is not greater than the maximum duration they will honor per the --cluster-signing-duration CLI flag to the Kubernetes controller manager. + * + * Certificate signers may not honor this field for various reasons: + * + * 1. Old signer that is unaware of the field (such as the in-tree + * implementations prior to v1.22) + * 2. Signer whose configured maximum is shorter than the requested duration + * 3. Signer whose configured minimum is longer than the requested duration + * + * The minimum valid value for expirationSeconds is 600, i.e. 10 minutes. + * @type {number} + * @memberof IoK8sApiCertificatesV1CertificateSigningRequestSpec + */ + expirationSeconds?: number; + /** + * extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. + * @type {{ [key: string]: string[]; }} + * @memberof IoK8sApiCertificatesV1CertificateSigningRequestSpec + */ + extra?: { [key: string]: string[]; }; + /** + * groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. + * @type {Array} + * @memberof IoK8sApiCertificatesV1CertificateSigningRequestSpec + */ + groups?: string[]; + /** + * request contains an x509 certificate signing request encoded in a "CERTIFICATE REQUEST" PEM block. When serialized as JSON or YAML, the data is additionally base64-encoded. + * @type {string} + * @memberof IoK8sApiCertificatesV1CertificateSigningRequestSpec + */ + request: string; + /** + * signerName indicates the requested signer, and is a qualified name. + * + * List/watch requests for CertificateSigningRequests can filter on this field using a "spec.signerName=NAME" fieldSelector. + * + * Well-known Kubernetes signers are: + * 1. "kubernetes.io/kube-apiserver-client": issues client certificates that can be used to authenticate to kube-apiserver. + * Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the "csrsigning" controller in kube-controller-manager. + * 2. "kubernetes.io/kube-apiserver-client-kubelet": issues client certificates that kubelets use to authenticate to kube-apiserver. + * Requests for this signer can be auto-approved by the "csrapproving" controller in kube-controller-manager, and can be issued by the "csrsigning" controller in kube-controller-manager. + * 3. "kubernetes.io/kubelet-serving" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely. + * Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the "csrsigning" controller in kube-controller-manager. + * + * More details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers + * + * Custom signerNames can also be specified. The signer defines: + * 1. Trust distribution: how trust (CA bundles) are distributed. + * 2. Permitted subjects: and behavior when a disallowed subject is requested. + * 3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested. + * 4. Required, permitted, or forbidden key usages / extended key usages. + * 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin. + * 6. Whether or not requests for CA certificates are allowed. + * @type {string} + * @memberof IoK8sApiCertificatesV1CertificateSigningRequestSpec + */ + signerName: string; + /** + * uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. + * @type {string} + * @memberof IoK8sApiCertificatesV1CertificateSigningRequestSpec + */ + uid?: string; + /** + * usages specifies a set of key usages requested in the issued certificate. + * + * Requests for TLS client certificates typically request: "digital signature", "key encipherment", "client auth". + * + * Requests for TLS serving certificates typically request: "key encipherment", "digital signature", "server auth". + * + * Valid values are: + * "signing", "digital signature", "content commitment", + * "key encipherment", "key agreement", "data encipherment", + * "cert sign", "crl sign", "encipher only", "decipher only", "any", + * "server auth", "client auth", + * "code signing", "email protection", "s/mime", + * "ipsec end system", "ipsec tunnel", "ipsec user", + * "timestamping", "ocsp signing", "microsoft sgc", "netscape sgc" + * @type {Array} + * @memberof IoK8sApiCertificatesV1CertificateSigningRequestSpec + */ + usages?: string[]; + /** + * username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. + * @type {string} + * @memberof IoK8sApiCertificatesV1CertificateSigningRequestSpec + */ + username?: string; +} + +/** + * Check if a given object implements the IoK8sApiCertificatesV1CertificateSigningRequestSpec interface. + */ +export function instanceOfIoK8sApiCertificatesV1CertificateSigningRequestSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "request" in value; + isInstance = isInstance && "signerName" in value; + + return isInstance; +} + +export function IoK8sApiCertificatesV1CertificateSigningRequestSpecFromJSON(json: any): IoK8sApiCertificatesV1CertificateSigningRequestSpec { + return IoK8sApiCertificatesV1CertificateSigningRequestSpecFromJSONTyped(json, false); +} + +export function IoK8sApiCertificatesV1CertificateSigningRequestSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCertificatesV1CertificateSigningRequestSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'expirationSeconds': !exists(json, 'expirationSeconds') ? undefined : json['expirationSeconds'], + 'extra': !exists(json, 'extra') ? undefined : json['extra'], + 'groups': !exists(json, 'groups') ? undefined : json['groups'], + 'request': json['request'], + 'signerName': json['signerName'], + 'uid': !exists(json, 'uid') ? undefined : json['uid'], + 'usages': !exists(json, 'usages') ? undefined : json['usages'], + 'username': !exists(json, 'username') ? undefined : json['username'], + }; +} + +export function IoK8sApiCertificatesV1CertificateSigningRequestSpecToJSON(value?: IoK8sApiCertificatesV1CertificateSigningRequestSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'expirationSeconds': value.expirationSeconds, + 'extra': value.extra, + 'groups': value.groups, + 'request': value.request, + 'signerName': value.signerName, + 'uid': value.uid, + 'usages': value.usages, + 'username': value.username, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1CertificateSigningRequestStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1CertificateSigningRequestStatus.ts new file mode 100644 index 000000000..a79d3b7aa --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1CertificateSigningRequestStatus.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCertificatesV1CertificateSigningRequestCondition } from './IoK8sApiCertificatesV1CertificateSigningRequestCondition'; +import { + IoK8sApiCertificatesV1CertificateSigningRequestConditionFromJSON, + IoK8sApiCertificatesV1CertificateSigningRequestConditionFromJSONTyped, + IoK8sApiCertificatesV1CertificateSigningRequestConditionToJSON, +} from './IoK8sApiCertificatesV1CertificateSigningRequestCondition'; + +/** + * CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate. + * @export + * @interface IoK8sApiCertificatesV1CertificateSigningRequestStatus + */ +export interface IoK8sApiCertificatesV1CertificateSigningRequestStatus { + /** + * certificate is populated with an issued certificate by the signer after an Approved condition is present. This field is set via the /status subresource. Once populated, this field is immutable. + * + * If the certificate signing request is denied, a condition of type "Denied" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type "Failed" is added and this field remains empty. + * + * Validation requirements: + * 1. certificate must contain one or more PEM blocks. + * 2. All PEM blocks must have the "CERTIFICATE" label, contain no headers, and the encoded data + * must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280. + * 3. Non-PEM content may appear before or after the "CERTIFICATE" PEM blocks and is unvalidated, + * to allow for explanatory text as described in section 5.2 of RFC7468. + * + * If more than one PEM block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes. + * + * The certificate is encoded in PEM format. + * + * When serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of: + * + * base64( + * -----BEGIN CERTIFICATE----- + * ... + * -----END CERTIFICATE----- + * ) + * @type {string} + * @memberof IoK8sApiCertificatesV1CertificateSigningRequestStatus + */ + certificate?: string; + /** + * conditions applied to the request. Known conditions are "Approved", "Denied", and "Failed". + * @type {Array} + * @memberof IoK8sApiCertificatesV1CertificateSigningRequestStatus + */ + conditions?: Array; +} + +/** + * Check if a given object implements the IoK8sApiCertificatesV1CertificateSigningRequestStatus interface. + */ +export function instanceOfIoK8sApiCertificatesV1CertificateSigningRequestStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCertificatesV1CertificateSigningRequestStatusFromJSON(json: any): IoK8sApiCertificatesV1CertificateSigningRequestStatus { + return IoK8sApiCertificatesV1CertificateSigningRequestStatusFromJSONTyped(json, false); +} + +export function IoK8sApiCertificatesV1CertificateSigningRequestStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCertificatesV1CertificateSigningRequestStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'certificate': !exists(json, 'certificate') ? undefined : json['certificate'], + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(IoK8sApiCertificatesV1CertificateSigningRequestConditionFromJSON)), + }; +} + +export function IoK8sApiCertificatesV1CertificateSigningRequestStatusToJSON(value?: IoK8sApiCertificatesV1CertificateSigningRequestStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'certificate': value.certificate, + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(IoK8sApiCertificatesV1CertificateSigningRequestConditionToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1alpha1ClusterTrustBundle.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1alpha1ClusterTrustBundle.ts new file mode 100644 index 000000000..9fd12eec1 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1alpha1ClusterTrustBundle.ts @@ -0,0 +1,107 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCertificatesV1alpha1ClusterTrustBundleSpec } from './IoK8sApiCertificatesV1alpha1ClusterTrustBundleSpec'; +import { + IoK8sApiCertificatesV1alpha1ClusterTrustBundleSpecFromJSON, + IoK8sApiCertificatesV1alpha1ClusterTrustBundleSpecFromJSONTyped, + IoK8sApiCertificatesV1alpha1ClusterTrustBundleSpecToJSON, +} from './IoK8sApiCertificatesV1alpha1ClusterTrustBundleSpec'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates). + * + * ClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to. + * + * It can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle. + * @export + * @interface IoK8sApiCertificatesV1alpha1ClusterTrustBundle + */ +export interface IoK8sApiCertificatesV1alpha1ClusterTrustBundle { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCertificatesV1alpha1ClusterTrustBundle + */ + 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 + * @type {string} + * @memberof IoK8sApiCertificatesV1alpha1ClusterTrustBundle + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiCertificatesV1alpha1ClusterTrustBundle + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiCertificatesV1alpha1ClusterTrustBundleSpec} + * @memberof IoK8sApiCertificatesV1alpha1ClusterTrustBundle + */ + spec: IoK8sApiCertificatesV1alpha1ClusterTrustBundleSpec; +} + +/** + * Check if a given object implements the IoK8sApiCertificatesV1alpha1ClusterTrustBundle interface. + */ +export function instanceOfIoK8sApiCertificatesV1alpha1ClusterTrustBundle(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function IoK8sApiCertificatesV1alpha1ClusterTrustBundleFromJSON(json: any): IoK8sApiCertificatesV1alpha1ClusterTrustBundle { + return IoK8sApiCertificatesV1alpha1ClusterTrustBundleFromJSONTyped(json, false); +} + +export function IoK8sApiCertificatesV1alpha1ClusterTrustBundleFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCertificatesV1alpha1ClusterTrustBundle { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': IoK8sApiCertificatesV1alpha1ClusterTrustBundleSpecFromJSON(json['spec']), + }; +} + +export function IoK8sApiCertificatesV1alpha1ClusterTrustBundleToJSON(value?: IoK8sApiCertificatesV1alpha1ClusterTrustBundle | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiCertificatesV1alpha1ClusterTrustBundleSpecToJSON(value.spec), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1alpha1ClusterTrustBundleList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1alpha1ClusterTrustBundleList.ts new file mode 100644 index 000000000..987f6f288 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1alpha1ClusterTrustBundleList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCertificatesV1alpha1ClusterTrustBundle } from './IoK8sApiCertificatesV1alpha1ClusterTrustBundle'; +import { + IoK8sApiCertificatesV1alpha1ClusterTrustBundleFromJSON, + IoK8sApiCertificatesV1alpha1ClusterTrustBundleFromJSONTyped, + IoK8sApiCertificatesV1alpha1ClusterTrustBundleToJSON, +} from './IoK8sApiCertificatesV1alpha1ClusterTrustBundle'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * ClusterTrustBundleList is a collection of ClusterTrustBundle objects + * @export + * @interface IoK8sApiCertificatesV1alpha1ClusterTrustBundleList + */ +export interface IoK8sApiCertificatesV1alpha1ClusterTrustBundleList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCertificatesV1alpha1ClusterTrustBundleList + */ + apiVersion?: string; + /** + * items is a collection of ClusterTrustBundle objects + * @type {Array} + * @memberof IoK8sApiCertificatesV1alpha1ClusterTrustBundleList + */ + 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 + * @type {string} + * @memberof IoK8sApiCertificatesV1alpha1ClusterTrustBundleList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiCertificatesV1alpha1ClusterTrustBundleList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiCertificatesV1alpha1ClusterTrustBundleList interface. + */ +export function instanceOfIoK8sApiCertificatesV1alpha1ClusterTrustBundleList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiCertificatesV1alpha1ClusterTrustBundleListFromJSON(json: any): IoK8sApiCertificatesV1alpha1ClusterTrustBundleList { + return IoK8sApiCertificatesV1alpha1ClusterTrustBundleListFromJSONTyped(json, false); +} + +export function IoK8sApiCertificatesV1alpha1ClusterTrustBundleListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCertificatesV1alpha1ClusterTrustBundleList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiCertificatesV1alpha1ClusterTrustBundleFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiCertificatesV1alpha1ClusterTrustBundleListToJSON(value?: IoK8sApiCertificatesV1alpha1ClusterTrustBundleList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiCertificatesV1alpha1ClusterTrustBundleToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1alpha1ClusterTrustBundleSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1alpha1ClusterTrustBundleSpec.ts new file mode 100644 index 000000000..8f83690d5 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCertificatesV1alpha1ClusterTrustBundleSpec.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ClusterTrustBundleSpec contains the signer and trust anchors. + * @export + * @interface IoK8sApiCertificatesV1alpha1ClusterTrustBundleSpec + */ +export interface IoK8sApiCertificatesV1alpha1ClusterTrustBundleSpec { + /** + * signerName indicates the associated signer, if any. + * + * In order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName= verb=attest. + * + * If signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`. + * + * If signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix. + * + * List/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector. + * @type {string} + * @memberof IoK8sApiCertificatesV1alpha1ClusterTrustBundleSpec + */ + signerName?: string; + /** + * trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates. + * + * The data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers. + * + * Users of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data. + * @type {string} + * @memberof IoK8sApiCertificatesV1alpha1ClusterTrustBundleSpec + */ + trustBundle: string; +} + +/** + * Check if a given object implements the IoK8sApiCertificatesV1alpha1ClusterTrustBundleSpec interface. + */ +export function instanceOfIoK8sApiCertificatesV1alpha1ClusterTrustBundleSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "trustBundle" in value; + + return isInstance; +} + +export function IoK8sApiCertificatesV1alpha1ClusterTrustBundleSpecFromJSON(json: any): IoK8sApiCertificatesV1alpha1ClusterTrustBundleSpec { + return IoK8sApiCertificatesV1alpha1ClusterTrustBundleSpecFromJSONTyped(json, false); +} + +export function IoK8sApiCertificatesV1alpha1ClusterTrustBundleSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCertificatesV1alpha1ClusterTrustBundleSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'signerName': !exists(json, 'signerName') ? undefined : json['signerName'], + 'trustBundle': json['trustBundle'], + }; +} + +export function IoK8sApiCertificatesV1alpha1ClusterTrustBundleSpecToJSON(value?: IoK8sApiCertificatesV1alpha1ClusterTrustBundleSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'signerName': value.signerName, + 'trustBundle': value.trustBundle, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoordinationV1Lease.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoordinationV1Lease.ts new file mode 100644 index 000000000..ef64d2482 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoordinationV1Lease.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoordinationV1LeaseSpec } from './IoK8sApiCoordinationV1LeaseSpec'; +import { + IoK8sApiCoordinationV1LeaseSpecFromJSON, + IoK8sApiCoordinationV1LeaseSpecFromJSONTyped, + IoK8sApiCoordinationV1LeaseSpecToJSON, +} from './IoK8sApiCoordinationV1LeaseSpec'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * Lease defines a lease concept. + * @export + * @interface IoK8sApiCoordinationV1Lease + */ +export interface IoK8sApiCoordinationV1Lease { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoordinationV1Lease + */ + 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 + * @type {string} + * @memberof IoK8sApiCoordinationV1Lease + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiCoordinationV1Lease + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiCoordinationV1LeaseSpec} + * @memberof IoK8sApiCoordinationV1Lease + */ + spec?: IoK8sApiCoordinationV1LeaseSpec; +} + +/** + * Check if a given object implements the IoK8sApiCoordinationV1Lease interface. + */ +export function instanceOfIoK8sApiCoordinationV1Lease(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoordinationV1LeaseFromJSON(json: any): IoK8sApiCoordinationV1Lease { + return IoK8sApiCoordinationV1LeaseFromJSONTyped(json, false); +} + +export function IoK8sApiCoordinationV1LeaseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoordinationV1Lease { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiCoordinationV1LeaseSpecFromJSON(json['spec']), + }; +} + +export function IoK8sApiCoordinationV1LeaseToJSON(value?: IoK8sApiCoordinationV1Lease | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiCoordinationV1LeaseSpecToJSON(value.spec), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoordinationV1LeaseList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoordinationV1LeaseList.ts new file mode 100644 index 000000000..5856a306a --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoordinationV1LeaseList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoordinationV1Lease } from './IoK8sApiCoordinationV1Lease'; +import { + IoK8sApiCoordinationV1LeaseFromJSON, + IoK8sApiCoordinationV1LeaseFromJSONTyped, + IoK8sApiCoordinationV1LeaseToJSON, +} from './IoK8sApiCoordinationV1Lease'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * LeaseList is a list of Lease objects. + * @export + * @interface IoK8sApiCoordinationV1LeaseList + */ +export interface IoK8sApiCoordinationV1LeaseList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoordinationV1LeaseList + */ + apiVersion?: string; + /** + * items is a list of schema objects. + * @type {Array} + * @memberof IoK8sApiCoordinationV1LeaseList + */ + 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 + * @type {string} + * @memberof IoK8sApiCoordinationV1LeaseList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiCoordinationV1LeaseList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiCoordinationV1LeaseList interface. + */ +export function instanceOfIoK8sApiCoordinationV1LeaseList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiCoordinationV1LeaseListFromJSON(json: any): IoK8sApiCoordinationV1LeaseList { + return IoK8sApiCoordinationV1LeaseListFromJSONTyped(json, false); +} + +export function IoK8sApiCoordinationV1LeaseListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoordinationV1LeaseList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiCoordinationV1LeaseFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiCoordinationV1LeaseListToJSON(value?: IoK8sApiCoordinationV1LeaseList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiCoordinationV1LeaseToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoordinationV1LeaseSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoordinationV1LeaseSpec.ts new file mode 100644 index 000000000..c6a55c87c --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoordinationV1LeaseSpec.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * LeaseSpec is a specification of a Lease. + * @export + * @interface IoK8sApiCoordinationV1LeaseSpec + */ +export interface IoK8sApiCoordinationV1LeaseSpec { + /** + * MicroTime is version of Time with microsecond level precision. + * @type {Date} + * @memberof IoK8sApiCoordinationV1LeaseSpec + */ + acquireTime?: string; + /** + * holderIdentity contains the identity of the holder of a current lease. + * @type {string} + * @memberof IoK8sApiCoordinationV1LeaseSpec + */ + holderIdentity?: string; + /** + * leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime. + * @type {number} + * @memberof IoK8sApiCoordinationV1LeaseSpec + */ + leaseDurationSeconds?: number; + /** + * leaseTransitions is the number of transitions of a lease between holders. + * @type {number} + * @memberof IoK8sApiCoordinationV1LeaseSpec + */ + leaseTransitions?: number; + /** + * MicroTime is version of Time with microsecond level precision. + * @type {Date} + * @memberof IoK8sApiCoordinationV1LeaseSpec + */ + renewTime?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoordinationV1LeaseSpec interface. + */ +export function instanceOfIoK8sApiCoordinationV1LeaseSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoordinationV1LeaseSpecFromJSON(json: any): IoK8sApiCoordinationV1LeaseSpec { + return IoK8sApiCoordinationV1LeaseSpecFromJSONTyped(json, false); +} + +export function IoK8sApiCoordinationV1LeaseSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoordinationV1LeaseSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'acquireTime': !exists(json, 'acquireTime') ? undefined : json['acquireTime'], + 'holderIdentity': !exists(json, 'holderIdentity') ? undefined : json['holderIdentity'], + 'leaseDurationSeconds': !exists(json, 'leaseDurationSeconds') ? undefined : json['leaseDurationSeconds'], + 'leaseTransitions': !exists(json, 'leaseTransitions') ? undefined : json['leaseTransitions'], + 'renewTime': !exists(json, 'renewTime') ? undefined : json['renewTime'], + }; +} + +export function IoK8sApiCoordinationV1LeaseSpecToJSON(value?: IoK8sApiCoordinationV1LeaseSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'acquireTime': value.acquireTime === undefined ? undefined : (value.acquireTime), + 'holderIdentity': value.holderIdentity, + 'leaseDurationSeconds': value.leaseDurationSeconds, + 'leaseTransitions': value.leaseTransitions, + 'renewTime': value.renewTime === undefined ? undefined : (value.renewTime), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1AWSElasticBlockStoreVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1AWSElasticBlockStoreVolumeSource.ts new file mode 100644 index 000000000..4850f4b68 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1AWSElasticBlockStoreVolumeSource.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Represents a Persistent Disk resource in AWS. + * + * An AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling. + * @export + * @interface IoK8sApiCoreV1AWSElasticBlockStoreVolumeSource + */ +export interface IoK8sApiCoreV1AWSElasticBlockStoreVolumeSource { + /** + * fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * @type {string} + * @memberof IoK8sApiCoreV1AWSElasticBlockStoreVolumeSource + */ + fsType?: string; + /** + * partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * @type {number} + * @memberof IoK8sApiCoreV1AWSElasticBlockStoreVolumeSource + */ + partition?: number; + /** + * readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * @type {boolean} + * @memberof IoK8sApiCoreV1AWSElasticBlockStoreVolumeSource + */ + readOnly?: boolean; + /** + * volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * @type {string} + * @memberof IoK8sApiCoreV1AWSElasticBlockStoreVolumeSource + */ + volumeID: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1AWSElasticBlockStoreVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1AWSElasticBlockStoreVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "volumeID" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1AWSElasticBlockStoreVolumeSourceFromJSON(json: any): IoK8sApiCoreV1AWSElasticBlockStoreVolumeSource { + return IoK8sApiCoreV1AWSElasticBlockStoreVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1AWSElasticBlockStoreVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1AWSElasticBlockStoreVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'fsType': !exists(json, 'fsType') ? undefined : json['fsType'], + 'partition': !exists(json, 'partition') ? undefined : json['partition'], + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + 'volumeID': json['volumeID'], + }; +} + +export function IoK8sApiCoreV1AWSElasticBlockStoreVolumeSourceToJSON(value?: IoK8sApiCoreV1AWSElasticBlockStoreVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'fsType': value.fsType, + 'partition': value.partition, + 'readOnly': value.readOnly, + 'volumeID': value.volumeID, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Affinity.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Affinity.ts new file mode 100644 index 000000000..dc3109cdb --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Affinity.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1NodeAffinity } from './IoK8sApiCoreV1NodeAffinity'; +import { + IoK8sApiCoreV1NodeAffinityFromJSON, + IoK8sApiCoreV1NodeAffinityFromJSONTyped, + IoK8sApiCoreV1NodeAffinityToJSON, +} from './IoK8sApiCoreV1NodeAffinity'; +import type { IoK8sApiCoreV1PodAffinity } from './IoK8sApiCoreV1PodAffinity'; +import { + IoK8sApiCoreV1PodAffinityFromJSON, + IoK8sApiCoreV1PodAffinityFromJSONTyped, + IoK8sApiCoreV1PodAffinityToJSON, +} from './IoK8sApiCoreV1PodAffinity'; +import type { IoK8sApiCoreV1PodAntiAffinity } from './IoK8sApiCoreV1PodAntiAffinity'; +import { + IoK8sApiCoreV1PodAntiAffinityFromJSON, + IoK8sApiCoreV1PodAntiAffinityFromJSONTyped, + IoK8sApiCoreV1PodAntiAffinityToJSON, +} from './IoK8sApiCoreV1PodAntiAffinity'; + +/** + * Affinity is a group of affinity scheduling rules. + * @export + * @interface IoK8sApiCoreV1Affinity + */ +export interface IoK8sApiCoreV1Affinity { + /** + * + * @type {IoK8sApiCoreV1NodeAffinity} + * @memberof IoK8sApiCoreV1Affinity + */ + nodeAffinity?: IoK8sApiCoreV1NodeAffinity; + /** + * + * @type {IoK8sApiCoreV1PodAffinity} + * @memberof IoK8sApiCoreV1Affinity + */ + podAffinity?: IoK8sApiCoreV1PodAffinity; + /** + * + * @type {IoK8sApiCoreV1PodAntiAffinity} + * @memberof IoK8sApiCoreV1Affinity + */ + podAntiAffinity?: IoK8sApiCoreV1PodAntiAffinity; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1Affinity interface. + */ +export function instanceOfIoK8sApiCoreV1Affinity(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1AffinityFromJSON(json: any): IoK8sApiCoreV1Affinity { + return IoK8sApiCoreV1AffinityFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1AffinityFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1Affinity { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'nodeAffinity': !exists(json, 'nodeAffinity') ? undefined : IoK8sApiCoreV1NodeAffinityFromJSON(json['nodeAffinity']), + 'podAffinity': !exists(json, 'podAffinity') ? undefined : IoK8sApiCoreV1PodAffinityFromJSON(json['podAffinity']), + 'podAntiAffinity': !exists(json, 'podAntiAffinity') ? undefined : IoK8sApiCoreV1PodAntiAffinityFromJSON(json['podAntiAffinity']), + }; +} + +export function IoK8sApiCoreV1AffinityToJSON(value?: IoK8sApiCoreV1Affinity | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'nodeAffinity': IoK8sApiCoreV1NodeAffinityToJSON(value.nodeAffinity), + 'podAffinity': IoK8sApiCoreV1PodAffinityToJSON(value.podAffinity), + 'podAntiAffinity': IoK8sApiCoreV1PodAntiAffinityToJSON(value.podAntiAffinity), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1AttachedVolume.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1AttachedVolume.ts new file mode 100644 index 000000000..62042b5d6 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1AttachedVolume.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * AttachedVolume describes a volume attached to a node + * @export + * @interface IoK8sApiCoreV1AttachedVolume + */ +export interface IoK8sApiCoreV1AttachedVolume { + /** + * DevicePath represents the device path where the volume should be available + * @type {string} + * @memberof IoK8sApiCoreV1AttachedVolume + */ + devicePath: string; + /** + * Name of the attached volume + * @type {string} + * @memberof IoK8sApiCoreV1AttachedVolume + */ + name: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1AttachedVolume interface. + */ +export function instanceOfIoK8sApiCoreV1AttachedVolume(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "devicePath" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1AttachedVolumeFromJSON(json: any): IoK8sApiCoreV1AttachedVolume { + return IoK8sApiCoreV1AttachedVolumeFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1AttachedVolumeFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1AttachedVolume { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'devicePath': json['devicePath'], + 'name': json['name'], + }; +} + +export function IoK8sApiCoreV1AttachedVolumeToJSON(value?: IoK8sApiCoreV1AttachedVolume | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'devicePath': value.devicePath, + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1AzureDiskVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1AzureDiskVolumeSource.ts new file mode 100644 index 000000000..cd2a070d9 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1AzureDiskVolumeSource.ts @@ -0,0 +1,107 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * @export + * @interface IoK8sApiCoreV1AzureDiskVolumeSource + */ +export interface IoK8sApiCoreV1AzureDiskVolumeSource { + /** + * cachingMode is the Host Caching mode: None, Read Only, Read Write. + * @type {string} + * @memberof IoK8sApiCoreV1AzureDiskVolumeSource + */ + cachingMode?: string; + /** + * diskName is the Name of the data disk in the blob storage + * @type {string} + * @memberof IoK8sApiCoreV1AzureDiskVolumeSource + */ + diskName: string; + /** + * diskURI is the URI of data disk in the blob storage + * @type {string} + * @memberof IoK8sApiCoreV1AzureDiskVolumeSource + */ + diskURI: string; + /** + * fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * @type {string} + * @memberof IoK8sApiCoreV1AzureDiskVolumeSource + */ + fsType?: string; + /** + * kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * @type {string} + * @memberof IoK8sApiCoreV1AzureDiskVolumeSource + */ + kind?: string; + /** + * readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * @type {boolean} + * @memberof IoK8sApiCoreV1AzureDiskVolumeSource + */ + readOnly?: boolean; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1AzureDiskVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1AzureDiskVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "diskName" in value; + isInstance = isInstance && "diskURI" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1AzureDiskVolumeSourceFromJSON(json: any): IoK8sApiCoreV1AzureDiskVolumeSource { + return IoK8sApiCoreV1AzureDiskVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1AzureDiskVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1AzureDiskVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'cachingMode': !exists(json, 'cachingMode') ? undefined : json['cachingMode'], + 'diskName': json['diskName'], + 'diskURI': json['diskURI'], + 'fsType': !exists(json, 'fsType') ? undefined : json['fsType'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + }; +} + +export function IoK8sApiCoreV1AzureDiskVolumeSourceToJSON(value?: IoK8sApiCoreV1AzureDiskVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'cachingMode': value.cachingMode, + 'diskName': value.diskName, + 'diskURI': value.diskURI, + 'fsType': value.fsType, + 'kind': value.kind, + 'readOnly': value.readOnly, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1AzureFilePersistentVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1AzureFilePersistentVolumeSource.ts new file mode 100644 index 000000000..afce74643 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1AzureFilePersistentVolumeSource.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * @export + * @interface IoK8sApiCoreV1AzureFilePersistentVolumeSource + */ +export interface IoK8sApiCoreV1AzureFilePersistentVolumeSource { + /** + * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * @type {boolean} + * @memberof IoK8sApiCoreV1AzureFilePersistentVolumeSource + */ + readOnly?: boolean; + /** + * secretName is the name of secret that contains Azure Storage Account Name and Key + * @type {string} + * @memberof IoK8sApiCoreV1AzureFilePersistentVolumeSource + */ + secretName: string; + /** + * secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod + * @type {string} + * @memberof IoK8sApiCoreV1AzureFilePersistentVolumeSource + */ + secretNamespace?: string; + /** + * shareName is the azure Share Name + * @type {string} + * @memberof IoK8sApiCoreV1AzureFilePersistentVolumeSource + */ + shareName: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1AzureFilePersistentVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1AzureFilePersistentVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "secretName" in value; + isInstance = isInstance && "shareName" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1AzureFilePersistentVolumeSourceFromJSON(json: any): IoK8sApiCoreV1AzureFilePersistentVolumeSource { + return IoK8sApiCoreV1AzureFilePersistentVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1AzureFilePersistentVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1AzureFilePersistentVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + 'secretName': json['secretName'], + 'secretNamespace': !exists(json, 'secretNamespace') ? undefined : json['secretNamespace'], + 'shareName': json['shareName'], + }; +} + +export function IoK8sApiCoreV1AzureFilePersistentVolumeSourceToJSON(value?: IoK8sApiCoreV1AzureFilePersistentVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'readOnly': value.readOnly, + 'secretName': value.secretName, + 'secretNamespace': value.secretNamespace, + 'shareName': value.shareName, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1AzureFileVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1AzureFileVolumeSource.ts new file mode 100644 index 000000000..ef05a6abd --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1AzureFileVolumeSource.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * @export + * @interface IoK8sApiCoreV1AzureFileVolumeSource + */ +export interface IoK8sApiCoreV1AzureFileVolumeSource { + /** + * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * @type {boolean} + * @memberof IoK8sApiCoreV1AzureFileVolumeSource + */ + readOnly?: boolean; + /** + * secretName is the name of secret that contains Azure Storage Account Name and Key + * @type {string} + * @memberof IoK8sApiCoreV1AzureFileVolumeSource + */ + secretName: string; + /** + * shareName is the azure share Name + * @type {string} + * @memberof IoK8sApiCoreV1AzureFileVolumeSource + */ + shareName: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1AzureFileVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1AzureFileVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "secretName" in value; + isInstance = isInstance && "shareName" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1AzureFileVolumeSourceFromJSON(json: any): IoK8sApiCoreV1AzureFileVolumeSource { + return IoK8sApiCoreV1AzureFileVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1AzureFileVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1AzureFileVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + 'secretName': json['secretName'], + 'shareName': json['shareName'], + }; +} + +export function IoK8sApiCoreV1AzureFileVolumeSourceToJSON(value?: IoK8sApiCoreV1AzureFileVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'readOnly': value.readOnly, + 'secretName': value.secretName, + 'shareName': value.shareName, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Binding.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Binding.ts new file mode 100644 index 000000000..e8d1ec6c3 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Binding.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ObjectReference } from './IoK8sApiCoreV1ObjectReference'; +import { + IoK8sApiCoreV1ObjectReferenceFromJSON, + IoK8sApiCoreV1ObjectReferenceFromJSONTyped, + IoK8sApiCoreV1ObjectReferenceToJSON, +} from './IoK8sApiCoreV1ObjectReference'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead. + * @export + * @interface IoK8sApiCoreV1Binding + */ +export interface IoK8sApiCoreV1Binding { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1Binding + */ + 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 + * @type {string} + * @memberof IoK8sApiCoreV1Binding + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiCoreV1Binding + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiCoreV1ObjectReference} + * @memberof IoK8sApiCoreV1Binding + */ + target: IoK8sApiCoreV1ObjectReference; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1Binding interface. + */ +export function instanceOfIoK8sApiCoreV1Binding(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "target" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1BindingFromJSON(json: any): IoK8sApiCoreV1Binding { + return IoK8sApiCoreV1BindingFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1BindingFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1Binding { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'target': IoK8sApiCoreV1ObjectReferenceFromJSON(json['target']), + }; +} + +export function IoK8sApiCoreV1BindingToJSON(value?: IoK8sApiCoreV1Binding | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'target': IoK8sApiCoreV1ObjectReferenceToJSON(value.target), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1CSIPersistentVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1CSIPersistentVolumeSource.ts new file mode 100644 index 000000000..67e77a9a0 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1CSIPersistentVolumeSource.ts @@ -0,0 +1,146 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1SecretReference } from './IoK8sApiCoreV1SecretReference'; +import { + IoK8sApiCoreV1SecretReferenceFromJSON, + IoK8sApiCoreV1SecretReferenceFromJSONTyped, + IoK8sApiCoreV1SecretReferenceToJSON, +} from './IoK8sApiCoreV1SecretReference'; + +/** + * Represents storage that is managed by an external CSI volume driver (Beta feature) + * @export + * @interface IoK8sApiCoreV1CSIPersistentVolumeSource + */ +export interface IoK8sApiCoreV1CSIPersistentVolumeSource { + /** + * + * @type {IoK8sApiCoreV1SecretReference} + * @memberof IoK8sApiCoreV1CSIPersistentVolumeSource + */ + controllerExpandSecretRef?: IoK8sApiCoreV1SecretReference; + /** + * + * @type {IoK8sApiCoreV1SecretReference} + * @memberof IoK8sApiCoreV1CSIPersistentVolumeSource + */ + controllerPublishSecretRef?: IoK8sApiCoreV1SecretReference; + /** + * driver is the name of the driver to use for this volume. Required. + * @type {string} + * @memberof IoK8sApiCoreV1CSIPersistentVolumeSource + */ + driver: string; + /** + * fsType to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". + * @type {string} + * @memberof IoK8sApiCoreV1CSIPersistentVolumeSource + */ + fsType?: string; + /** + * + * @type {IoK8sApiCoreV1SecretReference} + * @memberof IoK8sApiCoreV1CSIPersistentVolumeSource + */ + nodeExpandSecretRef?: IoK8sApiCoreV1SecretReference; + /** + * + * @type {IoK8sApiCoreV1SecretReference} + * @memberof IoK8sApiCoreV1CSIPersistentVolumeSource + */ + nodePublishSecretRef?: IoK8sApiCoreV1SecretReference; + /** + * + * @type {IoK8sApiCoreV1SecretReference} + * @memberof IoK8sApiCoreV1CSIPersistentVolumeSource + */ + nodeStageSecretRef?: IoK8sApiCoreV1SecretReference; + /** + * readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). + * @type {boolean} + * @memberof IoK8sApiCoreV1CSIPersistentVolumeSource + */ + readOnly?: boolean; + /** + * volumeAttributes of the volume to publish. + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1CSIPersistentVolumeSource + */ + volumeAttributes?: { [key: string]: string; }; + /** + * volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. + * @type {string} + * @memberof IoK8sApiCoreV1CSIPersistentVolumeSource + */ + volumeHandle: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1CSIPersistentVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1CSIPersistentVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "driver" in value; + isInstance = isInstance && "volumeHandle" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1CSIPersistentVolumeSourceFromJSON(json: any): IoK8sApiCoreV1CSIPersistentVolumeSource { + return IoK8sApiCoreV1CSIPersistentVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1CSIPersistentVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1CSIPersistentVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'controllerExpandSecretRef': !exists(json, 'controllerExpandSecretRef') ? undefined : IoK8sApiCoreV1SecretReferenceFromJSON(json['controllerExpandSecretRef']), + 'controllerPublishSecretRef': !exists(json, 'controllerPublishSecretRef') ? undefined : IoK8sApiCoreV1SecretReferenceFromJSON(json['controllerPublishSecretRef']), + 'driver': json['driver'], + 'fsType': !exists(json, 'fsType') ? undefined : json['fsType'], + 'nodeExpandSecretRef': !exists(json, 'nodeExpandSecretRef') ? undefined : IoK8sApiCoreV1SecretReferenceFromJSON(json['nodeExpandSecretRef']), + 'nodePublishSecretRef': !exists(json, 'nodePublishSecretRef') ? undefined : IoK8sApiCoreV1SecretReferenceFromJSON(json['nodePublishSecretRef']), + 'nodeStageSecretRef': !exists(json, 'nodeStageSecretRef') ? undefined : IoK8sApiCoreV1SecretReferenceFromJSON(json['nodeStageSecretRef']), + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + 'volumeAttributes': !exists(json, 'volumeAttributes') ? undefined : json['volumeAttributes'], + 'volumeHandle': json['volumeHandle'], + }; +} + +export function IoK8sApiCoreV1CSIPersistentVolumeSourceToJSON(value?: IoK8sApiCoreV1CSIPersistentVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'controllerExpandSecretRef': IoK8sApiCoreV1SecretReferenceToJSON(value.controllerExpandSecretRef), + 'controllerPublishSecretRef': IoK8sApiCoreV1SecretReferenceToJSON(value.controllerPublishSecretRef), + 'driver': value.driver, + 'fsType': value.fsType, + 'nodeExpandSecretRef': IoK8sApiCoreV1SecretReferenceToJSON(value.nodeExpandSecretRef), + 'nodePublishSecretRef': IoK8sApiCoreV1SecretReferenceToJSON(value.nodePublishSecretRef), + 'nodeStageSecretRef': IoK8sApiCoreV1SecretReferenceToJSON(value.nodeStageSecretRef), + 'readOnly': value.readOnly, + 'volumeAttributes': value.volumeAttributes, + 'volumeHandle': value.volumeHandle, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1CSIVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1CSIVolumeSource.ts new file mode 100644 index 000000000..e235e6bb7 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1CSIVolumeSource.ts @@ -0,0 +1,105 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1LocalObjectReference } from './IoK8sApiCoreV1LocalObjectReference'; +import { + IoK8sApiCoreV1LocalObjectReferenceFromJSON, + IoK8sApiCoreV1LocalObjectReferenceFromJSONTyped, + IoK8sApiCoreV1LocalObjectReferenceToJSON, +} from './IoK8sApiCoreV1LocalObjectReference'; + +/** + * Represents a source location of a volume to mount, managed by an external CSI driver + * @export + * @interface IoK8sApiCoreV1CSIVolumeSource + */ +export interface IoK8sApiCoreV1CSIVolumeSource { + /** + * driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * @type {string} + * @memberof IoK8sApiCoreV1CSIVolumeSource + */ + driver: string; + /** + * fsType to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * @type {string} + * @memberof IoK8sApiCoreV1CSIVolumeSource + */ + fsType?: string; + /** + * + * @type {IoK8sApiCoreV1LocalObjectReference} + * @memberof IoK8sApiCoreV1CSIVolumeSource + */ + nodePublishSecretRef?: IoK8sApiCoreV1LocalObjectReference; + /** + * readOnly specifies a read-only configuration for the volume. Defaults to false (read/write). + * @type {boolean} + * @memberof IoK8sApiCoreV1CSIVolumeSource + */ + readOnly?: boolean; + /** + * volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1CSIVolumeSource + */ + volumeAttributes?: { [key: string]: string; }; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1CSIVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1CSIVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "driver" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1CSIVolumeSourceFromJSON(json: any): IoK8sApiCoreV1CSIVolumeSource { + return IoK8sApiCoreV1CSIVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1CSIVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1CSIVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'driver': json['driver'], + 'fsType': !exists(json, 'fsType') ? undefined : json['fsType'], + 'nodePublishSecretRef': !exists(json, 'nodePublishSecretRef') ? undefined : IoK8sApiCoreV1LocalObjectReferenceFromJSON(json['nodePublishSecretRef']), + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + 'volumeAttributes': !exists(json, 'volumeAttributes') ? undefined : json['volumeAttributes'], + }; +} + +export function IoK8sApiCoreV1CSIVolumeSourceToJSON(value?: IoK8sApiCoreV1CSIVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'driver': value.driver, + 'fsType': value.fsType, + 'nodePublishSecretRef': IoK8sApiCoreV1LocalObjectReferenceToJSON(value.nodePublishSecretRef), + 'readOnly': value.readOnly, + 'volumeAttributes': value.volumeAttributes, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Capabilities.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Capabilities.ts new file mode 100644 index 000000000..fa72c03a7 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Capabilities.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Adds and removes POSIX capabilities from running containers. + * @export + * @interface IoK8sApiCoreV1Capabilities + */ +export interface IoK8sApiCoreV1Capabilities { + /** + * Added capabilities + * @type {Array} + * @memberof IoK8sApiCoreV1Capabilities + */ + add?: string[]; + /** + * Removed capabilities + * @type {Array} + * @memberof IoK8sApiCoreV1Capabilities + */ + drop?: string[]; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1Capabilities interface. + */ +export function instanceOfIoK8sApiCoreV1Capabilities(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1CapabilitiesFromJSON(json: any): IoK8sApiCoreV1Capabilities { + return IoK8sApiCoreV1CapabilitiesFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1CapabilitiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1Capabilities { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'add': !exists(json, 'add') ? undefined : json['add'], + 'drop': !exists(json, 'drop') ? undefined : json['drop'], + }; +} + +export function IoK8sApiCoreV1CapabilitiesToJSON(value?: IoK8sApiCoreV1Capabilities | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'add': value.add, + 'drop': value.drop, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1CephFSPersistentVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1CephFSPersistentVolumeSource.ts new file mode 100644 index 000000000..c671fa01a --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1CephFSPersistentVolumeSource.ts @@ -0,0 +1,113 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1SecretReference } from './IoK8sApiCoreV1SecretReference'; +import { + IoK8sApiCoreV1SecretReferenceFromJSON, + IoK8sApiCoreV1SecretReferenceFromJSONTyped, + IoK8sApiCoreV1SecretReferenceToJSON, +} from './IoK8sApiCoreV1SecretReference'; + +/** + * Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. + * @export + * @interface IoK8sApiCoreV1CephFSPersistentVolumeSource + */ +export interface IoK8sApiCoreV1CephFSPersistentVolumeSource { + /** + * monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * @type {Array} + * @memberof IoK8sApiCoreV1CephFSPersistentVolumeSource + */ + monitors: string[]; + /** + * path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * @type {string} + * @memberof IoK8sApiCoreV1CephFSPersistentVolumeSource + */ + path?: string; + /** + * readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * @type {boolean} + * @memberof IoK8sApiCoreV1CephFSPersistentVolumeSource + */ + readOnly?: boolean; + /** + * secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * @type {string} + * @memberof IoK8sApiCoreV1CephFSPersistentVolumeSource + */ + secretFile?: string; + /** + * + * @type {IoK8sApiCoreV1SecretReference} + * @memberof IoK8sApiCoreV1CephFSPersistentVolumeSource + */ + secretRef?: IoK8sApiCoreV1SecretReference; + /** + * user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * @type {string} + * @memberof IoK8sApiCoreV1CephFSPersistentVolumeSource + */ + user?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1CephFSPersistentVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1CephFSPersistentVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "monitors" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1CephFSPersistentVolumeSourceFromJSON(json: any): IoK8sApiCoreV1CephFSPersistentVolumeSource { + return IoK8sApiCoreV1CephFSPersistentVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1CephFSPersistentVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1CephFSPersistentVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'monitors': json['monitors'], + 'path': !exists(json, 'path') ? undefined : json['path'], + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + 'secretFile': !exists(json, 'secretFile') ? undefined : json['secretFile'], + 'secretRef': !exists(json, 'secretRef') ? undefined : IoK8sApiCoreV1SecretReferenceFromJSON(json['secretRef']), + 'user': !exists(json, 'user') ? undefined : json['user'], + }; +} + +export function IoK8sApiCoreV1CephFSPersistentVolumeSourceToJSON(value?: IoK8sApiCoreV1CephFSPersistentVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'monitors': value.monitors, + 'path': value.path, + 'readOnly': value.readOnly, + 'secretFile': value.secretFile, + 'secretRef': IoK8sApiCoreV1SecretReferenceToJSON(value.secretRef), + 'user': value.user, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1CephFSVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1CephFSVolumeSource.ts new file mode 100644 index 000000000..a60ed390c --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1CephFSVolumeSource.ts @@ -0,0 +1,113 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1LocalObjectReference } from './IoK8sApiCoreV1LocalObjectReference'; +import { + IoK8sApiCoreV1LocalObjectReferenceFromJSON, + IoK8sApiCoreV1LocalObjectReferenceFromJSONTyped, + IoK8sApiCoreV1LocalObjectReferenceToJSON, +} from './IoK8sApiCoreV1LocalObjectReference'; + +/** + * Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. + * @export + * @interface IoK8sApiCoreV1CephFSVolumeSource + */ +export interface IoK8sApiCoreV1CephFSVolumeSource { + /** + * monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * @type {Array} + * @memberof IoK8sApiCoreV1CephFSVolumeSource + */ + monitors: string[]; + /** + * path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * @type {string} + * @memberof IoK8sApiCoreV1CephFSVolumeSource + */ + path?: string; + /** + * readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * @type {boolean} + * @memberof IoK8sApiCoreV1CephFSVolumeSource + */ + readOnly?: boolean; + /** + * secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * @type {string} + * @memberof IoK8sApiCoreV1CephFSVolumeSource + */ + secretFile?: string; + /** + * + * @type {IoK8sApiCoreV1LocalObjectReference} + * @memberof IoK8sApiCoreV1CephFSVolumeSource + */ + secretRef?: IoK8sApiCoreV1LocalObjectReference; + /** + * user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * @type {string} + * @memberof IoK8sApiCoreV1CephFSVolumeSource + */ + user?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1CephFSVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1CephFSVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "monitors" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1CephFSVolumeSourceFromJSON(json: any): IoK8sApiCoreV1CephFSVolumeSource { + return IoK8sApiCoreV1CephFSVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1CephFSVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1CephFSVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'monitors': json['monitors'], + 'path': !exists(json, 'path') ? undefined : json['path'], + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + 'secretFile': !exists(json, 'secretFile') ? undefined : json['secretFile'], + 'secretRef': !exists(json, 'secretRef') ? undefined : IoK8sApiCoreV1LocalObjectReferenceFromJSON(json['secretRef']), + 'user': !exists(json, 'user') ? undefined : json['user'], + }; +} + +export function IoK8sApiCoreV1CephFSVolumeSourceToJSON(value?: IoK8sApiCoreV1CephFSVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'monitors': value.monitors, + 'path': value.path, + 'readOnly': value.readOnly, + 'secretFile': value.secretFile, + 'secretRef': IoK8sApiCoreV1LocalObjectReferenceToJSON(value.secretRef), + 'user': value.user, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1CinderPersistentVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1CinderPersistentVolumeSource.ts new file mode 100644 index 000000000..adc37fda7 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1CinderPersistentVolumeSource.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1SecretReference } from './IoK8sApiCoreV1SecretReference'; +import { + IoK8sApiCoreV1SecretReferenceFromJSON, + IoK8sApiCoreV1SecretReferenceFromJSONTyped, + IoK8sApiCoreV1SecretReferenceToJSON, +} from './IoK8sApiCoreV1SecretReference'; + +/** + * Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling. + * @export + * @interface IoK8sApiCoreV1CinderPersistentVolumeSource + */ +export interface IoK8sApiCoreV1CinderPersistentVolumeSource { + /** + * fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * @type {string} + * @memberof IoK8sApiCoreV1CinderPersistentVolumeSource + */ + fsType?: string; + /** + * readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * @type {boolean} + * @memberof IoK8sApiCoreV1CinderPersistentVolumeSource + */ + readOnly?: boolean; + /** + * + * @type {IoK8sApiCoreV1SecretReference} + * @memberof IoK8sApiCoreV1CinderPersistentVolumeSource + */ + secretRef?: IoK8sApiCoreV1SecretReference; + /** + * volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * @type {string} + * @memberof IoK8sApiCoreV1CinderPersistentVolumeSource + */ + volumeID: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1CinderPersistentVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1CinderPersistentVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "volumeID" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1CinderPersistentVolumeSourceFromJSON(json: any): IoK8sApiCoreV1CinderPersistentVolumeSource { + return IoK8sApiCoreV1CinderPersistentVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1CinderPersistentVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1CinderPersistentVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'fsType': !exists(json, 'fsType') ? undefined : json['fsType'], + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + 'secretRef': !exists(json, 'secretRef') ? undefined : IoK8sApiCoreV1SecretReferenceFromJSON(json['secretRef']), + 'volumeID': json['volumeID'], + }; +} + +export function IoK8sApiCoreV1CinderPersistentVolumeSourceToJSON(value?: IoK8sApiCoreV1CinderPersistentVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'fsType': value.fsType, + 'readOnly': value.readOnly, + 'secretRef': IoK8sApiCoreV1SecretReferenceToJSON(value.secretRef), + 'volumeID': value.volumeID, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1CinderVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1CinderVolumeSource.ts new file mode 100644 index 000000000..e17bd215e --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1CinderVolumeSource.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1LocalObjectReference } from './IoK8sApiCoreV1LocalObjectReference'; +import { + IoK8sApiCoreV1LocalObjectReferenceFromJSON, + IoK8sApiCoreV1LocalObjectReferenceFromJSONTyped, + IoK8sApiCoreV1LocalObjectReferenceToJSON, +} from './IoK8sApiCoreV1LocalObjectReference'; + +/** + * Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling. + * @export + * @interface IoK8sApiCoreV1CinderVolumeSource + */ +export interface IoK8sApiCoreV1CinderVolumeSource { + /** + * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * @type {string} + * @memberof IoK8sApiCoreV1CinderVolumeSource + */ + fsType?: string; + /** + * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * @type {boolean} + * @memberof IoK8sApiCoreV1CinderVolumeSource + */ + readOnly?: boolean; + /** + * + * @type {IoK8sApiCoreV1LocalObjectReference} + * @memberof IoK8sApiCoreV1CinderVolumeSource + */ + secretRef?: IoK8sApiCoreV1LocalObjectReference; + /** + * volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * @type {string} + * @memberof IoK8sApiCoreV1CinderVolumeSource + */ + volumeID: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1CinderVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1CinderVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "volumeID" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1CinderVolumeSourceFromJSON(json: any): IoK8sApiCoreV1CinderVolumeSource { + return IoK8sApiCoreV1CinderVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1CinderVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1CinderVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'fsType': !exists(json, 'fsType') ? undefined : json['fsType'], + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + 'secretRef': !exists(json, 'secretRef') ? undefined : IoK8sApiCoreV1LocalObjectReferenceFromJSON(json['secretRef']), + 'volumeID': json['volumeID'], + }; +} + +export function IoK8sApiCoreV1CinderVolumeSourceToJSON(value?: IoK8sApiCoreV1CinderVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'fsType': value.fsType, + 'readOnly': value.readOnly, + 'secretRef': IoK8sApiCoreV1LocalObjectReferenceToJSON(value.secretRef), + 'volumeID': value.volumeID, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ClaimSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ClaimSource.ts new file mode 100644 index 000000000..2b67191bd --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ClaimSource.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ClaimSource describes a reference to a ResourceClaim. + * + * Exactly one of these fields should be set. Consumers of this type must treat an empty object as if it has an unknown value. + * @export + * @interface IoK8sApiCoreV1ClaimSource + */ +export interface IoK8sApiCoreV1ClaimSource { + /** + * ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. + * @type {string} + * @memberof IoK8sApiCoreV1ClaimSource + */ + resourceClaimName?: string; + /** + * ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. + * + * The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. + * + * This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. + * @type {string} + * @memberof IoK8sApiCoreV1ClaimSource + */ + resourceClaimTemplateName?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ClaimSource interface. + */ +export function instanceOfIoK8sApiCoreV1ClaimSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1ClaimSourceFromJSON(json: any): IoK8sApiCoreV1ClaimSource { + return IoK8sApiCoreV1ClaimSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ClaimSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ClaimSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'resourceClaimName': !exists(json, 'resourceClaimName') ? undefined : json['resourceClaimName'], + 'resourceClaimTemplateName': !exists(json, 'resourceClaimTemplateName') ? undefined : json['resourceClaimTemplateName'], + }; +} + +export function IoK8sApiCoreV1ClaimSourceToJSON(value?: IoK8sApiCoreV1ClaimSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'resourceClaimName': value.resourceClaimName, + 'resourceClaimTemplateName': value.resourceClaimTemplateName, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ClientIPConfig.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ClientIPConfig.ts new file mode 100644 index 000000000..6f5ada3f8 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ClientIPConfig.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ClientIPConfig represents the configurations of Client IP based session affinity. + * @export + * @interface IoK8sApiCoreV1ClientIPConfig + */ +export interface IoK8sApiCoreV1ClientIPConfig { + /** + * timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP". Default value is 10800(for 3 hours). + * @type {number} + * @memberof IoK8sApiCoreV1ClientIPConfig + */ + timeoutSeconds?: number; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ClientIPConfig interface. + */ +export function instanceOfIoK8sApiCoreV1ClientIPConfig(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1ClientIPConfigFromJSON(json: any): IoK8sApiCoreV1ClientIPConfig { + return IoK8sApiCoreV1ClientIPConfigFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ClientIPConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ClientIPConfig { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'timeoutSeconds': !exists(json, 'timeoutSeconds') ? undefined : json['timeoutSeconds'], + }; +} + +export function IoK8sApiCoreV1ClientIPConfigToJSON(value?: IoK8sApiCoreV1ClientIPConfig | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'timeoutSeconds': value.timeoutSeconds, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ClusterTrustBundleProjection.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ClusterTrustBundleProjection.ts new file mode 100644 index 000000000..1cc719241 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ClusterTrustBundleProjection.ts @@ -0,0 +1,105 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1LabelSelector } from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; +import { + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON, + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; + +/** + * ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem. + * @export + * @interface IoK8sApiCoreV1ClusterTrustBundleProjection + */ +export interface IoK8sApiCoreV1ClusterTrustBundleProjection { + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1LabelSelector} + * @memberof IoK8sApiCoreV1ClusterTrustBundleProjection + */ + labelSelector?: IoK8sApimachineryPkgApisMetaV1LabelSelector; + /** + * Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector. + * @type {string} + * @memberof IoK8sApiCoreV1ClusterTrustBundleProjection + */ + name?: string; + /** + * If true, don't block pod startup if the referenced ClusterTrustBundle(s) aren't available. If using name, then the named ClusterTrustBundle is allowed not to exist. If using signerName, then the combination of signerName and labelSelector is allowed to match zero ClusterTrustBundles. + * @type {boolean} + * @memberof IoK8sApiCoreV1ClusterTrustBundleProjection + */ + optional?: boolean; + /** + * Relative path from the volume root to write the bundle. + * @type {string} + * @memberof IoK8sApiCoreV1ClusterTrustBundleProjection + */ + path: string; + /** + * Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated. + * @type {string} + * @memberof IoK8sApiCoreV1ClusterTrustBundleProjection + */ + signerName?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ClusterTrustBundleProjection interface. + */ +export function instanceOfIoK8sApiCoreV1ClusterTrustBundleProjection(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "path" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1ClusterTrustBundleProjectionFromJSON(json: any): IoK8sApiCoreV1ClusterTrustBundleProjection { + return IoK8sApiCoreV1ClusterTrustBundleProjectionFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ClusterTrustBundleProjectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ClusterTrustBundleProjection { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'labelSelector': !exists(json, 'labelSelector') ? undefined : IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['labelSelector']), + 'name': !exists(json, 'name') ? undefined : json['name'], + 'optional': !exists(json, 'optional') ? undefined : json['optional'], + 'path': json['path'], + 'signerName': !exists(json, 'signerName') ? undefined : json['signerName'], + }; +} + +export function IoK8sApiCoreV1ClusterTrustBundleProjectionToJSON(value?: IoK8sApiCoreV1ClusterTrustBundleProjection | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'labelSelector': IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value.labelSelector), + 'name': value.name, + 'optional': value.optional, + 'path': value.path, + 'signerName': value.signerName, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ComponentCondition.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ComponentCondition.ts new file mode 100644 index 000000000..75be0b11e --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ComponentCondition.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Information about the condition of a component. + * @export + * @interface IoK8sApiCoreV1ComponentCondition + */ +export interface IoK8sApiCoreV1ComponentCondition { + /** + * Condition error code for a component. For example, a health check error code. + * @type {string} + * @memberof IoK8sApiCoreV1ComponentCondition + */ + error?: string; + /** + * Message about the condition for a component. For example, information about a health check. + * @type {string} + * @memberof IoK8sApiCoreV1ComponentCondition + */ + message?: string; + /** + * Status of the condition for a component. Valid values for "Healthy": "True", "False", or "Unknown". + * @type {string} + * @memberof IoK8sApiCoreV1ComponentCondition + */ + status: string; + /** + * Type of condition for a component. Valid value: "Healthy" + * @type {string} + * @memberof IoK8sApiCoreV1ComponentCondition + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ComponentCondition interface. + */ +export function instanceOfIoK8sApiCoreV1ComponentCondition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "status" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1ComponentConditionFromJSON(json: any): IoK8sApiCoreV1ComponentCondition { + return IoK8sApiCoreV1ComponentConditionFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ComponentConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ComponentCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'error': !exists(json, 'error') ? undefined : json['error'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'status': json['status'], + 'type': json['type'], + }; +} + +export function IoK8sApiCoreV1ComponentConditionToJSON(value?: IoK8sApiCoreV1ComponentCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'error': value.error, + 'message': value.message, + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ComponentStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ComponentStatus.ts new file mode 100644 index 000000000..c3a9d3a0c --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ComponentStatus.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ComponentCondition } from './IoK8sApiCoreV1ComponentCondition'; +import { + IoK8sApiCoreV1ComponentConditionFromJSON, + IoK8sApiCoreV1ComponentConditionFromJSONTyped, + IoK8sApiCoreV1ComponentConditionToJSON, +} from './IoK8sApiCoreV1ComponentCondition'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+ + * @export + * @interface IoK8sApiCoreV1ComponentStatus + */ +export interface IoK8sApiCoreV1ComponentStatus { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1ComponentStatus + */ + apiVersion?: string; + /** + * List of component conditions observed + * @type {Array} + * @memberof IoK8sApiCoreV1ComponentStatus + */ + conditions?: 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 + * @type {string} + * @memberof IoK8sApiCoreV1ComponentStatus + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiCoreV1ComponentStatus + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ComponentStatus interface. + */ +export function instanceOfIoK8sApiCoreV1ComponentStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1ComponentStatusFromJSON(json: any): IoK8sApiCoreV1ComponentStatus { + return IoK8sApiCoreV1ComponentStatusFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ComponentStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ComponentStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(IoK8sApiCoreV1ComponentConditionFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiCoreV1ComponentStatusToJSON(value?: IoK8sApiCoreV1ComponentStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(IoK8sApiCoreV1ComponentConditionToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ComponentStatusList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ComponentStatusList.ts new file mode 100644 index 000000000..21d6b5760 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ComponentStatusList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ComponentStatus } from './IoK8sApiCoreV1ComponentStatus'; +import { + IoK8sApiCoreV1ComponentStatusFromJSON, + IoK8sApiCoreV1ComponentStatusFromJSONTyped, + IoK8sApiCoreV1ComponentStatusToJSON, +} from './IoK8sApiCoreV1ComponentStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+ + * @export + * @interface IoK8sApiCoreV1ComponentStatusList + */ +export interface IoK8sApiCoreV1ComponentStatusList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1ComponentStatusList + */ + apiVersion?: string; + /** + * List of ComponentStatus objects. + * @type {Array} + * @memberof IoK8sApiCoreV1ComponentStatusList + */ + 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 + * @type {string} + * @memberof IoK8sApiCoreV1ComponentStatusList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiCoreV1ComponentStatusList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ComponentStatusList interface. + */ +export function instanceOfIoK8sApiCoreV1ComponentStatusList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1ComponentStatusListFromJSON(json: any): IoK8sApiCoreV1ComponentStatusList { + return IoK8sApiCoreV1ComponentStatusListFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ComponentStatusListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ComponentStatusList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiCoreV1ComponentStatusFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiCoreV1ComponentStatusListToJSON(value?: IoK8sApiCoreV1ComponentStatusList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiCoreV1ComponentStatusToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ConfigMap.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ConfigMap.ts new file mode 100644 index 000000000..7e291bcd5 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ConfigMap.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * ConfigMap holds configuration data for pods to consume. + * @export + * @interface IoK8sApiCoreV1ConfigMap + */ +export interface IoK8sApiCoreV1ConfigMap { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1ConfigMap + */ + apiVersion?: string; + /** + * BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1ConfigMap + */ + binaryData?: { [key: string]: string; }; + /** + * Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1ConfigMap + */ + data?: { [key: string]: string; }; + /** + * Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. + * @type {boolean} + * @memberof IoK8sApiCoreV1ConfigMap + */ + immutable?: boolean; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof IoK8sApiCoreV1ConfigMap + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiCoreV1ConfigMap + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ConfigMap interface. + */ +export function instanceOfIoK8sApiCoreV1ConfigMap(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1ConfigMapFromJSON(json: any): IoK8sApiCoreV1ConfigMap { + return IoK8sApiCoreV1ConfigMapFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ConfigMapFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ConfigMap { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'binaryData': !exists(json, 'binaryData') ? undefined : json['binaryData'], + 'data': !exists(json, 'data') ? undefined : json['data'], + 'immutable': !exists(json, 'immutable') ? undefined : json['immutable'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiCoreV1ConfigMapToJSON(value?: IoK8sApiCoreV1ConfigMap | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'binaryData': value.binaryData, + 'data': value.data, + 'immutable': value.immutable, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ConfigMapEnvSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ConfigMapEnvSource.ts new file mode 100644 index 000000000..55b45fd74 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ConfigMapEnvSource.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. + * + * The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables. + * @export + * @interface IoK8sApiCoreV1ConfigMapEnvSource + */ +export interface IoK8sApiCoreV1ConfigMapEnvSource { + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * @type {string} + * @memberof IoK8sApiCoreV1ConfigMapEnvSource + */ + name?: string; + /** + * Specify whether the ConfigMap must be defined + * @type {boolean} + * @memberof IoK8sApiCoreV1ConfigMapEnvSource + */ + optional?: boolean; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ConfigMapEnvSource interface. + */ +export function instanceOfIoK8sApiCoreV1ConfigMapEnvSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1ConfigMapEnvSourceFromJSON(json: any): IoK8sApiCoreV1ConfigMapEnvSource { + return IoK8sApiCoreV1ConfigMapEnvSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ConfigMapEnvSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ConfigMapEnvSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': !exists(json, 'name') ? undefined : json['name'], + 'optional': !exists(json, 'optional') ? undefined : json['optional'], + }; +} + +export function IoK8sApiCoreV1ConfigMapEnvSourceToJSON(value?: IoK8sApiCoreV1ConfigMapEnvSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'optional': value.optional, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ConfigMapKeySelector.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ConfigMapKeySelector.ts new file mode 100644 index 000000000..508921359 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ConfigMapKeySelector.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Selects a key from a ConfigMap. + * @export + * @interface IoK8sApiCoreV1ConfigMapKeySelector + */ +export interface IoK8sApiCoreV1ConfigMapKeySelector { + /** + * The key to select. + * @type {string} + * @memberof IoK8sApiCoreV1ConfigMapKeySelector + */ + key: string; + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * @type {string} + * @memberof IoK8sApiCoreV1ConfigMapKeySelector + */ + name?: string; + /** + * Specify whether the ConfigMap or its key must be defined + * @type {boolean} + * @memberof IoK8sApiCoreV1ConfigMapKeySelector + */ + optional?: boolean; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ConfigMapKeySelector interface. + */ +export function instanceOfIoK8sApiCoreV1ConfigMapKeySelector(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "key" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1ConfigMapKeySelectorFromJSON(json: any): IoK8sApiCoreV1ConfigMapKeySelector { + return IoK8sApiCoreV1ConfigMapKeySelectorFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ConfigMapKeySelectorFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ConfigMapKeySelector { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'key': json['key'], + 'name': !exists(json, 'name') ? undefined : json['name'], + 'optional': !exists(json, 'optional') ? undefined : json['optional'], + }; +} + +export function IoK8sApiCoreV1ConfigMapKeySelectorToJSON(value?: IoK8sApiCoreV1ConfigMapKeySelector | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'key': value.key, + 'name': value.name, + 'optional': value.optional, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ConfigMapList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ConfigMapList.ts new file mode 100644 index 000000000..ae7e3870d --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ConfigMapList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ConfigMap } from './IoK8sApiCoreV1ConfigMap'; +import { + IoK8sApiCoreV1ConfigMapFromJSON, + IoK8sApiCoreV1ConfigMapFromJSONTyped, + IoK8sApiCoreV1ConfigMapToJSON, +} from './IoK8sApiCoreV1ConfigMap'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * ConfigMapList is a resource containing a list of ConfigMap objects. + * @export + * @interface IoK8sApiCoreV1ConfigMapList + */ +export interface IoK8sApiCoreV1ConfigMapList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1ConfigMapList + */ + apiVersion?: string; + /** + * Items is the list of ConfigMaps. + * @type {Array} + * @memberof IoK8sApiCoreV1ConfigMapList + */ + 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 + * @type {string} + * @memberof IoK8sApiCoreV1ConfigMapList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiCoreV1ConfigMapList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ConfigMapList interface. + */ +export function instanceOfIoK8sApiCoreV1ConfigMapList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1ConfigMapListFromJSON(json: any): IoK8sApiCoreV1ConfigMapList { + return IoK8sApiCoreV1ConfigMapListFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ConfigMapListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ConfigMapList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiCoreV1ConfigMapFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiCoreV1ConfigMapListToJSON(value?: IoK8sApiCoreV1ConfigMapList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiCoreV1ConfigMapToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ConfigMapNodeConfigSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ConfigMapNodeConfigSource.ts new file mode 100644 index 000000000..72c08cc35 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ConfigMapNodeConfigSource.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration + * @export + * @interface IoK8sApiCoreV1ConfigMapNodeConfigSource + */ +export interface IoK8sApiCoreV1ConfigMapNodeConfigSource { + /** + * KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. + * @type {string} + * @memberof IoK8sApiCoreV1ConfigMapNodeConfigSource + */ + kubeletConfigKey: string; + /** + * Name is the metadata.name of the referenced ConfigMap. This field is required in all cases. + * @type {string} + * @memberof IoK8sApiCoreV1ConfigMapNodeConfigSource + */ + name: string; + /** + * Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. + * @type {string} + * @memberof IoK8sApiCoreV1ConfigMapNodeConfigSource + */ + namespace: string; + /** + * ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. + * @type {string} + * @memberof IoK8sApiCoreV1ConfigMapNodeConfigSource + */ + resourceVersion?: string; + /** + * UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. + * @type {string} + * @memberof IoK8sApiCoreV1ConfigMapNodeConfigSource + */ + uid?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ConfigMapNodeConfigSource interface. + */ +export function instanceOfIoK8sApiCoreV1ConfigMapNodeConfigSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "kubeletConfigKey" in value; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "namespace" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1ConfigMapNodeConfigSourceFromJSON(json: any): IoK8sApiCoreV1ConfigMapNodeConfigSource { + return IoK8sApiCoreV1ConfigMapNodeConfigSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ConfigMapNodeConfigSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ConfigMapNodeConfigSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'kubeletConfigKey': json['kubeletConfigKey'], + 'name': json['name'], + 'namespace': json['namespace'], + 'resourceVersion': !exists(json, 'resourceVersion') ? undefined : json['resourceVersion'], + 'uid': !exists(json, 'uid') ? undefined : json['uid'], + }; +} + +export function IoK8sApiCoreV1ConfigMapNodeConfigSourceToJSON(value?: IoK8sApiCoreV1ConfigMapNodeConfigSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'kubeletConfigKey': value.kubeletConfigKey, + 'name': value.name, + 'namespace': value.namespace, + 'resourceVersion': value.resourceVersion, + 'uid': value.uid, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ConfigMapProjection.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ConfigMapProjection.ts new file mode 100644 index 000000000..5bdeefd48 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ConfigMapProjection.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1KeyToPath } from './IoK8sApiCoreV1KeyToPath'; +import { + IoK8sApiCoreV1KeyToPathFromJSON, + IoK8sApiCoreV1KeyToPathFromJSONTyped, + IoK8sApiCoreV1KeyToPathToJSON, +} from './IoK8sApiCoreV1KeyToPath'; + +/** + * Adapts a ConfigMap into a projected volume. + * + * The contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode. + * @export + * @interface IoK8sApiCoreV1ConfigMapProjection + */ +export interface IoK8sApiCoreV1ConfigMapProjection { + /** + * items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * @type {Array} + * @memberof IoK8sApiCoreV1ConfigMapProjection + */ + items?: Array; + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * @type {string} + * @memberof IoK8sApiCoreV1ConfigMapProjection + */ + name?: string; + /** + * optional specify whether the ConfigMap or its keys must be defined + * @type {boolean} + * @memberof IoK8sApiCoreV1ConfigMapProjection + */ + optional?: boolean; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ConfigMapProjection interface. + */ +export function instanceOfIoK8sApiCoreV1ConfigMapProjection(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1ConfigMapProjectionFromJSON(json: any): IoK8sApiCoreV1ConfigMapProjection { + return IoK8sApiCoreV1ConfigMapProjectionFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ConfigMapProjectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ConfigMapProjection { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'items': !exists(json, 'items') ? undefined : ((json['items'] as Array).map(IoK8sApiCoreV1KeyToPathFromJSON)), + 'name': !exists(json, 'name') ? undefined : json['name'], + 'optional': !exists(json, 'optional') ? undefined : json['optional'], + }; +} + +export function IoK8sApiCoreV1ConfigMapProjectionToJSON(value?: IoK8sApiCoreV1ConfigMapProjection | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'items': value.items === undefined ? undefined : ((value.items as Array).map(IoK8sApiCoreV1KeyToPathToJSON)), + 'name': value.name, + 'optional': value.optional, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ConfigMapVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ConfigMapVolumeSource.ts new file mode 100644 index 000000000..d8015de2a --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ConfigMapVolumeSource.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1KeyToPath } from './IoK8sApiCoreV1KeyToPath'; +import { + IoK8sApiCoreV1KeyToPathFromJSON, + IoK8sApiCoreV1KeyToPathFromJSONTyped, + IoK8sApiCoreV1KeyToPathToJSON, +} from './IoK8sApiCoreV1KeyToPath'; + +/** + * Adapts a ConfigMap into a volume. + * + * The contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling. + * @export + * @interface IoK8sApiCoreV1ConfigMapVolumeSource + */ +export interface IoK8sApiCoreV1ConfigMapVolumeSource { + /** + * defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + * @type {number} + * @memberof IoK8sApiCoreV1ConfigMapVolumeSource + */ + defaultMode?: number; + /** + * items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * @type {Array} + * @memberof IoK8sApiCoreV1ConfigMapVolumeSource + */ + items?: Array; + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * @type {string} + * @memberof IoK8sApiCoreV1ConfigMapVolumeSource + */ + name?: string; + /** + * optional specify whether the ConfigMap or its keys must be defined + * @type {boolean} + * @memberof IoK8sApiCoreV1ConfigMapVolumeSource + */ + optional?: boolean; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ConfigMapVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1ConfigMapVolumeSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1ConfigMapVolumeSourceFromJSON(json: any): IoK8sApiCoreV1ConfigMapVolumeSource { + return IoK8sApiCoreV1ConfigMapVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ConfigMapVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ConfigMapVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'defaultMode': !exists(json, 'defaultMode') ? undefined : json['defaultMode'], + 'items': !exists(json, 'items') ? undefined : ((json['items'] as Array).map(IoK8sApiCoreV1KeyToPathFromJSON)), + 'name': !exists(json, 'name') ? undefined : json['name'], + 'optional': !exists(json, 'optional') ? undefined : json['optional'], + }; +} + +export function IoK8sApiCoreV1ConfigMapVolumeSourceToJSON(value?: IoK8sApiCoreV1ConfigMapVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'defaultMode': value.defaultMode, + 'items': value.items === undefined ? undefined : ((value.items as Array).map(IoK8sApiCoreV1KeyToPathToJSON)), + 'name': value.name, + 'optional': value.optional, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Container.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Container.ts new file mode 100644 index 000000000..8b2c22767 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Container.ts @@ -0,0 +1,311 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ContainerPort } from './IoK8sApiCoreV1ContainerPort'; +import { + IoK8sApiCoreV1ContainerPortFromJSON, + IoK8sApiCoreV1ContainerPortFromJSONTyped, + IoK8sApiCoreV1ContainerPortToJSON, +} from './IoK8sApiCoreV1ContainerPort'; +import type { IoK8sApiCoreV1ContainerResizePolicy } from './IoK8sApiCoreV1ContainerResizePolicy'; +import { + IoK8sApiCoreV1ContainerResizePolicyFromJSON, + IoK8sApiCoreV1ContainerResizePolicyFromJSONTyped, + IoK8sApiCoreV1ContainerResizePolicyToJSON, +} from './IoK8sApiCoreV1ContainerResizePolicy'; +import type { IoK8sApiCoreV1EnvFromSource } from './IoK8sApiCoreV1EnvFromSource'; +import { + IoK8sApiCoreV1EnvFromSourceFromJSON, + IoK8sApiCoreV1EnvFromSourceFromJSONTyped, + IoK8sApiCoreV1EnvFromSourceToJSON, +} from './IoK8sApiCoreV1EnvFromSource'; +import type { IoK8sApiCoreV1EnvVar } from './IoK8sApiCoreV1EnvVar'; +import { + IoK8sApiCoreV1EnvVarFromJSON, + IoK8sApiCoreV1EnvVarFromJSONTyped, + IoK8sApiCoreV1EnvVarToJSON, +} from './IoK8sApiCoreV1EnvVar'; +import type { IoK8sApiCoreV1Lifecycle } from './IoK8sApiCoreV1Lifecycle'; +import { + IoK8sApiCoreV1LifecycleFromJSON, + IoK8sApiCoreV1LifecycleFromJSONTyped, + IoK8sApiCoreV1LifecycleToJSON, +} from './IoK8sApiCoreV1Lifecycle'; +import type { IoK8sApiCoreV1Probe } from './IoK8sApiCoreV1Probe'; +import { + IoK8sApiCoreV1ProbeFromJSON, + IoK8sApiCoreV1ProbeFromJSONTyped, + IoK8sApiCoreV1ProbeToJSON, +} from './IoK8sApiCoreV1Probe'; +import type { IoK8sApiCoreV1ResourceRequirements } from './IoK8sApiCoreV1ResourceRequirements'; +import { + IoK8sApiCoreV1ResourceRequirementsFromJSON, + IoK8sApiCoreV1ResourceRequirementsFromJSONTyped, + IoK8sApiCoreV1ResourceRequirementsToJSON, +} from './IoK8sApiCoreV1ResourceRequirements'; +import type { IoK8sApiCoreV1SecurityContext } from './IoK8sApiCoreV1SecurityContext'; +import { + IoK8sApiCoreV1SecurityContextFromJSON, + IoK8sApiCoreV1SecurityContextFromJSONTyped, + IoK8sApiCoreV1SecurityContextToJSON, +} from './IoK8sApiCoreV1SecurityContext'; +import type { IoK8sApiCoreV1VolumeDevice } from './IoK8sApiCoreV1VolumeDevice'; +import { + IoK8sApiCoreV1VolumeDeviceFromJSON, + IoK8sApiCoreV1VolumeDeviceFromJSONTyped, + IoK8sApiCoreV1VolumeDeviceToJSON, +} from './IoK8sApiCoreV1VolumeDevice'; +import type { IoK8sApiCoreV1VolumeMount } from './IoK8sApiCoreV1VolumeMount'; +import { + IoK8sApiCoreV1VolumeMountFromJSON, + IoK8sApiCoreV1VolumeMountFromJSONTyped, + IoK8sApiCoreV1VolumeMountToJSON, +} from './IoK8sApiCoreV1VolumeMount'; + +/** + * A single application container that you want to run within a pod. + * @export + * @interface IoK8sApiCoreV1Container + */ +export interface IoK8sApiCoreV1Container { + /** + * Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * @type {Array} + * @memberof IoK8sApiCoreV1Container + */ + args?: string[]; + /** + * Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * @type {Array} + * @memberof IoK8sApiCoreV1Container + */ + command?: string[]; + /** + * List of environment variables to set in the container. Cannot be updated. + * @type {Array} + * @memberof IoK8sApiCoreV1Container + */ + 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. + * @type {Array} + * @memberof IoK8sApiCoreV1Container + */ + envFrom?: Array; + /** + * Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * @type {string} + * @memberof IoK8sApiCoreV1Container + */ + image?: string; + /** + * Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * @type {string} + * @memberof IoK8sApiCoreV1Container + */ + imagePullPolicy?: string; + /** + * + * @type {IoK8sApiCoreV1Lifecycle} + * @memberof IoK8sApiCoreV1Container + */ + lifecycle?: IoK8sApiCoreV1Lifecycle; + /** + * + * @type {IoK8sApiCoreV1Probe} + * @memberof IoK8sApiCoreV1Container + */ + livenessProbe?: IoK8sApiCoreV1Probe; + /** + * Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * @type {string} + * @memberof IoK8sApiCoreV1Container + */ + name: string; + /** + * List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. + * @type {Array} + * @memberof IoK8sApiCoreV1Container + */ + ports?: Array; + /** + * + * @type {IoK8sApiCoreV1Probe} + * @memberof IoK8sApiCoreV1Container + */ + readinessProbe?: IoK8sApiCoreV1Probe; + /** + * Resources resize policy for the container. + * @type {Array} + * @memberof IoK8sApiCoreV1Container + */ + resizePolicy?: Array; + /** + * + * @type {IoK8sApiCoreV1ResourceRequirements} + * @memberof IoK8sApiCoreV1Container + */ + resources?: IoK8sApiCoreV1ResourceRequirements; + /** + * 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. + * @type {string} + * @memberof IoK8sApiCoreV1Container + */ + restartPolicy?: string; + /** + * + * @type {IoK8sApiCoreV1SecurityContext} + * @memberof IoK8sApiCoreV1Container + */ + securityContext?: IoK8sApiCoreV1SecurityContext; + /** + * + * @type {IoK8sApiCoreV1Probe} + * @memberof IoK8sApiCoreV1Container + */ + startupProbe?: IoK8sApiCoreV1Probe; + /** + * Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * @type {boolean} + * @memberof IoK8sApiCoreV1Container + */ + stdin?: boolean; + /** + * Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * @type {boolean} + * @memberof IoK8sApiCoreV1Container + */ + stdinOnce?: boolean; + /** + * Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * @type {string} + * @memberof IoK8sApiCoreV1Container + */ + terminationMessagePath?: string; + /** + * Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * @type {string} + * @memberof IoK8sApiCoreV1Container + */ + terminationMessagePolicy?: string; + /** + * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * @type {boolean} + * @memberof IoK8sApiCoreV1Container + */ + tty?: boolean; + /** + * volumeDevices is the list of block devices to be used by the container. + * @type {Array} + * @memberof IoK8sApiCoreV1Container + */ + volumeDevices?: Array; + /** + * Pod volumes to mount into the container's filesystem. Cannot be updated. + * @type {Array} + * @memberof IoK8sApiCoreV1Container + */ + volumeMounts?: Array; + /** + * Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + * @type {string} + * @memberof IoK8sApiCoreV1Container + */ + workingDir?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1Container interface. + */ +export function instanceOfIoK8sApiCoreV1Container(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1ContainerFromJSON(json: any): IoK8sApiCoreV1Container { + return IoK8sApiCoreV1ContainerFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ContainerFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1Container { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'args': !exists(json, 'args') ? undefined : json['args'], + 'command': !exists(json, 'command') ? undefined : json['command'], + 'env': !exists(json, 'env') ? undefined : ((json['env'] as Array).map(IoK8sApiCoreV1EnvVarFromJSON)), + 'envFrom': !exists(json, 'envFrom') ? undefined : ((json['envFrom'] as Array).map(IoK8sApiCoreV1EnvFromSourceFromJSON)), + 'image': !exists(json, 'image') ? undefined : json['image'], + 'imagePullPolicy': !exists(json, 'imagePullPolicy') ? undefined : json['imagePullPolicy'], + 'lifecycle': !exists(json, 'lifecycle') ? undefined : IoK8sApiCoreV1LifecycleFromJSON(json['lifecycle']), + 'livenessProbe': !exists(json, 'livenessProbe') ? undefined : IoK8sApiCoreV1ProbeFromJSON(json['livenessProbe']), + 'name': json['name'], + 'ports': !exists(json, 'ports') ? undefined : ((json['ports'] as Array).map(IoK8sApiCoreV1ContainerPortFromJSON)), + 'readinessProbe': !exists(json, 'readinessProbe') ? undefined : IoK8sApiCoreV1ProbeFromJSON(json['readinessProbe']), + 'resizePolicy': !exists(json, 'resizePolicy') ? undefined : ((json['resizePolicy'] as Array).map(IoK8sApiCoreV1ContainerResizePolicyFromJSON)), + 'resources': !exists(json, 'resources') ? undefined : IoK8sApiCoreV1ResourceRequirementsFromJSON(json['resources']), + 'restartPolicy': !exists(json, 'restartPolicy') ? undefined : json['restartPolicy'], + 'securityContext': !exists(json, 'securityContext') ? undefined : IoK8sApiCoreV1SecurityContextFromJSON(json['securityContext']), + 'startupProbe': !exists(json, 'startupProbe') ? undefined : IoK8sApiCoreV1ProbeFromJSON(json['startupProbe']), + 'stdin': !exists(json, 'stdin') ? undefined : json['stdin'], + 'stdinOnce': !exists(json, 'stdinOnce') ? undefined : json['stdinOnce'], + 'terminationMessagePath': !exists(json, 'terminationMessagePath') ? undefined : json['terminationMessagePath'], + 'terminationMessagePolicy': !exists(json, 'terminationMessagePolicy') ? undefined : json['terminationMessagePolicy'], + 'tty': !exists(json, 'tty') ? undefined : json['tty'], + 'volumeDevices': !exists(json, 'volumeDevices') ? undefined : ((json['volumeDevices'] as Array).map(IoK8sApiCoreV1VolumeDeviceFromJSON)), + 'volumeMounts': !exists(json, 'volumeMounts') ? undefined : ((json['volumeMounts'] as Array).map(IoK8sApiCoreV1VolumeMountFromJSON)), + 'workingDir': !exists(json, 'workingDir') ? undefined : json['workingDir'], + }; +} + +export function IoK8sApiCoreV1ContainerToJSON(value?: IoK8sApiCoreV1Container | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'args': value.args, + 'command': value.command, + 'env': value.env === undefined ? undefined : ((value.env as Array).map(IoK8sApiCoreV1EnvVarToJSON)), + 'envFrom': value.envFrom === undefined ? undefined : ((value.envFrom as Array).map(IoK8sApiCoreV1EnvFromSourceToJSON)), + 'image': value.image, + 'imagePullPolicy': value.imagePullPolicy, + 'lifecycle': IoK8sApiCoreV1LifecycleToJSON(value.lifecycle), + 'livenessProbe': IoK8sApiCoreV1ProbeToJSON(value.livenessProbe), + 'name': value.name, + 'ports': value.ports === undefined ? undefined : ((value.ports as Array).map(IoK8sApiCoreV1ContainerPortToJSON)), + 'readinessProbe': IoK8sApiCoreV1ProbeToJSON(value.readinessProbe), + 'resizePolicy': value.resizePolicy === undefined ? undefined : ((value.resizePolicy as Array).map(IoK8sApiCoreV1ContainerResizePolicyToJSON)), + 'resources': IoK8sApiCoreV1ResourceRequirementsToJSON(value.resources), + 'restartPolicy': value.restartPolicy, + 'securityContext': IoK8sApiCoreV1SecurityContextToJSON(value.securityContext), + 'startupProbe': IoK8sApiCoreV1ProbeToJSON(value.startupProbe), + 'stdin': value.stdin, + 'stdinOnce': value.stdinOnce, + 'terminationMessagePath': value.terminationMessagePath, + 'terminationMessagePolicy': value.terminationMessagePolicy, + 'tty': value.tty, + 'volumeDevices': value.volumeDevices === undefined ? undefined : ((value.volumeDevices as Array).map(IoK8sApiCoreV1VolumeDeviceToJSON)), + 'volumeMounts': value.volumeMounts === undefined ? undefined : ((value.volumeMounts as Array).map(IoK8sApiCoreV1VolumeMountToJSON)), + 'workingDir': value.workingDir, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerImage.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerImage.ts new file mode 100644 index 000000000..e59fe6d73 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerImage.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Describe a container image + * @export + * @interface IoK8sApiCoreV1ContainerImage + */ +export interface IoK8sApiCoreV1ContainerImage { + /** + * Names by which this image is known. e.g. ["kubernetes.example/hyperkube:v1.0.7", "cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7"] + * @type {Array} + * @memberof IoK8sApiCoreV1ContainerImage + */ + names?: string[]; + /** + * The size of the image in bytes. + * @type {number} + * @memberof IoK8sApiCoreV1ContainerImage + */ + sizeBytes?: number; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ContainerImage interface. + */ +export function instanceOfIoK8sApiCoreV1ContainerImage(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1ContainerImageFromJSON(json: any): IoK8sApiCoreV1ContainerImage { + return IoK8sApiCoreV1ContainerImageFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ContainerImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ContainerImage { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'names': !exists(json, 'names') ? undefined : json['names'], + 'sizeBytes': !exists(json, 'sizeBytes') ? undefined : json['sizeBytes'], + }; +} + +export function IoK8sApiCoreV1ContainerImageToJSON(value?: IoK8sApiCoreV1ContainerImage | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'names': value.names, + 'sizeBytes': value.sizeBytes, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerPort.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerPort.ts new file mode 100644 index 000000000..0c6f00e4f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerPort.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ContainerPort represents a network port in a single container. + * @export + * @interface IoK8sApiCoreV1ContainerPort + */ +export interface IoK8sApiCoreV1ContainerPort { + /** + * Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * @type {number} + * @memberof IoK8sApiCoreV1ContainerPort + */ + containerPort: number; + /** + * What host IP to bind the external port to. + * @type {string} + * @memberof IoK8sApiCoreV1ContainerPort + */ + hostIP?: string; + /** + * Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * @type {number} + * @memberof IoK8sApiCoreV1ContainerPort + */ + hostPort?: number; + /** + * If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * @type {string} + * @memberof IoK8sApiCoreV1ContainerPort + */ + name?: string; + /** + * Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + * @type {string} + * @memberof IoK8sApiCoreV1ContainerPort + */ + protocol?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ContainerPort interface. + */ +export function instanceOfIoK8sApiCoreV1ContainerPort(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "containerPort" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1ContainerPortFromJSON(json: any): IoK8sApiCoreV1ContainerPort { + return IoK8sApiCoreV1ContainerPortFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ContainerPortFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ContainerPort { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'containerPort': json['containerPort'], + 'hostIP': !exists(json, 'hostIP') ? undefined : json['hostIP'], + 'hostPort': !exists(json, 'hostPort') ? undefined : json['hostPort'], + 'name': !exists(json, 'name') ? undefined : json['name'], + 'protocol': !exists(json, 'protocol') ? undefined : json['protocol'], + }; +} + +export function IoK8sApiCoreV1ContainerPortToJSON(value?: IoK8sApiCoreV1ContainerPort | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'containerPort': value.containerPort, + 'hostIP': value.hostIP, + 'hostPort': value.hostPort, + 'name': value.name, + 'protocol': value.protocol, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerResizePolicy.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerResizePolicy.ts new file mode 100644 index 000000000..9d4439b1b --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerResizePolicy.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ContainerResizePolicy represents resource resize policy for the container. + * @export + * @interface IoK8sApiCoreV1ContainerResizePolicy + */ +export interface IoK8sApiCoreV1ContainerResizePolicy { + /** + * Name of the resource to which this resource resize policy applies. Supported values: cpu, memory. + * @type {string} + * @memberof IoK8sApiCoreV1ContainerResizePolicy + */ + resourceName: string; + /** + * Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired. + * @type {string} + * @memberof IoK8sApiCoreV1ContainerResizePolicy + */ + restartPolicy: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ContainerResizePolicy interface. + */ +export function instanceOfIoK8sApiCoreV1ContainerResizePolicy(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "resourceName" in value; + isInstance = isInstance && "restartPolicy" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1ContainerResizePolicyFromJSON(json: any): IoK8sApiCoreV1ContainerResizePolicy { + return IoK8sApiCoreV1ContainerResizePolicyFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ContainerResizePolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ContainerResizePolicy { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'resourceName': json['resourceName'], + 'restartPolicy': json['restartPolicy'], + }; +} + +export function IoK8sApiCoreV1ContainerResizePolicyToJSON(value?: IoK8sApiCoreV1ContainerResizePolicy | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'resourceName': value.resourceName, + 'restartPolicy': value.restartPolicy, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerState.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerState.ts new file mode 100644 index 000000000..33c447ff6 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerState.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ContainerStateRunning } from './IoK8sApiCoreV1ContainerStateRunning'; +import { + IoK8sApiCoreV1ContainerStateRunningFromJSON, + IoK8sApiCoreV1ContainerStateRunningFromJSONTyped, + IoK8sApiCoreV1ContainerStateRunningToJSON, +} from './IoK8sApiCoreV1ContainerStateRunning'; +import type { IoK8sApiCoreV1ContainerStateTerminated } from './IoK8sApiCoreV1ContainerStateTerminated'; +import { + IoK8sApiCoreV1ContainerStateTerminatedFromJSON, + IoK8sApiCoreV1ContainerStateTerminatedFromJSONTyped, + IoK8sApiCoreV1ContainerStateTerminatedToJSON, +} from './IoK8sApiCoreV1ContainerStateTerminated'; +import type { IoK8sApiCoreV1ContainerStateWaiting } from './IoK8sApiCoreV1ContainerStateWaiting'; +import { + IoK8sApiCoreV1ContainerStateWaitingFromJSON, + IoK8sApiCoreV1ContainerStateWaitingFromJSONTyped, + IoK8sApiCoreV1ContainerStateWaitingToJSON, +} from './IoK8sApiCoreV1ContainerStateWaiting'; + +/** + * ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting. + * @export + * @interface IoK8sApiCoreV1ContainerState + */ +export interface IoK8sApiCoreV1ContainerState { + /** + * + * @type {IoK8sApiCoreV1ContainerStateRunning} + * @memberof IoK8sApiCoreV1ContainerState + */ + running?: IoK8sApiCoreV1ContainerStateRunning; + /** + * + * @type {IoK8sApiCoreV1ContainerStateTerminated} + * @memberof IoK8sApiCoreV1ContainerState + */ + terminated?: IoK8sApiCoreV1ContainerStateTerminated; + /** + * + * @type {IoK8sApiCoreV1ContainerStateWaiting} + * @memberof IoK8sApiCoreV1ContainerState + */ + waiting?: IoK8sApiCoreV1ContainerStateWaiting; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ContainerState interface. + */ +export function instanceOfIoK8sApiCoreV1ContainerState(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1ContainerStateFromJSON(json: any): IoK8sApiCoreV1ContainerState { + return IoK8sApiCoreV1ContainerStateFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ContainerStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ContainerState { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'running': !exists(json, 'running') ? undefined : IoK8sApiCoreV1ContainerStateRunningFromJSON(json['running']), + 'terminated': !exists(json, 'terminated') ? undefined : IoK8sApiCoreV1ContainerStateTerminatedFromJSON(json['terminated']), + 'waiting': !exists(json, 'waiting') ? undefined : IoK8sApiCoreV1ContainerStateWaitingFromJSON(json['waiting']), + }; +} + +export function IoK8sApiCoreV1ContainerStateToJSON(value?: IoK8sApiCoreV1ContainerState | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'running': IoK8sApiCoreV1ContainerStateRunningToJSON(value.running), + 'terminated': IoK8sApiCoreV1ContainerStateTerminatedToJSON(value.terminated), + 'waiting': IoK8sApiCoreV1ContainerStateWaitingToJSON(value.waiting), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerStateRunning.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerStateRunning.ts new file mode 100644 index 000000000..93cdb89af --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerStateRunning.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ContainerStateRunning is a running state of a container. + * @export + * @interface IoK8sApiCoreV1ContainerStateRunning + */ +export interface IoK8sApiCoreV1ContainerStateRunning { + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiCoreV1ContainerStateRunning + */ + startedAt?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ContainerStateRunning interface. + */ +export function instanceOfIoK8sApiCoreV1ContainerStateRunning(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1ContainerStateRunningFromJSON(json: any): IoK8sApiCoreV1ContainerStateRunning { + return IoK8sApiCoreV1ContainerStateRunningFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ContainerStateRunningFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ContainerStateRunning { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'startedAt': !exists(json, 'startedAt') ? undefined : json['startedAt'], + }; +} + +export function IoK8sApiCoreV1ContainerStateRunningToJSON(value?: IoK8sApiCoreV1ContainerStateRunning | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'startedAt': value.startedAt === undefined ? undefined : (value.startedAt), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerStateTerminated.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerStateTerminated.ts new file mode 100644 index 000000000..aaec5acf3 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerStateTerminated.ts @@ -0,0 +1,114 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ContainerStateTerminated is a terminated state of a container. + * @export + * @interface IoK8sApiCoreV1ContainerStateTerminated + */ +export interface IoK8sApiCoreV1ContainerStateTerminated { + /** + * Container's ID in the format '://' + * @type {string} + * @memberof IoK8sApiCoreV1ContainerStateTerminated + */ + containerID?: string; + /** + * Exit status from the last termination of the container + * @type {number} + * @memberof IoK8sApiCoreV1ContainerStateTerminated + */ + exitCode: number; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiCoreV1ContainerStateTerminated + */ + finishedAt?: string; + /** + * Message regarding the last termination of the container + * @type {string} + * @memberof IoK8sApiCoreV1ContainerStateTerminated + */ + message?: string; + /** + * (brief) reason from the last termination of the container + * @type {string} + * @memberof IoK8sApiCoreV1ContainerStateTerminated + */ + reason?: string; + /** + * Signal from the last termination of the container + * @type {number} + * @memberof IoK8sApiCoreV1ContainerStateTerminated + */ + signal?: number; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiCoreV1ContainerStateTerminated + */ + startedAt?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ContainerStateTerminated interface. + */ +export function instanceOfIoK8sApiCoreV1ContainerStateTerminated(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "exitCode" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1ContainerStateTerminatedFromJSON(json: any): IoK8sApiCoreV1ContainerStateTerminated { + return IoK8sApiCoreV1ContainerStateTerminatedFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ContainerStateTerminatedFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ContainerStateTerminated { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'containerID': !exists(json, 'containerID') ? undefined : json['containerID'], + 'exitCode': json['exitCode'], + 'finishedAt': !exists(json, 'finishedAt') ? undefined : json['finishedAt'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'signal': !exists(json, 'signal') ? undefined : json['signal'], + 'startedAt': !exists(json, 'startedAt') ? undefined : json['startedAt'], + }; +} + +export function IoK8sApiCoreV1ContainerStateTerminatedToJSON(value?: IoK8sApiCoreV1ContainerStateTerminated | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'containerID': value.containerID, + 'exitCode': value.exitCode, + 'finishedAt': value.finishedAt === undefined ? undefined : (value.finishedAt), + 'message': value.message, + 'reason': value.reason, + 'signal': value.signal, + 'startedAt': value.startedAt === undefined ? undefined : (value.startedAt), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerStateWaiting.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerStateWaiting.ts new file mode 100644 index 000000000..81beddd93 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerStateWaiting.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ContainerStateWaiting is a waiting state of a container. + * @export + * @interface IoK8sApiCoreV1ContainerStateWaiting + */ +export interface IoK8sApiCoreV1ContainerStateWaiting { + /** + * Message regarding why the container is not yet running. + * @type {string} + * @memberof IoK8sApiCoreV1ContainerStateWaiting + */ + message?: string; + /** + * (brief) reason the container is not yet running. + * @type {string} + * @memberof IoK8sApiCoreV1ContainerStateWaiting + */ + reason?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ContainerStateWaiting interface. + */ +export function instanceOfIoK8sApiCoreV1ContainerStateWaiting(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1ContainerStateWaitingFromJSON(json: any): IoK8sApiCoreV1ContainerStateWaiting { + return IoK8sApiCoreV1ContainerStateWaitingFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ContainerStateWaitingFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ContainerStateWaiting { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + }; +} + +export function IoK8sApiCoreV1ContainerStateWaitingToJSON(value?: IoK8sApiCoreV1ContainerStateWaiting | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'message': value.message, + 'reason': value.reason, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerStatus.ts new file mode 100644 index 000000000..2409c6b23 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ContainerStatus.ts @@ -0,0 +1,165 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ContainerState } from './IoK8sApiCoreV1ContainerState'; +import { + IoK8sApiCoreV1ContainerStateFromJSON, + IoK8sApiCoreV1ContainerStateFromJSONTyped, + IoK8sApiCoreV1ContainerStateToJSON, +} from './IoK8sApiCoreV1ContainerState'; +import type { IoK8sApiCoreV1ResourceRequirements } from './IoK8sApiCoreV1ResourceRequirements'; +import { + IoK8sApiCoreV1ResourceRequirementsFromJSON, + IoK8sApiCoreV1ResourceRequirementsFromJSONTyped, + IoK8sApiCoreV1ResourceRequirementsToJSON, +} from './IoK8sApiCoreV1ResourceRequirements'; + +/** + * ContainerStatus contains details for the current status of this container. + * @export + * @interface IoK8sApiCoreV1ContainerStatus + */ +export interface IoK8sApiCoreV1ContainerStatus { + /** + * AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize. + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1ContainerStatus + */ + allocatedResources?: { [key: string]: string; }; + /** + * ContainerID is the ID of the container in the format '://'. Where type is a container runtime identifier, returned from Version call of CRI API (for example "containerd"). + * @type {string} + * @memberof IoK8sApiCoreV1ContainerStatus + */ + containerID?: string; + /** + * Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images. + * @type {string} + * @memberof IoK8sApiCoreV1ContainerStatus + */ + image: string; + /** + * ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime. + * @type {string} + * @memberof IoK8sApiCoreV1ContainerStatus + */ + imageID: string; + /** + * + * @type {IoK8sApiCoreV1ContainerState} + * @memberof IoK8sApiCoreV1ContainerStatus + */ + lastState?: IoK8sApiCoreV1ContainerState; + /** + * Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated. + * @type {string} + * @memberof IoK8sApiCoreV1ContainerStatus + */ + name: string; + /** + * Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field). + * + * The value is typically used to determine whether a container is ready to accept traffic. + * @type {boolean} + * @memberof IoK8sApiCoreV1ContainerStatus + */ + ready: boolean; + /** + * + * @type {IoK8sApiCoreV1ResourceRequirements} + * @memberof IoK8sApiCoreV1ContainerStatus + */ + resources?: IoK8sApiCoreV1ResourceRequirements; + /** + * RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative. + * @type {number} + * @memberof IoK8sApiCoreV1ContainerStatus + */ + restartCount: number; + /** + * Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false. + * @type {boolean} + * @memberof IoK8sApiCoreV1ContainerStatus + */ + started?: boolean; + /** + * + * @type {IoK8sApiCoreV1ContainerState} + * @memberof IoK8sApiCoreV1ContainerStatus + */ + state?: IoK8sApiCoreV1ContainerState; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ContainerStatus interface. + */ +export function instanceOfIoK8sApiCoreV1ContainerStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "image" in value; + isInstance = isInstance && "imageID" in value; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "ready" in value; + isInstance = isInstance && "restartCount" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1ContainerStatusFromJSON(json: any): IoK8sApiCoreV1ContainerStatus { + return IoK8sApiCoreV1ContainerStatusFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ContainerStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ContainerStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'allocatedResources': !exists(json, 'allocatedResources') ? undefined : json['allocatedResources'], + 'containerID': !exists(json, 'containerID') ? undefined : json['containerID'], + 'image': json['image'], + 'imageID': json['imageID'], + 'lastState': !exists(json, 'lastState') ? undefined : IoK8sApiCoreV1ContainerStateFromJSON(json['lastState']), + 'name': json['name'], + 'ready': json['ready'], + 'resources': !exists(json, 'resources') ? undefined : IoK8sApiCoreV1ResourceRequirementsFromJSON(json['resources']), + 'restartCount': json['restartCount'], + 'started': !exists(json, 'started') ? undefined : json['started'], + 'state': !exists(json, 'state') ? undefined : IoK8sApiCoreV1ContainerStateFromJSON(json['state']), + }; +} + +export function IoK8sApiCoreV1ContainerStatusToJSON(value?: IoK8sApiCoreV1ContainerStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'allocatedResources': value.allocatedResources, + 'containerID': value.containerID, + 'image': value.image, + 'imageID': value.imageID, + 'lastState': IoK8sApiCoreV1ContainerStateToJSON(value.lastState), + 'name': value.name, + 'ready': value.ready, + 'resources': IoK8sApiCoreV1ResourceRequirementsToJSON(value.resources), + 'restartCount': value.restartCount, + 'started': value.started, + 'state': IoK8sApiCoreV1ContainerStateToJSON(value.state), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1DaemonEndpoint.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1DaemonEndpoint.ts new file mode 100644 index 000000000..655fcd967 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1DaemonEndpoint.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * DaemonEndpoint contains information about a single Daemon endpoint. + * @export + * @interface IoK8sApiCoreV1DaemonEndpoint + */ +export interface IoK8sApiCoreV1DaemonEndpoint { + /** + * Port number of the given endpoint. + * @type {number} + * @memberof IoK8sApiCoreV1DaemonEndpoint + */ + port: number; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1DaemonEndpoint interface. + */ +export function instanceOfIoK8sApiCoreV1DaemonEndpoint(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "port" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1DaemonEndpointFromJSON(json: any): IoK8sApiCoreV1DaemonEndpoint { + return IoK8sApiCoreV1DaemonEndpointFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1DaemonEndpointFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1DaemonEndpoint { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'port': json['Port'], + }; +} + +export function IoK8sApiCoreV1DaemonEndpointToJSON(value?: IoK8sApiCoreV1DaemonEndpoint | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Port': value.port, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1DownwardAPIProjection.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1DownwardAPIProjection.ts new file mode 100644 index 000000000..b3ca6c419 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1DownwardAPIProjection.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1DownwardAPIVolumeFile } from './IoK8sApiCoreV1DownwardAPIVolumeFile'; +import { + IoK8sApiCoreV1DownwardAPIVolumeFileFromJSON, + IoK8sApiCoreV1DownwardAPIVolumeFileFromJSONTyped, + IoK8sApiCoreV1DownwardAPIVolumeFileToJSON, +} from './IoK8sApiCoreV1DownwardAPIVolumeFile'; + +/** + * Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode. + * @export + * @interface IoK8sApiCoreV1DownwardAPIProjection + */ +export interface IoK8sApiCoreV1DownwardAPIProjection { + /** + * Items is a list of DownwardAPIVolume file + * @type {Array} + * @memberof IoK8sApiCoreV1DownwardAPIProjection + */ + items?: Array; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1DownwardAPIProjection interface. + */ +export function instanceOfIoK8sApiCoreV1DownwardAPIProjection(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1DownwardAPIProjectionFromJSON(json: any): IoK8sApiCoreV1DownwardAPIProjection { + return IoK8sApiCoreV1DownwardAPIProjectionFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1DownwardAPIProjectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1DownwardAPIProjection { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'items': !exists(json, 'items') ? undefined : ((json['items'] as Array).map(IoK8sApiCoreV1DownwardAPIVolumeFileFromJSON)), + }; +} + +export function IoK8sApiCoreV1DownwardAPIProjectionToJSON(value?: IoK8sApiCoreV1DownwardAPIProjection | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'items': value.items === undefined ? undefined : ((value.items as Array).map(IoK8sApiCoreV1DownwardAPIVolumeFileToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1DownwardAPIVolumeFile.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1DownwardAPIVolumeFile.ts new file mode 100644 index 000000000..359794710 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1DownwardAPIVolumeFile.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ObjectFieldSelector } from './IoK8sApiCoreV1ObjectFieldSelector'; +import { + IoK8sApiCoreV1ObjectFieldSelectorFromJSON, + IoK8sApiCoreV1ObjectFieldSelectorFromJSONTyped, + IoK8sApiCoreV1ObjectFieldSelectorToJSON, +} from './IoK8sApiCoreV1ObjectFieldSelector'; +import type { IoK8sApiCoreV1ResourceFieldSelector } from './IoK8sApiCoreV1ResourceFieldSelector'; +import { + IoK8sApiCoreV1ResourceFieldSelectorFromJSON, + IoK8sApiCoreV1ResourceFieldSelectorFromJSONTyped, + IoK8sApiCoreV1ResourceFieldSelectorToJSON, +} from './IoK8sApiCoreV1ResourceFieldSelector'; + +/** + * DownwardAPIVolumeFile represents information to create the file containing the pod field + * @export + * @interface IoK8sApiCoreV1DownwardAPIVolumeFile + */ +export interface IoK8sApiCoreV1DownwardAPIVolumeFile { + /** + * + * @type {IoK8sApiCoreV1ObjectFieldSelector} + * @memberof IoK8sApiCoreV1DownwardAPIVolumeFile + */ + fieldRef?: IoK8sApiCoreV1ObjectFieldSelector; + /** + * Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + * @type {number} + * @memberof IoK8sApiCoreV1DownwardAPIVolumeFile + */ + mode?: number; + /** + * Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * @type {string} + * @memberof IoK8sApiCoreV1DownwardAPIVolumeFile + */ + path: string; + /** + * + * @type {IoK8sApiCoreV1ResourceFieldSelector} + * @memberof IoK8sApiCoreV1DownwardAPIVolumeFile + */ + resourceFieldRef?: IoK8sApiCoreV1ResourceFieldSelector; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1DownwardAPIVolumeFile interface. + */ +export function instanceOfIoK8sApiCoreV1DownwardAPIVolumeFile(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "path" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1DownwardAPIVolumeFileFromJSON(json: any): IoK8sApiCoreV1DownwardAPIVolumeFile { + return IoK8sApiCoreV1DownwardAPIVolumeFileFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1DownwardAPIVolumeFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1DownwardAPIVolumeFile { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'fieldRef': !exists(json, 'fieldRef') ? undefined : IoK8sApiCoreV1ObjectFieldSelectorFromJSON(json['fieldRef']), + 'mode': !exists(json, 'mode') ? undefined : json['mode'], + 'path': json['path'], + 'resourceFieldRef': !exists(json, 'resourceFieldRef') ? undefined : IoK8sApiCoreV1ResourceFieldSelectorFromJSON(json['resourceFieldRef']), + }; +} + +export function IoK8sApiCoreV1DownwardAPIVolumeFileToJSON(value?: IoK8sApiCoreV1DownwardAPIVolumeFile | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'fieldRef': IoK8sApiCoreV1ObjectFieldSelectorToJSON(value.fieldRef), + 'mode': value.mode, + 'path': value.path, + 'resourceFieldRef': IoK8sApiCoreV1ResourceFieldSelectorToJSON(value.resourceFieldRef), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1DownwardAPIVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1DownwardAPIVolumeSource.ts new file mode 100644 index 000000000..7bffa3537 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1DownwardAPIVolumeSource.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1DownwardAPIVolumeFile } from './IoK8sApiCoreV1DownwardAPIVolumeFile'; +import { + IoK8sApiCoreV1DownwardAPIVolumeFileFromJSON, + IoK8sApiCoreV1DownwardAPIVolumeFileFromJSONTyped, + IoK8sApiCoreV1DownwardAPIVolumeFileToJSON, +} from './IoK8sApiCoreV1DownwardAPIVolumeFile'; + +/** + * DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling. + * @export + * @interface IoK8sApiCoreV1DownwardAPIVolumeSource + */ +export interface IoK8sApiCoreV1DownwardAPIVolumeSource { + /** + * Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + * @type {number} + * @memberof IoK8sApiCoreV1DownwardAPIVolumeSource + */ + defaultMode?: number; + /** + * Items is a list of downward API volume file + * @type {Array} + * @memberof IoK8sApiCoreV1DownwardAPIVolumeSource + */ + items?: Array; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1DownwardAPIVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1DownwardAPIVolumeSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1DownwardAPIVolumeSourceFromJSON(json: any): IoK8sApiCoreV1DownwardAPIVolumeSource { + return IoK8sApiCoreV1DownwardAPIVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1DownwardAPIVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1DownwardAPIVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'defaultMode': !exists(json, 'defaultMode') ? undefined : json['defaultMode'], + 'items': !exists(json, 'items') ? undefined : ((json['items'] as Array).map(IoK8sApiCoreV1DownwardAPIVolumeFileFromJSON)), + }; +} + +export function IoK8sApiCoreV1DownwardAPIVolumeSourceToJSON(value?: IoK8sApiCoreV1DownwardAPIVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'defaultMode': value.defaultMode, + 'items': value.items === undefined ? undefined : ((value.items as Array).map(IoK8sApiCoreV1DownwardAPIVolumeFileToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EmptyDirVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EmptyDirVolumeSource.ts new file mode 100644 index 000000000..77183930a --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EmptyDirVolumeSource.ts @@ -0,0 +1,109 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling. + * @export + * @interface IoK8sApiCoreV1EmptyDirVolumeSource + */ +export interface IoK8sApiCoreV1EmptyDirVolumeSource { + /** + * medium represents what type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * @type {string} + * @memberof IoK8sApiCoreV1EmptyDirVolumeSource + */ + medium?: string; + /** + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + * + * The serialization format is: + * + * ``` ::= + * + * (Note that may be empty, from the "" case in .) + * + * ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + * + * (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + * + * ::= m | "" | k | M | G | T | P | E + * + * (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + * + * ::= "e" | "E" ``` + * + * No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + * + * When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + * + * Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + * + * - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. + * + * The sign will be omitted unless the number is negative. + * + * Examples: + * + * - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" + * + * Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + * + * Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + * + * This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + * @type {string} + * @memberof IoK8sApiCoreV1EmptyDirVolumeSource + */ + sizeLimit?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1EmptyDirVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1EmptyDirVolumeSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1EmptyDirVolumeSourceFromJSON(json: any): IoK8sApiCoreV1EmptyDirVolumeSource { + return IoK8sApiCoreV1EmptyDirVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1EmptyDirVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1EmptyDirVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'medium': !exists(json, 'medium') ? undefined : json['medium'], + 'sizeLimit': !exists(json, 'sizeLimit') ? undefined : json['sizeLimit'], + }; +} + +export function IoK8sApiCoreV1EmptyDirVolumeSourceToJSON(value?: IoK8sApiCoreV1EmptyDirVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'medium': value.medium, + 'sizeLimit': value.sizeLimit, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EndpointAddress.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EndpointAddress.ts new file mode 100644 index 000000000..d1f89d16e --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EndpointAddress.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ObjectReference } from './IoK8sApiCoreV1ObjectReference'; +import { + IoK8sApiCoreV1ObjectReferenceFromJSON, + IoK8sApiCoreV1ObjectReferenceFromJSONTyped, + IoK8sApiCoreV1ObjectReferenceToJSON, +} from './IoK8sApiCoreV1ObjectReference'; + +/** + * EndpointAddress is a tuple that describes single IP address. + * @export + * @interface IoK8sApiCoreV1EndpointAddress + */ +export interface IoK8sApiCoreV1EndpointAddress { + /** + * The Hostname of this endpoint + * @type {string} + * @memberof IoK8sApiCoreV1EndpointAddress + */ + hostname?: string; + /** + * The IP of this endpoint. May not be loopback (127.0.0.0/8 or ::1), link-local (169.254.0.0/16 or fe80::/10), or link-local multicast (224.0.0.0/24 or ff02::/16). + * @type {string} + * @memberof IoK8sApiCoreV1EndpointAddress + */ + ip: string; + /** + * Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. + * @type {string} + * @memberof IoK8sApiCoreV1EndpointAddress + */ + nodeName?: string; + /** + * + * @type {IoK8sApiCoreV1ObjectReference} + * @memberof IoK8sApiCoreV1EndpointAddress + */ + targetRef?: IoK8sApiCoreV1ObjectReference; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1EndpointAddress interface. + */ +export function instanceOfIoK8sApiCoreV1EndpointAddress(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "ip" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1EndpointAddressFromJSON(json: any): IoK8sApiCoreV1EndpointAddress { + return IoK8sApiCoreV1EndpointAddressFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1EndpointAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1EndpointAddress { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'hostname': !exists(json, 'hostname') ? undefined : json['hostname'], + 'ip': json['ip'], + 'nodeName': !exists(json, 'nodeName') ? undefined : json['nodeName'], + 'targetRef': !exists(json, 'targetRef') ? undefined : IoK8sApiCoreV1ObjectReferenceFromJSON(json['targetRef']), + }; +} + +export function IoK8sApiCoreV1EndpointAddressToJSON(value?: IoK8sApiCoreV1EndpointAddress | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'hostname': value.hostname, + 'ip': value.ip, + 'nodeName': value.nodeName, + 'targetRef': IoK8sApiCoreV1ObjectReferenceToJSON(value.targetRef), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EndpointPort.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EndpointPort.ts new file mode 100644 index 000000000..37d0818a8 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EndpointPort.ts @@ -0,0 +1,99 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * EndpointPort is a tuple that describes a single port. + * @export + * @interface IoK8sApiCoreV1EndpointPort + */ +export interface IoK8sApiCoreV1EndpointPort { + /** + * The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: + * + * * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). + * + * * Kubernetes-defined prefixed names: + * * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- + * * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 + * * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 + * + * * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. + * @type {string} + * @memberof IoK8sApiCoreV1EndpointPort + */ + appProtocol?: string; + /** + * The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined. + * @type {string} + * @memberof IoK8sApiCoreV1EndpointPort + */ + name?: string; + /** + * The port number of the endpoint. + * @type {number} + * @memberof IoK8sApiCoreV1EndpointPort + */ + port: number; + /** + * The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. + * @type {string} + * @memberof IoK8sApiCoreV1EndpointPort + */ + protocol?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1EndpointPort interface. + */ +export function instanceOfIoK8sApiCoreV1EndpointPort(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "port" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1EndpointPortFromJSON(json: any): IoK8sApiCoreV1EndpointPort { + return IoK8sApiCoreV1EndpointPortFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1EndpointPortFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1EndpointPort { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'appProtocol': !exists(json, 'appProtocol') ? undefined : json['appProtocol'], + 'name': !exists(json, 'name') ? undefined : json['name'], + 'port': json['port'], + 'protocol': !exists(json, 'protocol') ? undefined : json['protocol'], + }; +} + +export function IoK8sApiCoreV1EndpointPortToJSON(value?: IoK8sApiCoreV1EndpointPort | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'appProtocol': value.appProtocol, + 'name': value.name, + 'port': value.port, + 'protocol': value.protocol, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EndpointSubset.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EndpointSubset.ts new file mode 100644 index 000000000..6ef6a9773 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EndpointSubset.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1EndpointAddress } from './IoK8sApiCoreV1EndpointAddress'; +import { + IoK8sApiCoreV1EndpointAddressFromJSON, + IoK8sApiCoreV1EndpointAddressFromJSONTyped, + IoK8sApiCoreV1EndpointAddressToJSON, +} from './IoK8sApiCoreV1EndpointAddress'; +import type { IoK8sApiCoreV1EndpointPort } from './IoK8sApiCoreV1EndpointPort'; +import { + IoK8sApiCoreV1EndpointPortFromJSON, + IoK8sApiCoreV1EndpointPortFromJSONTyped, + IoK8sApiCoreV1EndpointPortToJSON, +} from './IoK8sApiCoreV1EndpointPort'; + +/** + * EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: + * + * { + * Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], + * Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] + * } + * + * The resulting set of endpoints can be viewed as: + * + * a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], + * b: [ 10.10.1.1:309, 10.10.2.2:309 ] + * @export + * @interface IoK8sApiCoreV1EndpointSubset + */ +export interface IoK8sApiCoreV1EndpointSubset { + /** + * IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. + * @type {Array} + * @memberof IoK8sApiCoreV1EndpointSubset + */ + addresses?: Array; + /** + * IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. + * @type {Array} + * @memberof IoK8sApiCoreV1EndpointSubset + */ + notReadyAddresses?: Array; + /** + * Port numbers available on the related IP addresses. + * @type {Array} + * @memberof IoK8sApiCoreV1EndpointSubset + */ + ports?: Array; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1EndpointSubset interface. + */ +export function instanceOfIoK8sApiCoreV1EndpointSubset(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1EndpointSubsetFromJSON(json: any): IoK8sApiCoreV1EndpointSubset { + return IoK8sApiCoreV1EndpointSubsetFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1EndpointSubsetFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1EndpointSubset { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'addresses': !exists(json, 'addresses') ? undefined : ((json['addresses'] as Array).map(IoK8sApiCoreV1EndpointAddressFromJSON)), + 'notReadyAddresses': !exists(json, 'notReadyAddresses') ? undefined : ((json['notReadyAddresses'] as Array).map(IoK8sApiCoreV1EndpointAddressFromJSON)), + 'ports': !exists(json, 'ports') ? undefined : ((json['ports'] as Array).map(IoK8sApiCoreV1EndpointPortFromJSON)), + }; +} + +export function IoK8sApiCoreV1EndpointSubsetToJSON(value?: IoK8sApiCoreV1EndpointSubset | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'addresses': value.addresses === undefined ? undefined : ((value.addresses as Array).map(IoK8sApiCoreV1EndpointAddressToJSON)), + 'notReadyAddresses': value.notReadyAddresses === undefined ? undefined : ((value.notReadyAddresses as Array).map(IoK8sApiCoreV1EndpointAddressToJSON)), + 'ports': value.ports === undefined ? undefined : ((value.ports as Array).map(IoK8sApiCoreV1EndpointPortToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Endpoints.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Endpoints.ts new file mode 100644 index 000000000..b1d214ef6 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Endpoints.ts @@ -0,0 +1,114 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1EndpointSubset } from './IoK8sApiCoreV1EndpointSubset'; +import { + IoK8sApiCoreV1EndpointSubsetFromJSON, + IoK8sApiCoreV1EndpointSubsetFromJSONTyped, + IoK8sApiCoreV1EndpointSubsetToJSON, +} from './IoK8sApiCoreV1EndpointSubset'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * Endpoints is a collection of endpoints that implement the actual service. Example: + * + * Name: "mysvc", + * Subsets: [ + * { + * Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], + * Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] + * }, + * { + * Addresses: [{"ip": "10.10.3.3"}], + * Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] + * }, + * ] + * @export + * @interface IoK8sApiCoreV1Endpoints + */ +export interface IoK8sApiCoreV1Endpoints { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1Endpoints + */ + 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 + * @type {string} + * @memberof IoK8sApiCoreV1Endpoints + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiCoreV1Endpoints + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. + * @type {Array} + * @memberof IoK8sApiCoreV1Endpoints + */ + subsets?: Array; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1Endpoints interface. + */ +export function instanceOfIoK8sApiCoreV1Endpoints(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1EndpointsFromJSON(json: any): IoK8sApiCoreV1Endpoints { + return IoK8sApiCoreV1EndpointsFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1EndpointsFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1Endpoints { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'subsets': !exists(json, 'subsets') ? undefined : ((json['subsets'] as Array).map(IoK8sApiCoreV1EndpointSubsetFromJSON)), + }; +} + +export function IoK8sApiCoreV1EndpointsToJSON(value?: IoK8sApiCoreV1Endpoints | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'subsets': value.subsets === undefined ? undefined : ((value.subsets as Array).map(IoK8sApiCoreV1EndpointSubsetToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EndpointsList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EndpointsList.ts new file mode 100644 index 000000000..296bc565c --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EndpointsList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1Endpoints } from './IoK8sApiCoreV1Endpoints'; +import { + IoK8sApiCoreV1EndpointsFromJSON, + IoK8sApiCoreV1EndpointsFromJSONTyped, + IoK8sApiCoreV1EndpointsToJSON, +} from './IoK8sApiCoreV1Endpoints'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * EndpointsList is a list of endpoints. + * @export + * @interface IoK8sApiCoreV1EndpointsList + */ +export interface IoK8sApiCoreV1EndpointsList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1EndpointsList + */ + apiVersion?: string; + /** + * List of endpoints. + * @type {Array} + * @memberof IoK8sApiCoreV1EndpointsList + */ + 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 + * @type {string} + * @memberof IoK8sApiCoreV1EndpointsList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiCoreV1EndpointsList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1EndpointsList interface. + */ +export function instanceOfIoK8sApiCoreV1EndpointsList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1EndpointsListFromJSON(json: any): IoK8sApiCoreV1EndpointsList { + return IoK8sApiCoreV1EndpointsListFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1EndpointsListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1EndpointsList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiCoreV1EndpointsFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiCoreV1EndpointsListToJSON(value?: IoK8sApiCoreV1EndpointsList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiCoreV1EndpointsToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EnvFromSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EnvFromSource.ts new file mode 100644 index 000000000..f3a0ea9d9 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EnvFromSource.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ConfigMapEnvSource } from './IoK8sApiCoreV1ConfigMapEnvSource'; +import { + IoK8sApiCoreV1ConfigMapEnvSourceFromJSON, + IoK8sApiCoreV1ConfigMapEnvSourceFromJSONTyped, + IoK8sApiCoreV1ConfigMapEnvSourceToJSON, +} from './IoK8sApiCoreV1ConfigMapEnvSource'; +import type { IoK8sApiCoreV1SecretEnvSource } from './IoK8sApiCoreV1SecretEnvSource'; +import { + IoK8sApiCoreV1SecretEnvSourceFromJSON, + IoK8sApiCoreV1SecretEnvSourceFromJSONTyped, + IoK8sApiCoreV1SecretEnvSourceToJSON, +} from './IoK8sApiCoreV1SecretEnvSource'; + +/** + * EnvFromSource represents the source of a set of ConfigMaps + * @export + * @interface IoK8sApiCoreV1EnvFromSource + */ +export interface IoK8sApiCoreV1EnvFromSource { + /** + * + * @type {IoK8sApiCoreV1ConfigMapEnvSource} + * @memberof IoK8sApiCoreV1EnvFromSource + */ + configMapRef?: IoK8sApiCoreV1ConfigMapEnvSource; + /** + * An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * @type {string} + * @memberof IoK8sApiCoreV1EnvFromSource + */ + prefix?: string; + /** + * + * @type {IoK8sApiCoreV1SecretEnvSource} + * @memberof IoK8sApiCoreV1EnvFromSource + */ + secretRef?: IoK8sApiCoreV1SecretEnvSource; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1EnvFromSource interface. + */ +export function instanceOfIoK8sApiCoreV1EnvFromSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1EnvFromSourceFromJSON(json: any): IoK8sApiCoreV1EnvFromSource { + return IoK8sApiCoreV1EnvFromSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1EnvFromSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1EnvFromSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'configMapRef': !exists(json, 'configMapRef') ? undefined : IoK8sApiCoreV1ConfigMapEnvSourceFromJSON(json['configMapRef']), + 'prefix': !exists(json, 'prefix') ? undefined : json['prefix'], + 'secretRef': !exists(json, 'secretRef') ? undefined : IoK8sApiCoreV1SecretEnvSourceFromJSON(json['secretRef']), + }; +} + +export function IoK8sApiCoreV1EnvFromSourceToJSON(value?: IoK8sApiCoreV1EnvFromSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'configMapRef': IoK8sApiCoreV1ConfigMapEnvSourceToJSON(value.configMapRef), + 'prefix': value.prefix, + 'secretRef': IoK8sApiCoreV1SecretEnvSourceToJSON(value.secretRef), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EnvVar.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EnvVar.ts new file mode 100644 index 000000000..67061afba --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EnvVar.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1EnvVarSource } from './IoK8sApiCoreV1EnvVarSource'; +import { + IoK8sApiCoreV1EnvVarSourceFromJSON, + IoK8sApiCoreV1EnvVarSourceFromJSONTyped, + IoK8sApiCoreV1EnvVarSourceToJSON, +} from './IoK8sApiCoreV1EnvVarSource'; + +/** + * EnvVar represents an environment variable present in a Container. + * @export + * @interface IoK8sApiCoreV1EnvVar + */ +export interface IoK8sApiCoreV1EnvVar { + /** + * Name of the environment variable. Must be a C_IDENTIFIER. + * @type {string} + * @memberof IoK8sApiCoreV1EnvVar + */ + name: string; + /** + * Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * @type {string} + * @memberof IoK8sApiCoreV1EnvVar + */ + value?: string; + /** + * + * @type {IoK8sApiCoreV1EnvVarSource} + * @memberof IoK8sApiCoreV1EnvVar + */ + valueFrom?: IoK8sApiCoreV1EnvVarSource; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1EnvVar interface. + */ +export function instanceOfIoK8sApiCoreV1EnvVar(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1EnvVarFromJSON(json: any): IoK8sApiCoreV1EnvVar { + return IoK8sApiCoreV1EnvVarFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1EnvVarFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1EnvVar { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + 'value': !exists(json, 'value') ? undefined : json['value'], + 'valueFrom': !exists(json, 'valueFrom') ? undefined : IoK8sApiCoreV1EnvVarSourceFromJSON(json['valueFrom']), + }; +} + +export function IoK8sApiCoreV1EnvVarToJSON(value?: IoK8sApiCoreV1EnvVar | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'value': value.value, + 'valueFrom': IoK8sApiCoreV1EnvVarSourceToJSON(value.valueFrom), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EnvVarSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EnvVarSource.ts new file mode 100644 index 000000000..a01277ce4 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EnvVarSource.ts @@ -0,0 +1,114 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ConfigMapKeySelector } from './IoK8sApiCoreV1ConfigMapKeySelector'; +import { + IoK8sApiCoreV1ConfigMapKeySelectorFromJSON, + IoK8sApiCoreV1ConfigMapKeySelectorFromJSONTyped, + IoK8sApiCoreV1ConfigMapKeySelectorToJSON, +} from './IoK8sApiCoreV1ConfigMapKeySelector'; +import type { IoK8sApiCoreV1ObjectFieldSelector } from './IoK8sApiCoreV1ObjectFieldSelector'; +import { + IoK8sApiCoreV1ObjectFieldSelectorFromJSON, + IoK8sApiCoreV1ObjectFieldSelectorFromJSONTyped, + IoK8sApiCoreV1ObjectFieldSelectorToJSON, +} from './IoK8sApiCoreV1ObjectFieldSelector'; +import type { IoK8sApiCoreV1ResourceFieldSelector } from './IoK8sApiCoreV1ResourceFieldSelector'; +import { + IoK8sApiCoreV1ResourceFieldSelectorFromJSON, + IoK8sApiCoreV1ResourceFieldSelectorFromJSONTyped, + IoK8sApiCoreV1ResourceFieldSelectorToJSON, +} from './IoK8sApiCoreV1ResourceFieldSelector'; +import type { IoK8sApiCoreV1SecretKeySelector } from './IoK8sApiCoreV1SecretKeySelector'; +import { + IoK8sApiCoreV1SecretKeySelectorFromJSON, + IoK8sApiCoreV1SecretKeySelectorFromJSONTyped, + IoK8sApiCoreV1SecretKeySelectorToJSON, +} from './IoK8sApiCoreV1SecretKeySelector'; + +/** + * EnvVarSource represents a source for the value of an EnvVar. + * @export + * @interface IoK8sApiCoreV1EnvVarSource + */ +export interface IoK8sApiCoreV1EnvVarSource { + /** + * + * @type {IoK8sApiCoreV1ConfigMapKeySelector} + * @memberof IoK8sApiCoreV1EnvVarSource + */ + configMapKeyRef?: IoK8sApiCoreV1ConfigMapKeySelector; + /** + * + * @type {IoK8sApiCoreV1ObjectFieldSelector} + * @memberof IoK8sApiCoreV1EnvVarSource + */ + fieldRef?: IoK8sApiCoreV1ObjectFieldSelector; + /** + * + * @type {IoK8sApiCoreV1ResourceFieldSelector} + * @memberof IoK8sApiCoreV1EnvVarSource + */ + resourceFieldRef?: IoK8sApiCoreV1ResourceFieldSelector; + /** + * + * @type {IoK8sApiCoreV1SecretKeySelector} + * @memberof IoK8sApiCoreV1EnvVarSource + */ + secretKeyRef?: IoK8sApiCoreV1SecretKeySelector; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1EnvVarSource interface. + */ +export function instanceOfIoK8sApiCoreV1EnvVarSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1EnvVarSourceFromJSON(json: any): IoK8sApiCoreV1EnvVarSource { + return IoK8sApiCoreV1EnvVarSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1EnvVarSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1EnvVarSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'configMapKeyRef': !exists(json, 'configMapKeyRef') ? undefined : IoK8sApiCoreV1ConfigMapKeySelectorFromJSON(json['configMapKeyRef']), + 'fieldRef': !exists(json, 'fieldRef') ? undefined : IoK8sApiCoreV1ObjectFieldSelectorFromJSON(json['fieldRef']), + 'resourceFieldRef': !exists(json, 'resourceFieldRef') ? undefined : IoK8sApiCoreV1ResourceFieldSelectorFromJSON(json['resourceFieldRef']), + 'secretKeyRef': !exists(json, 'secretKeyRef') ? undefined : IoK8sApiCoreV1SecretKeySelectorFromJSON(json['secretKeyRef']), + }; +} + +export function IoK8sApiCoreV1EnvVarSourceToJSON(value?: IoK8sApiCoreV1EnvVarSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'configMapKeyRef': IoK8sApiCoreV1ConfigMapKeySelectorToJSON(value.configMapKeyRef), + 'fieldRef': IoK8sApiCoreV1ObjectFieldSelectorToJSON(value.fieldRef), + 'resourceFieldRef': IoK8sApiCoreV1ResourceFieldSelectorToJSON(value.resourceFieldRef), + 'secretKeyRef': IoK8sApiCoreV1SecretKeySelectorToJSON(value.secretKeyRef), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EphemeralContainer.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EphemeralContainer.ts new file mode 100644 index 000000000..7c7fae37b --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EphemeralContainer.ts @@ -0,0 +1,323 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ContainerPort } from './IoK8sApiCoreV1ContainerPort'; +import { + IoK8sApiCoreV1ContainerPortFromJSON, + IoK8sApiCoreV1ContainerPortFromJSONTyped, + IoK8sApiCoreV1ContainerPortToJSON, +} from './IoK8sApiCoreV1ContainerPort'; +import type { IoK8sApiCoreV1ContainerResizePolicy } from './IoK8sApiCoreV1ContainerResizePolicy'; +import { + IoK8sApiCoreV1ContainerResizePolicyFromJSON, + IoK8sApiCoreV1ContainerResizePolicyFromJSONTyped, + IoK8sApiCoreV1ContainerResizePolicyToJSON, +} from './IoK8sApiCoreV1ContainerResizePolicy'; +import type { IoK8sApiCoreV1EnvFromSource } from './IoK8sApiCoreV1EnvFromSource'; +import { + IoK8sApiCoreV1EnvFromSourceFromJSON, + IoK8sApiCoreV1EnvFromSourceFromJSONTyped, + IoK8sApiCoreV1EnvFromSourceToJSON, +} from './IoK8sApiCoreV1EnvFromSource'; +import type { IoK8sApiCoreV1EnvVar } from './IoK8sApiCoreV1EnvVar'; +import { + IoK8sApiCoreV1EnvVarFromJSON, + IoK8sApiCoreV1EnvVarFromJSONTyped, + IoK8sApiCoreV1EnvVarToJSON, +} from './IoK8sApiCoreV1EnvVar'; +import type { IoK8sApiCoreV1Lifecycle } from './IoK8sApiCoreV1Lifecycle'; +import { + IoK8sApiCoreV1LifecycleFromJSON, + IoK8sApiCoreV1LifecycleFromJSONTyped, + IoK8sApiCoreV1LifecycleToJSON, +} from './IoK8sApiCoreV1Lifecycle'; +import type { IoK8sApiCoreV1Probe } from './IoK8sApiCoreV1Probe'; +import { + IoK8sApiCoreV1ProbeFromJSON, + IoK8sApiCoreV1ProbeFromJSONTyped, + IoK8sApiCoreV1ProbeToJSON, +} from './IoK8sApiCoreV1Probe'; +import type { IoK8sApiCoreV1ResourceRequirements } from './IoK8sApiCoreV1ResourceRequirements'; +import { + IoK8sApiCoreV1ResourceRequirementsFromJSON, + IoK8sApiCoreV1ResourceRequirementsFromJSONTyped, + IoK8sApiCoreV1ResourceRequirementsToJSON, +} from './IoK8sApiCoreV1ResourceRequirements'; +import type { IoK8sApiCoreV1SecurityContext } from './IoK8sApiCoreV1SecurityContext'; +import { + IoK8sApiCoreV1SecurityContextFromJSON, + IoK8sApiCoreV1SecurityContextFromJSONTyped, + IoK8sApiCoreV1SecurityContextToJSON, +} from './IoK8sApiCoreV1SecurityContext'; +import type { IoK8sApiCoreV1VolumeDevice } from './IoK8sApiCoreV1VolumeDevice'; +import { + IoK8sApiCoreV1VolumeDeviceFromJSON, + IoK8sApiCoreV1VolumeDeviceFromJSONTyped, + IoK8sApiCoreV1VolumeDeviceToJSON, +} from './IoK8sApiCoreV1VolumeDevice'; +import type { IoK8sApiCoreV1VolumeMount } from './IoK8sApiCoreV1VolumeMount'; +import { + IoK8sApiCoreV1VolumeMountFromJSON, + IoK8sApiCoreV1VolumeMountFromJSONTyped, + IoK8sApiCoreV1VolumeMountToJSON, +} from './IoK8sApiCoreV1VolumeMount'; + +/** + * An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation. + * + * To add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted. + * @export + * @interface IoK8sApiCoreV1EphemeralContainer + */ +export interface IoK8sApiCoreV1EphemeralContainer { + /** + * Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * @type {Array} + * @memberof IoK8sApiCoreV1EphemeralContainer + */ + args?: string[]; + /** + * Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * @type {Array} + * @memberof IoK8sApiCoreV1EphemeralContainer + */ + command?: string[]; + /** + * List of environment variables to set in the container. Cannot be updated. + * @type {Array} + * @memberof IoK8sApiCoreV1EphemeralContainer + */ + 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. + * @type {Array} + * @memberof IoK8sApiCoreV1EphemeralContainer + */ + envFrom?: Array; + /** + * Container image name. More info: https://kubernetes.io/docs/concepts/containers/images + * @type {string} + * @memberof IoK8sApiCoreV1EphemeralContainer + */ + image?: string; + /** + * Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * @type {string} + * @memberof IoK8sApiCoreV1EphemeralContainer + */ + imagePullPolicy?: string; + /** + * + * @type {IoK8sApiCoreV1Lifecycle} + * @memberof IoK8sApiCoreV1EphemeralContainer + */ + lifecycle?: IoK8sApiCoreV1Lifecycle; + /** + * + * @type {IoK8sApiCoreV1Probe} + * @memberof IoK8sApiCoreV1EphemeralContainer + */ + livenessProbe?: IoK8sApiCoreV1Probe; + /** + * Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * @type {string} + * @memberof IoK8sApiCoreV1EphemeralContainer + */ + name: string; + /** + * Ports are not allowed for ephemeral containers. + * @type {Array} + * @memberof IoK8sApiCoreV1EphemeralContainer + */ + ports?: Array; + /** + * + * @type {IoK8sApiCoreV1Probe} + * @memberof IoK8sApiCoreV1EphemeralContainer + */ + readinessProbe?: IoK8sApiCoreV1Probe; + /** + * Resources resize policy for the container. + * @type {Array} + * @memberof IoK8sApiCoreV1EphemeralContainer + */ + resizePolicy?: Array; + /** + * + * @type {IoK8sApiCoreV1ResourceRequirements} + * @memberof IoK8sApiCoreV1EphemeralContainer + */ + resources?: IoK8sApiCoreV1ResourceRequirements; + /** + * Restart policy for the container to manage the restart behavior of each container within a pod. This may only be set for init containers. You cannot set this field on ephemeral containers. + * @type {string} + * @memberof IoK8sApiCoreV1EphemeralContainer + */ + restartPolicy?: string; + /** + * + * @type {IoK8sApiCoreV1SecurityContext} + * @memberof IoK8sApiCoreV1EphemeralContainer + */ + securityContext?: IoK8sApiCoreV1SecurityContext; + /** + * + * @type {IoK8sApiCoreV1Probe} + * @memberof IoK8sApiCoreV1EphemeralContainer + */ + startupProbe?: IoK8sApiCoreV1Probe; + /** + * Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * @type {boolean} + * @memberof IoK8sApiCoreV1EphemeralContainer + */ + stdin?: boolean; + /** + * Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * @type {boolean} + * @memberof IoK8sApiCoreV1EphemeralContainer + */ + stdinOnce?: boolean; + /** + * If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec. + * + * The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined. + * @type {string} + * @memberof IoK8sApiCoreV1EphemeralContainer + */ + targetContainerName?: string; + /** + * Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * @type {string} + * @memberof IoK8sApiCoreV1EphemeralContainer + */ + terminationMessagePath?: string; + /** + * Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * @type {string} + * @memberof IoK8sApiCoreV1EphemeralContainer + */ + terminationMessagePolicy?: string; + /** + * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * @type {boolean} + * @memberof IoK8sApiCoreV1EphemeralContainer + */ + tty?: boolean; + /** + * volumeDevices is the list of block devices to be used by the container. + * @type {Array} + * @memberof IoK8sApiCoreV1EphemeralContainer + */ + volumeDevices?: Array; + /** + * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated. + * @type {Array} + * @memberof IoK8sApiCoreV1EphemeralContainer + */ + volumeMounts?: Array; + /** + * Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + * @type {string} + * @memberof IoK8sApiCoreV1EphemeralContainer + */ + workingDir?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1EphemeralContainer interface. + */ +export function instanceOfIoK8sApiCoreV1EphemeralContainer(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1EphemeralContainerFromJSON(json: any): IoK8sApiCoreV1EphemeralContainer { + return IoK8sApiCoreV1EphemeralContainerFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1EphemeralContainerFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1EphemeralContainer { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'args': !exists(json, 'args') ? undefined : json['args'], + 'command': !exists(json, 'command') ? undefined : json['command'], + 'env': !exists(json, 'env') ? undefined : ((json['env'] as Array).map(IoK8sApiCoreV1EnvVarFromJSON)), + 'envFrom': !exists(json, 'envFrom') ? undefined : ((json['envFrom'] as Array).map(IoK8sApiCoreV1EnvFromSourceFromJSON)), + 'image': !exists(json, 'image') ? undefined : json['image'], + 'imagePullPolicy': !exists(json, 'imagePullPolicy') ? undefined : json['imagePullPolicy'], + 'lifecycle': !exists(json, 'lifecycle') ? undefined : IoK8sApiCoreV1LifecycleFromJSON(json['lifecycle']), + 'livenessProbe': !exists(json, 'livenessProbe') ? undefined : IoK8sApiCoreV1ProbeFromJSON(json['livenessProbe']), + 'name': json['name'], + 'ports': !exists(json, 'ports') ? undefined : ((json['ports'] as Array).map(IoK8sApiCoreV1ContainerPortFromJSON)), + 'readinessProbe': !exists(json, 'readinessProbe') ? undefined : IoK8sApiCoreV1ProbeFromJSON(json['readinessProbe']), + 'resizePolicy': !exists(json, 'resizePolicy') ? undefined : ((json['resizePolicy'] as Array).map(IoK8sApiCoreV1ContainerResizePolicyFromJSON)), + 'resources': !exists(json, 'resources') ? undefined : IoK8sApiCoreV1ResourceRequirementsFromJSON(json['resources']), + 'restartPolicy': !exists(json, 'restartPolicy') ? undefined : json['restartPolicy'], + 'securityContext': !exists(json, 'securityContext') ? undefined : IoK8sApiCoreV1SecurityContextFromJSON(json['securityContext']), + 'startupProbe': !exists(json, 'startupProbe') ? undefined : IoK8sApiCoreV1ProbeFromJSON(json['startupProbe']), + 'stdin': !exists(json, 'stdin') ? undefined : json['stdin'], + 'stdinOnce': !exists(json, 'stdinOnce') ? undefined : json['stdinOnce'], + 'targetContainerName': !exists(json, 'targetContainerName') ? undefined : json['targetContainerName'], + 'terminationMessagePath': !exists(json, 'terminationMessagePath') ? undefined : json['terminationMessagePath'], + 'terminationMessagePolicy': !exists(json, 'terminationMessagePolicy') ? undefined : json['terminationMessagePolicy'], + 'tty': !exists(json, 'tty') ? undefined : json['tty'], + 'volumeDevices': !exists(json, 'volumeDevices') ? undefined : ((json['volumeDevices'] as Array).map(IoK8sApiCoreV1VolumeDeviceFromJSON)), + 'volumeMounts': !exists(json, 'volumeMounts') ? undefined : ((json['volumeMounts'] as Array).map(IoK8sApiCoreV1VolumeMountFromJSON)), + 'workingDir': !exists(json, 'workingDir') ? undefined : json['workingDir'], + }; +} + +export function IoK8sApiCoreV1EphemeralContainerToJSON(value?: IoK8sApiCoreV1EphemeralContainer | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'args': value.args, + 'command': value.command, + 'env': value.env === undefined ? undefined : ((value.env as Array).map(IoK8sApiCoreV1EnvVarToJSON)), + 'envFrom': value.envFrom === undefined ? undefined : ((value.envFrom as Array).map(IoK8sApiCoreV1EnvFromSourceToJSON)), + 'image': value.image, + 'imagePullPolicy': value.imagePullPolicy, + 'lifecycle': IoK8sApiCoreV1LifecycleToJSON(value.lifecycle), + 'livenessProbe': IoK8sApiCoreV1ProbeToJSON(value.livenessProbe), + 'name': value.name, + 'ports': value.ports === undefined ? undefined : ((value.ports as Array).map(IoK8sApiCoreV1ContainerPortToJSON)), + 'readinessProbe': IoK8sApiCoreV1ProbeToJSON(value.readinessProbe), + 'resizePolicy': value.resizePolicy === undefined ? undefined : ((value.resizePolicy as Array).map(IoK8sApiCoreV1ContainerResizePolicyToJSON)), + 'resources': IoK8sApiCoreV1ResourceRequirementsToJSON(value.resources), + 'restartPolicy': value.restartPolicy, + 'securityContext': IoK8sApiCoreV1SecurityContextToJSON(value.securityContext), + 'startupProbe': IoK8sApiCoreV1ProbeToJSON(value.startupProbe), + 'stdin': value.stdin, + 'stdinOnce': value.stdinOnce, + 'targetContainerName': value.targetContainerName, + 'terminationMessagePath': value.terminationMessagePath, + 'terminationMessagePolicy': value.terminationMessagePolicy, + 'tty': value.tty, + 'volumeDevices': value.volumeDevices === undefined ? undefined : ((value.volumeDevices as Array).map(IoK8sApiCoreV1VolumeDeviceToJSON)), + 'volumeMounts': value.volumeMounts === undefined ? undefined : ((value.volumeMounts as Array).map(IoK8sApiCoreV1VolumeMountToJSON)), + 'workingDir': value.workingDir, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EphemeralVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EphemeralVolumeSource.ts new file mode 100644 index 000000000..b6a4bb7a4 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EphemeralVolumeSource.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1PersistentVolumeClaimTemplate } from './IoK8sApiCoreV1PersistentVolumeClaimTemplate'; +import { + IoK8sApiCoreV1PersistentVolumeClaimTemplateFromJSON, + IoK8sApiCoreV1PersistentVolumeClaimTemplateFromJSONTyped, + IoK8sApiCoreV1PersistentVolumeClaimTemplateToJSON, +} from './IoK8sApiCoreV1PersistentVolumeClaimTemplate'; + +/** + * Represents an ephemeral volume that is handled by a normal storage driver. + * @export + * @interface IoK8sApiCoreV1EphemeralVolumeSource + */ +export interface IoK8sApiCoreV1EphemeralVolumeSource { + /** + * + * @type {IoK8sApiCoreV1PersistentVolumeClaimTemplate} + * @memberof IoK8sApiCoreV1EphemeralVolumeSource + */ + volumeClaimTemplate?: IoK8sApiCoreV1PersistentVolumeClaimTemplate; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1EphemeralVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1EphemeralVolumeSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1EphemeralVolumeSourceFromJSON(json: any): IoK8sApiCoreV1EphemeralVolumeSource { + return IoK8sApiCoreV1EphemeralVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1EphemeralVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1EphemeralVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'volumeClaimTemplate': !exists(json, 'volumeClaimTemplate') ? undefined : IoK8sApiCoreV1PersistentVolumeClaimTemplateFromJSON(json['volumeClaimTemplate']), + }; +} + +export function IoK8sApiCoreV1EphemeralVolumeSourceToJSON(value?: IoK8sApiCoreV1EphemeralVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'volumeClaimTemplate': IoK8sApiCoreV1PersistentVolumeClaimTemplateToJSON(value.volumeClaimTemplate), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Event.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Event.ts new file mode 100644 index 000000000..e4bf96596 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Event.ts @@ -0,0 +1,220 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1EventSeries } from './IoK8sApiCoreV1EventSeries'; +import { + IoK8sApiCoreV1EventSeriesFromJSON, + IoK8sApiCoreV1EventSeriesFromJSONTyped, + IoK8sApiCoreV1EventSeriesToJSON, +} from './IoK8sApiCoreV1EventSeries'; +import type { IoK8sApiCoreV1EventSource } from './IoK8sApiCoreV1EventSource'; +import { + IoK8sApiCoreV1EventSourceFromJSON, + IoK8sApiCoreV1EventSourceFromJSONTyped, + IoK8sApiCoreV1EventSourceToJSON, +} from './IoK8sApiCoreV1EventSource'; +import type { IoK8sApiCoreV1ObjectReference } from './IoK8sApiCoreV1ObjectReference'; +import { + IoK8sApiCoreV1ObjectReferenceFromJSON, + IoK8sApiCoreV1ObjectReferenceFromJSONTyped, + IoK8sApiCoreV1ObjectReferenceToJSON, +} from './IoK8sApiCoreV1ObjectReference'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data. + * @export + * @interface IoK8sApiCoreV1Event + */ +export interface IoK8sApiCoreV1Event { + /** + * What action was taken/failed regarding to the Regarding object. + * @type {string} + * @memberof IoK8sApiCoreV1Event + */ + action?: string; + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1Event + */ + apiVersion?: string; + /** + * The number of times this event has occurred. + * @type {number} + * @memberof IoK8sApiCoreV1Event + */ + count?: number; + /** + * MicroTime is version of Time with microsecond level precision. + * @type {Date} + * @memberof IoK8sApiCoreV1Event + */ + eventTime?: string; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiCoreV1Event + */ + firstTimestamp?: string; + /** + * + * @type {IoK8sApiCoreV1ObjectReference} + * @memberof IoK8sApiCoreV1Event + */ + involvedObject: IoK8sApiCoreV1ObjectReference; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof IoK8sApiCoreV1Event + */ + kind?: string; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiCoreV1Event + */ + lastTimestamp?: string; + /** + * A human-readable description of the status of this operation. + * @type {string} + * @memberof IoK8sApiCoreV1Event + */ + message?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiCoreV1Event + */ + metadata: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * This should be a short, machine understandable string that gives the reason for the transition into the object's current status. + * @type {string} + * @memberof IoK8sApiCoreV1Event + */ + reason?: string; + /** + * + * @type {IoK8sApiCoreV1ObjectReference} + * @memberof IoK8sApiCoreV1Event + */ + related?: IoK8sApiCoreV1ObjectReference; + /** + * Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. + * @type {string} + * @memberof IoK8sApiCoreV1Event + */ + reportingComponent?: string; + /** + * ID of the controller instance, e.g. `kubelet-xyzf`. + * @type {string} + * @memberof IoK8sApiCoreV1Event + */ + reportingInstance?: string; + /** + * + * @type {IoK8sApiCoreV1EventSeries} + * @memberof IoK8sApiCoreV1Event + */ + series?: IoK8sApiCoreV1EventSeries; + /** + * + * @type {IoK8sApiCoreV1EventSource} + * @memberof IoK8sApiCoreV1Event + */ + source?: IoK8sApiCoreV1EventSource; + /** + * Type of this event (Normal, Warning), new types could be added in the future + * @type {string} + * @memberof IoK8sApiCoreV1Event + */ + type?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1Event interface. + */ +export function instanceOfIoK8sApiCoreV1Event(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "involvedObject" in value; + isInstance = isInstance && "metadata" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1EventFromJSON(json: any): IoK8sApiCoreV1Event { + return IoK8sApiCoreV1EventFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1EventFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1Event { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'action': !exists(json, 'action') ? undefined : json['action'], + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'count': !exists(json, 'count') ? undefined : json['count'], + 'eventTime': !exists(json, 'eventTime') ? undefined : json['eventTime'], + 'firstTimestamp': !exists(json, 'firstTimestamp') ? undefined : json['firstTimestamp'], + 'involvedObject': IoK8sApiCoreV1ObjectReferenceFromJSON(json['involvedObject']), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'lastTimestamp': !exists(json, 'lastTimestamp') ? undefined : json['lastTimestamp'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'related': !exists(json, 'related') ? undefined : IoK8sApiCoreV1ObjectReferenceFromJSON(json['related']), + 'reportingComponent': !exists(json, 'reportingComponent') ? undefined : json['reportingComponent'], + 'reportingInstance': !exists(json, 'reportingInstance') ? undefined : json['reportingInstance'], + 'series': !exists(json, 'series') ? undefined : IoK8sApiCoreV1EventSeriesFromJSON(json['series']), + 'source': !exists(json, 'source') ? undefined : IoK8sApiCoreV1EventSourceFromJSON(json['source']), + 'type': !exists(json, 'type') ? undefined : json['type'], + }; +} + +export function IoK8sApiCoreV1EventToJSON(value?: IoK8sApiCoreV1Event | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'action': value.action, + 'apiVersion': value.apiVersion, + 'count': value.count, + 'eventTime': value.eventTime === undefined ? undefined : (value.eventTime), + 'firstTimestamp': value.firstTimestamp === undefined ? undefined : (value.firstTimestamp), + 'involvedObject': IoK8sApiCoreV1ObjectReferenceToJSON(value.involvedObject), + 'kind': value.kind, + 'lastTimestamp': value.lastTimestamp === undefined ? undefined : (value.lastTimestamp), + 'message': value.message, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'reason': value.reason, + 'related': IoK8sApiCoreV1ObjectReferenceToJSON(value.related), + 'reportingComponent': value.reportingComponent, + 'reportingInstance': value.reportingInstance, + 'series': IoK8sApiCoreV1EventSeriesToJSON(value.series), + 'source': IoK8sApiCoreV1EventSourceToJSON(value.source), + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EventList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EventList.ts new file mode 100644 index 000000000..641ee877f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EventList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1Event } from './IoK8sApiCoreV1Event'; +import { + IoK8sApiCoreV1EventFromJSON, + IoK8sApiCoreV1EventFromJSONTyped, + IoK8sApiCoreV1EventToJSON, +} from './IoK8sApiCoreV1Event'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * EventList is a list of events. + * @export + * @interface IoK8sApiCoreV1EventList + */ +export interface IoK8sApiCoreV1EventList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1EventList + */ + apiVersion?: string; + /** + * List of events + * @type {Array} + * @memberof IoK8sApiCoreV1EventList + */ + 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 + * @type {string} + * @memberof IoK8sApiCoreV1EventList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiCoreV1EventList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1EventList interface. + */ +export function instanceOfIoK8sApiCoreV1EventList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1EventListFromJSON(json: any): IoK8sApiCoreV1EventList { + return IoK8sApiCoreV1EventListFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1EventListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1EventList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiCoreV1EventFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiCoreV1EventListToJSON(value?: IoK8sApiCoreV1EventList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiCoreV1EventToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EventSeries.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EventSeries.ts new file mode 100644 index 000000000..edc5440cd --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EventSeries.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. + * @export + * @interface IoK8sApiCoreV1EventSeries + */ +export interface IoK8sApiCoreV1EventSeries { + /** + * Number of occurrences in this series up to the last heartbeat time + * @type {number} + * @memberof IoK8sApiCoreV1EventSeries + */ + count?: number; + /** + * MicroTime is version of Time with microsecond level precision. + * @type {Date} + * @memberof IoK8sApiCoreV1EventSeries + */ + lastObservedTime?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1EventSeries interface. + */ +export function instanceOfIoK8sApiCoreV1EventSeries(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1EventSeriesFromJSON(json: any): IoK8sApiCoreV1EventSeries { + return IoK8sApiCoreV1EventSeriesFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1EventSeriesFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1EventSeries { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'count': !exists(json, 'count') ? undefined : json['count'], + 'lastObservedTime': !exists(json, 'lastObservedTime') ? undefined : json['lastObservedTime'], + }; +} + +export function IoK8sApiCoreV1EventSeriesToJSON(value?: IoK8sApiCoreV1EventSeries | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'count': value.count, + 'lastObservedTime': value.lastObservedTime === undefined ? undefined : (value.lastObservedTime), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EventSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EventSource.ts new file mode 100644 index 000000000..f22ebe72f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1EventSource.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * EventSource contains information for an event. + * @export + * @interface IoK8sApiCoreV1EventSource + */ +export interface IoK8sApiCoreV1EventSource { + /** + * Component from which the event is generated. + * @type {string} + * @memberof IoK8sApiCoreV1EventSource + */ + component?: string; + /** + * Node name on which the event is generated. + * @type {string} + * @memberof IoK8sApiCoreV1EventSource + */ + host?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1EventSource interface. + */ +export function instanceOfIoK8sApiCoreV1EventSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1EventSourceFromJSON(json: any): IoK8sApiCoreV1EventSource { + return IoK8sApiCoreV1EventSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1EventSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1EventSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'component': !exists(json, 'component') ? undefined : json['component'], + 'host': !exists(json, 'host') ? undefined : json['host'], + }; +} + +export function IoK8sApiCoreV1EventSourceToJSON(value?: IoK8sApiCoreV1EventSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'component': value.component, + 'host': value.host, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ExecAction.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ExecAction.ts new file mode 100644 index 000000000..8f34edb14 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ExecAction.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ExecAction describes a "run in container" action. + * @export + * @interface IoK8sApiCoreV1ExecAction + */ +export interface IoK8sApiCoreV1ExecAction { + /** + * Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + * @type {Array} + * @memberof IoK8sApiCoreV1ExecAction + */ + command?: string[]; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ExecAction interface. + */ +export function instanceOfIoK8sApiCoreV1ExecAction(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1ExecActionFromJSON(json: any): IoK8sApiCoreV1ExecAction { + return IoK8sApiCoreV1ExecActionFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ExecActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ExecAction { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'command': !exists(json, 'command') ? undefined : json['command'], + }; +} + +export function IoK8sApiCoreV1ExecActionToJSON(value?: IoK8sApiCoreV1ExecAction | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'command': value.command, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1FCVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1FCVolumeSource.ts new file mode 100644 index 000000000..a2063df99 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1FCVolumeSource.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling. + * @export + * @interface IoK8sApiCoreV1FCVolumeSource + */ +export interface IoK8sApiCoreV1FCVolumeSource { + /** + * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * @type {string} + * @memberof IoK8sApiCoreV1FCVolumeSource + */ + fsType?: string; + /** + * lun is Optional: FC target lun number + * @type {number} + * @memberof IoK8sApiCoreV1FCVolumeSource + */ + lun?: number; + /** + * readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * @type {boolean} + * @memberof IoK8sApiCoreV1FCVolumeSource + */ + readOnly?: boolean; + /** + * targetWWNs is Optional: FC target worldwide names (WWNs) + * @type {Array} + * @memberof IoK8sApiCoreV1FCVolumeSource + */ + targetWWNs?: string[]; + /** + * wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + * @type {Array} + * @memberof IoK8sApiCoreV1FCVolumeSource + */ + wwids?: string[]; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1FCVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1FCVolumeSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1FCVolumeSourceFromJSON(json: any): IoK8sApiCoreV1FCVolumeSource { + return IoK8sApiCoreV1FCVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1FCVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1FCVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'fsType': !exists(json, 'fsType') ? undefined : json['fsType'], + 'lun': !exists(json, 'lun') ? undefined : json['lun'], + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + 'targetWWNs': !exists(json, 'targetWWNs') ? undefined : json['targetWWNs'], + 'wwids': !exists(json, 'wwids') ? undefined : json['wwids'], + }; +} + +export function IoK8sApiCoreV1FCVolumeSourceToJSON(value?: IoK8sApiCoreV1FCVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'fsType': value.fsType, + 'lun': value.lun, + 'readOnly': value.readOnly, + 'targetWWNs': value.targetWWNs, + 'wwids': value.wwids, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1FlexPersistentVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1FlexPersistentVolumeSource.ts new file mode 100644 index 000000000..5c33f8a6c --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1FlexPersistentVolumeSource.ts @@ -0,0 +1,105 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1SecretReference } from './IoK8sApiCoreV1SecretReference'; +import { + IoK8sApiCoreV1SecretReferenceFromJSON, + IoK8sApiCoreV1SecretReferenceFromJSONTyped, + IoK8sApiCoreV1SecretReferenceToJSON, +} from './IoK8sApiCoreV1SecretReference'; + +/** + * FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin. + * @export + * @interface IoK8sApiCoreV1FlexPersistentVolumeSource + */ +export interface IoK8sApiCoreV1FlexPersistentVolumeSource { + /** + * driver is the name of the driver to use for this volume. + * @type {string} + * @memberof IoK8sApiCoreV1FlexPersistentVolumeSource + */ + driver: string; + /** + * fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * @type {string} + * @memberof IoK8sApiCoreV1FlexPersistentVolumeSource + */ + fsType?: string; + /** + * options is Optional: this field holds extra command options if any. + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1FlexPersistentVolumeSource + */ + options?: { [key: string]: string; }; + /** + * readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * @type {boolean} + * @memberof IoK8sApiCoreV1FlexPersistentVolumeSource + */ + readOnly?: boolean; + /** + * + * @type {IoK8sApiCoreV1SecretReference} + * @memberof IoK8sApiCoreV1FlexPersistentVolumeSource + */ + secretRef?: IoK8sApiCoreV1SecretReference; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1FlexPersistentVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1FlexPersistentVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "driver" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1FlexPersistentVolumeSourceFromJSON(json: any): IoK8sApiCoreV1FlexPersistentVolumeSource { + return IoK8sApiCoreV1FlexPersistentVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1FlexPersistentVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1FlexPersistentVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'driver': json['driver'], + 'fsType': !exists(json, 'fsType') ? undefined : json['fsType'], + 'options': !exists(json, 'options') ? undefined : json['options'], + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + 'secretRef': !exists(json, 'secretRef') ? undefined : IoK8sApiCoreV1SecretReferenceFromJSON(json['secretRef']), + }; +} + +export function IoK8sApiCoreV1FlexPersistentVolumeSourceToJSON(value?: IoK8sApiCoreV1FlexPersistentVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'driver': value.driver, + 'fsType': value.fsType, + 'options': value.options, + 'readOnly': value.readOnly, + 'secretRef': IoK8sApiCoreV1SecretReferenceToJSON(value.secretRef), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1FlexVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1FlexVolumeSource.ts new file mode 100644 index 000000000..5271df785 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1FlexVolumeSource.ts @@ -0,0 +1,105 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1LocalObjectReference } from './IoK8sApiCoreV1LocalObjectReference'; +import { + IoK8sApiCoreV1LocalObjectReferenceFromJSON, + IoK8sApiCoreV1LocalObjectReferenceFromJSONTyped, + IoK8sApiCoreV1LocalObjectReferenceToJSON, +} from './IoK8sApiCoreV1LocalObjectReference'; + +/** + * FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * @export + * @interface IoK8sApiCoreV1FlexVolumeSource + */ +export interface IoK8sApiCoreV1FlexVolumeSource { + /** + * driver is the name of the driver to use for this volume. + * @type {string} + * @memberof IoK8sApiCoreV1FlexVolumeSource + */ + driver: string; + /** + * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * @type {string} + * @memberof IoK8sApiCoreV1FlexVolumeSource + */ + fsType?: string; + /** + * options is Optional: this field holds extra command options if any. + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1FlexVolumeSource + */ + options?: { [key: string]: string; }; + /** + * readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * @type {boolean} + * @memberof IoK8sApiCoreV1FlexVolumeSource + */ + readOnly?: boolean; + /** + * + * @type {IoK8sApiCoreV1LocalObjectReference} + * @memberof IoK8sApiCoreV1FlexVolumeSource + */ + secretRef?: IoK8sApiCoreV1LocalObjectReference; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1FlexVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1FlexVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "driver" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1FlexVolumeSourceFromJSON(json: any): IoK8sApiCoreV1FlexVolumeSource { + return IoK8sApiCoreV1FlexVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1FlexVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1FlexVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'driver': json['driver'], + 'fsType': !exists(json, 'fsType') ? undefined : json['fsType'], + 'options': !exists(json, 'options') ? undefined : json['options'], + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + 'secretRef': !exists(json, 'secretRef') ? undefined : IoK8sApiCoreV1LocalObjectReferenceFromJSON(json['secretRef']), + }; +} + +export function IoK8sApiCoreV1FlexVolumeSourceToJSON(value?: IoK8sApiCoreV1FlexVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'driver': value.driver, + 'fsType': value.fsType, + 'options': value.options, + 'readOnly': value.readOnly, + 'secretRef': IoK8sApiCoreV1LocalObjectReferenceToJSON(value.secretRef), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1FlockerVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1FlockerVolumeSource.ts new file mode 100644 index 000000000..e86e03e34 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1FlockerVolumeSource.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling. + * @export + * @interface IoK8sApiCoreV1FlockerVolumeSource + */ +export interface IoK8sApiCoreV1FlockerVolumeSource { + /** + * datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * @type {string} + * @memberof IoK8sApiCoreV1FlockerVolumeSource + */ + datasetName?: string; + /** + * datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset + * @type {string} + * @memberof IoK8sApiCoreV1FlockerVolumeSource + */ + datasetUUID?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1FlockerVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1FlockerVolumeSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1FlockerVolumeSourceFromJSON(json: any): IoK8sApiCoreV1FlockerVolumeSource { + return IoK8sApiCoreV1FlockerVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1FlockerVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1FlockerVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'datasetName': !exists(json, 'datasetName') ? undefined : json['datasetName'], + 'datasetUUID': !exists(json, 'datasetUUID') ? undefined : json['datasetUUID'], + }; +} + +export function IoK8sApiCoreV1FlockerVolumeSourceToJSON(value?: IoK8sApiCoreV1FlockerVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'datasetName': value.datasetName, + 'datasetUUID': value.datasetUUID, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1GCEPersistentDiskVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1GCEPersistentDiskVolumeSource.ts new file mode 100644 index 000000000..6b60ed8d6 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1GCEPersistentDiskVolumeSource.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Represents a Persistent Disk resource in Google Compute Engine. + * + * A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling. + * @export + * @interface IoK8sApiCoreV1GCEPersistentDiskVolumeSource + */ +export interface IoK8sApiCoreV1GCEPersistentDiskVolumeSource { + /** + * fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * @type {string} + * @memberof IoK8sApiCoreV1GCEPersistentDiskVolumeSource + */ + fsType?: string; + /** + * partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * @type {number} + * @memberof IoK8sApiCoreV1GCEPersistentDiskVolumeSource + */ + partition?: number; + /** + * pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * @type {string} + * @memberof IoK8sApiCoreV1GCEPersistentDiskVolumeSource + */ + pdName: string; + /** + * readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * @type {boolean} + * @memberof IoK8sApiCoreV1GCEPersistentDiskVolumeSource + */ + readOnly?: boolean; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1GCEPersistentDiskVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1GCEPersistentDiskVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "pdName" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1GCEPersistentDiskVolumeSourceFromJSON(json: any): IoK8sApiCoreV1GCEPersistentDiskVolumeSource { + return IoK8sApiCoreV1GCEPersistentDiskVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1GCEPersistentDiskVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1GCEPersistentDiskVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'fsType': !exists(json, 'fsType') ? undefined : json['fsType'], + 'partition': !exists(json, 'partition') ? undefined : json['partition'], + 'pdName': json['pdName'], + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + }; +} + +export function IoK8sApiCoreV1GCEPersistentDiskVolumeSourceToJSON(value?: IoK8sApiCoreV1GCEPersistentDiskVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'fsType': value.fsType, + 'partition': value.partition, + 'pdName': value.pdName, + 'readOnly': value.readOnly, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1GRPCAction.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1GRPCAction.ts new file mode 100644 index 000000000..a9311a428 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1GRPCAction.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface IoK8sApiCoreV1GRPCAction + */ +export interface IoK8sApiCoreV1GRPCAction { + /** + * Port number of the gRPC service. Number must be in the range 1 to 65535. + * @type {number} + * @memberof IoK8sApiCoreV1GRPCAction + */ + port: number; + /** + * Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). + * + * If this is not specified, the default behavior is defined by gRPC. + * @type {string} + * @memberof IoK8sApiCoreV1GRPCAction + */ + service?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1GRPCAction interface. + */ +export function instanceOfIoK8sApiCoreV1GRPCAction(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "port" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1GRPCActionFromJSON(json: any): IoK8sApiCoreV1GRPCAction { + return IoK8sApiCoreV1GRPCActionFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1GRPCActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1GRPCAction { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'port': json['port'], + 'service': !exists(json, 'service') ? undefined : json['service'], + }; +} + +export function IoK8sApiCoreV1GRPCActionToJSON(value?: IoK8sApiCoreV1GRPCAction | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'port': value.port, + 'service': value.service, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1GitRepoVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1GitRepoVolumeSource.ts new file mode 100644 index 000000000..392f628c3 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1GitRepoVolumeSource.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling. + * + * DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * @export + * @interface IoK8sApiCoreV1GitRepoVolumeSource + */ +export interface IoK8sApiCoreV1GitRepoVolumeSource { + /** + * directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * @type {string} + * @memberof IoK8sApiCoreV1GitRepoVolumeSource + */ + directory?: string; + /** + * repository is the URL + * @type {string} + * @memberof IoK8sApiCoreV1GitRepoVolumeSource + */ + repository: string; + /** + * revision is the commit hash for the specified revision. + * @type {string} + * @memberof IoK8sApiCoreV1GitRepoVolumeSource + */ + revision?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1GitRepoVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1GitRepoVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "repository" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1GitRepoVolumeSourceFromJSON(json: any): IoK8sApiCoreV1GitRepoVolumeSource { + return IoK8sApiCoreV1GitRepoVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1GitRepoVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1GitRepoVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'directory': !exists(json, 'directory') ? undefined : json['directory'], + 'repository': json['repository'], + 'revision': !exists(json, 'revision') ? undefined : json['revision'], + }; +} + +export function IoK8sApiCoreV1GitRepoVolumeSourceToJSON(value?: IoK8sApiCoreV1GitRepoVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'directory': value.directory, + 'repository': value.repository, + 'revision': value.revision, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1GlusterfsPersistentVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1GlusterfsPersistentVolumeSource.ts new file mode 100644 index 000000000..9d79368e2 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1GlusterfsPersistentVolumeSource.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. + * @export + * @interface IoK8sApiCoreV1GlusterfsPersistentVolumeSource + */ +export interface IoK8sApiCoreV1GlusterfsPersistentVolumeSource { + /** + * endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * @type {string} + * @memberof IoK8sApiCoreV1GlusterfsPersistentVolumeSource + */ + endpoints: string; + /** + * endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * @type {string} + * @memberof IoK8sApiCoreV1GlusterfsPersistentVolumeSource + */ + endpointsNamespace?: string; + /** + * path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * @type {string} + * @memberof IoK8sApiCoreV1GlusterfsPersistentVolumeSource + */ + path: string; + /** + * readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * @type {boolean} + * @memberof IoK8sApiCoreV1GlusterfsPersistentVolumeSource + */ + readOnly?: boolean; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1GlusterfsPersistentVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1GlusterfsPersistentVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "endpoints" in value; + isInstance = isInstance && "path" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1GlusterfsPersistentVolumeSourceFromJSON(json: any): IoK8sApiCoreV1GlusterfsPersistentVolumeSource { + return IoK8sApiCoreV1GlusterfsPersistentVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1GlusterfsPersistentVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1GlusterfsPersistentVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'endpoints': json['endpoints'], + 'endpointsNamespace': !exists(json, 'endpointsNamespace') ? undefined : json['endpointsNamespace'], + 'path': json['path'], + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + }; +} + +export function IoK8sApiCoreV1GlusterfsPersistentVolumeSourceToJSON(value?: IoK8sApiCoreV1GlusterfsPersistentVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'endpoints': value.endpoints, + 'endpointsNamespace': value.endpointsNamespace, + 'path': value.path, + 'readOnly': value.readOnly, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1GlusterfsVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1GlusterfsVolumeSource.ts new file mode 100644 index 000000000..713bbf6c8 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1GlusterfsVolumeSource.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. + * @export + * @interface IoK8sApiCoreV1GlusterfsVolumeSource + */ +export interface IoK8sApiCoreV1GlusterfsVolumeSource { + /** + * endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * @type {string} + * @memberof IoK8sApiCoreV1GlusterfsVolumeSource + */ + endpoints: string; + /** + * path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * @type {string} + * @memberof IoK8sApiCoreV1GlusterfsVolumeSource + */ + path: string; + /** + * readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * @type {boolean} + * @memberof IoK8sApiCoreV1GlusterfsVolumeSource + */ + readOnly?: boolean; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1GlusterfsVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1GlusterfsVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "endpoints" in value; + isInstance = isInstance && "path" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1GlusterfsVolumeSourceFromJSON(json: any): IoK8sApiCoreV1GlusterfsVolumeSource { + return IoK8sApiCoreV1GlusterfsVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1GlusterfsVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1GlusterfsVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'endpoints': json['endpoints'], + 'path': json['path'], + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + }; +} + +export function IoK8sApiCoreV1GlusterfsVolumeSourceToJSON(value?: IoK8sApiCoreV1GlusterfsVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'endpoints': value.endpoints, + 'path': value.path, + 'readOnly': value.readOnly, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1HTTPGetAction.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1HTTPGetAction.ts new file mode 100644 index 000000000..c2461e4f7 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1HTTPGetAction.ts @@ -0,0 +1,105 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1HTTPHeader } from './IoK8sApiCoreV1HTTPHeader'; +import { + IoK8sApiCoreV1HTTPHeaderFromJSON, + IoK8sApiCoreV1HTTPHeaderFromJSONTyped, + IoK8sApiCoreV1HTTPHeaderToJSON, +} from './IoK8sApiCoreV1HTTPHeader'; + +/** + * HTTPGetAction describes an action based on HTTP Get requests. + * @export + * @interface IoK8sApiCoreV1HTTPGetAction + */ +export interface IoK8sApiCoreV1HTTPGetAction { + /** + * Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * @type {string} + * @memberof IoK8sApiCoreV1HTTPGetAction + */ + host?: string; + /** + * Custom headers to set in the request. HTTP allows repeated headers. + * @type {Array} + * @memberof IoK8sApiCoreV1HTTPGetAction + */ + httpHeaders?: Array; + /** + * Path to access on the HTTP server. + * @type {string} + * @memberof IoK8sApiCoreV1HTTPGetAction + */ + path?: string; + /** + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. + * @type {string} + * @memberof IoK8sApiCoreV1HTTPGetAction + */ + port: string; + /** + * Scheme to use for connecting to the host. Defaults to HTTP. + * @type {string} + * @memberof IoK8sApiCoreV1HTTPGetAction + */ + scheme?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1HTTPGetAction interface. + */ +export function instanceOfIoK8sApiCoreV1HTTPGetAction(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "port" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1HTTPGetActionFromJSON(json: any): IoK8sApiCoreV1HTTPGetAction { + return IoK8sApiCoreV1HTTPGetActionFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1HTTPGetActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1HTTPGetAction { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'host': !exists(json, 'host') ? undefined : json['host'], + 'httpHeaders': !exists(json, 'httpHeaders') ? undefined : ((json['httpHeaders'] as Array).map(IoK8sApiCoreV1HTTPHeaderFromJSON)), + 'path': !exists(json, 'path') ? undefined : json['path'], + 'port': json['port'], + 'scheme': !exists(json, 'scheme') ? undefined : json['scheme'], + }; +} + +export function IoK8sApiCoreV1HTTPGetActionToJSON(value?: IoK8sApiCoreV1HTTPGetAction | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'host': value.host, + 'httpHeaders': value.httpHeaders === undefined ? undefined : ((value.httpHeaders as Array).map(IoK8sApiCoreV1HTTPHeaderToJSON)), + 'path': value.path, + 'port': value.port, + 'scheme': value.scheme, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1HTTPHeader.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1HTTPHeader.ts new file mode 100644 index 000000000..e46618a1c --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1HTTPHeader.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * HTTPHeader describes a custom header to be used in HTTP probes + * @export + * @interface IoK8sApiCoreV1HTTPHeader + */ +export interface IoK8sApiCoreV1HTTPHeader { + /** + * The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header. + * @type {string} + * @memberof IoK8sApiCoreV1HTTPHeader + */ + name: string; + /** + * The header field value + * @type {string} + * @memberof IoK8sApiCoreV1HTTPHeader + */ + value: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1HTTPHeader interface. + */ +export function instanceOfIoK8sApiCoreV1HTTPHeader(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "value" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1HTTPHeaderFromJSON(json: any): IoK8sApiCoreV1HTTPHeader { + return IoK8sApiCoreV1HTTPHeaderFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1HTTPHeaderFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1HTTPHeader { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + 'value': json['value'], + }; +} + +export function IoK8sApiCoreV1HTTPHeaderToJSON(value?: IoK8sApiCoreV1HTTPHeader | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'value': value.value, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1HostAlias.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1HostAlias.ts new file mode 100644 index 000000000..bff99dbe3 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1HostAlias.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file. + * @export + * @interface IoK8sApiCoreV1HostAlias + */ +export interface IoK8sApiCoreV1HostAlias { + /** + * Hostnames for the above IP address. + * @type {Array} + * @memberof IoK8sApiCoreV1HostAlias + */ + hostnames?: string[]; + /** + * IP address of the host file entry. + * @type {string} + * @memberof IoK8sApiCoreV1HostAlias + */ + ip?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1HostAlias interface. + */ +export function instanceOfIoK8sApiCoreV1HostAlias(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1HostAliasFromJSON(json: any): IoK8sApiCoreV1HostAlias { + return IoK8sApiCoreV1HostAliasFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1HostAliasFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1HostAlias { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'hostnames': !exists(json, 'hostnames') ? undefined : json['hostnames'], + 'ip': !exists(json, 'ip') ? undefined : json['ip'], + }; +} + +export function IoK8sApiCoreV1HostAliasToJSON(value?: IoK8sApiCoreV1HostAlias | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'hostnames': value.hostnames, + 'ip': value.ip, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1HostIP.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1HostIP.ts new file mode 100644 index 000000000..4651d7183 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1HostIP.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * HostIP represents a single IP address allocated to the host. + * @export + * @interface IoK8sApiCoreV1HostIP + */ +export interface IoK8sApiCoreV1HostIP { + /** + * IP is the IP address assigned to the host + * @type {string} + * @memberof IoK8sApiCoreV1HostIP + */ + ip?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1HostIP interface. + */ +export function instanceOfIoK8sApiCoreV1HostIP(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1HostIPFromJSON(json: any): IoK8sApiCoreV1HostIP { + return IoK8sApiCoreV1HostIPFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1HostIPFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1HostIP { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'ip': !exists(json, 'ip') ? undefined : json['ip'], + }; +} + +export function IoK8sApiCoreV1HostIPToJSON(value?: IoK8sApiCoreV1HostIP | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ip': value.ip, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1HostPathVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1HostPathVolumeSource.ts new file mode 100644 index 000000000..513de12a3 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1HostPathVolumeSource.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling. + * @export + * @interface IoK8sApiCoreV1HostPathVolumeSource + */ +export interface IoK8sApiCoreV1HostPathVolumeSource { + /** + * path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * @type {string} + * @memberof IoK8sApiCoreV1HostPathVolumeSource + */ + path: string; + /** + * type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * @type {string} + * @memberof IoK8sApiCoreV1HostPathVolumeSource + */ + type?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1HostPathVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1HostPathVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "path" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1HostPathVolumeSourceFromJSON(json: any): IoK8sApiCoreV1HostPathVolumeSource { + return IoK8sApiCoreV1HostPathVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1HostPathVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1HostPathVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'path': json['path'], + 'type': !exists(json, 'type') ? undefined : json['type'], + }; +} + +export function IoK8sApiCoreV1HostPathVolumeSourceToJSON(value?: IoK8sApiCoreV1HostPathVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'path': value.path, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ISCSIPersistentVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ISCSIPersistentVolumeSource.ts new file mode 100644 index 000000000..ce512a30e --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ISCSIPersistentVolumeSource.ts @@ -0,0 +1,155 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1SecretReference } from './IoK8sApiCoreV1SecretReference'; +import { + IoK8sApiCoreV1SecretReferenceFromJSON, + IoK8sApiCoreV1SecretReferenceFromJSONTyped, + IoK8sApiCoreV1SecretReferenceToJSON, +} from './IoK8sApiCoreV1SecretReference'; + +/** + * ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. + * @export + * @interface IoK8sApiCoreV1ISCSIPersistentVolumeSource + */ +export interface IoK8sApiCoreV1ISCSIPersistentVolumeSource { + /** + * chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication + * @type {boolean} + * @memberof IoK8sApiCoreV1ISCSIPersistentVolumeSource + */ + chapAuthDiscovery?: boolean; + /** + * chapAuthSession defines whether support iSCSI Session CHAP authentication + * @type {boolean} + * @memberof IoK8sApiCoreV1ISCSIPersistentVolumeSource + */ + chapAuthSession?: boolean; + /** + * fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * @type {string} + * @memberof IoK8sApiCoreV1ISCSIPersistentVolumeSource + */ + fsType?: string; + /** + * initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * @type {string} + * @memberof IoK8sApiCoreV1ISCSIPersistentVolumeSource + */ + initiatorName?: string; + /** + * iqn is Target iSCSI Qualified Name. + * @type {string} + * @memberof IoK8sApiCoreV1ISCSIPersistentVolumeSource + */ + iqn: string; + /** + * iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * @type {string} + * @memberof IoK8sApiCoreV1ISCSIPersistentVolumeSource + */ + iscsiInterface?: string; + /** + * lun is iSCSI Target Lun number. + * @type {number} + * @memberof IoK8sApiCoreV1ISCSIPersistentVolumeSource + */ + lun: number; + /** + * portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * @type {Array} + * @memberof IoK8sApiCoreV1ISCSIPersistentVolumeSource + */ + portals?: string[]; + /** + * readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * @type {boolean} + * @memberof IoK8sApiCoreV1ISCSIPersistentVolumeSource + */ + readOnly?: boolean; + /** + * + * @type {IoK8sApiCoreV1SecretReference} + * @memberof IoK8sApiCoreV1ISCSIPersistentVolumeSource + */ + secretRef?: IoK8sApiCoreV1SecretReference; + /** + * targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * @type {string} + * @memberof IoK8sApiCoreV1ISCSIPersistentVolumeSource + */ + targetPortal: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ISCSIPersistentVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1ISCSIPersistentVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "iqn" in value; + isInstance = isInstance && "lun" in value; + isInstance = isInstance && "targetPortal" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1ISCSIPersistentVolumeSourceFromJSON(json: any): IoK8sApiCoreV1ISCSIPersistentVolumeSource { + return IoK8sApiCoreV1ISCSIPersistentVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ISCSIPersistentVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ISCSIPersistentVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'chapAuthDiscovery': !exists(json, 'chapAuthDiscovery') ? undefined : json['chapAuthDiscovery'], + 'chapAuthSession': !exists(json, 'chapAuthSession') ? undefined : json['chapAuthSession'], + 'fsType': !exists(json, 'fsType') ? undefined : json['fsType'], + 'initiatorName': !exists(json, 'initiatorName') ? undefined : json['initiatorName'], + 'iqn': json['iqn'], + 'iscsiInterface': !exists(json, 'iscsiInterface') ? undefined : json['iscsiInterface'], + 'lun': json['lun'], + 'portals': !exists(json, 'portals') ? undefined : json['portals'], + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + 'secretRef': !exists(json, 'secretRef') ? undefined : IoK8sApiCoreV1SecretReferenceFromJSON(json['secretRef']), + 'targetPortal': json['targetPortal'], + }; +} + +export function IoK8sApiCoreV1ISCSIPersistentVolumeSourceToJSON(value?: IoK8sApiCoreV1ISCSIPersistentVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'chapAuthDiscovery': value.chapAuthDiscovery, + 'chapAuthSession': value.chapAuthSession, + 'fsType': value.fsType, + 'initiatorName': value.initiatorName, + 'iqn': value.iqn, + 'iscsiInterface': value.iscsiInterface, + 'lun': value.lun, + 'portals': value.portals, + 'readOnly': value.readOnly, + 'secretRef': IoK8sApiCoreV1SecretReferenceToJSON(value.secretRef), + 'targetPortal': value.targetPortal, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ISCSIVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ISCSIVolumeSource.ts new file mode 100644 index 000000000..bb2696e94 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ISCSIVolumeSource.ts @@ -0,0 +1,155 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1LocalObjectReference } from './IoK8sApiCoreV1LocalObjectReference'; +import { + IoK8sApiCoreV1LocalObjectReferenceFromJSON, + IoK8sApiCoreV1LocalObjectReferenceFromJSONTyped, + IoK8sApiCoreV1LocalObjectReferenceToJSON, +} from './IoK8sApiCoreV1LocalObjectReference'; + +/** + * Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. + * @export + * @interface IoK8sApiCoreV1ISCSIVolumeSource + */ +export interface IoK8sApiCoreV1ISCSIVolumeSource { + /** + * chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication + * @type {boolean} + * @memberof IoK8sApiCoreV1ISCSIVolumeSource + */ + chapAuthDiscovery?: boolean; + /** + * chapAuthSession defines whether support iSCSI Session CHAP authentication + * @type {boolean} + * @memberof IoK8sApiCoreV1ISCSIVolumeSource + */ + chapAuthSession?: boolean; + /** + * fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * @type {string} + * @memberof IoK8sApiCoreV1ISCSIVolumeSource + */ + fsType?: string; + /** + * initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * @type {string} + * @memberof IoK8sApiCoreV1ISCSIVolumeSource + */ + initiatorName?: string; + /** + * iqn is the target iSCSI Qualified Name. + * @type {string} + * @memberof IoK8sApiCoreV1ISCSIVolumeSource + */ + iqn: string; + /** + * iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * @type {string} + * @memberof IoK8sApiCoreV1ISCSIVolumeSource + */ + iscsiInterface?: string; + /** + * lun represents iSCSI Target Lun number. + * @type {number} + * @memberof IoK8sApiCoreV1ISCSIVolumeSource + */ + lun: number; + /** + * portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * @type {Array} + * @memberof IoK8sApiCoreV1ISCSIVolumeSource + */ + portals?: string[]; + /** + * readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * @type {boolean} + * @memberof IoK8sApiCoreV1ISCSIVolumeSource + */ + readOnly?: boolean; + /** + * + * @type {IoK8sApiCoreV1LocalObjectReference} + * @memberof IoK8sApiCoreV1ISCSIVolumeSource + */ + secretRef?: IoK8sApiCoreV1LocalObjectReference; + /** + * targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * @type {string} + * @memberof IoK8sApiCoreV1ISCSIVolumeSource + */ + targetPortal: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ISCSIVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1ISCSIVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "iqn" in value; + isInstance = isInstance && "lun" in value; + isInstance = isInstance && "targetPortal" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1ISCSIVolumeSourceFromJSON(json: any): IoK8sApiCoreV1ISCSIVolumeSource { + return IoK8sApiCoreV1ISCSIVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ISCSIVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ISCSIVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'chapAuthDiscovery': !exists(json, 'chapAuthDiscovery') ? undefined : json['chapAuthDiscovery'], + 'chapAuthSession': !exists(json, 'chapAuthSession') ? undefined : json['chapAuthSession'], + 'fsType': !exists(json, 'fsType') ? undefined : json['fsType'], + 'initiatorName': !exists(json, 'initiatorName') ? undefined : json['initiatorName'], + 'iqn': json['iqn'], + 'iscsiInterface': !exists(json, 'iscsiInterface') ? undefined : json['iscsiInterface'], + 'lun': json['lun'], + 'portals': !exists(json, 'portals') ? undefined : json['portals'], + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + 'secretRef': !exists(json, 'secretRef') ? undefined : IoK8sApiCoreV1LocalObjectReferenceFromJSON(json['secretRef']), + 'targetPortal': json['targetPortal'], + }; +} + +export function IoK8sApiCoreV1ISCSIVolumeSourceToJSON(value?: IoK8sApiCoreV1ISCSIVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'chapAuthDiscovery': value.chapAuthDiscovery, + 'chapAuthSession': value.chapAuthSession, + 'fsType': value.fsType, + 'initiatorName': value.initiatorName, + 'iqn': value.iqn, + 'iscsiInterface': value.iscsiInterface, + 'lun': value.lun, + 'portals': value.portals, + 'readOnly': value.readOnly, + 'secretRef': IoK8sApiCoreV1LocalObjectReferenceToJSON(value.secretRef), + 'targetPortal': value.targetPortal, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1KeyToPath.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1KeyToPath.ts new file mode 100644 index 000000000..c5861d3e7 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1KeyToPath.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Maps a string key to a path within a volume. + * @export + * @interface IoK8sApiCoreV1KeyToPath + */ +export interface IoK8sApiCoreV1KeyToPath { + /** + * key is the key to project. + * @type {string} + * @memberof IoK8sApiCoreV1KeyToPath + */ + key: string; + /** + * mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + * @type {number} + * @memberof IoK8sApiCoreV1KeyToPath + */ + mode?: number; + /** + * path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + * @type {string} + * @memberof IoK8sApiCoreV1KeyToPath + */ + path: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1KeyToPath interface. + */ +export function instanceOfIoK8sApiCoreV1KeyToPath(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "key" in value; + isInstance = isInstance && "path" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1KeyToPathFromJSON(json: any): IoK8sApiCoreV1KeyToPath { + return IoK8sApiCoreV1KeyToPathFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1KeyToPathFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1KeyToPath { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'key': json['key'], + 'mode': !exists(json, 'mode') ? undefined : json['mode'], + 'path': json['path'], + }; +} + +export function IoK8sApiCoreV1KeyToPathToJSON(value?: IoK8sApiCoreV1KeyToPath | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'key': value.key, + 'mode': value.mode, + 'path': value.path, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Lifecycle.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Lifecycle.ts new file mode 100644 index 000000000..c0aaa5b57 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Lifecycle.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1LifecycleHandler } from './IoK8sApiCoreV1LifecycleHandler'; +import { + IoK8sApiCoreV1LifecycleHandlerFromJSON, + IoK8sApiCoreV1LifecycleHandlerFromJSONTyped, + IoK8sApiCoreV1LifecycleHandlerToJSON, +} from './IoK8sApiCoreV1LifecycleHandler'; + +/** + * Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted. + * @export + * @interface IoK8sApiCoreV1Lifecycle + */ +export interface IoK8sApiCoreV1Lifecycle { + /** + * + * @type {IoK8sApiCoreV1LifecycleHandler} + * @memberof IoK8sApiCoreV1Lifecycle + */ + postStart?: IoK8sApiCoreV1LifecycleHandler; + /** + * + * @type {IoK8sApiCoreV1LifecycleHandler} + * @memberof IoK8sApiCoreV1Lifecycle + */ + preStop?: IoK8sApiCoreV1LifecycleHandler; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1Lifecycle interface. + */ +export function instanceOfIoK8sApiCoreV1Lifecycle(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1LifecycleFromJSON(json: any): IoK8sApiCoreV1Lifecycle { + return IoK8sApiCoreV1LifecycleFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1LifecycleFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1Lifecycle { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'postStart': !exists(json, 'postStart') ? undefined : IoK8sApiCoreV1LifecycleHandlerFromJSON(json['postStart']), + 'preStop': !exists(json, 'preStop') ? undefined : IoK8sApiCoreV1LifecycleHandlerFromJSON(json['preStop']), + }; +} + +export function IoK8sApiCoreV1LifecycleToJSON(value?: IoK8sApiCoreV1Lifecycle | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'postStart': IoK8sApiCoreV1LifecycleHandlerToJSON(value.postStart), + 'preStop': IoK8sApiCoreV1LifecycleHandlerToJSON(value.preStop), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LifecycleHandler.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LifecycleHandler.ts new file mode 100644 index 000000000..a0a8039c2 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LifecycleHandler.ts @@ -0,0 +1,114 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ExecAction } from './IoK8sApiCoreV1ExecAction'; +import { + IoK8sApiCoreV1ExecActionFromJSON, + IoK8sApiCoreV1ExecActionFromJSONTyped, + IoK8sApiCoreV1ExecActionToJSON, +} from './IoK8sApiCoreV1ExecAction'; +import type { IoK8sApiCoreV1HTTPGetAction } from './IoK8sApiCoreV1HTTPGetAction'; +import { + IoK8sApiCoreV1HTTPGetActionFromJSON, + IoK8sApiCoreV1HTTPGetActionFromJSONTyped, + IoK8sApiCoreV1HTTPGetActionToJSON, +} from './IoK8sApiCoreV1HTTPGetAction'; +import type { IoK8sApiCoreV1SleepAction } from './IoK8sApiCoreV1SleepAction'; +import { + IoK8sApiCoreV1SleepActionFromJSON, + IoK8sApiCoreV1SleepActionFromJSONTyped, + IoK8sApiCoreV1SleepActionToJSON, +} from './IoK8sApiCoreV1SleepAction'; +import type { IoK8sApiCoreV1TCPSocketAction } from './IoK8sApiCoreV1TCPSocketAction'; +import { + IoK8sApiCoreV1TCPSocketActionFromJSON, + IoK8sApiCoreV1TCPSocketActionFromJSONTyped, + IoK8sApiCoreV1TCPSocketActionToJSON, +} from './IoK8sApiCoreV1TCPSocketAction'; + +/** + * LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified. + * @export + * @interface IoK8sApiCoreV1LifecycleHandler + */ +export interface IoK8sApiCoreV1LifecycleHandler { + /** + * + * @type {IoK8sApiCoreV1ExecAction} + * @memberof IoK8sApiCoreV1LifecycleHandler + */ + exec?: IoK8sApiCoreV1ExecAction; + /** + * + * @type {IoK8sApiCoreV1HTTPGetAction} + * @memberof IoK8sApiCoreV1LifecycleHandler + */ + httpGet?: IoK8sApiCoreV1HTTPGetAction; + /** + * + * @type {IoK8sApiCoreV1SleepAction} + * @memberof IoK8sApiCoreV1LifecycleHandler + */ + sleep?: IoK8sApiCoreV1SleepAction; + /** + * + * @type {IoK8sApiCoreV1TCPSocketAction} + * @memberof IoK8sApiCoreV1LifecycleHandler + */ + tcpSocket?: IoK8sApiCoreV1TCPSocketAction; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1LifecycleHandler interface. + */ +export function instanceOfIoK8sApiCoreV1LifecycleHandler(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1LifecycleHandlerFromJSON(json: any): IoK8sApiCoreV1LifecycleHandler { + return IoK8sApiCoreV1LifecycleHandlerFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1LifecycleHandlerFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1LifecycleHandler { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'exec': !exists(json, 'exec') ? undefined : IoK8sApiCoreV1ExecActionFromJSON(json['exec']), + 'httpGet': !exists(json, 'httpGet') ? undefined : IoK8sApiCoreV1HTTPGetActionFromJSON(json['httpGet']), + 'sleep': !exists(json, 'sleep') ? undefined : IoK8sApiCoreV1SleepActionFromJSON(json['sleep']), + 'tcpSocket': !exists(json, 'tcpSocket') ? undefined : IoK8sApiCoreV1TCPSocketActionFromJSON(json['tcpSocket']), + }; +} + +export function IoK8sApiCoreV1LifecycleHandlerToJSON(value?: IoK8sApiCoreV1LifecycleHandler | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'exec': IoK8sApiCoreV1ExecActionToJSON(value.exec), + 'httpGet': IoK8sApiCoreV1HTTPGetActionToJSON(value.httpGet), + 'sleep': IoK8sApiCoreV1SleepActionToJSON(value.sleep), + 'tcpSocket': IoK8sApiCoreV1TCPSocketActionToJSON(value.tcpSocket), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LimitRange.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LimitRange.ts new file mode 100644 index 000000000..0ceff5f14 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LimitRange.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1LimitRangeSpec } from './IoK8sApiCoreV1LimitRangeSpec'; +import { + IoK8sApiCoreV1LimitRangeSpecFromJSON, + IoK8sApiCoreV1LimitRangeSpecFromJSONTyped, + IoK8sApiCoreV1LimitRangeSpecToJSON, +} from './IoK8sApiCoreV1LimitRangeSpec'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * LimitRange sets resource usage limits for each kind of resource in a Namespace. + * @export + * @interface IoK8sApiCoreV1LimitRange + */ +export interface IoK8sApiCoreV1LimitRange { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1LimitRange + */ + 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 + * @type {string} + * @memberof IoK8sApiCoreV1LimitRange + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiCoreV1LimitRange + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiCoreV1LimitRangeSpec} + * @memberof IoK8sApiCoreV1LimitRange + */ + spec?: IoK8sApiCoreV1LimitRangeSpec; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1LimitRange interface. + */ +export function instanceOfIoK8sApiCoreV1LimitRange(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1LimitRangeFromJSON(json: any): IoK8sApiCoreV1LimitRange { + return IoK8sApiCoreV1LimitRangeFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1LimitRangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1LimitRange { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiCoreV1LimitRangeSpecFromJSON(json['spec']), + }; +} + +export function IoK8sApiCoreV1LimitRangeToJSON(value?: IoK8sApiCoreV1LimitRange | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiCoreV1LimitRangeSpecToJSON(value.spec), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LimitRangeItem.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LimitRangeItem.ts new file mode 100644 index 000000000..e43a4b7cb --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LimitRangeItem.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * LimitRangeItem defines a min/max usage limit for any resource that matches on kind. + * @export + * @interface IoK8sApiCoreV1LimitRangeItem + */ +export interface IoK8sApiCoreV1LimitRangeItem { + /** + * Default resource requirement limit value by resource name if resource limit is omitted. + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1LimitRangeItem + */ + _default?: { [key: string]: string; }; + /** + * DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1LimitRangeItem + */ + defaultRequest?: { [key: string]: string; }; + /** + * Max usage constraints on this kind by resource name. + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1LimitRangeItem + */ + max?: { [key: string]: string; }; + /** + * MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1LimitRangeItem + */ + maxLimitRequestRatio?: { [key: string]: string; }; + /** + * Min usage constraints on this kind by resource name. + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1LimitRangeItem + */ + min?: { [key: string]: string; }; + /** + * Type of resource that this limit applies to. + * @type {string} + * @memberof IoK8sApiCoreV1LimitRangeItem + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1LimitRangeItem interface. + */ +export function instanceOfIoK8sApiCoreV1LimitRangeItem(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1LimitRangeItemFromJSON(json: any): IoK8sApiCoreV1LimitRangeItem { + return IoK8sApiCoreV1LimitRangeItemFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1LimitRangeItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1LimitRangeItem { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + '_default': !exists(json, 'default') ? undefined : json['default'], + 'defaultRequest': !exists(json, 'defaultRequest') ? undefined : json['defaultRequest'], + 'max': !exists(json, 'max') ? undefined : json['max'], + 'maxLimitRequestRatio': !exists(json, 'maxLimitRequestRatio') ? undefined : json['maxLimitRequestRatio'], + 'min': !exists(json, 'min') ? undefined : json['min'], + 'type': json['type'], + }; +} + +export function IoK8sApiCoreV1LimitRangeItemToJSON(value?: IoK8sApiCoreV1LimitRangeItem | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'default': value._default, + 'defaultRequest': value.defaultRequest, + 'max': value.max, + 'maxLimitRequestRatio': value.maxLimitRequestRatio, + 'min': value.min, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LimitRangeList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LimitRangeList.ts new file mode 100644 index 000000000..f5568ba63 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LimitRangeList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1LimitRange } from './IoK8sApiCoreV1LimitRange'; +import { + IoK8sApiCoreV1LimitRangeFromJSON, + IoK8sApiCoreV1LimitRangeFromJSONTyped, + IoK8sApiCoreV1LimitRangeToJSON, +} from './IoK8sApiCoreV1LimitRange'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * LimitRangeList is a list of LimitRange items. + * @export + * @interface IoK8sApiCoreV1LimitRangeList + */ +export interface IoK8sApiCoreV1LimitRangeList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1LimitRangeList + */ + apiVersion?: string; + /** + * Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + * @type {Array} + * @memberof IoK8sApiCoreV1LimitRangeList + */ + 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 + * @type {string} + * @memberof IoK8sApiCoreV1LimitRangeList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiCoreV1LimitRangeList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1LimitRangeList interface. + */ +export function instanceOfIoK8sApiCoreV1LimitRangeList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1LimitRangeListFromJSON(json: any): IoK8sApiCoreV1LimitRangeList { + return IoK8sApiCoreV1LimitRangeListFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1LimitRangeListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1LimitRangeList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiCoreV1LimitRangeFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiCoreV1LimitRangeListToJSON(value?: IoK8sApiCoreV1LimitRangeList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiCoreV1LimitRangeToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LimitRangeSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LimitRangeSpec.ts new file mode 100644 index 000000000..9223ef310 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LimitRangeSpec.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1LimitRangeItem } from './IoK8sApiCoreV1LimitRangeItem'; +import { + IoK8sApiCoreV1LimitRangeItemFromJSON, + IoK8sApiCoreV1LimitRangeItemFromJSONTyped, + IoK8sApiCoreV1LimitRangeItemToJSON, +} from './IoK8sApiCoreV1LimitRangeItem'; + +/** + * LimitRangeSpec defines a min/max usage limit for resources that match on kind. + * @export + * @interface IoK8sApiCoreV1LimitRangeSpec + */ +export interface IoK8sApiCoreV1LimitRangeSpec { + /** + * Limits is the list of LimitRangeItem objects that are enforced. + * @type {Array} + * @memberof IoK8sApiCoreV1LimitRangeSpec + */ + limits: Array; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1LimitRangeSpec interface. + */ +export function instanceOfIoK8sApiCoreV1LimitRangeSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "limits" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1LimitRangeSpecFromJSON(json: any): IoK8sApiCoreV1LimitRangeSpec { + return IoK8sApiCoreV1LimitRangeSpecFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1LimitRangeSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1LimitRangeSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'limits': ((json['limits'] as Array).map(IoK8sApiCoreV1LimitRangeItemFromJSON)), + }; +} + +export function IoK8sApiCoreV1LimitRangeSpecToJSON(value?: IoK8sApiCoreV1LimitRangeSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'limits': ((value.limits as Array).map(IoK8sApiCoreV1LimitRangeItemToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LoadBalancerIngress.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LoadBalancerIngress.ts new file mode 100644 index 000000000..692d96391 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LoadBalancerIngress.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1PortStatus } from './IoK8sApiCoreV1PortStatus'; +import { + IoK8sApiCoreV1PortStatusFromJSON, + IoK8sApiCoreV1PortStatusFromJSONTyped, + IoK8sApiCoreV1PortStatusToJSON, +} from './IoK8sApiCoreV1PortStatus'; + +/** + * LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point. + * @export + * @interface IoK8sApiCoreV1LoadBalancerIngress + */ +export interface IoK8sApiCoreV1LoadBalancerIngress { + /** + * Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) + * @type {string} + * @memberof IoK8sApiCoreV1LoadBalancerIngress + */ + hostname?: string; + /** + * IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) + * @type {string} + * @memberof IoK8sApiCoreV1LoadBalancerIngress + */ + ip?: string; + /** + * IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified. Setting this to "VIP" indicates that traffic is delivered to the node with the destination set to the load-balancer's IP and port. Setting this to "Proxy" indicates that traffic is delivered to the node or pod with the destination set to the node's IP and node port or the pod's IP and port. Service implementations may use this information to adjust traffic routing. + * @type {string} + * @memberof IoK8sApiCoreV1LoadBalancerIngress + */ + ipMode?: string; + /** + * Ports is a list of records of service ports If used, every port defined in the service should have an entry in it + * @type {Array} + * @memberof IoK8sApiCoreV1LoadBalancerIngress + */ + ports?: Array; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1LoadBalancerIngress interface. + */ +export function instanceOfIoK8sApiCoreV1LoadBalancerIngress(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1LoadBalancerIngressFromJSON(json: any): IoK8sApiCoreV1LoadBalancerIngress { + return IoK8sApiCoreV1LoadBalancerIngressFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1LoadBalancerIngressFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1LoadBalancerIngress { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'hostname': !exists(json, 'hostname') ? undefined : json['hostname'], + 'ip': !exists(json, 'ip') ? undefined : json['ip'], + 'ipMode': !exists(json, 'ipMode') ? undefined : json['ipMode'], + 'ports': !exists(json, 'ports') ? undefined : ((json['ports'] as Array).map(IoK8sApiCoreV1PortStatusFromJSON)), + }; +} + +export function IoK8sApiCoreV1LoadBalancerIngressToJSON(value?: IoK8sApiCoreV1LoadBalancerIngress | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'hostname': value.hostname, + 'ip': value.ip, + 'ipMode': value.ipMode, + 'ports': value.ports === undefined ? undefined : ((value.ports as Array).map(IoK8sApiCoreV1PortStatusToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LoadBalancerStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LoadBalancerStatus.ts new file mode 100644 index 000000000..c80afd93a --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LoadBalancerStatus.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1LoadBalancerIngress } from './IoK8sApiCoreV1LoadBalancerIngress'; +import { + IoK8sApiCoreV1LoadBalancerIngressFromJSON, + IoK8sApiCoreV1LoadBalancerIngressFromJSONTyped, + IoK8sApiCoreV1LoadBalancerIngressToJSON, +} from './IoK8sApiCoreV1LoadBalancerIngress'; + +/** + * LoadBalancerStatus represents the status of a load-balancer. + * @export + * @interface IoK8sApiCoreV1LoadBalancerStatus + */ +export interface IoK8sApiCoreV1LoadBalancerStatus { + /** + * Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. + * @type {Array} + * @memberof IoK8sApiCoreV1LoadBalancerStatus + */ + ingress?: Array; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1LoadBalancerStatus interface. + */ +export function instanceOfIoK8sApiCoreV1LoadBalancerStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1LoadBalancerStatusFromJSON(json: any): IoK8sApiCoreV1LoadBalancerStatus { + return IoK8sApiCoreV1LoadBalancerStatusFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1LoadBalancerStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1LoadBalancerStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'ingress': !exists(json, 'ingress') ? undefined : ((json['ingress'] as Array).map(IoK8sApiCoreV1LoadBalancerIngressFromJSON)), + }; +} + +export function IoK8sApiCoreV1LoadBalancerStatusToJSON(value?: IoK8sApiCoreV1LoadBalancerStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ingress': value.ingress === undefined ? undefined : ((value.ingress as Array).map(IoK8sApiCoreV1LoadBalancerIngressToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LocalObjectReference.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LocalObjectReference.ts new file mode 100644 index 000000000..ac4e1558a --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LocalObjectReference.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. + * @export + * @interface IoK8sApiCoreV1LocalObjectReference + */ +export interface IoK8sApiCoreV1LocalObjectReference { + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * @type {string} + * @memberof IoK8sApiCoreV1LocalObjectReference + */ + name?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1LocalObjectReference interface. + */ +export function instanceOfIoK8sApiCoreV1LocalObjectReference(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1LocalObjectReferenceFromJSON(json: any): IoK8sApiCoreV1LocalObjectReference { + return IoK8sApiCoreV1LocalObjectReferenceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1LocalObjectReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1LocalObjectReference { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': !exists(json, 'name') ? undefined : json['name'], + }; +} + +export function IoK8sApiCoreV1LocalObjectReferenceToJSON(value?: IoK8sApiCoreV1LocalObjectReference | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LocalVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LocalVolumeSource.ts new file mode 100644 index 000000000..f822af43a --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1LocalVolumeSource.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Local represents directly-attached storage with node affinity (Beta feature) + * @export + * @interface IoK8sApiCoreV1LocalVolumeSource + */ +export interface IoK8sApiCoreV1LocalVolumeSource { + /** + * fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a filesystem if unspecified. + * @type {string} + * @memberof IoK8sApiCoreV1LocalVolumeSource + */ + fsType?: string; + /** + * path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). + * @type {string} + * @memberof IoK8sApiCoreV1LocalVolumeSource + */ + path: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1LocalVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1LocalVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "path" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1LocalVolumeSourceFromJSON(json: any): IoK8sApiCoreV1LocalVolumeSource { + return IoK8sApiCoreV1LocalVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1LocalVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1LocalVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'fsType': !exists(json, 'fsType') ? undefined : json['fsType'], + 'path': json['path'], + }; +} + +export function IoK8sApiCoreV1LocalVolumeSourceToJSON(value?: IoK8sApiCoreV1LocalVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'fsType': value.fsType, + 'path': value.path, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ModifyVolumeStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ModifyVolumeStatus.ts new file mode 100644 index 000000000..004d2b31f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ModifyVolumeStatus.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ModifyVolumeStatus represents the status object of ControllerModifyVolume operation + * @export + * @interface IoK8sApiCoreV1ModifyVolumeStatus + */ +export interface IoK8sApiCoreV1ModifyVolumeStatus { + /** + * status is the status of the ControllerModifyVolume operation. It can be in any of following states: + * - Pending + * Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as + * the specified VolumeAttributesClass not existing. + * - InProgress + * InProgress indicates that the volume is being modified. + * - Infeasible + * Infeasible indicates that the request has been rejected as invalid by the CSI driver. To + * resolve the error, a valid VolumeAttributesClass needs to be specified. + * Note: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately. + * @type {string} + * @memberof IoK8sApiCoreV1ModifyVolumeStatus + */ + status: string; + /** + * targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled + * @type {string} + * @memberof IoK8sApiCoreV1ModifyVolumeStatus + */ + targetVolumeAttributesClassName?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ModifyVolumeStatus interface. + */ +export function instanceOfIoK8sApiCoreV1ModifyVolumeStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "status" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1ModifyVolumeStatusFromJSON(json: any): IoK8sApiCoreV1ModifyVolumeStatus { + return IoK8sApiCoreV1ModifyVolumeStatusFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ModifyVolumeStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ModifyVolumeStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'status': json['status'], + 'targetVolumeAttributesClassName': !exists(json, 'targetVolumeAttributesClassName') ? undefined : json['targetVolumeAttributesClassName'], + }; +} + +export function IoK8sApiCoreV1ModifyVolumeStatusToJSON(value?: IoK8sApiCoreV1ModifyVolumeStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'status': value.status, + 'targetVolumeAttributesClassName': value.targetVolumeAttributesClassName, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NFSVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NFSVolumeSource.ts new file mode 100644 index 000000000..32612ae5f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NFSVolumeSource.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling. + * @export + * @interface IoK8sApiCoreV1NFSVolumeSource + */ +export interface IoK8sApiCoreV1NFSVolumeSource { + /** + * path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * @type {string} + * @memberof IoK8sApiCoreV1NFSVolumeSource + */ + path: string; + /** + * readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * @type {boolean} + * @memberof IoK8sApiCoreV1NFSVolumeSource + */ + readOnly?: boolean; + /** + * server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * @type {string} + * @memberof IoK8sApiCoreV1NFSVolumeSource + */ + server: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1NFSVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1NFSVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "path" in value; + isInstance = isInstance && "server" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1NFSVolumeSourceFromJSON(json: any): IoK8sApiCoreV1NFSVolumeSource { + return IoK8sApiCoreV1NFSVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1NFSVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1NFSVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'path': json['path'], + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + 'server': json['server'], + }; +} + +export function IoK8sApiCoreV1NFSVolumeSourceToJSON(value?: IoK8sApiCoreV1NFSVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'path': value.path, + 'readOnly': value.readOnly, + 'server': value.server, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Namespace.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Namespace.ts new file mode 100644 index 000000000..18ac61790 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Namespace.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1NamespaceSpec } from './IoK8sApiCoreV1NamespaceSpec'; +import { + IoK8sApiCoreV1NamespaceSpecFromJSON, + IoK8sApiCoreV1NamespaceSpecFromJSONTyped, + IoK8sApiCoreV1NamespaceSpecToJSON, +} from './IoK8sApiCoreV1NamespaceSpec'; +import type { IoK8sApiCoreV1NamespaceStatus } from './IoK8sApiCoreV1NamespaceStatus'; +import { + IoK8sApiCoreV1NamespaceStatusFromJSON, + IoK8sApiCoreV1NamespaceStatusFromJSONTyped, + IoK8sApiCoreV1NamespaceStatusToJSON, +} from './IoK8sApiCoreV1NamespaceStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * Namespace provides a scope for Names. Use of multiple namespaces is optional. + * @export + * @interface IoK8sApiCoreV1Namespace + */ +export interface IoK8sApiCoreV1Namespace { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1Namespace + */ + 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 + * @type {string} + * @memberof IoK8sApiCoreV1Namespace + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiCoreV1Namespace + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiCoreV1NamespaceSpec} + * @memberof IoK8sApiCoreV1Namespace + */ + spec?: IoK8sApiCoreV1NamespaceSpec; + /** + * + * @type {IoK8sApiCoreV1NamespaceStatus} + * @memberof IoK8sApiCoreV1Namespace + */ + status?: IoK8sApiCoreV1NamespaceStatus; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1Namespace interface. + */ +export function instanceOfIoK8sApiCoreV1Namespace(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1NamespaceFromJSON(json: any): IoK8sApiCoreV1Namespace { + return IoK8sApiCoreV1NamespaceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1NamespaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1Namespace { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiCoreV1NamespaceSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiCoreV1NamespaceStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiCoreV1NamespaceToJSON(value?: IoK8sApiCoreV1Namespace | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiCoreV1NamespaceSpecToJSON(value.spec), + 'status': IoK8sApiCoreV1NamespaceStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NamespaceCondition.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NamespaceCondition.ts new file mode 100644 index 000000000..9763944ed --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NamespaceCondition.ts @@ -0,0 +1,99 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * NamespaceCondition contains details about state of namespace. + * @export + * @interface IoK8sApiCoreV1NamespaceCondition + */ +export interface IoK8sApiCoreV1NamespaceCondition { + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiCoreV1NamespaceCondition + */ + lastTransitionTime?: string; + /** + * + * @type {string} + * @memberof IoK8sApiCoreV1NamespaceCondition + */ + message?: string; + /** + * + * @type {string} + * @memberof IoK8sApiCoreV1NamespaceCondition + */ + reason?: string; + /** + * Status of the condition, one of True, False, Unknown. + * @type {string} + * @memberof IoK8sApiCoreV1NamespaceCondition + */ + status: string; + /** + * Type of namespace controller condition. + * @type {string} + * @memberof IoK8sApiCoreV1NamespaceCondition + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1NamespaceCondition interface. + */ +export function instanceOfIoK8sApiCoreV1NamespaceCondition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "status" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1NamespaceConditionFromJSON(json: any): IoK8sApiCoreV1NamespaceCondition { + return IoK8sApiCoreV1NamespaceConditionFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1NamespaceConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1NamespaceCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'lastTransitionTime': !exists(json, 'lastTransitionTime') ? undefined : json['lastTransitionTime'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'status': json['status'], + 'type': json['type'], + }; +} + +export function IoK8sApiCoreV1NamespaceConditionToJSON(value?: IoK8sApiCoreV1NamespaceCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'lastTransitionTime': value.lastTransitionTime === undefined ? undefined : (value.lastTransitionTime), + 'message': value.message, + 'reason': value.reason, + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NamespaceList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NamespaceList.ts new file mode 100644 index 000000000..99ad08bc8 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NamespaceList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1Namespace } from './IoK8sApiCoreV1Namespace'; +import { + IoK8sApiCoreV1NamespaceFromJSON, + IoK8sApiCoreV1NamespaceFromJSONTyped, + IoK8sApiCoreV1NamespaceToJSON, +} from './IoK8sApiCoreV1Namespace'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * NamespaceList is a list of Namespaces. + * @export + * @interface IoK8sApiCoreV1NamespaceList + */ +export interface IoK8sApiCoreV1NamespaceList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1NamespaceList + */ + apiVersion?: string; + /** + * Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * @type {Array} + * @memberof IoK8sApiCoreV1NamespaceList + */ + 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 + * @type {string} + * @memberof IoK8sApiCoreV1NamespaceList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiCoreV1NamespaceList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1NamespaceList interface. + */ +export function instanceOfIoK8sApiCoreV1NamespaceList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1NamespaceListFromJSON(json: any): IoK8sApiCoreV1NamespaceList { + return IoK8sApiCoreV1NamespaceListFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1NamespaceListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1NamespaceList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiCoreV1NamespaceFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiCoreV1NamespaceListToJSON(value?: IoK8sApiCoreV1NamespaceList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiCoreV1NamespaceToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NamespaceSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NamespaceSpec.ts new file mode 100644 index 000000000..cf10e6c6a --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NamespaceSpec.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * NamespaceSpec describes the attributes on a Namespace. + * @export + * @interface IoK8sApiCoreV1NamespaceSpec + */ +export interface IoK8sApiCoreV1NamespaceSpec { + /** + * Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ + * @type {Array} + * @memberof IoK8sApiCoreV1NamespaceSpec + */ + finalizers?: string[]; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1NamespaceSpec interface. + */ +export function instanceOfIoK8sApiCoreV1NamespaceSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1NamespaceSpecFromJSON(json: any): IoK8sApiCoreV1NamespaceSpec { + return IoK8sApiCoreV1NamespaceSpecFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1NamespaceSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1NamespaceSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'finalizers': !exists(json, 'finalizers') ? undefined : json['finalizers'], + }; +} + +export function IoK8sApiCoreV1NamespaceSpecToJSON(value?: IoK8sApiCoreV1NamespaceSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'finalizers': value.finalizers, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NamespaceStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NamespaceStatus.ts new file mode 100644 index 000000000..5c32a9e55 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NamespaceStatus.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1NamespaceCondition } from './IoK8sApiCoreV1NamespaceCondition'; +import { + IoK8sApiCoreV1NamespaceConditionFromJSON, + IoK8sApiCoreV1NamespaceConditionFromJSONTyped, + IoK8sApiCoreV1NamespaceConditionToJSON, +} from './IoK8sApiCoreV1NamespaceCondition'; + +/** + * NamespaceStatus is information about the current status of a Namespace. + * @export + * @interface IoK8sApiCoreV1NamespaceStatus + */ +export interface IoK8sApiCoreV1NamespaceStatus { + /** + * Represents the latest available observations of a namespace's current state. + * @type {Array} + * @memberof IoK8sApiCoreV1NamespaceStatus + */ + conditions?: Array; + /** + * Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ + * @type {string} + * @memberof IoK8sApiCoreV1NamespaceStatus + */ + phase?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1NamespaceStatus interface. + */ +export function instanceOfIoK8sApiCoreV1NamespaceStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1NamespaceStatusFromJSON(json: any): IoK8sApiCoreV1NamespaceStatus { + return IoK8sApiCoreV1NamespaceStatusFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1NamespaceStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1NamespaceStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(IoK8sApiCoreV1NamespaceConditionFromJSON)), + 'phase': !exists(json, 'phase') ? undefined : json['phase'], + }; +} + +export function IoK8sApiCoreV1NamespaceStatusToJSON(value?: IoK8sApiCoreV1NamespaceStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(IoK8sApiCoreV1NamespaceConditionToJSON)), + 'phase': value.phase, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Node.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Node.ts new file mode 100644 index 000000000..94d471fa4 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Node.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1NodeSpec } from './IoK8sApiCoreV1NodeSpec'; +import { + IoK8sApiCoreV1NodeSpecFromJSON, + IoK8sApiCoreV1NodeSpecFromJSONTyped, + IoK8sApiCoreV1NodeSpecToJSON, +} from './IoK8sApiCoreV1NodeSpec'; +import type { IoK8sApiCoreV1NodeStatus } from './IoK8sApiCoreV1NodeStatus'; +import { + IoK8sApiCoreV1NodeStatusFromJSON, + IoK8sApiCoreV1NodeStatusFromJSONTyped, + IoK8sApiCoreV1NodeStatusToJSON, +} from './IoK8sApiCoreV1NodeStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd). + * @export + * @interface IoK8sApiCoreV1Node + */ +export interface IoK8sApiCoreV1Node { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1Node + */ + 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 + * @type {string} + * @memberof IoK8sApiCoreV1Node + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiCoreV1Node + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiCoreV1NodeSpec} + * @memberof IoK8sApiCoreV1Node + */ + spec?: IoK8sApiCoreV1NodeSpec; + /** + * + * @type {IoK8sApiCoreV1NodeStatus} + * @memberof IoK8sApiCoreV1Node + */ + status?: IoK8sApiCoreV1NodeStatus; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1Node interface. + */ +export function instanceOfIoK8sApiCoreV1Node(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1NodeFromJSON(json: any): IoK8sApiCoreV1Node { + return IoK8sApiCoreV1NodeFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1NodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1Node { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiCoreV1NodeSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiCoreV1NodeStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiCoreV1NodeToJSON(value?: IoK8sApiCoreV1Node | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiCoreV1NodeSpecToJSON(value.spec), + 'status': IoK8sApiCoreV1NodeStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeAddress.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeAddress.ts new file mode 100644 index 000000000..9f59bb0bb --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeAddress.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * NodeAddress contains information for the node's address. + * @export + * @interface IoK8sApiCoreV1NodeAddress + */ +export interface IoK8sApiCoreV1NodeAddress { + /** + * The node address. + * @type {string} + * @memberof IoK8sApiCoreV1NodeAddress + */ + address: string; + /** + * Node address type, one of Hostname, ExternalIP or InternalIP. + * @type {string} + * @memberof IoK8sApiCoreV1NodeAddress + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1NodeAddress interface. + */ +export function instanceOfIoK8sApiCoreV1NodeAddress(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "address" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1NodeAddressFromJSON(json: any): IoK8sApiCoreV1NodeAddress { + return IoK8sApiCoreV1NodeAddressFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1NodeAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1NodeAddress { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'address': json['address'], + 'type': json['type'], + }; +} + +export function IoK8sApiCoreV1NodeAddressToJSON(value?: IoK8sApiCoreV1NodeAddress | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'address': value.address, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeAffinity.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeAffinity.ts new file mode 100644 index 000000000..614f3bee2 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeAffinity.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1NodeSelector } from './IoK8sApiCoreV1NodeSelector'; +import { + IoK8sApiCoreV1NodeSelectorFromJSON, + IoK8sApiCoreV1NodeSelectorFromJSONTyped, + IoK8sApiCoreV1NodeSelectorToJSON, +} from './IoK8sApiCoreV1NodeSelector'; +import type { IoK8sApiCoreV1PreferredSchedulingTerm } from './IoK8sApiCoreV1PreferredSchedulingTerm'; +import { + IoK8sApiCoreV1PreferredSchedulingTermFromJSON, + IoK8sApiCoreV1PreferredSchedulingTermFromJSONTyped, + IoK8sApiCoreV1PreferredSchedulingTermToJSON, +} from './IoK8sApiCoreV1PreferredSchedulingTerm'; + +/** + * Node affinity is a group of node affinity scheduling rules. + * @export + * @interface IoK8sApiCoreV1NodeAffinity + */ +export interface IoK8sApiCoreV1NodeAffinity { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * @type {Array} + * @memberof IoK8sApiCoreV1NodeAffinity + */ + preferredDuringSchedulingIgnoredDuringExecution?: Array; + /** + * + * @type {IoK8sApiCoreV1NodeSelector} + * @memberof IoK8sApiCoreV1NodeAffinity + */ + requiredDuringSchedulingIgnoredDuringExecution?: IoK8sApiCoreV1NodeSelector; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1NodeAffinity interface. + */ +export function instanceOfIoK8sApiCoreV1NodeAffinity(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1NodeAffinityFromJSON(json: any): IoK8sApiCoreV1NodeAffinity { + return IoK8sApiCoreV1NodeAffinityFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1NodeAffinityFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1NodeAffinity { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'preferredDuringSchedulingIgnoredDuringExecution': !exists(json, 'preferredDuringSchedulingIgnoredDuringExecution') ? undefined : ((json['preferredDuringSchedulingIgnoredDuringExecution'] as Array).map(IoK8sApiCoreV1PreferredSchedulingTermFromJSON)), + 'requiredDuringSchedulingIgnoredDuringExecution': !exists(json, 'requiredDuringSchedulingIgnoredDuringExecution') ? undefined : IoK8sApiCoreV1NodeSelectorFromJSON(json['requiredDuringSchedulingIgnoredDuringExecution']), + }; +} + +export function IoK8sApiCoreV1NodeAffinityToJSON(value?: IoK8sApiCoreV1NodeAffinity | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'preferredDuringSchedulingIgnoredDuringExecution': value.preferredDuringSchedulingIgnoredDuringExecution === undefined ? undefined : ((value.preferredDuringSchedulingIgnoredDuringExecution as Array).map(IoK8sApiCoreV1PreferredSchedulingTermToJSON)), + 'requiredDuringSchedulingIgnoredDuringExecution': IoK8sApiCoreV1NodeSelectorToJSON(value.requiredDuringSchedulingIgnoredDuringExecution), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeCondition.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeCondition.ts new file mode 100644 index 000000000..777d9c122 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeCondition.ts @@ -0,0 +1,107 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * NodeCondition contains condition information for a node. + * @export + * @interface IoK8sApiCoreV1NodeCondition + */ +export interface IoK8sApiCoreV1NodeCondition { + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiCoreV1NodeCondition + */ + lastHeartbeatTime?: string; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiCoreV1NodeCondition + */ + lastTransitionTime?: string; + /** + * Human readable message indicating details about last transition. + * @type {string} + * @memberof IoK8sApiCoreV1NodeCondition + */ + message?: string; + /** + * (brief) reason for the condition's last transition. + * @type {string} + * @memberof IoK8sApiCoreV1NodeCondition + */ + reason?: string; + /** + * Status of the condition, one of True, False, Unknown. + * @type {string} + * @memberof IoK8sApiCoreV1NodeCondition + */ + status: string; + /** + * Type of node condition. + * @type {string} + * @memberof IoK8sApiCoreV1NodeCondition + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1NodeCondition interface. + */ +export function instanceOfIoK8sApiCoreV1NodeCondition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "status" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1NodeConditionFromJSON(json: any): IoK8sApiCoreV1NodeCondition { + return IoK8sApiCoreV1NodeConditionFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1NodeConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1NodeCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'lastHeartbeatTime': !exists(json, 'lastHeartbeatTime') ? undefined : json['lastHeartbeatTime'], + 'lastTransitionTime': !exists(json, 'lastTransitionTime') ? undefined : json['lastTransitionTime'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'status': json['status'], + 'type': json['type'], + }; +} + +export function IoK8sApiCoreV1NodeConditionToJSON(value?: IoK8sApiCoreV1NodeCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'lastHeartbeatTime': value.lastHeartbeatTime === undefined ? undefined : (value.lastHeartbeatTime), + 'lastTransitionTime': value.lastTransitionTime === undefined ? undefined : (value.lastTransitionTime), + 'message': value.message, + 'reason': value.reason, + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeConfigSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeConfigSource.ts new file mode 100644 index 000000000..e057effeb --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeConfigSource.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ConfigMapNodeConfigSource } from './IoK8sApiCoreV1ConfigMapNodeConfigSource'; +import { + IoK8sApiCoreV1ConfigMapNodeConfigSourceFromJSON, + IoK8sApiCoreV1ConfigMapNodeConfigSourceFromJSONTyped, + IoK8sApiCoreV1ConfigMapNodeConfigSourceToJSON, +} from './IoK8sApiCoreV1ConfigMapNodeConfigSource'; + +/** + * NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22 + * @export + * @interface IoK8sApiCoreV1NodeConfigSource + */ +export interface IoK8sApiCoreV1NodeConfigSource { + /** + * + * @type {IoK8sApiCoreV1ConfigMapNodeConfigSource} + * @memberof IoK8sApiCoreV1NodeConfigSource + */ + configMap?: IoK8sApiCoreV1ConfigMapNodeConfigSource; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1NodeConfigSource interface. + */ +export function instanceOfIoK8sApiCoreV1NodeConfigSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1NodeConfigSourceFromJSON(json: any): IoK8sApiCoreV1NodeConfigSource { + return IoK8sApiCoreV1NodeConfigSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1NodeConfigSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1NodeConfigSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'configMap': !exists(json, 'configMap') ? undefined : IoK8sApiCoreV1ConfigMapNodeConfigSourceFromJSON(json['configMap']), + }; +} + +export function IoK8sApiCoreV1NodeConfigSourceToJSON(value?: IoK8sApiCoreV1NodeConfigSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'configMap': IoK8sApiCoreV1ConfigMapNodeConfigSourceToJSON(value.configMap), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeConfigStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeConfigStatus.ts new file mode 100644 index 000000000..58bf7788a --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeConfigStatus.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1NodeConfigSource } from './IoK8sApiCoreV1NodeConfigSource'; +import { + IoK8sApiCoreV1NodeConfigSourceFromJSON, + IoK8sApiCoreV1NodeConfigSourceFromJSONTyped, + IoK8sApiCoreV1NodeConfigSourceToJSON, +} from './IoK8sApiCoreV1NodeConfigSource'; + +/** + * NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource. + * @export + * @interface IoK8sApiCoreV1NodeConfigStatus + */ +export interface IoK8sApiCoreV1NodeConfigStatus { + /** + * + * @type {IoK8sApiCoreV1NodeConfigSource} + * @memberof IoK8sApiCoreV1NodeConfigStatus + */ + active?: IoK8sApiCoreV1NodeConfigSource; + /** + * + * @type {IoK8sApiCoreV1NodeConfigSource} + * @memberof IoK8sApiCoreV1NodeConfigStatus + */ + assigned?: IoK8sApiCoreV1NodeConfigSource; + /** + * Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions. + * @type {string} + * @memberof IoK8sApiCoreV1NodeConfigStatus + */ + error?: string; + /** + * + * @type {IoK8sApiCoreV1NodeConfigSource} + * @memberof IoK8sApiCoreV1NodeConfigStatus + */ + lastKnownGood?: IoK8sApiCoreV1NodeConfigSource; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1NodeConfigStatus interface. + */ +export function instanceOfIoK8sApiCoreV1NodeConfigStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1NodeConfigStatusFromJSON(json: any): IoK8sApiCoreV1NodeConfigStatus { + return IoK8sApiCoreV1NodeConfigStatusFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1NodeConfigStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1NodeConfigStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'active': !exists(json, 'active') ? undefined : IoK8sApiCoreV1NodeConfigSourceFromJSON(json['active']), + 'assigned': !exists(json, 'assigned') ? undefined : IoK8sApiCoreV1NodeConfigSourceFromJSON(json['assigned']), + 'error': !exists(json, 'error') ? undefined : json['error'], + 'lastKnownGood': !exists(json, 'lastKnownGood') ? undefined : IoK8sApiCoreV1NodeConfigSourceFromJSON(json['lastKnownGood']), + }; +} + +export function IoK8sApiCoreV1NodeConfigStatusToJSON(value?: IoK8sApiCoreV1NodeConfigStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'active': IoK8sApiCoreV1NodeConfigSourceToJSON(value.active), + 'assigned': IoK8sApiCoreV1NodeConfigSourceToJSON(value.assigned), + 'error': value.error, + 'lastKnownGood': IoK8sApiCoreV1NodeConfigSourceToJSON(value.lastKnownGood), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeDaemonEndpoints.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeDaemonEndpoints.ts new file mode 100644 index 000000000..5dcba77c1 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeDaemonEndpoints.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1DaemonEndpoint } from './IoK8sApiCoreV1DaemonEndpoint'; +import { + IoK8sApiCoreV1DaemonEndpointFromJSON, + IoK8sApiCoreV1DaemonEndpointFromJSONTyped, + IoK8sApiCoreV1DaemonEndpointToJSON, +} from './IoK8sApiCoreV1DaemonEndpoint'; + +/** + * NodeDaemonEndpoints lists ports opened by daemons running on the Node. + * @export + * @interface IoK8sApiCoreV1NodeDaemonEndpoints + */ +export interface IoK8sApiCoreV1NodeDaemonEndpoints { + /** + * + * @type {IoK8sApiCoreV1DaemonEndpoint} + * @memberof IoK8sApiCoreV1NodeDaemonEndpoints + */ + kubeletEndpoint?: IoK8sApiCoreV1DaemonEndpoint; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1NodeDaemonEndpoints interface. + */ +export function instanceOfIoK8sApiCoreV1NodeDaemonEndpoints(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1NodeDaemonEndpointsFromJSON(json: any): IoK8sApiCoreV1NodeDaemonEndpoints { + return IoK8sApiCoreV1NodeDaemonEndpointsFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1NodeDaemonEndpointsFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1NodeDaemonEndpoints { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'kubeletEndpoint': !exists(json, 'kubeletEndpoint') ? undefined : IoK8sApiCoreV1DaemonEndpointFromJSON(json['kubeletEndpoint']), + }; +} + +export function IoK8sApiCoreV1NodeDaemonEndpointsToJSON(value?: IoK8sApiCoreV1NodeDaemonEndpoints | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'kubeletEndpoint': IoK8sApiCoreV1DaemonEndpointToJSON(value.kubeletEndpoint), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeList.ts new file mode 100644 index 000000000..61d5c11cf --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1Node } from './IoK8sApiCoreV1Node'; +import { + IoK8sApiCoreV1NodeFromJSON, + IoK8sApiCoreV1NodeFromJSONTyped, + IoK8sApiCoreV1NodeToJSON, +} from './IoK8sApiCoreV1Node'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * NodeList is the whole list of all Nodes which have been registered with master. + * @export + * @interface IoK8sApiCoreV1NodeList + */ +export interface IoK8sApiCoreV1NodeList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1NodeList + */ + apiVersion?: string; + /** + * List of nodes + * @type {Array} + * @memberof IoK8sApiCoreV1NodeList + */ + 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 + * @type {string} + * @memberof IoK8sApiCoreV1NodeList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiCoreV1NodeList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1NodeList interface. + */ +export function instanceOfIoK8sApiCoreV1NodeList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1NodeListFromJSON(json: any): IoK8sApiCoreV1NodeList { + return IoK8sApiCoreV1NodeListFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1NodeListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1NodeList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiCoreV1NodeFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiCoreV1NodeListToJSON(value?: IoK8sApiCoreV1NodeList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiCoreV1NodeToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeSelector.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeSelector.ts new file mode 100644 index 000000000..9b8ee4b42 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeSelector.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1NodeSelectorTerm } from './IoK8sApiCoreV1NodeSelectorTerm'; +import { + IoK8sApiCoreV1NodeSelectorTermFromJSON, + IoK8sApiCoreV1NodeSelectorTermFromJSONTyped, + IoK8sApiCoreV1NodeSelectorTermToJSON, +} from './IoK8sApiCoreV1NodeSelectorTerm'; + +/** + * A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms. + * @export + * @interface IoK8sApiCoreV1NodeSelector + */ +export interface IoK8sApiCoreV1NodeSelector { + /** + * Required. A list of node selector terms. The terms are ORed. + * @type {Array} + * @memberof IoK8sApiCoreV1NodeSelector + */ + nodeSelectorTerms: Array; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1NodeSelector interface. + */ +export function instanceOfIoK8sApiCoreV1NodeSelector(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "nodeSelectorTerms" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1NodeSelectorFromJSON(json: any): IoK8sApiCoreV1NodeSelector { + return IoK8sApiCoreV1NodeSelectorFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1NodeSelectorFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1NodeSelector { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'nodeSelectorTerms': ((json['nodeSelectorTerms'] as Array).map(IoK8sApiCoreV1NodeSelectorTermFromJSON)), + }; +} + +export function IoK8sApiCoreV1NodeSelectorToJSON(value?: IoK8sApiCoreV1NodeSelector | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'nodeSelectorTerms': ((value.nodeSelectorTerms as Array).map(IoK8sApiCoreV1NodeSelectorTermToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeSelectorRequirement.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeSelectorRequirement.ts new file mode 100644 index 000000000..af29a00c4 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeSelectorRequirement.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. + * @export + * @interface IoK8sApiCoreV1NodeSelectorRequirement + */ +export interface IoK8sApiCoreV1NodeSelectorRequirement { + /** + * The label key that the selector applies to. + * @type {string} + * @memberof IoK8sApiCoreV1NodeSelectorRequirement + */ + key: string; + /** + * Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * @type {string} + * @memberof IoK8sApiCoreV1NodeSelectorRequirement + */ + operator: string; + /** + * An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. + * @type {Array} + * @memberof IoK8sApiCoreV1NodeSelectorRequirement + */ + values?: string[]; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1NodeSelectorRequirement interface. + */ +export function instanceOfIoK8sApiCoreV1NodeSelectorRequirement(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "key" in value; + isInstance = isInstance && "operator" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1NodeSelectorRequirementFromJSON(json: any): IoK8sApiCoreV1NodeSelectorRequirement { + return IoK8sApiCoreV1NodeSelectorRequirementFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1NodeSelectorRequirementFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1NodeSelectorRequirement { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'key': json['key'], + 'operator': json['operator'], + 'values': !exists(json, 'values') ? undefined : json['values'], + }; +} + +export function IoK8sApiCoreV1NodeSelectorRequirementToJSON(value?: IoK8sApiCoreV1NodeSelectorRequirement | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'key': value.key, + 'operator': value.operator, + 'values': value.values, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeSelectorTerm.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeSelectorTerm.ts new file mode 100644 index 000000000..acb2c7cc6 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeSelectorTerm.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1NodeSelectorRequirement } from './IoK8sApiCoreV1NodeSelectorRequirement'; +import { + IoK8sApiCoreV1NodeSelectorRequirementFromJSON, + IoK8sApiCoreV1NodeSelectorRequirementFromJSONTyped, + IoK8sApiCoreV1NodeSelectorRequirementToJSON, +} from './IoK8sApiCoreV1NodeSelectorRequirement'; + +/** + * A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. + * @export + * @interface IoK8sApiCoreV1NodeSelectorTerm + */ +export interface IoK8sApiCoreV1NodeSelectorTerm { + /** + * A list of node selector requirements by node's labels. + * @type {Array} + * @memberof IoK8sApiCoreV1NodeSelectorTerm + */ + matchExpressions?: Array; + /** + * A list of node selector requirements by node's fields. + * @type {Array} + * @memberof IoK8sApiCoreV1NodeSelectorTerm + */ + matchFields?: Array; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1NodeSelectorTerm interface. + */ +export function instanceOfIoK8sApiCoreV1NodeSelectorTerm(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1NodeSelectorTermFromJSON(json: any): IoK8sApiCoreV1NodeSelectorTerm { + return IoK8sApiCoreV1NodeSelectorTermFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1NodeSelectorTermFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1NodeSelectorTerm { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'matchExpressions': !exists(json, 'matchExpressions') ? undefined : ((json['matchExpressions'] as Array).map(IoK8sApiCoreV1NodeSelectorRequirementFromJSON)), + 'matchFields': !exists(json, 'matchFields') ? undefined : ((json['matchFields'] as Array).map(IoK8sApiCoreV1NodeSelectorRequirementFromJSON)), + }; +} + +export function IoK8sApiCoreV1NodeSelectorTermToJSON(value?: IoK8sApiCoreV1NodeSelectorTerm | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'matchExpressions': value.matchExpressions === undefined ? undefined : ((value.matchExpressions as Array).map(IoK8sApiCoreV1NodeSelectorRequirementToJSON)), + 'matchFields': value.matchFields === undefined ? undefined : ((value.matchFields as Array).map(IoK8sApiCoreV1NodeSelectorRequirementToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeSpec.ts new file mode 100644 index 000000000..eb52cc20e --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeSpec.ts @@ -0,0 +1,126 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1NodeConfigSource } from './IoK8sApiCoreV1NodeConfigSource'; +import { + IoK8sApiCoreV1NodeConfigSourceFromJSON, + IoK8sApiCoreV1NodeConfigSourceFromJSONTyped, + IoK8sApiCoreV1NodeConfigSourceToJSON, +} from './IoK8sApiCoreV1NodeConfigSource'; +import type { IoK8sApiCoreV1Taint } from './IoK8sApiCoreV1Taint'; +import { + IoK8sApiCoreV1TaintFromJSON, + IoK8sApiCoreV1TaintFromJSONTyped, + IoK8sApiCoreV1TaintToJSON, +} from './IoK8sApiCoreV1Taint'; + +/** + * NodeSpec describes the attributes that a node is created with. + * @export + * @interface IoK8sApiCoreV1NodeSpec + */ +export interface IoK8sApiCoreV1NodeSpec { + /** + * + * @type {IoK8sApiCoreV1NodeConfigSource} + * @memberof IoK8sApiCoreV1NodeSpec + */ + configSource?: IoK8sApiCoreV1NodeConfigSource; + /** + * Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 + * @type {string} + * @memberof IoK8sApiCoreV1NodeSpec + */ + externalID?: string; + /** + * PodCIDR represents the pod IP range assigned to the node. + * @type {string} + * @memberof IoK8sApiCoreV1NodeSpec + */ + podCIDR?: string; + /** + * podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6. + * @type {Array} + * @memberof IoK8sApiCoreV1NodeSpec + */ + podCIDRs?: string[]; + /** + * ID of the node assigned by the cloud provider in the format: :// + * @type {string} + * @memberof IoK8sApiCoreV1NodeSpec + */ + providerID?: string; + /** + * If specified, the node's taints. + * @type {Array} + * @memberof IoK8sApiCoreV1NodeSpec + */ + taints?: Array; + /** + * Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration + * @type {boolean} + * @memberof IoK8sApiCoreV1NodeSpec + */ + unschedulable?: boolean; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1NodeSpec interface. + */ +export function instanceOfIoK8sApiCoreV1NodeSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1NodeSpecFromJSON(json: any): IoK8sApiCoreV1NodeSpec { + return IoK8sApiCoreV1NodeSpecFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1NodeSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1NodeSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'configSource': !exists(json, 'configSource') ? undefined : IoK8sApiCoreV1NodeConfigSourceFromJSON(json['configSource']), + 'externalID': !exists(json, 'externalID') ? undefined : json['externalID'], + 'podCIDR': !exists(json, 'podCIDR') ? undefined : json['podCIDR'], + 'podCIDRs': !exists(json, 'podCIDRs') ? undefined : json['podCIDRs'], + 'providerID': !exists(json, 'providerID') ? undefined : json['providerID'], + 'taints': !exists(json, 'taints') ? undefined : ((json['taints'] as Array).map(IoK8sApiCoreV1TaintFromJSON)), + 'unschedulable': !exists(json, 'unschedulable') ? undefined : json['unschedulable'], + }; +} + +export function IoK8sApiCoreV1NodeSpecToJSON(value?: IoK8sApiCoreV1NodeSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'configSource': IoK8sApiCoreV1NodeConfigSourceToJSON(value.configSource), + 'externalID': value.externalID, + 'podCIDR': value.podCIDR, + 'podCIDRs': value.podCIDRs, + 'providerID': value.providerID, + 'taints': value.taints === undefined ? undefined : ((value.taints as Array).map(IoK8sApiCoreV1TaintToJSON)), + 'unschedulable': value.unschedulable, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeStatus.ts new file mode 100644 index 000000000..900986222 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeStatus.ts @@ -0,0 +1,188 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1AttachedVolume } from './IoK8sApiCoreV1AttachedVolume'; +import { + IoK8sApiCoreV1AttachedVolumeFromJSON, + IoK8sApiCoreV1AttachedVolumeFromJSONTyped, + IoK8sApiCoreV1AttachedVolumeToJSON, +} from './IoK8sApiCoreV1AttachedVolume'; +import type { IoK8sApiCoreV1ContainerImage } from './IoK8sApiCoreV1ContainerImage'; +import { + IoK8sApiCoreV1ContainerImageFromJSON, + IoK8sApiCoreV1ContainerImageFromJSONTyped, + IoK8sApiCoreV1ContainerImageToJSON, +} from './IoK8sApiCoreV1ContainerImage'; +import type { IoK8sApiCoreV1NodeAddress } from './IoK8sApiCoreV1NodeAddress'; +import { + IoK8sApiCoreV1NodeAddressFromJSON, + IoK8sApiCoreV1NodeAddressFromJSONTyped, + IoK8sApiCoreV1NodeAddressToJSON, +} from './IoK8sApiCoreV1NodeAddress'; +import type { IoK8sApiCoreV1NodeCondition } from './IoK8sApiCoreV1NodeCondition'; +import { + IoK8sApiCoreV1NodeConditionFromJSON, + IoK8sApiCoreV1NodeConditionFromJSONTyped, + IoK8sApiCoreV1NodeConditionToJSON, +} from './IoK8sApiCoreV1NodeCondition'; +import type { IoK8sApiCoreV1NodeConfigStatus } from './IoK8sApiCoreV1NodeConfigStatus'; +import { + IoK8sApiCoreV1NodeConfigStatusFromJSON, + IoK8sApiCoreV1NodeConfigStatusFromJSONTyped, + IoK8sApiCoreV1NodeConfigStatusToJSON, +} from './IoK8sApiCoreV1NodeConfigStatus'; +import type { IoK8sApiCoreV1NodeDaemonEndpoints } from './IoK8sApiCoreV1NodeDaemonEndpoints'; +import { + IoK8sApiCoreV1NodeDaemonEndpointsFromJSON, + IoK8sApiCoreV1NodeDaemonEndpointsFromJSONTyped, + IoK8sApiCoreV1NodeDaemonEndpointsToJSON, +} from './IoK8sApiCoreV1NodeDaemonEndpoints'; +import type { IoK8sApiCoreV1NodeSystemInfo } from './IoK8sApiCoreV1NodeSystemInfo'; +import { + IoK8sApiCoreV1NodeSystemInfoFromJSON, + IoK8sApiCoreV1NodeSystemInfoFromJSONTyped, + IoK8sApiCoreV1NodeSystemInfoToJSON, +} from './IoK8sApiCoreV1NodeSystemInfo'; + +/** + * NodeStatus is information about the current status of a node. + * @export + * @interface IoK8sApiCoreV1NodeStatus + */ +export interface IoK8sApiCoreV1NodeStatus { + /** + * List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP). + * @type {Array} + * @memberof IoK8sApiCoreV1NodeStatus + */ + addresses?: Array; + /** + * Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1NodeStatus + */ + allocatable?: { [key: string]: string; }; + /** + * Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1NodeStatus + */ + capacity?: { [key: string]: string; }; + /** + * Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition + * @type {Array} + * @memberof IoK8sApiCoreV1NodeStatus + */ + conditions?: Array; + /** + * + * @type {IoK8sApiCoreV1NodeConfigStatus} + * @memberof IoK8sApiCoreV1NodeStatus + */ + config?: IoK8sApiCoreV1NodeConfigStatus; + /** + * + * @type {IoK8sApiCoreV1NodeDaemonEndpoints} + * @memberof IoK8sApiCoreV1NodeStatus + */ + daemonEndpoints?: IoK8sApiCoreV1NodeDaemonEndpoints; + /** + * List of container images on this node + * @type {Array} + * @memberof IoK8sApiCoreV1NodeStatus + */ + images?: Array; + /** + * + * @type {IoK8sApiCoreV1NodeSystemInfo} + * @memberof IoK8sApiCoreV1NodeStatus + */ + nodeInfo?: IoK8sApiCoreV1NodeSystemInfo; + /** + * NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated. + * @type {string} + * @memberof IoK8sApiCoreV1NodeStatus + */ + phase?: string; + /** + * List of volumes that are attached to the node. + * @type {Array} + * @memberof IoK8sApiCoreV1NodeStatus + */ + volumesAttached?: Array; + /** + * List of attachable volumes in use (mounted) by the node. + * @type {Array} + * @memberof IoK8sApiCoreV1NodeStatus + */ + volumesInUse?: string[]; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1NodeStatus interface. + */ +export function instanceOfIoK8sApiCoreV1NodeStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1NodeStatusFromJSON(json: any): IoK8sApiCoreV1NodeStatus { + return IoK8sApiCoreV1NodeStatusFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1NodeStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1NodeStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'addresses': !exists(json, 'addresses') ? undefined : ((json['addresses'] as Array).map(IoK8sApiCoreV1NodeAddressFromJSON)), + 'allocatable': !exists(json, 'allocatable') ? undefined : json['allocatable'], + 'capacity': !exists(json, 'capacity') ? undefined : json['capacity'], + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(IoK8sApiCoreV1NodeConditionFromJSON)), + 'config': !exists(json, 'config') ? undefined : IoK8sApiCoreV1NodeConfigStatusFromJSON(json['config']), + 'daemonEndpoints': !exists(json, 'daemonEndpoints') ? undefined : IoK8sApiCoreV1NodeDaemonEndpointsFromJSON(json['daemonEndpoints']), + 'images': !exists(json, 'images') ? undefined : ((json['images'] as Array).map(IoK8sApiCoreV1ContainerImageFromJSON)), + 'nodeInfo': !exists(json, 'nodeInfo') ? undefined : IoK8sApiCoreV1NodeSystemInfoFromJSON(json['nodeInfo']), + 'phase': !exists(json, 'phase') ? undefined : json['phase'], + 'volumesAttached': !exists(json, 'volumesAttached') ? undefined : ((json['volumesAttached'] as Array).map(IoK8sApiCoreV1AttachedVolumeFromJSON)), + 'volumesInUse': !exists(json, 'volumesInUse') ? undefined : json['volumesInUse'], + }; +} + +export function IoK8sApiCoreV1NodeStatusToJSON(value?: IoK8sApiCoreV1NodeStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'addresses': value.addresses === undefined ? undefined : ((value.addresses as Array).map(IoK8sApiCoreV1NodeAddressToJSON)), + 'allocatable': value.allocatable, + 'capacity': value.capacity, + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(IoK8sApiCoreV1NodeConditionToJSON)), + 'config': IoK8sApiCoreV1NodeConfigStatusToJSON(value.config), + 'daemonEndpoints': IoK8sApiCoreV1NodeDaemonEndpointsToJSON(value.daemonEndpoints), + 'images': value.images === undefined ? undefined : ((value.images as Array).map(IoK8sApiCoreV1ContainerImageToJSON)), + 'nodeInfo': IoK8sApiCoreV1NodeSystemInfoToJSON(value.nodeInfo), + 'phase': value.phase, + 'volumesAttached': value.volumesAttached === undefined ? undefined : ((value.volumesAttached as Array).map(IoK8sApiCoreV1AttachedVolumeToJSON)), + 'volumesInUse': value.volumesInUse, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeSystemInfo.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeSystemInfo.ts new file mode 100644 index 000000000..3666390c5 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1NodeSystemInfo.ts @@ -0,0 +1,147 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * NodeSystemInfo is a set of ids/uuids to uniquely identify the node. + * @export + * @interface IoK8sApiCoreV1NodeSystemInfo + */ +export interface IoK8sApiCoreV1NodeSystemInfo { + /** + * The Architecture reported by the node + * @type {string} + * @memberof IoK8sApiCoreV1NodeSystemInfo + */ + architecture: string; + /** + * Boot ID reported by the node. + * @type {string} + * @memberof IoK8sApiCoreV1NodeSystemInfo + */ + bootID: string; + /** + * ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2). + * @type {string} + * @memberof IoK8sApiCoreV1NodeSystemInfo + */ + containerRuntimeVersion: string; + /** + * Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). + * @type {string} + * @memberof IoK8sApiCoreV1NodeSystemInfo + */ + kernelVersion: string; + /** + * KubeProxy Version reported by the node. + * @type {string} + * @memberof IoK8sApiCoreV1NodeSystemInfo + */ + kubeProxyVersion: string; + /** + * Kubelet Version reported by the node. + * @type {string} + * @memberof IoK8sApiCoreV1NodeSystemInfo + */ + kubeletVersion: string; + /** + * MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html + * @type {string} + * @memberof IoK8sApiCoreV1NodeSystemInfo + */ + machineID: string; + /** + * The Operating System reported by the node + * @type {string} + * @memberof IoK8sApiCoreV1NodeSystemInfo + */ + operatingSystem: string; + /** + * OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). + * @type {string} + * @memberof IoK8sApiCoreV1NodeSystemInfo + */ + osImage: string; + /** + * SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid + * @type {string} + * @memberof IoK8sApiCoreV1NodeSystemInfo + */ + systemUUID: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1NodeSystemInfo interface. + */ +export function instanceOfIoK8sApiCoreV1NodeSystemInfo(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "architecture" in value; + isInstance = isInstance && "bootID" in value; + isInstance = isInstance && "containerRuntimeVersion" in value; + isInstance = isInstance && "kernelVersion" in value; + isInstance = isInstance && "kubeProxyVersion" in value; + isInstance = isInstance && "kubeletVersion" in value; + isInstance = isInstance && "machineID" in value; + isInstance = isInstance && "operatingSystem" in value; + isInstance = isInstance && "osImage" in value; + isInstance = isInstance && "systemUUID" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1NodeSystemInfoFromJSON(json: any): IoK8sApiCoreV1NodeSystemInfo { + return IoK8sApiCoreV1NodeSystemInfoFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1NodeSystemInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1NodeSystemInfo { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'architecture': json['architecture'], + 'bootID': json['bootID'], + 'containerRuntimeVersion': json['containerRuntimeVersion'], + 'kernelVersion': json['kernelVersion'], + 'kubeProxyVersion': json['kubeProxyVersion'], + 'kubeletVersion': json['kubeletVersion'], + 'machineID': json['machineID'], + 'operatingSystem': json['operatingSystem'], + 'osImage': json['osImage'], + 'systemUUID': json['systemUUID'], + }; +} + +export function IoK8sApiCoreV1NodeSystemInfoToJSON(value?: IoK8sApiCoreV1NodeSystemInfo | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'architecture': value.architecture, + 'bootID': value.bootID, + 'containerRuntimeVersion': value.containerRuntimeVersion, + 'kernelVersion': value.kernelVersion, + 'kubeProxyVersion': value.kubeProxyVersion, + 'kubeletVersion': value.kubeletVersion, + 'machineID': value.machineID, + 'operatingSystem': value.operatingSystem, + 'osImage': value.osImage, + 'systemUUID': value.systemUUID, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ObjectFieldSelector.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ObjectFieldSelector.ts new file mode 100644 index 000000000..c6a44e1f9 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ObjectFieldSelector.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ObjectFieldSelector selects an APIVersioned field of an object. + * @export + * @interface IoK8sApiCoreV1ObjectFieldSelector + */ +export interface IoK8sApiCoreV1ObjectFieldSelector { + /** + * Version of the schema the FieldPath is written in terms of, defaults to "v1". + * @type {string} + * @memberof IoK8sApiCoreV1ObjectFieldSelector + */ + apiVersion?: string; + /** + * Path of the field to select in the specified API version. + * @type {string} + * @memberof IoK8sApiCoreV1ObjectFieldSelector + */ + fieldPath: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ObjectFieldSelector interface. + */ +export function instanceOfIoK8sApiCoreV1ObjectFieldSelector(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "fieldPath" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1ObjectFieldSelectorFromJSON(json: any): IoK8sApiCoreV1ObjectFieldSelector { + return IoK8sApiCoreV1ObjectFieldSelectorFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ObjectFieldSelectorFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ObjectFieldSelector { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'fieldPath': json['fieldPath'], + }; +} + +export function IoK8sApiCoreV1ObjectFieldSelectorToJSON(value?: IoK8sApiCoreV1ObjectFieldSelector | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'fieldPath': value.fieldPath, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ObjectReference.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ObjectReference.ts new file mode 100644 index 000000000..03a0b36f6 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ObjectReference.ts @@ -0,0 +1,113 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ObjectReference contains enough information to let you inspect or modify the referred object. + * @export + * @interface IoK8sApiCoreV1ObjectReference + */ +export interface IoK8sApiCoreV1ObjectReference { + /** + * API version of the referent. + * @type {string} + * @memberof IoK8sApiCoreV1ObjectReference + */ + apiVersion?: string; + /** + * If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * @type {string} + * @memberof IoK8sApiCoreV1ObjectReference + */ + fieldPath?: string; + /** + * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof IoK8sApiCoreV1ObjectReference + */ + kind?: string; + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * @type {string} + * @memberof IoK8sApiCoreV1ObjectReference + */ + name?: string; + /** + * Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * @type {string} + * @memberof IoK8sApiCoreV1ObjectReference + */ + namespace?: string; + /** + * Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * @type {string} + * @memberof IoK8sApiCoreV1ObjectReference + */ + resourceVersion?: string; + /** + * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + * @type {string} + * @memberof IoK8sApiCoreV1ObjectReference + */ + uid?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ObjectReference interface. + */ +export function instanceOfIoK8sApiCoreV1ObjectReference(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1ObjectReferenceFromJSON(json: any): IoK8sApiCoreV1ObjectReference { + return IoK8sApiCoreV1ObjectReferenceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ObjectReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ObjectReference { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'fieldPath': !exists(json, 'fieldPath') ? undefined : json['fieldPath'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'name': !exists(json, 'name') ? undefined : json['name'], + 'namespace': !exists(json, 'namespace') ? undefined : json['namespace'], + 'resourceVersion': !exists(json, 'resourceVersion') ? undefined : json['resourceVersion'], + 'uid': !exists(json, 'uid') ? undefined : json['uid'], + }; +} + +export function IoK8sApiCoreV1ObjectReferenceToJSON(value?: IoK8sApiCoreV1ObjectReference | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'fieldPath': value.fieldPath, + 'kind': value.kind, + 'name': value.name, + 'namespace': value.namespace, + 'resourceVersion': value.resourceVersion, + 'uid': value.uid, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolume.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolume.ts new file mode 100644 index 000000000..591a1e7ec --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolume.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1PersistentVolumeSpec } from './IoK8sApiCoreV1PersistentVolumeSpec'; +import { + IoK8sApiCoreV1PersistentVolumeSpecFromJSON, + IoK8sApiCoreV1PersistentVolumeSpecFromJSONTyped, + IoK8sApiCoreV1PersistentVolumeSpecToJSON, +} from './IoK8sApiCoreV1PersistentVolumeSpec'; +import type { IoK8sApiCoreV1PersistentVolumeStatus } from './IoK8sApiCoreV1PersistentVolumeStatus'; +import { + IoK8sApiCoreV1PersistentVolumeStatusFromJSON, + IoK8sApiCoreV1PersistentVolumeStatusFromJSONTyped, + IoK8sApiCoreV1PersistentVolumeStatusToJSON, +} from './IoK8sApiCoreV1PersistentVolumeStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes + * @export + * @interface IoK8sApiCoreV1PersistentVolume + */ +export interface IoK8sApiCoreV1PersistentVolume { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1PersistentVolume + */ + 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 + * @type {string} + * @memberof IoK8sApiCoreV1PersistentVolume + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiCoreV1PersistentVolume + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiCoreV1PersistentVolumeSpec} + * @memberof IoK8sApiCoreV1PersistentVolume + */ + spec?: IoK8sApiCoreV1PersistentVolumeSpec; + /** + * + * @type {IoK8sApiCoreV1PersistentVolumeStatus} + * @memberof IoK8sApiCoreV1PersistentVolume + */ + status?: IoK8sApiCoreV1PersistentVolumeStatus; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PersistentVolume interface. + */ +export function instanceOfIoK8sApiCoreV1PersistentVolume(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1PersistentVolumeFromJSON(json: any): IoK8sApiCoreV1PersistentVolume { + return IoK8sApiCoreV1PersistentVolumeFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PersistentVolumeFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PersistentVolume { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiCoreV1PersistentVolumeSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiCoreV1PersistentVolumeStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiCoreV1PersistentVolumeToJSON(value?: IoK8sApiCoreV1PersistentVolume | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiCoreV1PersistentVolumeSpecToJSON(value.spec), + 'status': IoK8sApiCoreV1PersistentVolumeStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeClaim.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeClaim.ts new file mode 100644 index 000000000..a11271a54 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeClaim.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1PersistentVolumeClaimSpec } from './IoK8sApiCoreV1PersistentVolumeClaimSpec'; +import { + IoK8sApiCoreV1PersistentVolumeClaimSpecFromJSON, + IoK8sApiCoreV1PersistentVolumeClaimSpecFromJSONTyped, + IoK8sApiCoreV1PersistentVolumeClaimSpecToJSON, +} from './IoK8sApiCoreV1PersistentVolumeClaimSpec'; +import type { IoK8sApiCoreV1PersistentVolumeClaimStatus } from './IoK8sApiCoreV1PersistentVolumeClaimStatus'; +import { + IoK8sApiCoreV1PersistentVolumeClaimStatusFromJSON, + IoK8sApiCoreV1PersistentVolumeClaimStatusFromJSONTyped, + IoK8sApiCoreV1PersistentVolumeClaimStatusToJSON, +} from './IoK8sApiCoreV1PersistentVolumeClaimStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * PersistentVolumeClaim is a user's request for and claim to a persistent volume + * @export + * @interface IoK8sApiCoreV1PersistentVolumeClaim + */ +export interface IoK8sApiCoreV1PersistentVolumeClaim { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1PersistentVolumeClaim + */ + 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 + * @type {string} + * @memberof IoK8sApiCoreV1PersistentVolumeClaim + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiCoreV1PersistentVolumeClaim + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiCoreV1PersistentVolumeClaimSpec} + * @memberof IoK8sApiCoreV1PersistentVolumeClaim + */ + spec?: IoK8sApiCoreV1PersistentVolumeClaimSpec; + /** + * + * @type {IoK8sApiCoreV1PersistentVolumeClaimStatus} + * @memberof IoK8sApiCoreV1PersistentVolumeClaim + */ + status?: IoK8sApiCoreV1PersistentVolumeClaimStatus; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PersistentVolumeClaim interface. + */ +export function instanceOfIoK8sApiCoreV1PersistentVolumeClaim(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1PersistentVolumeClaimFromJSON(json: any): IoK8sApiCoreV1PersistentVolumeClaim { + return IoK8sApiCoreV1PersistentVolumeClaimFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PersistentVolumeClaimFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PersistentVolumeClaim { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiCoreV1PersistentVolumeClaimSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiCoreV1PersistentVolumeClaimStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiCoreV1PersistentVolumeClaimToJSON(value?: IoK8sApiCoreV1PersistentVolumeClaim | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiCoreV1PersistentVolumeClaimSpecToJSON(value.spec), + 'status': IoK8sApiCoreV1PersistentVolumeClaimStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeClaimCondition.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeClaimCondition.ts new file mode 100644 index 000000000..4842849a0 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeClaimCondition.ts @@ -0,0 +1,107 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * PersistentVolumeClaimCondition contains details about state of pvc + * @export + * @interface IoK8sApiCoreV1PersistentVolumeClaimCondition + */ +export interface IoK8sApiCoreV1PersistentVolumeClaimCondition { + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimCondition + */ + lastProbeTime?: string; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimCondition + */ + lastTransitionTime?: string; + /** + * message is the human-readable message indicating details about last transition. + * @type {string} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimCondition + */ + message?: string; + /** + * reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "Resizing" that means the underlying persistent volume is being resized. + * @type {string} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimCondition + */ + reason?: string; + /** + * + * @type {string} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimCondition + */ + status: string; + /** + * + * @type {string} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimCondition + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PersistentVolumeClaimCondition interface. + */ +export function instanceOfIoK8sApiCoreV1PersistentVolumeClaimCondition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "status" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1PersistentVolumeClaimConditionFromJSON(json: any): IoK8sApiCoreV1PersistentVolumeClaimCondition { + return IoK8sApiCoreV1PersistentVolumeClaimConditionFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PersistentVolumeClaimConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PersistentVolumeClaimCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'lastProbeTime': !exists(json, 'lastProbeTime') ? undefined : json['lastProbeTime'], + 'lastTransitionTime': !exists(json, 'lastTransitionTime') ? undefined : json['lastTransitionTime'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'status': json['status'], + 'type': json['type'], + }; +} + +export function IoK8sApiCoreV1PersistentVolumeClaimConditionToJSON(value?: IoK8sApiCoreV1PersistentVolumeClaimCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'lastProbeTime': value.lastProbeTime === undefined ? undefined : (value.lastProbeTime), + 'lastTransitionTime': value.lastTransitionTime === undefined ? undefined : (value.lastTransitionTime), + 'message': value.message, + 'reason': value.reason, + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeClaimList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeClaimList.ts new file mode 100644 index 000000000..e1b950f1c --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeClaimList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1PersistentVolumeClaim } from './IoK8sApiCoreV1PersistentVolumeClaim'; +import { + IoK8sApiCoreV1PersistentVolumeClaimFromJSON, + IoK8sApiCoreV1PersistentVolumeClaimFromJSONTyped, + IoK8sApiCoreV1PersistentVolumeClaimToJSON, +} from './IoK8sApiCoreV1PersistentVolumeClaim'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * PersistentVolumeClaimList is a list of PersistentVolumeClaim items. + * @export + * @interface IoK8sApiCoreV1PersistentVolumeClaimList + */ +export interface IoK8sApiCoreV1PersistentVolumeClaimList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimList + */ + apiVersion?: string; + /** + * items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * @type {Array} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimList + */ + 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 + * @type {string} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PersistentVolumeClaimList interface. + */ +export function instanceOfIoK8sApiCoreV1PersistentVolumeClaimList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1PersistentVolumeClaimListFromJSON(json: any): IoK8sApiCoreV1PersistentVolumeClaimList { + return IoK8sApiCoreV1PersistentVolumeClaimListFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PersistentVolumeClaimListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PersistentVolumeClaimList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiCoreV1PersistentVolumeClaimFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiCoreV1PersistentVolumeClaimListToJSON(value?: IoK8sApiCoreV1PersistentVolumeClaimList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiCoreV1PersistentVolumeClaimToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeClaimSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeClaimSpec.ts new file mode 100644 index 000000000..7bbe26e77 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeClaimSpec.ts @@ -0,0 +1,154 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1TypedLocalObjectReference } from './IoK8sApiCoreV1TypedLocalObjectReference'; +import { + IoK8sApiCoreV1TypedLocalObjectReferenceFromJSON, + IoK8sApiCoreV1TypedLocalObjectReferenceFromJSONTyped, + IoK8sApiCoreV1TypedLocalObjectReferenceToJSON, +} from './IoK8sApiCoreV1TypedLocalObjectReference'; +import type { IoK8sApiCoreV1TypedObjectReference } from './IoK8sApiCoreV1TypedObjectReference'; +import { + IoK8sApiCoreV1TypedObjectReferenceFromJSON, + IoK8sApiCoreV1TypedObjectReferenceFromJSONTyped, + IoK8sApiCoreV1TypedObjectReferenceToJSON, +} from './IoK8sApiCoreV1TypedObjectReference'; +import type { IoK8sApiCoreV1VolumeResourceRequirements } from './IoK8sApiCoreV1VolumeResourceRequirements'; +import { + IoK8sApiCoreV1VolumeResourceRequirementsFromJSON, + IoK8sApiCoreV1VolumeResourceRequirementsFromJSONTyped, + IoK8sApiCoreV1VolumeResourceRequirementsToJSON, +} from './IoK8sApiCoreV1VolumeResourceRequirements'; +import type { IoK8sApimachineryPkgApisMetaV1LabelSelector } from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; +import { + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON, + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; + +/** + * PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes + * @export + * @interface IoK8sApiCoreV1PersistentVolumeClaimSpec + */ +export interface IoK8sApiCoreV1PersistentVolumeClaimSpec { + /** + * accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * @type {Array} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimSpec + */ + accessModes?: string[]; + /** + * + * @type {IoK8sApiCoreV1TypedLocalObjectReference} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimSpec + */ + dataSource?: IoK8sApiCoreV1TypedLocalObjectReference; + /** + * + * @type {IoK8sApiCoreV1TypedObjectReference} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimSpec + */ + dataSourceRef?: IoK8sApiCoreV1TypedObjectReference; + /** + * + * @type {IoK8sApiCoreV1VolumeResourceRequirements} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimSpec + */ + resources?: IoK8sApiCoreV1VolumeResourceRequirements; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1LabelSelector} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimSpec + */ + selector?: IoK8sApimachineryPkgApisMetaV1LabelSelector; + /** + * storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + * @type {string} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimSpec + */ + storageClassName?: string; + /** + * volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#volumeattributesclass (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled. + * @type {string} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimSpec + */ + volumeAttributesClassName?: string; + /** + * volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + * @type {string} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimSpec + */ + volumeMode?: string; + /** + * volumeName is the binding reference to the PersistentVolume backing this claim. + * @type {string} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimSpec + */ + volumeName?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PersistentVolumeClaimSpec interface. + */ +export function instanceOfIoK8sApiCoreV1PersistentVolumeClaimSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1PersistentVolumeClaimSpecFromJSON(json: any): IoK8sApiCoreV1PersistentVolumeClaimSpec { + return IoK8sApiCoreV1PersistentVolumeClaimSpecFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PersistentVolumeClaimSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PersistentVolumeClaimSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accessModes': !exists(json, 'accessModes') ? undefined : json['accessModes'], + 'dataSource': !exists(json, 'dataSource') ? undefined : IoK8sApiCoreV1TypedLocalObjectReferenceFromJSON(json['dataSource']), + 'dataSourceRef': !exists(json, 'dataSourceRef') ? undefined : IoK8sApiCoreV1TypedObjectReferenceFromJSON(json['dataSourceRef']), + 'resources': !exists(json, 'resources') ? undefined : IoK8sApiCoreV1VolumeResourceRequirementsFromJSON(json['resources']), + 'selector': !exists(json, 'selector') ? undefined : IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['selector']), + 'storageClassName': !exists(json, 'storageClassName') ? undefined : json['storageClassName'], + 'volumeAttributesClassName': !exists(json, 'volumeAttributesClassName') ? undefined : json['volumeAttributesClassName'], + 'volumeMode': !exists(json, 'volumeMode') ? undefined : json['volumeMode'], + 'volumeName': !exists(json, 'volumeName') ? undefined : json['volumeName'], + }; +} + +export function IoK8sApiCoreV1PersistentVolumeClaimSpecToJSON(value?: IoK8sApiCoreV1PersistentVolumeClaimSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'accessModes': value.accessModes, + 'dataSource': IoK8sApiCoreV1TypedLocalObjectReferenceToJSON(value.dataSource), + 'dataSourceRef': IoK8sApiCoreV1TypedObjectReferenceToJSON(value.dataSourceRef), + 'resources': IoK8sApiCoreV1VolumeResourceRequirementsToJSON(value.resources), + 'selector': IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value.selector), + 'storageClassName': value.storageClassName, + 'volumeAttributesClassName': value.volumeAttributesClassName, + 'volumeMode': value.volumeMode, + 'volumeName': value.volumeName, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeClaimStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeClaimStatus.ts new file mode 100644 index 000000000..ccb77ad3e --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeClaimStatus.ts @@ -0,0 +1,173 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ModifyVolumeStatus } from './IoK8sApiCoreV1ModifyVolumeStatus'; +import { + IoK8sApiCoreV1ModifyVolumeStatusFromJSON, + IoK8sApiCoreV1ModifyVolumeStatusFromJSONTyped, + IoK8sApiCoreV1ModifyVolumeStatusToJSON, +} from './IoK8sApiCoreV1ModifyVolumeStatus'; +import type { IoK8sApiCoreV1PersistentVolumeClaimCondition } from './IoK8sApiCoreV1PersistentVolumeClaimCondition'; +import { + IoK8sApiCoreV1PersistentVolumeClaimConditionFromJSON, + IoK8sApiCoreV1PersistentVolumeClaimConditionFromJSONTyped, + IoK8sApiCoreV1PersistentVolumeClaimConditionToJSON, +} from './IoK8sApiCoreV1PersistentVolumeClaimCondition'; + +/** + * PersistentVolumeClaimStatus is the current status of a persistent volume claim. + * @export + * @interface IoK8sApiCoreV1PersistentVolumeClaimStatus + */ +export interface IoK8sApiCoreV1PersistentVolumeClaimStatus { + /** + * accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * @type {Array} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimStatus + */ + accessModes?: string[]; + /** + * allocatedResourceStatuses stores status of resource being resized for the given PVC. Key names follow standard Kubernetes label syntax. Valid values are either: + * * Un-prefixed keys: + * - storage - the capacity of the volume. + * * Custom resources must use implementation-defined prefixed names such as "example.com/my-custom-resource" + * Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. + * + * ClaimResourceStatus can be in any of following states: + * - ControllerResizeInProgress: + * State set when resize controller starts resizing the volume in control-plane. + * - ControllerResizeFailed: + * State set when resize has failed in resize controller with a terminal error. + * - NodeResizePending: + * State set when resize controller has finished resizing the volume but further resizing of + * volume is needed on the node. + * - NodeResizeInProgress: + * State set when kubelet starts resizing the volume. + * - NodeResizeFailed: + * State set when resizing has failed in kubelet with a terminal error. Transient errors don't set + * NodeResizeFailed. + * For example: if expanding a PVC for more capacity - this field can be one of the following states: + * - pvc.status.allocatedResourceStatus['storage'] = "ControllerResizeInProgress" + * - pvc.status.allocatedResourceStatus['storage'] = "ControllerResizeFailed" + * - pvc.status.allocatedResourceStatus['storage'] = "NodeResizePending" + * - pvc.status.allocatedResourceStatus['storage'] = "NodeResizeInProgress" + * - pvc.status.allocatedResourceStatus['storage'] = "NodeResizeFailed" + * When this field is not set, it means that no resize operation is in progress for the given PVC. + * + * A controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. + * + * This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimStatus + */ + allocatedResourceStatuses?: { [key: string]: string; }; + /** + * allocatedResources tracks the resources allocated to a PVC including its capacity. Key names follow standard Kubernetes label syntax. Valid values are either: + * * Un-prefixed keys: + * - storage - the capacity of the volume. + * * Custom resources must use implementation-defined prefixed names such as "example.com/my-custom-resource" + * Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. + * + * Capacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity. + * + * A controller that receives PVC update with previously unknown resourceName should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. + * + * This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimStatus + */ + allocatedResources?: { [key: string]: string; }; + /** + * capacity represents the actual resources of the underlying volume. + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimStatus + */ + capacity?: { [key: string]: string; }; + /** + * conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'. + * @type {Array} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimStatus + */ + conditions?: Array; + /** + * currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is an alpha field and requires enabling VolumeAttributesClass feature. + * @type {string} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimStatus + */ + currentVolumeAttributesClassName?: string; + /** + * + * @type {IoK8sApiCoreV1ModifyVolumeStatus} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimStatus + */ + modifyVolumeStatus?: IoK8sApiCoreV1ModifyVolumeStatus; + /** + * phase represents the current phase of PersistentVolumeClaim. + * @type {string} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimStatus + */ + phase?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PersistentVolumeClaimStatus interface. + */ +export function instanceOfIoK8sApiCoreV1PersistentVolumeClaimStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1PersistentVolumeClaimStatusFromJSON(json: any): IoK8sApiCoreV1PersistentVolumeClaimStatus { + return IoK8sApiCoreV1PersistentVolumeClaimStatusFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PersistentVolumeClaimStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PersistentVolumeClaimStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accessModes': !exists(json, 'accessModes') ? undefined : json['accessModes'], + 'allocatedResourceStatuses': !exists(json, 'allocatedResourceStatuses') ? undefined : json['allocatedResourceStatuses'], + 'allocatedResources': !exists(json, 'allocatedResources') ? undefined : json['allocatedResources'], + 'capacity': !exists(json, 'capacity') ? undefined : json['capacity'], + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(IoK8sApiCoreV1PersistentVolumeClaimConditionFromJSON)), + 'currentVolumeAttributesClassName': !exists(json, 'currentVolumeAttributesClassName') ? undefined : json['currentVolumeAttributesClassName'], + 'modifyVolumeStatus': !exists(json, 'modifyVolumeStatus') ? undefined : IoK8sApiCoreV1ModifyVolumeStatusFromJSON(json['modifyVolumeStatus']), + 'phase': !exists(json, 'phase') ? undefined : json['phase'], + }; +} + +export function IoK8sApiCoreV1PersistentVolumeClaimStatusToJSON(value?: IoK8sApiCoreV1PersistentVolumeClaimStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'accessModes': value.accessModes, + 'allocatedResourceStatuses': value.allocatedResourceStatuses, + 'allocatedResources': value.allocatedResources, + 'capacity': value.capacity, + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(IoK8sApiCoreV1PersistentVolumeClaimConditionToJSON)), + 'currentVolumeAttributesClassName': value.currentVolumeAttributesClassName, + 'modifyVolumeStatus': IoK8sApiCoreV1ModifyVolumeStatusToJSON(value.modifyVolumeStatus), + 'phase': value.phase, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeClaimTemplate.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeClaimTemplate.ts new file mode 100644 index 000000000..54eb7332e --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeClaimTemplate.ts @@ -0,0 +1,87 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1PersistentVolumeClaimSpec } from './IoK8sApiCoreV1PersistentVolumeClaimSpec'; +import { + IoK8sApiCoreV1PersistentVolumeClaimSpecFromJSON, + IoK8sApiCoreV1PersistentVolumeClaimSpecFromJSONTyped, + IoK8sApiCoreV1PersistentVolumeClaimSpecToJSON, +} from './IoK8sApiCoreV1PersistentVolumeClaimSpec'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource. + * @export + * @interface IoK8sApiCoreV1PersistentVolumeClaimTemplate + */ +export interface IoK8sApiCoreV1PersistentVolumeClaimTemplate { + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimTemplate + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiCoreV1PersistentVolumeClaimSpec} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimTemplate + */ + spec: IoK8sApiCoreV1PersistentVolumeClaimSpec; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PersistentVolumeClaimTemplate interface. + */ +export function instanceOfIoK8sApiCoreV1PersistentVolumeClaimTemplate(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1PersistentVolumeClaimTemplateFromJSON(json: any): IoK8sApiCoreV1PersistentVolumeClaimTemplate { + return IoK8sApiCoreV1PersistentVolumeClaimTemplateFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PersistentVolumeClaimTemplateFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PersistentVolumeClaimTemplate { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': IoK8sApiCoreV1PersistentVolumeClaimSpecFromJSON(json['spec']), + }; +} + +export function IoK8sApiCoreV1PersistentVolumeClaimTemplateToJSON(value?: IoK8sApiCoreV1PersistentVolumeClaimTemplate | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiCoreV1PersistentVolumeClaimSpecToJSON(value.spec), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeClaimVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeClaimVolumeSource.ts new file mode 100644 index 000000000..0a6615a64 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeClaimVolumeSource.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system). + * @export + * @interface IoK8sApiCoreV1PersistentVolumeClaimVolumeSource + */ +export interface IoK8sApiCoreV1PersistentVolumeClaimVolumeSource { + /** + * claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * @type {string} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimVolumeSource + */ + claimName: string; + /** + * readOnly Will force the ReadOnly setting in VolumeMounts. Default false. + * @type {boolean} + * @memberof IoK8sApiCoreV1PersistentVolumeClaimVolumeSource + */ + readOnly?: boolean; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PersistentVolumeClaimVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1PersistentVolumeClaimVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "claimName" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1PersistentVolumeClaimVolumeSourceFromJSON(json: any): IoK8sApiCoreV1PersistentVolumeClaimVolumeSource { + return IoK8sApiCoreV1PersistentVolumeClaimVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PersistentVolumeClaimVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PersistentVolumeClaimVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'claimName': json['claimName'], + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + }; +} + +export function IoK8sApiCoreV1PersistentVolumeClaimVolumeSourceToJSON(value?: IoK8sApiCoreV1PersistentVolumeClaimVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'claimName': value.claimName, + 'readOnly': value.readOnly, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeList.ts new file mode 100644 index 000000000..463b2e252 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1PersistentVolume } from './IoK8sApiCoreV1PersistentVolume'; +import { + IoK8sApiCoreV1PersistentVolumeFromJSON, + IoK8sApiCoreV1PersistentVolumeFromJSONTyped, + IoK8sApiCoreV1PersistentVolumeToJSON, +} from './IoK8sApiCoreV1PersistentVolume'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * PersistentVolumeList is a list of PersistentVolume items. + * @export + * @interface IoK8sApiCoreV1PersistentVolumeList + */ +export interface IoK8sApiCoreV1PersistentVolumeList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1PersistentVolumeList + */ + apiVersion?: string; + /** + * items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes + * @type {Array} + * @memberof IoK8sApiCoreV1PersistentVolumeList + */ + 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 + * @type {string} + * @memberof IoK8sApiCoreV1PersistentVolumeList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiCoreV1PersistentVolumeList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PersistentVolumeList interface. + */ +export function instanceOfIoK8sApiCoreV1PersistentVolumeList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1PersistentVolumeListFromJSON(json: any): IoK8sApiCoreV1PersistentVolumeList { + return IoK8sApiCoreV1PersistentVolumeListFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PersistentVolumeListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PersistentVolumeList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiCoreV1PersistentVolumeFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiCoreV1PersistentVolumeListToJSON(value?: IoK8sApiCoreV1PersistentVolumeList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiCoreV1PersistentVolumeToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeSpec.ts new file mode 100644 index 000000000..3c97784d4 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeSpec.ts @@ -0,0 +1,450 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1AWSElasticBlockStoreVolumeSource } from './IoK8sApiCoreV1AWSElasticBlockStoreVolumeSource'; +import { + IoK8sApiCoreV1AWSElasticBlockStoreVolumeSourceFromJSON, + IoK8sApiCoreV1AWSElasticBlockStoreVolumeSourceFromJSONTyped, + IoK8sApiCoreV1AWSElasticBlockStoreVolumeSourceToJSON, +} from './IoK8sApiCoreV1AWSElasticBlockStoreVolumeSource'; +import type { IoK8sApiCoreV1AzureDiskVolumeSource } from './IoK8sApiCoreV1AzureDiskVolumeSource'; +import { + IoK8sApiCoreV1AzureDiskVolumeSourceFromJSON, + IoK8sApiCoreV1AzureDiskVolumeSourceFromJSONTyped, + IoK8sApiCoreV1AzureDiskVolumeSourceToJSON, +} from './IoK8sApiCoreV1AzureDiskVolumeSource'; +import type { IoK8sApiCoreV1AzureFilePersistentVolumeSource } from './IoK8sApiCoreV1AzureFilePersistentVolumeSource'; +import { + IoK8sApiCoreV1AzureFilePersistentVolumeSourceFromJSON, + IoK8sApiCoreV1AzureFilePersistentVolumeSourceFromJSONTyped, + IoK8sApiCoreV1AzureFilePersistentVolumeSourceToJSON, +} from './IoK8sApiCoreV1AzureFilePersistentVolumeSource'; +import type { IoK8sApiCoreV1CSIPersistentVolumeSource } from './IoK8sApiCoreV1CSIPersistentVolumeSource'; +import { + IoK8sApiCoreV1CSIPersistentVolumeSourceFromJSON, + IoK8sApiCoreV1CSIPersistentVolumeSourceFromJSONTyped, + IoK8sApiCoreV1CSIPersistentVolumeSourceToJSON, +} from './IoK8sApiCoreV1CSIPersistentVolumeSource'; +import type { IoK8sApiCoreV1CephFSPersistentVolumeSource } from './IoK8sApiCoreV1CephFSPersistentVolumeSource'; +import { + IoK8sApiCoreV1CephFSPersistentVolumeSourceFromJSON, + IoK8sApiCoreV1CephFSPersistentVolumeSourceFromJSONTyped, + IoK8sApiCoreV1CephFSPersistentVolumeSourceToJSON, +} from './IoK8sApiCoreV1CephFSPersistentVolumeSource'; +import type { IoK8sApiCoreV1CinderPersistentVolumeSource } from './IoK8sApiCoreV1CinderPersistentVolumeSource'; +import { + IoK8sApiCoreV1CinderPersistentVolumeSourceFromJSON, + IoK8sApiCoreV1CinderPersistentVolumeSourceFromJSONTyped, + IoK8sApiCoreV1CinderPersistentVolumeSourceToJSON, +} from './IoK8sApiCoreV1CinderPersistentVolumeSource'; +import type { IoK8sApiCoreV1FCVolumeSource } from './IoK8sApiCoreV1FCVolumeSource'; +import { + IoK8sApiCoreV1FCVolumeSourceFromJSON, + IoK8sApiCoreV1FCVolumeSourceFromJSONTyped, + IoK8sApiCoreV1FCVolumeSourceToJSON, +} from './IoK8sApiCoreV1FCVolumeSource'; +import type { IoK8sApiCoreV1FlexPersistentVolumeSource } from './IoK8sApiCoreV1FlexPersistentVolumeSource'; +import { + IoK8sApiCoreV1FlexPersistentVolumeSourceFromJSON, + IoK8sApiCoreV1FlexPersistentVolumeSourceFromJSONTyped, + IoK8sApiCoreV1FlexPersistentVolumeSourceToJSON, +} from './IoK8sApiCoreV1FlexPersistentVolumeSource'; +import type { IoK8sApiCoreV1FlockerVolumeSource } from './IoK8sApiCoreV1FlockerVolumeSource'; +import { + IoK8sApiCoreV1FlockerVolumeSourceFromJSON, + IoK8sApiCoreV1FlockerVolumeSourceFromJSONTyped, + IoK8sApiCoreV1FlockerVolumeSourceToJSON, +} from './IoK8sApiCoreV1FlockerVolumeSource'; +import type { IoK8sApiCoreV1GCEPersistentDiskVolumeSource } from './IoK8sApiCoreV1GCEPersistentDiskVolumeSource'; +import { + IoK8sApiCoreV1GCEPersistentDiskVolumeSourceFromJSON, + IoK8sApiCoreV1GCEPersistentDiskVolumeSourceFromJSONTyped, + IoK8sApiCoreV1GCEPersistentDiskVolumeSourceToJSON, +} from './IoK8sApiCoreV1GCEPersistentDiskVolumeSource'; +import type { IoK8sApiCoreV1GlusterfsPersistentVolumeSource } from './IoK8sApiCoreV1GlusterfsPersistentVolumeSource'; +import { + IoK8sApiCoreV1GlusterfsPersistentVolumeSourceFromJSON, + IoK8sApiCoreV1GlusterfsPersistentVolumeSourceFromJSONTyped, + IoK8sApiCoreV1GlusterfsPersistentVolumeSourceToJSON, +} from './IoK8sApiCoreV1GlusterfsPersistentVolumeSource'; +import type { IoK8sApiCoreV1HostPathVolumeSource } from './IoK8sApiCoreV1HostPathVolumeSource'; +import { + IoK8sApiCoreV1HostPathVolumeSourceFromJSON, + IoK8sApiCoreV1HostPathVolumeSourceFromJSONTyped, + IoK8sApiCoreV1HostPathVolumeSourceToJSON, +} from './IoK8sApiCoreV1HostPathVolumeSource'; +import type { IoK8sApiCoreV1ISCSIPersistentVolumeSource } from './IoK8sApiCoreV1ISCSIPersistentVolumeSource'; +import { + IoK8sApiCoreV1ISCSIPersistentVolumeSourceFromJSON, + IoK8sApiCoreV1ISCSIPersistentVolumeSourceFromJSONTyped, + IoK8sApiCoreV1ISCSIPersistentVolumeSourceToJSON, +} from './IoK8sApiCoreV1ISCSIPersistentVolumeSource'; +import type { IoK8sApiCoreV1LocalVolumeSource } from './IoK8sApiCoreV1LocalVolumeSource'; +import { + IoK8sApiCoreV1LocalVolumeSourceFromJSON, + IoK8sApiCoreV1LocalVolumeSourceFromJSONTyped, + IoK8sApiCoreV1LocalVolumeSourceToJSON, +} from './IoK8sApiCoreV1LocalVolumeSource'; +import type { IoK8sApiCoreV1NFSVolumeSource } from './IoK8sApiCoreV1NFSVolumeSource'; +import { + IoK8sApiCoreV1NFSVolumeSourceFromJSON, + IoK8sApiCoreV1NFSVolumeSourceFromJSONTyped, + IoK8sApiCoreV1NFSVolumeSourceToJSON, +} from './IoK8sApiCoreV1NFSVolumeSource'; +import type { IoK8sApiCoreV1ObjectReference } from './IoK8sApiCoreV1ObjectReference'; +import { + IoK8sApiCoreV1ObjectReferenceFromJSON, + IoK8sApiCoreV1ObjectReferenceFromJSONTyped, + IoK8sApiCoreV1ObjectReferenceToJSON, +} from './IoK8sApiCoreV1ObjectReference'; +import type { IoK8sApiCoreV1PhotonPersistentDiskVolumeSource } from './IoK8sApiCoreV1PhotonPersistentDiskVolumeSource'; +import { + IoK8sApiCoreV1PhotonPersistentDiskVolumeSourceFromJSON, + IoK8sApiCoreV1PhotonPersistentDiskVolumeSourceFromJSONTyped, + IoK8sApiCoreV1PhotonPersistentDiskVolumeSourceToJSON, +} from './IoK8sApiCoreV1PhotonPersistentDiskVolumeSource'; +import type { IoK8sApiCoreV1PortworxVolumeSource } from './IoK8sApiCoreV1PortworxVolumeSource'; +import { + IoK8sApiCoreV1PortworxVolumeSourceFromJSON, + IoK8sApiCoreV1PortworxVolumeSourceFromJSONTyped, + IoK8sApiCoreV1PortworxVolumeSourceToJSON, +} from './IoK8sApiCoreV1PortworxVolumeSource'; +import type { IoK8sApiCoreV1QuobyteVolumeSource } from './IoK8sApiCoreV1QuobyteVolumeSource'; +import { + IoK8sApiCoreV1QuobyteVolumeSourceFromJSON, + IoK8sApiCoreV1QuobyteVolumeSourceFromJSONTyped, + IoK8sApiCoreV1QuobyteVolumeSourceToJSON, +} from './IoK8sApiCoreV1QuobyteVolumeSource'; +import type { IoK8sApiCoreV1RBDPersistentVolumeSource } from './IoK8sApiCoreV1RBDPersistentVolumeSource'; +import { + IoK8sApiCoreV1RBDPersistentVolumeSourceFromJSON, + IoK8sApiCoreV1RBDPersistentVolumeSourceFromJSONTyped, + IoK8sApiCoreV1RBDPersistentVolumeSourceToJSON, +} from './IoK8sApiCoreV1RBDPersistentVolumeSource'; +import type { IoK8sApiCoreV1ScaleIOPersistentVolumeSource } from './IoK8sApiCoreV1ScaleIOPersistentVolumeSource'; +import { + IoK8sApiCoreV1ScaleIOPersistentVolumeSourceFromJSON, + IoK8sApiCoreV1ScaleIOPersistentVolumeSourceFromJSONTyped, + IoK8sApiCoreV1ScaleIOPersistentVolumeSourceToJSON, +} from './IoK8sApiCoreV1ScaleIOPersistentVolumeSource'; +import type { IoK8sApiCoreV1StorageOSPersistentVolumeSource } from './IoK8sApiCoreV1StorageOSPersistentVolumeSource'; +import { + IoK8sApiCoreV1StorageOSPersistentVolumeSourceFromJSON, + IoK8sApiCoreV1StorageOSPersistentVolumeSourceFromJSONTyped, + IoK8sApiCoreV1StorageOSPersistentVolumeSourceToJSON, +} from './IoK8sApiCoreV1StorageOSPersistentVolumeSource'; +import type { IoK8sApiCoreV1VolumeNodeAffinity } from './IoK8sApiCoreV1VolumeNodeAffinity'; +import { + IoK8sApiCoreV1VolumeNodeAffinityFromJSON, + IoK8sApiCoreV1VolumeNodeAffinityFromJSONTyped, + IoK8sApiCoreV1VolumeNodeAffinityToJSON, +} from './IoK8sApiCoreV1VolumeNodeAffinity'; +import type { IoK8sApiCoreV1VsphereVirtualDiskVolumeSource } from './IoK8sApiCoreV1VsphereVirtualDiskVolumeSource'; +import { + IoK8sApiCoreV1VsphereVirtualDiskVolumeSourceFromJSON, + IoK8sApiCoreV1VsphereVirtualDiskVolumeSourceFromJSONTyped, + IoK8sApiCoreV1VsphereVirtualDiskVolumeSourceToJSON, +} from './IoK8sApiCoreV1VsphereVirtualDiskVolumeSource'; + +/** + * PersistentVolumeSpec is the specification of a persistent volume. + * @export + * @interface IoK8sApiCoreV1PersistentVolumeSpec + */ +export interface IoK8sApiCoreV1PersistentVolumeSpec { + /** + * accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes + * @type {Array} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + accessModes?: string[]; + /** + * + * @type {IoK8sApiCoreV1AWSElasticBlockStoreVolumeSource} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + awsElasticBlockStore?: IoK8sApiCoreV1AWSElasticBlockStoreVolumeSource; + /** + * + * @type {IoK8sApiCoreV1AzureDiskVolumeSource} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + azureDisk?: IoK8sApiCoreV1AzureDiskVolumeSource; + /** + * + * @type {IoK8sApiCoreV1AzureFilePersistentVolumeSource} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + azureFile?: IoK8sApiCoreV1AzureFilePersistentVolumeSource; + /** + * capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + capacity?: { [key: string]: string; }; + /** + * + * @type {IoK8sApiCoreV1CephFSPersistentVolumeSource} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + cephfs?: IoK8sApiCoreV1CephFSPersistentVolumeSource; + /** + * + * @type {IoK8sApiCoreV1CinderPersistentVolumeSource} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + cinder?: IoK8sApiCoreV1CinderPersistentVolumeSource; + /** + * + * @type {IoK8sApiCoreV1ObjectReference} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + claimRef?: IoK8sApiCoreV1ObjectReference; + /** + * + * @type {IoK8sApiCoreV1CSIPersistentVolumeSource} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + csi?: IoK8sApiCoreV1CSIPersistentVolumeSource; + /** + * + * @type {IoK8sApiCoreV1FCVolumeSource} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + fc?: IoK8sApiCoreV1FCVolumeSource; + /** + * + * @type {IoK8sApiCoreV1FlexPersistentVolumeSource} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + flexVolume?: IoK8sApiCoreV1FlexPersistentVolumeSource; + /** + * + * @type {IoK8sApiCoreV1FlockerVolumeSource} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + flocker?: IoK8sApiCoreV1FlockerVolumeSource; + /** + * + * @type {IoK8sApiCoreV1GCEPersistentDiskVolumeSource} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + gcePersistentDisk?: IoK8sApiCoreV1GCEPersistentDiskVolumeSource; + /** + * + * @type {IoK8sApiCoreV1GlusterfsPersistentVolumeSource} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + glusterfs?: IoK8sApiCoreV1GlusterfsPersistentVolumeSource; + /** + * + * @type {IoK8sApiCoreV1HostPathVolumeSource} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + hostPath?: IoK8sApiCoreV1HostPathVolumeSource; + /** + * + * @type {IoK8sApiCoreV1ISCSIPersistentVolumeSource} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + iscsi?: IoK8sApiCoreV1ISCSIPersistentVolumeSource; + /** + * + * @type {IoK8sApiCoreV1LocalVolumeSource} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + local?: IoK8sApiCoreV1LocalVolumeSource; + /** + * mountOptions is the list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options + * @type {Array} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + mountOptions?: string[]; + /** + * + * @type {IoK8sApiCoreV1NFSVolumeSource} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + nfs?: IoK8sApiCoreV1NFSVolumeSource; + /** + * + * @type {IoK8sApiCoreV1VolumeNodeAffinity} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + nodeAffinity?: IoK8sApiCoreV1VolumeNodeAffinity; + /** + * persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming + * @type {string} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + persistentVolumeReclaimPolicy?: string; + /** + * + * @type {IoK8sApiCoreV1PhotonPersistentDiskVolumeSource} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + photonPersistentDisk?: IoK8sApiCoreV1PhotonPersistentDiskVolumeSource; + /** + * + * @type {IoK8sApiCoreV1PortworxVolumeSource} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + portworxVolume?: IoK8sApiCoreV1PortworxVolumeSource; + /** + * + * @type {IoK8sApiCoreV1QuobyteVolumeSource} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + quobyte?: IoK8sApiCoreV1QuobyteVolumeSource; + /** + * + * @type {IoK8sApiCoreV1RBDPersistentVolumeSource} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + rbd?: IoK8sApiCoreV1RBDPersistentVolumeSource; + /** + * + * @type {IoK8sApiCoreV1ScaleIOPersistentVolumeSource} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + scaleIO?: IoK8sApiCoreV1ScaleIOPersistentVolumeSource; + /** + * storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. + * @type {string} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + storageClassName?: string; + /** + * + * @type {IoK8sApiCoreV1StorageOSPersistentVolumeSource} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + storageos?: IoK8sApiCoreV1StorageOSPersistentVolumeSource; + /** + * Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is an alpha field and requires enabling VolumeAttributesClass feature. + * @type {string} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + volumeAttributesClassName?: string; + /** + * volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. + * @type {string} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + volumeMode?: string; + /** + * + * @type {IoK8sApiCoreV1VsphereVirtualDiskVolumeSource} + * @memberof IoK8sApiCoreV1PersistentVolumeSpec + */ + vsphereVolume?: IoK8sApiCoreV1VsphereVirtualDiskVolumeSource; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PersistentVolumeSpec interface. + */ +export function instanceOfIoK8sApiCoreV1PersistentVolumeSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1PersistentVolumeSpecFromJSON(json: any): IoK8sApiCoreV1PersistentVolumeSpec { + return IoK8sApiCoreV1PersistentVolumeSpecFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PersistentVolumeSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PersistentVolumeSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accessModes': !exists(json, 'accessModes') ? undefined : json['accessModes'], + 'awsElasticBlockStore': !exists(json, 'awsElasticBlockStore') ? undefined : IoK8sApiCoreV1AWSElasticBlockStoreVolumeSourceFromJSON(json['awsElasticBlockStore']), + 'azureDisk': !exists(json, 'azureDisk') ? undefined : IoK8sApiCoreV1AzureDiskVolumeSourceFromJSON(json['azureDisk']), + 'azureFile': !exists(json, 'azureFile') ? undefined : IoK8sApiCoreV1AzureFilePersistentVolumeSourceFromJSON(json['azureFile']), + 'capacity': !exists(json, 'capacity') ? undefined : json['capacity'], + 'cephfs': !exists(json, 'cephfs') ? undefined : IoK8sApiCoreV1CephFSPersistentVolumeSourceFromJSON(json['cephfs']), + 'cinder': !exists(json, 'cinder') ? undefined : IoK8sApiCoreV1CinderPersistentVolumeSourceFromJSON(json['cinder']), + 'claimRef': !exists(json, 'claimRef') ? undefined : IoK8sApiCoreV1ObjectReferenceFromJSON(json['claimRef']), + 'csi': !exists(json, 'csi') ? undefined : IoK8sApiCoreV1CSIPersistentVolumeSourceFromJSON(json['csi']), + 'fc': !exists(json, 'fc') ? undefined : IoK8sApiCoreV1FCVolumeSourceFromJSON(json['fc']), + 'flexVolume': !exists(json, 'flexVolume') ? undefined : IoK8sApiCoreV1FlexPersistentVolumeSourceFromJSON(json['flexVolume']), + 'flocker': !exists(json, 'flocker') ? undefined : IoK8sApiCoreV1FlockerVolumeSourceFromJSON(json['flocker']), + 'gcePersistentDisk': !exists(json, 'gcePersistentDisk') ? undefined : IoK8sApiCoreV1GCEPersistentDiskVolumeSourceFromJSON(json['gcePersistentDisk']), + 'glusterfs': !exists(json, 'glusterfs') ? undefined : IoK8sApiCoreV1GlusterfsPersistentVolumeSourceFromJSON(json['glusterfs']), + 'hostPath': !exists(json, 'hostPath') ? undefined : IoK8sApiCoreV1HostPathVolumeSourceFromJSON(json['hostPath']), + 'iscsi': !exists(json, 'iscsi') ? undefined : IoK8sApiCoreV1ISCSIPersistentVolumeSourceFromJSON(json['iscsi']), + 'local': !exists(json, 'local') ? undefined : IoK8sApiCoreV1LocalVolumeSourceFromJSON(json['local']), + 'mountOptions': !exists(json, 'mountOptions') ? undefined : json['mountOptions'], + 'nfs': !exists(json, 'nfs') ? undefined : IoK8sApiCoreV1NFSVolumeSourceFromJSON(json['nfs']), + 'nodeAffinity': !exists(json, 'nodeAffinity') ? undefined : IoK8sApiCoreV1VolumeNodeAffinityFromJSON(json['nodeAffinity']), + 'persistentVolumeReclaimPolicy': !exists(json, 'persistentVolumeReclaimPolicy') ? undefined : json['persistentVolumeReclaimPolicy'], + 'photonPersistentDisk': !exists(json, 'photonPersistentDisk') ? undefined : IoK8sApiCoreV1PhotonPersistentDiskVolumeSourceFromJSON(json['photonPersistentDisk']), + 'portworxVolume': !exists(json, 'portworxVolume') ? undefined : IoK8sApiCoreV1PortworxVolumeSourceFromJSON(json['portworxVolume']), + 'quobyte': !exists(json, 'quobyte') ? undefined : IoK8sApiCoreV1QuobyteVolumeSourceFromJSON(json['quobyte']), + 'rbd': !exists(json, 'rbd') ? undefined : IoK8sApiCoreV1RBDPersistentVolumeSourceFromJSON(json['rbd']), + 'scaleIO': !exists(json, 'scaleIO') ? undefined : IoK8sApiCoreV1ScaleIOPersistentVolumeSourceFromJSON(json['scaleIO']), + 'storageClassName': !exists(json, 'storageClassName') ? undefined : json['storageClassName'], + 'storageos': !exists(json, 'storageos') ? undefined : IoK8sApiCoreV1StorageOSPersistentVolumeSourceFromJSON(json['storageos']), + 'volumeAttributesClassName': !exists(json, 'volumeAttributesClassName') ? undefined : json['volumeAttributesClassName'], + 'volumeMode': !exists(json, 'volumeMode') ? undefined : json['volumeMode'], + 'vsphereVolume': !exists(json, 'vsphereVolume') ? undefined : IoK8sApiCoreV1VsphereVirtualDiskVolumeSourceFromJSON(json['vsphereVolume']), + }; +} + +export function IoK8sApiCoreV1PersistentVolumeSpecToJSON(value?: IoK8sApiCoreV1PersistentVolumeSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'accessModes': value.accessModes, + 'awsElasticBlockStore': IoK8sApiCoreV1AWSElasticBlockStoreVolumeSourceToJSON(value.awsElasticBlockStore), + 'azureDisk': IoK8sApiCoreV1AzureDiskVolumeSourceToJSON(value.azureDisk), + 'azureFile': IoK8sApiCoreV1AzureFilePersistentVolumeSourceToJSON(value.azureFile), + 'capacity': value.capacity, + 'cephfs': IoK8sApiCoreV1CephFSPersistentVolumeSourceToJSON(value.cephfs), + 'cinder': IoK8sApiCoreV1CinderPersistentVolumeSourceToJSON(value.cinder), + 'claimRef': IoK8sApiCoreV1ObjectReferenceToJSON(value.claimRef), + 'csi': IoK8sApiCoreV1CSIPersistentVolumeSourceToJSON(value.csi), + 'fc': IoK8sApiCoreV1FCVolumeSourceToJSON(value.fc), + 'flexVolume': IoK8sApiCoreV1FlexPersistentVolumeSourceToJSON(value.flexVolume), + 'flocker': IoK8sApiCoreV1FlockerVolumeSourceToJSON(value.flocker), + 'gcePersistentDisk': IoK8sApiCoreV1GCEPersistentDiskVolumeSourceToJSON(value.gcePersistentDisk), + 'glusterfs': IoK8sApiCoreV1GlusterfsPersistentVolumeSourceToJSON(value.glusterfs), + 'hostPath': IoK8sApiCoreV1HostPathVolumeSourceToJSON(value.hostPath), + 'iscsi': IoK8sApiCoreV1ISCSIPersistentVolumeSourceToJSON(value.iscsi), + 'local': IoK8sApiCoreV1LocalVolumeSourceToJSON(value.local), + 'mountOptions': value.mountOptions, + 'nfs': IoK8sApiCoreV1NFSVolumeSourceToJSON(value.nfs), + 'nodeAffinity': IoK8sApiCoreV1VolumeNodeAffinityToJSON(value.nodeAffinity), + 'persistentVolumeReclaimPolicy': value.persistentVolumeReclaimPolicy, + 'photonPersistentDisk': IoK8sApiCoreV1PhotonPersistentDiskVolumeSourceToJSON(value.photonPersistentDisk), + 'portworxVolume': IoK8sApiCoreV1PortworxVolumeSourceToJSON(value.portworxVolume), + 'quobyte': IoK8sApiCoreV1QuobyteVolumeSourceToJSON(value.quobyte), + 'rbd': IoK8sApiCoreV1RBDPersistentVolumeSourceToJSON(value.rbd), + 'scaleIO': IoK8sApiCoreV1ScaleIOPersistentVolumeSourceToJSON(value.scaleIO), + 'storageClassName': value.storageClassName, + 'storageos': IoK8sApiCoreV1StorageOSPersistentVolumeSourceToJSON(value.storageos), + 'volumeAttributesClassName': value.volumeAttributesClassName, + 'volumeMode': value.volumeMode, + 'vsphereVolume': IoK8sApiCoreV1VsphereVirtualDiskVolumeSourceToJSON(value.vsphereVolume), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeStatus.ts new file mode 100644 index 000000000..9fe3850be --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PersistentVolumeStatus.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * PersistentVolumeStatus is the current status of a persistent volume. + * @export + * @interface IoK8sApiCoreV1PersistentVolumeStatus + */ +export interface IoK8sApiCoreV1PersistentVolumeStatus { + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiCoreV1PersistentVolumeStatus + */ + lastPhaseTransitionTime?: string; + /** + * message is a human-readable message indicating details about why the volume is in this state. + * @type {string} + * @memberof IoK8sApiCoreV1PersistentVolumeStatus + */ + message?: string; + /** + * phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase + * @type {string} + * @memberof IoK8sApiCoreV1PersistentVolumeStatus + */ + phase?: string; + /** + * reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. + * @type {string} + * @memberof IoK8sApiCoreV1PersistentVolumeStatus + */ + reason?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PersistentVolumeStatus interface. + */ +export function instanceOfIoK8sApiCoreV1PersistentVolumeStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1PersistentVolumeStatusFromJSON(json: any): IoK8sApiCoreV1PersistentVolumeStatus { + return IoK8sApiCoreV1PersistentVolumeStatusFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PersistentVolumeStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PersistentVolumeStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'lastPhaseTransitionTime': !exists(json, 'lastPhaseTransitionTime') ? undefined : json['lastPhaseTransitionTime'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'phase': !exists(json, 'phase') ? undefined : json['phase'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + }; +} + +export function IoK8sApiCoreV1PersistentVolumeStatusToJSON(value?: IoK8sApiCoreV1PersistentVolumeStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'lastPhaseTransitionTime': value.lastPhaseTransitionTime === undefined ? undefined : (value.lastPhaseTransitionTime), + 'message': value.message, + 'phase': value.phase, + 'reason': value.reason, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PhotonPersistentDiskVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PhotonPersistentDiskVolumeSource.ts new file mode 100644 index 000000000..a109e060c --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PhotonPersistentDiskVolumeSource.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Represents a Photon Controller persistent disk resource. + * @export + * @interface IoK8sApiCoreV1PhotonPersistentDiskVolumeSource + */ +export interface IoK8sApiCoreV1PhotonPersistentDiskVolumeSource { + /** + * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * @type {string} + * @memberof IoK8sApiCoreV1PhotonPersistentDiskVolumeSource + */ + fsType?: string; + /** + * pdID is the ID that identifies Photon Controller persistent disk + * @type {string} + * @memberof IoK8sApiCoreV1PhotonPersistentDiskVolumeSource + */ + pdID: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PhotonPersistentDiskVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1PhotonPersistentDiskVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "pdID" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1PhotonPersistentDiskVolumeSourceFromJSON(json: any): IoK8sApiCoreV1PhotonPersistentDiskVolumeSource { + return IoK8sApiCoreV1PhotonPersistentDiskVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PhotonPersistentDiskVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PhotonPersistentDiskVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'fsType': !exists(json, 'fsType') ? undefined : json['fsType'], + 'pdID': json['pdID'], + }; +} + +export function IoK8sApiCoreV1PhotonPersistentDiskVolumeSourceToJSON(value?: IoK8sApiCoreV1PhotonPersistentDiskVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'fsType': value.fsType, + 'pdID': value.pdID, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Pod.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Pod.ts new file mode 100644 index 000000000..36da88c80 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Pod.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1PodSpec } from './IoK8sApiCoreV1PodSpec'; +import { + IoK8sApiCoreV1PodSpecFromJSON, + IoK8sApiCoreV1PodSpecFromJSONTyped, + IoK8sApiCoreV1PodSpecToJSON, +} from './IoK8sApiCoreV1PodSpec'; +import type { IoK8sApiCoreV1PodStatus } from './IoK8sApiCoreV1PodStatus'; +import { + IoK8sApiCoreV1PodStatusFromJSON, + IoK8sApiCoreV1PodStatusFromJSONTyped, + IoK8sApiCoreV1PodStatusToJSON, +} from './IoK8sApiCoreV1PodStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. + * @export + * @interface IoK8sApiCoreV1Pod + */ +export interface IoK8sApiCoreV1Pod { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1Pod + */ + 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 + * @type {string} + * @memberof IoK8sApiCoreV1Pod + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiCoreV1Pod + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiCoreV1PodSpec} + * @memberof IoK8sApiCoreV1Pod + */ + spec?: IoK8sApiCoreV1PodSpec; + /** + * + * @type {IoK8sApiCoreV1PodStatus} + * @memberof IoK8sApiCoreV1Pod + */ + status?: IoK8sApiCoreV1PodStatus; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1Pod interface. + */ +export function instanceOfIoK8sApiCoreV1Pod(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1PodFromJSON(json: any): IoK8sApiCoreV1Pod { + return IoK8sApiCoreV1PodFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PodFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1Pod { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiCoreV1PodSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiCoreV1PodStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiCoreV1PodToJSON(value?: IoK8sApiCoreV1Pod | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiCoreV1PodSpecToJSON(value.spec), + 'status': IoK8sApiCoreV1PodStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodAffinity.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodAffinity.ts new file mode 100644 index 000000000..89cee365b --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodAffinity.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1PodAffinityTerm } from './IoK8sApiCoreV1PodAffinityTerm'; +import { + IoK8sApiCoreV1PodAffinityTermFromJSON, + IoK8sApiCoreV1PodAffinityTermFromJSONTyped, + IoK8sApiCoreV1PodAffinityTermToJSON, +} from './IoK8sApiCoreV1PodAffinityTerm'; +import type { IoK8sApiCoreV1WeightedPodAffinityTerm } from './IoK8sApiCoreV1WeightedPodAffinityTerm'; +import { + IoK8sApiCoreV1WeightedPodAffinityTermFromJSON, + IoK8sApiCoreV1WeightedPodAffinityTermFromJSONTyped, + IoK8sApiCoreV1WeightedPodAffinityTermToJSON, +} from './IoK8sApiCoreV1WeightedPodAffinityTerm'; + +/** + * Pod affinity is a group of inter pod affinity scheduling rules. + * @export + * @interface IoK8sApiCoreV1PodAffinity + */ +export interface IoK8sApiCoreV1PodAffinity { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * @type {Array} + * @memberof IoK8sApiCoreV1PodAffinity + */ + preferredDuringSchedulingIgnoredDuringExecution?: Array; + /** + * If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + * @type {Array} + * @memberof IoK8sApiCoreV1PodAffinity + */ + requiredDuringSchedulingIgnoredDuringExecution?: Array; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PodAffinity interface. + */ +export function instanceOfIoK8sApiCoreV1PodAffinity(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1PodAffinityFromJSON(json: any): IoK8sApiCoreV1PodAffinity { + return IoK8sApiCoreV1PodAffinityFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PodAffinityFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PodAffinity { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'preferredDuringSchedulingIgnoredDuringExecution': !exists(json, 'preferredDuringSchedulingIgnoredDuringExecution') ? undefined : ((json['preferredDuringSchedulingIgnoredDuringExecution'] as Array).map(IoK8sApiCoreV1WeightedPodAffinityTermFromJSON)), + 'requiredDuringSchedulingIgnoredDuringExecution': !exists(json, 'requiredDuringSchedulingIgnoredDuringExecution') ? undefined : ((json['requiredDuringSchedulingIgnoredDuringExecution'] as Array).map(IoK8sApiCoreV1PodAffinityTermFromJSON)), + }; +} + +export function IoK8sApiCoreV1PodAffinityToJSON(value?: IoK8sApiCoreV1PodAffinity | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'preferredDuringSchedulingIgnoredDuringExecution': value.preferredDuringSchedulingIgnoredDuringExecution === undefined ? undefined : ((value.preferredDuringSchedulingIgnoredDuringExecution as Array).map(IoK8sApiCoreV1WeightedPodAffinityTermToJSON)), + 'requiredDuringSchedulingIgnoredDuringExecution': value.requiredDuringSchedulingIgnoredDuringExecution === undefined ? undefined : ((value.requiredDuringSchedulingIgnoredDuringExecution as Array).map(IoK8sApiCoreV1PodAffinityTermToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodAffinityTerm.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodAffinityTerm.ts new file mode 100644 index 000000000..11f97f67c --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodAffinityTerm.ts @@ -0,0 +1,113 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1LabelSelector } from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; +import { + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON, + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; + +/** + * Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running + * @export + * @interface IoK8sApiCoreV1PodAffinityTerm + */ +export interface IoK8sApiCoreV1PodAffinityTerm { + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1LabelSelector} + * @memberof IoK8sApiCoreV1PodAffinityTerm + */ + labelSelector?: IoK8sApimachineryPkgApisMetaV1LabelSelector; + /** + * MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + * @type {Array} + * @memberof IoK8sApiCoreV1PodAffinityTerm + */ + matchLabelKeys?: string[]; + /** + * MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + * @type {Array} + * @memberof IoK8sApiCoreV1PodAffinityTerm + */ + mismatchLabelKeys?: string[]; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1LabelSelector} + * @memberof IoK8sApiCoreV1PodAffinityTerm + */ + namespaceSelector?: IoK8sApimachineryPkgApisMetaV1LabelSelector; + /** + * namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". + * @type {Array} + * @memberof IoK8sApiCoreV1PodAffinityTerm + */ + namespaces?: string[]; + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + * @type {string} + * @memberof IoK8sApiCoreV1PodAffinityTerm + */ + topologyKey: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PodAffinityTerm interface. + */ +export function instanceOfIoK8sApiCoreV1PodAffinityTerm(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "topologyKey" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1PodAffinityTermFromJSON(json: any): IoK8sApiCoreV1PodAffinityTerm { + return IoK8sApiCoreV1PodAffinityTermFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PodAffinityTermFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PodAffinityTerm { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'labelSelector': !exists(json, 'labelSelector') ? undefined : IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['labelSelector']), + 'matchLabelKeys': !exists(json, 'matchLabelKeys') ? undefined : json['matchLabelKeys'], + 'mismatchLabelKeys': !exists(json, 'mismatchLabelKeys') ? undefined : json['mismatchLabelKeys'], + 'namespaceSelector': !exists(json, 'namespaceSelector') ? undefined : IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['namespaceSelector']), + 'namespaces': !exists(json, 'namespaces') ? undefined : json['namespaces'], + 'topologyKey': json['topologyKey'], + }; +} + +export function IoK8sApiCoreV1PodAffinityTermToJSON(value?: IoK8sApiCoreV1PodAffinityTerm | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'labelSelector': IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value.labelSelector), + 'matchLabelKeys': value.matchLabelKeys, + 'mismatchLabelKeys': value.mismatchLabelKeys, + 'namespaceSelector': IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value.namespaceSelector), + 'namespaces': value.namespaces, + 'topologyKey': value.topologyKey, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodAntiAffinity.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodAntiAffinity.ts new file mode 100644 index 000000000..de8fb8329 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodAntiAffinity.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1PodAffinityTerm } from './IoK8sApiCoreV1PodAffinityTerm'; +import { + IoK8sApiCoreV1PodAffinityTermFromJSON, + IoK8sApiCoreV1PodAffinityTermFromJSONTyped, + IoK8sApiCoreV1PodAffinityTermToJSON, +} from './IoK8sApiCoreV1PodAffinityTerm'; +import type { IoK8sApiCoreV1WeightedPodAffinityTerm } from './IoK8sApiCoreV1WeightedPodAffinityTerm'; +import { + IoK8sApiCoreV1WeightedPodAffinityTermFromJSON, + IoK8sApiCoreV1WeightedPodAffinityTermFromJSONTyped, + IoK8sApiCoreV1WeightedPodAffinityTermToJSON, +} from './IoK8sApiCoreV1WeightedPodAffinityTerm'; + +/** + * Pod anti affinity is a group of inter pod anti affinity scheduling rules. + * @export + * @interface IoK8sApiCoreV1PodAntiAffinity + */ +export interface IoK8sApiCoreV1PodAntiAffinity { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * @type {Array} + * @memberof IoK8sApiCoreV1PodAntiAffinity + */ + preferredDuringSchedulingIgnoredDuringExecution?: Array; + /** + * If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + * @type {Array} + * @memberof IoK8sApiCoreV1PodAntiAffinity + */ + requiredDuringSchedulingIgnoredDuringExecution?: Array; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PodAntiAffinity interface. + */ +export function instanceOfIoK8sApiCoreV1PodAntiAffinity(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1PodAntiAffinityFromJSON(json: any): IoK8sApiCoreV1PodAntiAffinity { + return IoK8sApiCoreV1PodAntiAffinityFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PodAntiAffinityFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PodAntiAffinity { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'preferredDuringSchedulingIgnoredDuringExecution': !exists(json, 'preferredDuringSchedulingIgnoredDuringExecution') ? undefined : ((json['preferredDuringSchedulingIgnoredDuringExecution'] as Array).map(IoK8sApiCoreV1WeightedPodAffinityTermFromJSON)), + 'requiredDuringSchedulingIgnoredDuringExecution': !exists(json, 'requiredDuringSchedulingIgnoredDuringExecution') ? undefined : ((json['requiredDuringSchedulingIgnoredDuringExecution'] as Array).map(IoK8sApiCoreV1PodAffinityTermFromJSON)), + }; +} + +export function IoK8sApiCoreV1PodAntiAffinityToJSON(value?: IoK8sApiCoreV1PodAntiAffinity | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'preferredDuringSchedulingIgnoredDuringExecution': value.preferredDuringSchedulingIgnoredDuringExecution === undefined ? undefined : ((value.preferredDuringSchedulingIgnoredDuringExecution as Array).map(IoK8sApiCoreV1WeightedPodAffinityTermToJSON)), + 'requiredDuringSchedulingIgnoredDuringExecution': value.requiredDuringSchedulingIgnoredDuringExecution === undefined ? undefined : ((value.requiredDuringSchedulingIgnoredDuringExecution as Array).map(IoK8sApiCoreV1PodAffinityTermToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodCondition.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodCondition.ts new file mode 100644 index 000000000..91b1ceb93 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodCondition.ts @@ -0,0 +1,107 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * PodCondition contains details for the current condition of this pod. + * @export + * @interface IoK8sApiCoreV1PodCondition + */ +export interface IoK8sApiCoreV1PodCondition { + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiCoreV1PodCondition + */ + lastProbeTime?: string; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiCoreV1PodCondition + */ + lastTransitionTime?: string; + /** + * Human-readable message indicating details about last transition. + * @type {string} + * @memberof IoK8sApiCoreV1PodCondition + */ + message?: string; + /** + * Unique, one-word, CamelCase reason for the condition's last transition. + * @type {string} + * @memberof IoK8sApiCoreV1PodCondition + */ + reason?: string; + /** + * Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + * @type {string} + * @memberof IoK8sApiCoreV1PodCondition + */ + status: string; + /** + * Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + * @type {string} + * @memberof IoK8sApiCoreV1PodCondition + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PodCondition interface. + */ +export function instanceOfIoK8sApiCoreV1PodCondition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "status" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1PodConditionFromJSON(json: any): IoK8sApiCoreV1PodCondition { + return IoK8sApiCoreV1PodConditionFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PodConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PodCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'lastProbeTime': !exists(json, 'lastProbeTime') ? undefined : json['lastProbeTime'], + 'lastTransitionTime': !exists(json, 'lastTransitionTime') ? undefined : json['lastTransitionTime'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'status': json['status'], + 'type': json['type'], + }; +} + +export function IoK8sApiCoreV1PodConditionToJSON(value?: IoK8sApiCoreV1PodCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'lastProbeTime': value.lastProbeTime === undefined ? undefined : (value.lastProbeTime), + 'lastTransitionTime': value.lastTransitionTime === undefined ? undefined : (value.lastTransitionTime), + 'message': value.message, + 'reason': value.reason, + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodDNSConfig.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodDNSConfig.ts new file mode 100644 index 000000000..515ff05e6 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodDNSConfig.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1PodDNSConfigOption } from './IoK8sApiCoreV1PodDNSConfigOption'; +import { + IoK8sApiCoreV1PodDNSConfigOptionFromJSON, + IoK8sApiCoreV1PodDNSConfigOptionFromJSONTyped, + IoK8sApiCoreV1PodDNSConfigOptionToJSON, +} from './IoK8sApiCoreV1PodDNSConfigOption'; + +/** + * PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy. + * @export + * @interface IoK8sApiCoreV1PodDNSConfig + */ +export interface IoK8sApiCoreV1PodDNSConfig { + /** + * A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * @type {Array} + * @memberof IoK8sApiCoreV1PodDNSConfig + */ + nameservers?: string[]; + /** + * A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * @type {Array} + * @memberof IoK8sApiCoreV1PodDNSConfig + */ + options?: Array; + /** + * A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + * @type {Array} + * @memberof IoK8sApiCoreV1PodDNSConfig + */ + searches?: string[]; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PodDNSConfig interface. + */ +export function instanceOfIoK8sApiCoreV1PodDNSConfig(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1PodDNSConfigFromJSON(json: any): IoK8sApiCoreV1PodDNSConfig { + return IoK8sApiCoreV1PodDNSConfigFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PodDNSConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PodDNSConfig { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'nameservers': !exists(json, 'nameservers') ? undefined : json['nameservers'], + 'options': !exists(json, 'options') ? undefined : ((json['options'] as Array).map(IoK8sApiCoreV1PodDNSConfigOptionFromJSON)), + 'searches': !exists(json, 'searches') ? undefined : json['searches'], + }; +} + +export function IoK8sApiCoreV1PodDNSConfigToJSON(value?: IoK8sApiCoreV1PodDNSConfig | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'nameservers': value.nameservers, + 'options': value.options === undefined ? undefined : ((value.options as Array).map(IoK8sApiCoreV1PodDNSConfigOptionToJSON)), + 'searches': value.searches, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodDNSConfigOption.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodDNSConfigOption.ts new file mode 100644 index 000000000..6b1c93e4b --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodDNSConfigOption.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * PodDNSConfigOption defines DNS resolver options of a pod. + * @export + * @interface IoK8sApiCoreV1PodDNSConfigOption + */ +export interface IoK8sApiCoreV1PodDNSConfigOption { + /** + * Required. + * @type {string} + * @memberof IoK8sApiCoreV1PodDNSConfigOption + */ + name?: string; + /** + * + * @type {string} + * @memberof IoK8sApiCoreV1PodDNSConfigOption + */ + value?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PodDNSConfigOption interface. + */ +export function instanceOfIoK8sApiCoreV1PodDNSConfigOption(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1PodDNSConfigOptionFromJSON(json: any): IoK8sApiCoreV1PodDNSConfigOption { + return IoK8sApiCoreV1PodDNSConfigOptionFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PodDNSConfigOptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PodDNSConfigOption { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': !exists(json, 'name') ? undefined : json['name'], + 'value': !exists(json, 'value') ? undefined : json['value'], + }; +} + +export function IoK8sApiCoreV1PodDNSConfigOptionToJSON(value?: IoK8sApiCoreV1PodDNSConfigOption | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'value': value.value, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodIP.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodIP.ts new file mode 100644 index 000000000..4817e88ed --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodIP.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * PodIP represents a single IP address allocated to the pod. + * @export + * @interface IoK8sApiCoreV1PodIP + */ +export interface IoK8sApiCoreV1PodIP { + /** + * IP is the IP address assigned to the pod + * @type {string} + * @memberof IoK8sApiCoreV1PodIP + */ + ip?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PodIP interface. + */ +export function instanceOfIoK8sApiCoreV1PodIP(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1PodIPFromJSON(json: any): IoK8sApiCoreV1PodIP { + return IoK8sApiCoreV1PodIPFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PodIPFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PodIP { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'ip': !exists(json, 'ip') ? undefined : json['ip'], + }; +} + +export function IoK8sApiCoreV1PodIPToJSON(value?: IoK8sApiCoreV1PodIP | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ip': value.ip, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodList.ts new file mode 100644 index 000000000..b21a5074f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1Pod } from './IoK8sApiCoreV1Pod'; +import { + IoK8sApiCoreV1PodFromJSON, + IoK8sApiCoreV1PodFromJSONTyped, + IoK8sApiCoreV1PodToJSON, +} from './IoK8sApiCoreV1Pod'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * PodList is a list of Pods. + * @export + * @interface IoK8sApiCoreV1PodList + */ +export interface IoK8sApiCoreV1PodList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1PodList + */ + apiVersion?: string; + /** + * List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md + * @type {Array} + * @memberof IoK8sApiCoreV1PodList + */ + 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 + * @type {string} + * @memberof IoK8sApiCoreV1PodList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiCoreV1PodList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PodList interface. + */ +export function instanceOfIoK8sApiCoreV1PodList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1PodListFromJSON(json: any): IoK8sApiCoreV1PodList { + return IoK8sApiCoreV1PodListFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PodListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PodList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiCoreV1PodFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiCoreV1PodListToJSON(value?: IoK8sApiCoreV1PodList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiCoreV1PodToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodOS.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodOS.ts new file mode 100644 index 000000000..a944e784e --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodOS.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * PodOS defines the OS parameters of a pod. + * @export + * @interface IoK8sApiCoreV1PodOS + */ +export interface IoK8sApiCoreV1PodOS { + /** + * Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null + * @type {string} + * @memberof IoK8sApiCoreV1PodOS + */ + name: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PodOS interface. + */ +export function instanceOfIoK8sApiCoreV1PodOS(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1PodOSFromJSON(json: any): IoK8sApiCoreV1PodOS { + return IoK8sApiCoreV1PodOSFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PodOSFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PodOS { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + }; +} + +export function IoK8sApiCoreV1PodOSToJSON(value?: IoK8sApiCoreV1PodOS | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodReadinessGate.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodReadinessGate.ts new file mode 100644 index 000000000..a44280f3f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodReadinessGate.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * PodReadinessGate contains the reference to a pod condition + * @export + * @interface IoK8sApiCoreV1PodReadinessGate + */ +export interface IoK8sApiCoreV1PodReadinessGate { + /** + * ConditionType refers to a condition in the pod's condition list with matching type. + * @type {string} + * @memberof IoK8sApiCoreV1PodReadinessGate + */ + conditionType: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PodReadinessGate interface. + */ +export function instanceOfIoK8sApiCoreV1PodReadinessGate(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "conditionType" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1PodReadinessGateFromJSON(json: any): IoK8sApiCoreV1PodReadinessGate { + return IoK8sApiCoreV1PodReadinessGateFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PodReadinessGateFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PodReadinessGate { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'conditionType': json['conditionType'], + }; +} + +export function IoK8sApiCoreV1PodReadinessGateToJSON(value?: IoK8sApiCoreV1PodReadinessGate | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'conditionType': value.conditionType, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodResourceClaim.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodResourceClaim.ts new file mode 100644 index 000000000..1aab3172f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodResourceClaim.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ClaimSource } from './IoK8sApiCoreV1ClaimSource'; +import { + IoK8sApiCoreV1ClaimSourceFromJSON, + IoK8sApiCoreV1ClaimSourceFromJSONTyped, + IoK8sApiCoreV1ClaimSourceToJSON, +} from './IoK8sApiCoreV1ClaimSource'; + +/** + * PodResourceClaim references exactly one ResourceClaim through a ClaimSource. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name. + * @export + * @interface IoK8sApiCoreV1PodResourceClaim + */ +export interface IoK8sApiCoreV1PodResourceClaim { + /** + * Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL. + * @type {string} + * @memberof IoK8sApiCoreV1PodResourceClaim + */ + name: string; + /** + * + * @type {IoK8sApiCoreV1ClaimSource} + * @memberof IoK8sApiCoreV1PodResourceClaim + */ + source?: IoK8sApiCoreV1ClaimSource; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PodResourceClaim interface. + */ +export function instanceOfIoK8sApiCoreV1PodResourceClaim(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1PodResourceClaimFromJSON(json: any): IoK8sApiCoreV1PodResourceClaim { + return IoK8sApiCoreV1PodResourceClaimFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PodResourceClaimFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PodResourceClaim { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + 'source': !exists(json, 'source') ? undefined : IoK8sApiCoreV1ClaimSourceFromJSON(json['source']), + }; +} + +export function IoK8sApiCoreV1PodResourceClaimToJSON(value?: IoK8sApiCoreV1PodResourceClaim | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'source': IoK8sApiCoreV1ClaimSourceToJSON(value.source), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodResourceClaimStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodResourceClaimStatus.ts new file mode 100644 index 000000000..6e5d0bca1 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodResourceClaimStatus.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim. + * @export + * @interface IoK8sApiCoreV1PodResourceClaimStatus + */ +export interface IoK8sApiCoreV1PodResourceClaimStatus { + /** + * Name uniquely identifies this resource claim inside the pod. This must match the name of an entry in pod.spec.resourceClaims, which implies that the string must be a DNS_LABEL. + * @type {string} + * @memberof IoK8sApiCoreV1PodResourceClaimStatus + */ + name: string; + /** + * ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. It this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case. + * @type {string} + * @memberof IoK8sApiCoreV1PodResourceClaimStatus + */ + resourceClaimName?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PodResourceClaimStatus interface. + */ +export function instanceOfIoK8sApiCoreV1PodResourceClaimStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1PodResourceClaimStatusFromJSON(json: any): IoK8sApiCoreV1PodResourceClaimStatus { + return IoK8sApiCoreV1PodResourceClaimStatusFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PodResourceClaimStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PodResourceClaimStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + 'resourceClaimName': !exists(json, 'resourceClaimName') ? undefined : json['resourceClaimName'], + }; +} + +export function IoK8sApiCoreV1PodResourceClaimStatusToJSON(value?: IoK8sApiCoreV1PodResourceClaimStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'resourceClaimName': value.resourceClaimName, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodSchedulingGate.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodSchedulingGate.ts new file mode 100644 index 000000000..8b1f621af --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodSchedulingGate.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * PodSchedulingGate is associated to a Pod to guard its scheduling. + * @export + * @interface IoK8sApiCoreV1PodSchedulingGate + */ +export interface IoK8sApiCoreV1PodSchedulingGate { + /** + * Name of the scheduling gate. Each scheduling gate must have a unique name field. + * @type {string} + * @memberof IoK8sApiCoreV1PodSchedulingGate + */ + name: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PodSchedulingGate interface. + */ +export function instanceOfIoK8sApiCoreV1PodSchedulingGate(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1PodSchedulingGateFromJSON(json: any): IoK8sApiCoreV1PodSchedulingGate { + return IoK8sApiCoreV1PodSchedulingGateFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PodSchedulingGateFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PodSchedulingGate { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + }; +} + +export function IoK8sApiCoreV1PodSchedulingGateToJSON(value?: IoK8sApiCoreV1PodSchedulingGate | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodSecurityContext.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodSecurityContext.ts new file mode 100644 index 000000000..a9f73e5f1 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodSecurityContext.ts @@ -0,0 +1,166 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1SELinuxOptions } from './IoK8sApiCoreV1SELinuxOptions'; +import { + IoK8sApiCoreV1SELinuxOptionsFromJSON, + IoK8sApiCoreV1SELinuxOptionsFromJSONTyped, + IoK8sApiCoreV1SELinuxOptionsToJSON, +} from './IoK8sApiCoreV1SELinuxOptions'; +import type { IoK8sApiCoreV1SeccompProfile } from './IoK8sApiCoreV1SeccompProfile'; +import { + IoK8sApiCoreV1SeccompProfileFromJSON, + IoK8sApiCoreV1SeccompProfileFromJSONTyped, + IoK8sApiCoreV1SeccompProfileToJSON, +} from './IoK8sApiCoreV1SeccompProfile'; +import type { IoK8sApiCoreV1Sysctl } from './IoK8sApiCoreV1Sysctl'; +import { + IoK8sApiCoreV1SysctlFromJSON, + IoK8sApiCoreV1SysctlFromJSONTyped, + IoK8sApiCoreV1SysctlToJSON, +} from './IoK8sApiCoreV1Sysctl'; +import type { IoK8sApiCoreV1WindowsSecurityContextOptions } from './IoK8sApiCoreV1WindowsSecurityContextOptions'; +import { + IoK8sApiCoreV1WindowsSecurityContextOptionsFromJSON, + IoK8sApiCoreV1WindowsSecurityContextOptionsFromJSONTyped, + IoK8sApiCoreV1WindowsSecurityContextOptionsToJSON, +} from './IoK8sApiCoreV1WindowsSecurityContextOptions'; + +/** + * PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext. + * @export + * @interface IoK8sApiCoreV1PodSecurityContext + */ +export interface IoK8sApiCoreV1PodSecurityContext { + /** + * A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + * + * 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + * + * If unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows. + * @type {number} + * @memberof IoK8sApiCoreV1PodSecurityContext + */ + fsGroup?: number; + /** + * fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. Note that this field cannot be set when spec.os.name is windows. + * @type {string} + * @memberof IoK8sApiCoreV1PodSecurityContext + */ + fsGroupChangePolicy?: string; + /** + * The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. + * @type {number} + * @memberof IoK8sApiCoreV1PodSecurityContext + */ + runAsGroup?: number; + /** + * Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * @type {boolean} + * @memberof IoK8sApiCoreV1PodSecurityContext + */ + runAsNonRoot?: boolean; + /** + * The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. + * @type {number} + * @memberof IoK8sApiCoreV1PodSecurityContext + */ + runAsUser?: number; + /** + * + * @type {IoK8sApiCoreV1SELinuxOptions} + * @memberof IoK8sApiCoreV1PodSecurityContext + */ + seLinuxOptions?: IoK8sApiCoreV1SELinuxOptions; + /** + * + * @type {IoK8sApiCoreV1SeccompProfile} + * @memberof IoK8sApiCoreV1PodSecurityContext + */ + seccompProfile?: IoK8sApiCoreV1SeccompProfile; + /** + * A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows. + * @type {Array} + * @memberof IoK8sApiCoreV1PodSecurityContext + */ + supplementalGroups?: Array; + /** + * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows. + * @type {Array} + * @memberof IoK8sApiCoreV1PodSecurityContext + */ + sysctls?: Array; + /** + * + * @type {IoK8sApiCoreV1WindowsSecurityContextOptions} + * @memberof IoK8sApiCoreV1PodSecurityContext + */ + windowsOptions?: IoK8sApiCoreV1WindowsSecurityContextOptions; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PodSecurityContext interface. + */ +export function instanceOfIoK8sApiCoreV1PodSecurityContext(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1PodSecurityContextFromJSON(json: any): IoK8sApiCoreV1PodSecurityContext { + return IoK8sApiCoreV1PodSecurityContextFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PodSecurityContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PodSecurityContext { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'fsGroup': !exists(json, 'fsGroup') ? undefined : json['fsGroup'], + 'fsGroupChangePolicy': !exists(json, 'fsGroupChangePolicy') ? undefined : json['fsGroupChangePolicy'], + 'runAsGroup': !exists(json, 'runAsGroup') ? undefined : json['runAsGroup'], + 'runAsNonRoot': !exists(json, 'runAsNonRoot') ? undefined : json['runAsNonRoot'], + 'runAsUser': !exists(json, 'runAsUser') ? undefined : json['runAsUser'], + 'seLinuxOptions': !exists(json, 'seLinuxOptions') ? undefined : IoK8sApiCoreV1SELinuxOptionsFromJSON(json['seLinuxOptions']), + 'seccompProfile': !exists(json, 'seccompProfile') ? undefined : IoK8sApiCoreV1SeccompProfileFromJSON(json['seccompProfile']), + 'supplementalGroups': !exists(json, 'supplementalGroups') ? undefined : json['supplementalGroups'], + 'sysctls': !exists(json, 'sysctls') ? undefined : ((json['sysctls'] as Array).map(IoK8sApiCoreV1SysctlFromJSON)), + 'windowsOptions': !exists(json, 'windowsOptions') ? undefined : IoK8sApiCoreV1WindowsSecurityContextOptionsFromJSON(json['windowsOptions']), + }; +} + +export function IoK8sApiCoreV1PodSecurityContextToJSON(value?: IoK8sApiCoreV1PodSecurityContext | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'fsGroup': value.fsGroup, + 'fsGroupChangePolicy': value.fsGroupChangePolicy, + 'runAsGroup': value.runAsGroup, + 'runAsNonRoot': value.runAsNonRoot, + 'runAsUser': value.runAsUser, + 'seLinuxOptions': IoK8sApiCoreV1SELinuxOptionsToJSON(value.seLinuxOptions), + 'seccompProfile': IoK8sApiCoreV1SeccompProfileToJSON(value.seccompProfile), + 'supplementalGroups': value.supplementalGroups, + 'sysctls': value.sysctls === undefined ? undefined : ((value.sysctls as Array).map(IoK8sApiCoreV1SysctlToJSON)), + 'windowsOptions': IoK8sApiCoreV1WindowsSecurityContextOptionsToJSON(value.windowsOptions), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodSpec.ts new file mode 100644 index 000000000..8b28abf0f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodSpec.ts @@ -0,0 +1,463 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1Affinity } from './IoK8sApiCoreV1Affinity'; +import { + IoK8sApiCoreV1AffinityFromJSON, + IoK8sApiCoreV1AffinityFromJSONTyped, + IoK8sApiCoreV1AffinityToJSON, +} from './IoK8sApiCoreV1Affinity'; +import type { IoK8sApiCoreV1Container } from './IoK8sApiCoreV1Container'; +import { + IoK8sApiCoreV1ContainerFromJSON, + IoK8sApiCoreV1ContainerFromJSONTyped, + IoK8sApiCoreV1ContainerToJSON, +} from './IoK8sApiCoreV1Container'; +import type { IoK8sApiCoreV1EphemeralContainer } from './IoK8sApiCoreV1EphemeralContainer'; +import { + IoK8sApiCoreV1EphemeralContainerFromJSON, + IoK8sApiCoreV1EphemeralContainerFromJSONTyped, + IoK8sApiCoreV1EphemeralContainerToJSON, +} from './IoK8sApiCoreV1EphemeralContainer'; +import type { IoK8sApiCoreV1HostAlias } from './IoK8sApiCoreV1HostAlias'; +import { + IoK8sApiCoreV1HostAliasFromJSON, + IoK8sApiCoreV1HostAliasFromJSONTyped, + IoK8sApiCoreV1HostAliasToJSON, +} from './IoK8sApiCoreV1HostAlias'; +import type { IoK8sApiCoreV1LocalObjectReference } from './IoK8sApiCoreV1LocalObjectReference'; +import { + IoK8sApiCoreV1LocalObjectReferenceFromJSON, + IoK8sApiCoreV1LocalObjectReferenceFromJSONTyped, + IoK8sApiCoreV1LocalObjectReferenceToJSON, +} from './IoK8sApiCoreV1LocalObjectReference'; +import type { IoK8sApiCoreV1PodDNSConfig } from './IoK8sApiCoreV1PodDNSConfig'; +import { + IoK8sApiCoreV1PodDNSConfigFromJSON, + IoK8sApiCoreV1PodDNSConfigFromJSONTyped, + IoK8sApiCoreV1PodDNSConfigToJSON, +} from './IoK8sApiCoreV1PodDNSConfig'; +import type { IoK8sApiCoreV1PodOS } from './IoK8sApiCoreV1PodOS'; +import { + IoK8sApiCoreV1PodOSFromJSON, + IoK8sApiCoreV1PodOSFromJSONTyped, + IoK8sApiCoreV1PodOSToJSON, +} from './IoK8sApiCoreV1PodOS'; +import type { IoK8sApiCoreV1PodReadinessGate } from './IoK8sApiCoreV1PodReadinessGate'; +import { + IoK8sApiCoreV1PodReadinessGateFromJSON, + IoK8sApiCoreV1PodReadinessGateFromJSONTyped, + IoK8sApiCoreV1PodReadinessGateToJSON, +} from './IoK8sApiCoreV1PodReadinessGate'; +import type { IoK8sApiCoreV1PodResourceClaim } from './IoK8sApiCoreV1PodResourceClaim'; +import { + IoK8sApiCoreV1PodResourceClaimFromJSON, + IoK8sApiCoreV1PodResourceClaimFromJSONTyped, + IoK8sApiCoreV1PodResourceClaimToJSON, +} from './IoK8sApiCoreV1PodResourceClaim'; +import type { IoK8sApiCoreV1PodSchedulingGate } from './IoK8sApiCoreV1PodSchedulingGate'; +import { + IoK8sApiCoreV1PodSchedulingGateFromJSON, + IoK8sApiCoreV1PodSchedulingGateFromJSONTyped, + IoK8sApiCoreV1PodSchedulingGateToJSON, +} from './IoK8sApiCoreV1PodSchedulingGate'; +import type { IoK8sApiCoreV1PodSecurityContext } from './IoK8sApiCoreV1PodSecurityContext'; +import { + IoK8sApiCoreV1PodSecurityContextFromJSON, + IoK8sApiCoreV1PodSecurityContextFromJSONTyped, + IoK8sApiCoreV1PodSecurityContextToJSON, +} from './IoK8sApiCoreV1PodSecurityContext'; +import type { IoK8sApiCoreV1Toleration } from './IoK8sApiCoreV1Toleration'; +import { + IoK8sApiCoreV1TolerationFromJSON, + IoK8sApiCoreV1TolerationFromJSONTyped, + IoK8sApiCoreV1TolerationToJSON, +} from './IoK8sApiCoreV1Toleration'; +import type { IoK8sApiCoreV1TopologySpreadConstraint } from './IoK8sApiCoreV1TopologySpreadConstraint'; +import { + IoK8sApiCoreV1TopologySpreadConstraintFromJSON, + IoK8sApiCoreV1TopologySpreadConstraintFromJSONTyped, + IoK8sApiCoreV1TopologySpreadConstraintToJSON, +} from './IoK8sApiCoreV1TopologySpreadConstraint'; +import type { IoK8sApiCoreV1Volume } from './IoK8sApiCoreV1Volume'; +import { + IoK8sApiCoreV1VolumeFromJSON, + IoK8sApiCoreV1VolumeFromJSONTyped, + IoK8sApiCoreV1VolumeToJSON, +} from './IoK8sApiCoreV1Volume'; + +/** + * PodSpec is a description of a pod. + * @export + * @interface IoK8sApiCoreV1PodSpec + */ +export interface IoK8sApiCoreV1PodSpec { + /** + * Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * @type {number} + * @memberof IoK8sApiCoreV1PodSpec + */ + activeDeadlineSeconds?: number; + /** + * + * @type {IoK8sApiCoreV1Affinity} + * @memberof IoK8sApiCoreV1PodSpec + */ + affinity?: IoK8sApiCoreV1Affinity; + /** + * AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * @type {boolean} + * @memberof IoK8sApiCoreV1PodSpec + */ + automountServiceAccountToken?: boolean; + /** + * List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * @type {Array} + * @memberof IoK8sApiCoreV1PodSpec + */ + containers: Array; + /** + * + * @type {IoK8sApiCoreV1PodDNSConfig} + * @memberof IoK8sApiCoreV1PodSpec + */ + dnsConfig?: IoK8sApiCoreV1PodDNSConfig; + /** + * Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * @type {string} + * @memberof IoK8sApiCoreV1PodSpec + */ + dnsPolicy?: string; + /** + * EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * @type {boolean} + * @memberof IoK8sApiCoreV1PodSpec + */ + enableServiceLinks?: boolean; + /** + * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. + * @type {Array} + * @memberof IoK8sApiCoreV1PodSpec + */ + ephemeralContainers?: Array; + /** + * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * @type {Array} + * @memberof IoK8sApiCoreV1PodSpec + */ + hostAliases?: Array; + /** + * Use the host's ipc namespace. Optional: Default to false. + * @type {boolean} + * @memberof IoK8sApiCoreV1PodSpec + */ + hostIPC?: boolean; + /** + * Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * @type {boolean} + * @memberof IoK8sApiCoreV1PodSpec + */ + hostNetwork?: boolean; + /** + * Use the host's pid namespace. Optional: Default to false. + * @type {boolean} + * @memberof IoK8sApiCoreV1PodSpec + */ + hostPID?: boolean; + /** + * Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. + * @type {boolean} + * @memberof IoK8sApiCoreV1PodSpec + */ + hostUsers?: boolean; + /** + * Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * @type {string} + * @memberof IoK8sApiCoreV1PodSpec + */ + hostname?: string; + /** + * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * @type {Array} + * @memberof IoK8sApiCoreV1PodSpec + */ + imagePullSecrets?: Array; + /** + * List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * @type {Array} + * @memberof IoK8sApiCoreV1PodSpec + */ + initContainers?: Array; + /** + * NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * @type {string} + * @memberof IoK8sApiCoreV1PodSpec + */ + nodeName?: string; + /** + * NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1PodSpec + */ + nodeSelector?: { [key: string]: string; }; + /** + * + * @type {IoK8sApiCoreV1PodOS} + * @memberof IoK8sApiCoreV1PodSpec + */ + os?: IoK8sApiCoreV1PodOS; + /** + * Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1PodSpec + */ + overhead?: { [key: string]: string; }; + /** + * PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. + * @type {string} + * @memberof IoK8sApiCoreV1PodSpec + */ + preemptionPolicy?: string; + /** + * The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * @type {number} + * @memberof IoK8sApiCoreV1PodSpec + */ + priority?: number; + /** + * If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * @type {string} + * @memberof IoK8sApiCoreV1PodSpec + */ + priorityClassName?: string; + /** + * If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates + * @type {Array} + * @memberof IoK8sApiCoreV1PodSpec + */ + readinessGates?: Array; + /** + * ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. + * + * This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. + * + * This field is immutable. + * @type {Array} + * @memberof IoK8sApiCoreV1PodSpec + */ + resourceClaims?: Array; + /** + * Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * @type {string} + * @memberof IoK8sApiCoreV1PodSpec + */ + restartPolicy?: string; + /** + * RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class + * @type {string} + * @memberof IoK8sApiCoreV1PodSpec + */ + runtimeClassName?: string; + /** + * If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * @type {string} + * @memberof IoK8sApiCoreV1PodSpec + */ + schedulerName?: string; + /** + * SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. + * + * SchedulingGates can only be set at pod creation time, and be removed only afterwards. + * + * This is a beta feature enabled by the PodSchedulingReadiness feature gate. + * @type {Array} + * @memberof IoK8sApiCoreV1PodSpec + */ + schedulingGates?: Array; + /** + * + * @type {IoK8sApiCoreV1PodSecurityContext} + * @memberof IoK8sApiCoreV1PodSpec + */ + securityContext?: IoK8sApiCoreV1PodSecurityContext; + /** + * DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * @type {string} + * @memberof IoK8sApiCoreV1PodSpec + */ + serviceAccount?: string; + /** + * ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * @type {string} + * @memberof IoK8sApiCoreV1PodSpec + */ + serviceAccountName?: string; + /** + * If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false. + * @type {boolean} + * @memberof IoK8sApiCoreV1PodSpec + */ + setHostnameAsFQDN?: boolean; + /** + * Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * @type {boolean} + * @memberof IoK8sApiCoreV1PodSpec + */ + shareProcessNamespace?: boolean; + /** + * If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * @type {string} + * @memberof IoK8sApiCoreV1PodSpec + */ + subdomain?: string; + /** + * Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * @type {number} + * @memberof IoK8sApiCoreV1PodSpec + */ + terminationGracePeriodSeconds?: number; + /** + * If specified, the pod's tolerations. + * @type {Array} + * @memberof IoK8sApiCoreV1PodSpec + */ + tolerations?: Array; + /** + * TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. + * @type {Array} + * @memberof IoK8sApiCoreV1PodSpec + */ + topologySpreadConstraints?: Array; + /** + * List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * @type {Array} + * @memberof IoK8sApiCoreV1PodSpec + */ + volumes?: Array; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PodSpec interface. + */ +export function instanceOfIoK8sApiCoreV1PodSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "containers" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1PodSpecFromJSON(json: any): IoK8sApiCoreV1PodSpec { + return IoK8sApiCoreV1PodSpecFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PodSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PodSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'activeDeadlineSeconds': !exists(json, 'activeDeadlineSeconds') ? undefined : json['activeDeadlineSeconds'], + 'affinity': !exists(json, 'affinity') ? undefined : IoK8sApiCoreV1AffinityFromJSON(json['affinity']), + 'automountServiceAccountToken': !exists(json, 'automountServiceAccountToken') ? undefined : json['automountServiceAccountToken'], + 'containers': ((json['containers'] as Array).map(IoK8sApiCoreV1ContainerFromJSON)), + 'dnsConfig': !exists(json, 'dnsConfig') ? undefined : IoK8sApiCoreV1PodDNSConfigFromJSON(json['dnsConfig']), + 'dnsPolicy': !exists(json, 'dnsPolicy') ? undefined : json['dnsPolicy'], + 'enableServiceLinks': !exists(json, 'enableServiceLinks') ? undefined : json['enableServiceLinks'], + 'ephemeralContainers': !exists(json, 'ephemeralContainers') ? undefined : ((json['ephemeralContainers'] as Array).map(IoK8sApiCoreV1EphemeralContainerFromJSON)), + 'hostAliases': !exists(json, 'hostAliases') ? undefined : ((json['hostAliases'] as Array).map(IoK8sApiCoreV1HostAliasFromJSON)), + 'hostIPC': !exists(json, 'hostIPC') ? undefined : json['hostIPC'], + 'hostNetwork': !exists(json, 'hostNetwork') ? undefined : json['hostNetwork'], + 'hostPID': !exists(json, 'hostPID') ? undefined : json['hostPID'], + 'hostUsers': !exists(json, 'hostUsers') ? undefined : json['hostUsers'], + 'hostname': !exists(json, 'hostname') ? undefined : json['hostname'], + 'imagePullSecrets': !exists(json, 'imagePullSecrets') ? undefined : ((json['imagePullSecrets'] as Array).map(IoK8sApiCoreV1LocalObjectReferenceFromJSON)), + 'initContainers': !exists(json, 'initContainers') ? undefined : ((json['initContainers'] as Array).map(IoK8sApiCoreV1ContainerFromJSON)), + 'nodeName': !exists(json, 'nodeName') ? undefined : json['nodeName'], + 'nodeSelector': !exists(json, 'nodeSelector') ? undefined : json['nodeSelector'], + 'os': !exists(json, 'os') ? undefined : IoK8sApiCoreV1PodOSFromJSON(json['os']), + 'overhead': !exists(json, 'overhead') ? undefined : json['overhead'], + 'preemptionPolicy': !exists(json, 'preemptionPolicy') ? undefined : json['preemptionPolicy'], + 'priority': !exists(json, 'priority') ? undefined : json['priority'], + 'priorityClassName': !exists(json, 'priorityClassName') ? undefined : json['priorityClassName'], + 'readinessGates': !exists(json, 'readinessGates') ? undefined : ((json['readinessGates'] as Array).map(IoK8sApiCoreV1PodReadinessGateFromJSON)), + 'resourceClaims': !exists(json, 'resourceClaims') ? undefined : ((json['resourceClaims'] as Array).map(IoK8sApiCoreV1PodResourceClaimFromJSON)), + 'restartPolicy': !exists(json, 'restartPolicy') ? undefined : json['restartPolicy'], + 'runtimeClassName': !exists(json, 'runtimeClassName') ? undefined : json['runtimeClassName'], + 'schedulerName': !exists(json, 'schedulerName') ? undefined : json['schedulerName'], + 'schedulingGates': !exists(json, 'schedulingGates') ? undefined : ((json['schedulingGates'] as Array).map(IoK8sApiCoreV1PodSchedulingGateFromJSON)), + 'securityContext': !exists(json, 'securityContext') ? undefined : IoK8sApiCoreV1PodSecurityContextFromJSON(json['securityContext']), + 'serviceAccount': !exists(json, 'serviceAccount') ? undefined : json['serviceAccount'], + 'serviceAccountName': !exists(json, 'serviceAccountName') ? undefined : json['serviceAccountName'], + 'setHostnameAsFQDN': !exists(json, 'setHostnameAsFQDN') ? undefined : json['setHostnameAsFQDN'], + 'shareProcessNamespace': !exists(json, 'shareProcessNamespace') ? undefined : json['shareProcessNamespace'], + 'subdomain': !exists(json, 'subdomain') ? undefined : json['subdomain'], + 'terminationGracePeriodSeconds': !exists(json, 'terminationGracePeriodSeconds') ? undefined : json['terminationGracePeriodSeconds'], + 'tolerations': !exists(json, 'tolerations') ? undefined : ((json['tolerations'] as Array).map(IoK8sApiCoreV1TolerationFromJSON)), + 'topologySpreadConstraints': !exists(json, 'topologySpreadConstraints') ? undefined : ((json['topologySpreadConstraints'] as Array).map(IoK8sApiCoreV1TopologySpreadConstraintFromJSON)), + 'volumes': !exists(json, 'volumes') ? undefined : ((json['volumes'] as Array).map(IoK8sApiCoreV1VolumeFromJSON)), + }; +} + +export function IoK8sApiCoreV1PodSpecToJSON(value?: IoK8sApiCoreV1PodSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'activeDeadlineSeconds': value.activeDeadlineSeconds, + 'affinity': IoK8sApiCoreV1AffinityToJSON(value.affinity), + 'automountServiceAccountToken': value.automountServiceAccountToken, + 'containers': ((value.containers as Array).map(IoK8sApiCoreV1ContainerToJSON)), + 'dnsConfig': IoK8sApiCoreV1PodDNSConfigToJSON(value.dnsConfig), + 'dnsPolicy': value.dnsPolicy, + 'enableServiceLinks': value.enableServiceLinks, + 'ephemeralContainers': value.ephemeralContainers === undefined ? undefined : ((value.ephemeralContainers as Array).map(IoK8sApiCoreV1EphemeralContainerToJSON)), + 'hostAliases': value.hostAliases === undefined ? undefined : ((value.hostAliases as Array).map(IoK8sApiCoreV1HostAliasToJSON)), + 'hostIPC': value.hostIPC, + 'hostNetwork': value.hostNetwork, + 'hostPID': value.hostPID, + 'hostUsers': value.hostUsers, + 'hostname': value.hostname, + 'imagePullSecrets': value.imagePullSecrets === undefined ? undefined : ((value.imagePullSecrets as Array).map(IoK8sApiCoreV1LocalObjectReferenceToJSON)), + 'initContainers': value.initContainers === undefined ? undefined : ((value.initContainers as Array).map(IoK8sApiCoreV1ContainerToJSON)), + 'nodeName': value.nodeName, + 'nodeSelector': value.nodeSelector, + 'os': IoK8sApiCoreV1PodOSToJSON(value.os), + 'overhead': value.overhead, + 'preemptionPolicy': value.preemptionPolicy, + 'priority': value.priority, + 'priorityClassName': value.priorityClassName, + 'readinessGates': value.readinessGates === undefined ? undefined : ((value.readinessGates as Array).map(IoK8sApiCoreV1PodReadinessGateToJSON)), + 'resourceClaims': value.resourceClaims === undefined ? undefined : ((value.resourceClaims as Array).map(IoK8sApiCoreV1PodResourceClaimToJSON)), + 'restartPolicy': value.restartPolicy, + 'runtimeClassName': value.runtimeClassName, + 'schedulerName': value.schedulerName, + 'schedulingGates': value.schedulingGates === undefined ? undefined : ((value.schedulingGates as Array).map(IoK8sApiCoreV1PodSchedulingGateToJSON)), + 'securityContext': IoK8sApiCoreV1PodSecurityContextToJSON(value.securityContext), + 'serviceAccount': value.serviceAccount, + 'serviceAccountName': value.serviceAccountName, + 'setHostnameAsFQDN': value.setHostnameAsFQDN, + 'shareProcessNamespace': value.shareProcessNamespace, + 'subdomain': value.subdomain, + 'terminationGracePeriodSeconds': value.terminationGracePeriodSeconds, + 'tolerations': value.tolerations === undefined ? undefined : ((value.tolerations as Array).map(IoK8sApiCoreV1TolerationToJSON)), + 'topologySpreadConstraints': value.topologySpreadConstraints === undefined ? undefined : ((value.topologySpreadConstraints as Array).map(IoK8sApiCoreV1TopologySpreadConstraintToJSON)), + 'volumes': value.volumes === undefined ? undefined : ((value.volumes as Array).map(IoK8sApiCoreV1VolumeToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodStatus.ts new file mode 100644 index 000000000..d8a6428bd --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodStatus.ts @@ -0,0 +1,220 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ContainerStatus } from './IoK8sApiCoreV1ContainerStatus'; +import { + IoK8sApiCoreV1ContainerStatusFromJSON, + IoK8sApiCoreV1ContainerStatusFromJSONTyped, + IoK8sApiCoreV1ContainerStatusToJSON, +} from './IoK8sApiCoreV1ContainerStatus'; +import type { IoK8sApiCoreV1HostIP } from './IoK8sApiCoreV1HostIP'; +import { + IoK8sApiCoreV1HostIPFromJSON, + IoK8sApiCoreV1HostIPFromJSONTyped, + IoK8sApiCoreV1HostIPToJSON, +} from './IoK8sApiCoreV1HostIP'; +import type { IoK8sApiCoreV1PodCondition } from './IoK8sApiCoreV1PodCondition'; +import { + IoK8sApiCoreV1PodConditionFromJSON, + IoK8sApiCoreV1PodConditionFromJSONTyped, + IoK8sApiCoreV1PodConditionToJSON, +} from './IoK8sApiCoreV1PodCondition'; +import type { IoK8sApiCoreV1PodIP } from './IoK8sApiCoreV1PodIP'; +import { + IoK8sApiCoreV1PodIPFromJSON, + IoK8sApiCoreV1PodIPFromJSONTyped, + IoK8sApiCoreV1PodIPToJSON, +} from './IoK8sApiCoreV1PodIP'; +import type { IoK8sApiCoreV1PodResourceClaimStatus } from './IoK8sApiCoreV1PodResourceClaimStatus'; +import { + IoK8sApiCoreV1PodResourceClaimStatusFromJSON, + IoK8sApiCoreV1PodResourceClaimStatusFromJSONTyped, + IoK8sApiCoreV1PodResourceClaimStatusToJSON, +} from './IoK8sApiCoreV1PodResourceClaimStatus'; + +/** + * PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane. + * @export + * @interface IoK8sApiCoreV1PodStatus + */ +export interface IoK8sApiCoreV1PodStatus { + /** + * Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + * @type {Array} + * @memberof IoK8sApiCoreV1PodStatus + */ + conditions?: Array; + /** + * The list has one entry per container in the manifest. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status + * @type {Array} + * @memberof IoK8sApiCoreV1PodStatus + */ + containerStatuses?: Array; + /** + * Status for any ephemeral containers that have run in this pod. + * @type {Array} + * @memberof IoK8sApiCoreV1PodStatus + */ + ephemeralContainerStatuses?: Array; + /** + * hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod + * @type {string} + * @memberof IoK8sApiCoreV1PodStatus + */ + hostIP?: string; + /** + * hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod. + * @type {Array} + * @memberof IoK8sApiCoreV1PodStatus + */ + hostIPs?: Array; + /** + * The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status + * @type {Array} + * @memberof IoK8sApiCoreV1PodStatus + */ + initContainerStatuses?: Array; + /** + * A human readable message indicating details about why the pod is in this condition. + * @type {string} + * @memberof IoK8sApiCoreV1PodStatus + */ + message?: string; + /** + * nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled. + * @type {string} + * @memberof IoK8sApiCoreV1PodStatus + */ + nominatedNodeName?: string; + /** + * The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values: + * + * Pending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. + * + * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase + * @type {string} + * @memberof IoK8sApiCoreV1PodStatus + */ + phase?: string; + /** + * podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. + * @type {string} + * @memberof IoK8sApiCoreV1PodStatus + */ + podIP?: string; + /** + * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet. + * @type {Array} + * @memberof IoK8sApiCoreV1PodStatus + */ + podIPs?: Array; + /** + * The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes + * @type {string} + * @memberof IoK8sApiCoreV1PodStatus + */ + qosClass?: string; + /** + * A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted' + * @type {string} + * @memberof IoK8sApiCoreV1PodStatus + */ + reason?: string; + /** + * Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to "Proposed" + * @type {string} + * @memberof IoK8sApiCoreV1PodStatus + */ + resize?: string; + /** + * Status of resource claims. + * @type {Array} + * @memberof IoK8sApiCoreV1PodStatus + */ + resourceClaimStatuses?: Array; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiCoreV1PodStatus + */ + startTime?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PodStatus interface. + */ +export function instanceOfIoK8sApiCoreV1PodStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1PodStatusFromJSON(json: any): IoK8sApiCoreV1PodStatus { + return IoK8sApiCoreV1PodStatusFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PodStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PodStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(IoK8sApiCoreV1PodConditionFromJSON)), + 'containerStatuses': !exists(json, 'containerStatuses') ? undefined : ((json['containerStatuses'] as Array).map(IoK8sApiCoreV1ContainerStatusFromJSON)), + 'ephemeralContainerStatuses': !exists(json, 'ephemeralContainerStatuses') ? undefined : ((json['ephemeralContainerStatuses'] as Array).map(IoK8sApiCoreV1ContainerStatusFromJSON)), + 'hostIP': !exists(json, 'hostIP') ? undefined : json['hostIP'], + 'hostIPs': !exists(json, 'hostIPs') ? undefined : ((json['hostIPs'] as Array).map(IoK8sApiCoreV1HostIPFromJSON)), + 'initContainerStatuses': !exists(json, 'initContainerStatuses') ? undefined : ((json['initContainerStatuses'] as Array).map(IoK8sApiCoreV1ContainerStatusFromJSON)), + 'message': !exists(json, 'message') ? undefined : json['message'], + 'nominatedNodeName': !exists(json, 'nominatedNodeName') ? undefined : json['nominatedNodeName'], + 'phase': !exists(json, 'phase') ? undefined : json['phase'], + 'podIP': !exists(json, 'podIP') ? undefined : json['podIP'], + 'podIPs': !exists(json, 'podIPs') ? undefined : ((json['podIPs'] as Array).map(IoK8sApiCoreV1PodIPFromJSON)), + 'qosClass': !exists(json, 'qosClass') ? undefined : json['qosClass'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'resize': !exists(json, 'resize') ? undefined : json['resize'], + 'resourceClaimStatuses': !exists(json, 'resourceClaimStatuses') ? undefined : ((json['resourceClaimStatuses'] as Array).map(IoK8sApiCoreV1PodResourceClaimStatusFromJSON)), + 'startTime': !exists(json, 'startTime') ? undefined : json['startTime'], + }; +} + +export function IoK8sApiCoreV1PodStatusToJSON(value?: IoK8sApiCoreV1PodStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(IoK8sApiCoreV1PodConditionToJSON)), + 'containerStatuses': value.containerStatuses === undefined ? undefined : ((value.containerStatuses as Array).map(IoK8sApiCoreV1ContainerStatusToJSON)), + 'ephemeralContainerStatuses': value.ephemeralContainerStatuses === undefined ? undefined : ((value.ephemeralContainerStatuses as Array).map(IoK8sApiCoreV1ContainerStatusToJSON)), + 'hostIP': value.hostIP, + 'hostIPs': value.hostIPs === undefined ? undefined : ((value.hostIPs as Array).map(IoK8sApiCoreV1HostIPToJSON)), + 'initContainerStatuses': value.initContainerStatuses === undefined ? undefined : ((value.initContainerStatuses as Array).map(IoK8sApiCoreV1ContainerStatusToJSON)), + 'message': value.message, + 'nominatedNodeName': value.nominatedNodeName, + 'phase': value.phase, + 'podIP': value.podIP, + 'podIPs': value.podIPs === undefined ? undefined : ((value.podIPs as Array).map(IoK8sApiCoreV1PodIPToJSON)), + 'qosClass': value.qosClass, + 'reason': value.reason, + 'resize': value.resize, + 'resourceClaimStatuses': value.resourceClaimStatuses === undefined ? undefined : ((value.resourceClaimStatuses as Array).map(IoK8sApiCoreV1PodResourceClaimStatusToJSON)), + 'startTime': value.startTime === undefined ? undefined : (value.startTime), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodTemplate.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodTemplate.ts new file mode 100644 index 000000000..9308b80af --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodTemplate.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1PodTemplateSpec } from './IoK8sApiCoreV1PodTemplateSpec'; +import { + IoK8sApiCoreV1PodTemplateSpecFromJSON, + IoK8sApiCoreV1PodTemplateSpecFromJSONTyped, + IoK8sApiCoreV1PodTemplateSpecToJSON, +} from './IoK8sApiCoreV1PodTemplateSpec'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * PodTemplate describes a template for creating copies of a predefined pod. + * @export + * @interface IoK8sApiCoreV1PodTemplate + */ +export interface IoK8sApiCoreV1PodTemplate { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1PodTemplate + */ + 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 + * @type {string} + * @memberof IoK8sApiCoreV1PodTemplate + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiCoreV1PodTemplate + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiCoreV1PodTemplateSpec} + * @memberof IoK8sApiCoreV1PodTemplate + */ + template?: IoK8sApiCoreV1PodTemplateSpec; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PodTemplate interface. + */ +export function instanceOfIoK8sApiCoreV1PodTemplate(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1PodTemplateFromJSON(json: any): IoK8sApiCoreV1PodTemplate { + return IoK8sApiCoreV1PodTemplateFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PodTemplateFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PodTemplate { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'template': !exists(json, 'template') ? undefined : IoK8sApiCoreV1PodTemplateSpecFromJSON(json['template']), + }; +} + +export function IoK8sApiCoreV1PodTemplateToJSON(value?: IoK8sApiCoreV1PodTemplate | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'template': IoK8sApiCoreV1PodTemplateSpecToJSON(value.template), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodTemplateList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodTemplateList.ts new file mode 100644 index 000000000..20605be27 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodTemplateList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1PodTemplate } from './IoK8sApiCoreV1PodTemplate'; +import { + IoK8sApiCoreV1PodTemplateFromJSON, + IoK8sApiCoreV1PodTemplateFromJSONTyped, + IoK8sApiCoreV1PodTemplateToJSON, +} from './IoK8sApiCoreV1PodTemplate'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * PodTemplateList is a list of PodTemplates. + * @export + * @interface IoK8sApiCoreV1PodTemplateList + */ +export interface IoK8sApiCoreV1PodTemplateList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1PodTemplateList + */ + apiVersion?: string; + /** + * List of pod templates + * @type {Array} + * @memberof IoK8sApiCoreV1PodTemplateList + */ + 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 + * @type {string} + * @memberof IoK8sApiCoreV1PodTemplateList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiCoreV1PodTemplateList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PodTemplateList interface. + */ +export function instanceOfIoK8sApiCoreV1PodTemplateList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1PodTemplateListFromJSON(json: any): IoK8sApiCoreV1PodTemplateList { + return IoK8sApiCoreV1PodTemplateListFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PodTemplateListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PodTemplateList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiCoreV1PodTemplateFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiCoreV1PodTemplateListToJSON(value?: IoK8sApiCoreV1PodTemplateList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiCoreV1PodTemplateToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodTemplateSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodTemplateSpec.ts new file mode 100644 index 000000000..b79e4b925 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PodTemplateSpec.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1PodSpec } from './IoK8sApiCoreV1PodSpec'; +import { + IoK8sApiCoreV1PodSpecFromJSON, + IoK8sApiCoreV1PodSpecFromJSONTyped, + IoK8sApiCoreV1PodSpecToJSON, +} from './IoK8sApiCoreV1PodSpec'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * PodTemplateSpec describes the data a pod should have when created from a template + * @export + * @interface IoK8sApiCoreV1PodTemplateSpec + */ +export interface IoK8sApiCoreV1PodTemplateSpec { + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiCoreV1PodTemplateSpec + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiCoreV1PodSpec} + * @memberof IoK8sApiCoreV1PodTemplateSpec + */ + spec?: IoK8sApiCoreV1PodSpec; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PodTemplateSpec interface. + */ +export function instanceOfIoK8sApiCoreV1PodTemplateSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1PodTemplateSpecFromJSON(json: any): IoK8sApiCoreV1PodTemplateSpec { + return IoK8sApiCoreV1PodTemplateSpecFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PodTemplateSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PodTemplateSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiCoreV1PodSpecFromJSON(json['spec']), + }; +} + +export function IoK8sApiCoreV1PodTemplateSpecToJSON(value?: IoK8sApiCoreV1PodTemplateSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiCoreV1PodSpecToJSON(value.spec), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PortStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PortStatus.ts new file mode 100644 index 000000000..3944d0b98 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PortStatus.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface IoK8sApiCoreV1PortStatus + */ +export interface IoK8sApiCoreV1PortStatus { + /** + * Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use + * CamelCase names + * - cloud provider specific error values must have names that comply with the + * format foo.example.com/CamelCase. + * @type {string} + * @memberof IoK8sApiCoreV1PortStatus + */ + error?: string; + /** + * Port is the port number of the service port of which status is recorded here + * @type {number} + * @memberof IoK8sApiCoreV1PortStatus + */ + port: number; + /** + * Protocol is the protocol of the service port of which status is recorded here The supported values are: "TCP", "UDP", "SCTP" + * @type {string} + * @memberof IoK8sApiCoreV1PortStatus + */ + protocol: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PortStatus interface. + */ +export function instanceOfIoK8sApiCoreV1PortStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "port" in value; + isInstance = isInstance && "protocol" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1PortStatusFromJSON(json: any): IoK8sApiCoreV1PortStatus { + return IoK8sApiCoreV1PortStatusFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PortStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PortStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'error': !exists(json, 'error') ? undefined : json['error'], + 'port': json['port'], + 'protocol': json['protocol'], + }; +} + +export function IoK8sApiCoreV1PortStatusToJSON(value?: IoK8sApiCoreV1PortStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'error': value.error, + 'port': value.port, + 'protocol': value.protocol, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PortworxVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PortworxVolumeSource.ts new file mode 100644 index 000000000..eb2d238f6 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PortworxVolumeSource.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * PortworxVolumeSource represents a Portworx volume resource. + * @export + * @interface IoK8sApiCoreV1PortworxVolumeSource + */ +export interface IoK8sApiCoreV1PortworxVolumeSource { + /** + * fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * @type {string} + * @memberof IoK8sApiCoreV1PortworxVolumeSource + */ + fsType?: string; + /** + * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * @type {boolean} + * @memberof IoK8sApiCoreV1PortworxVolumeSource + */ + readOnly?: boolean; + /** + * volumeID uniquely identifies a Portworx volume + * @type {string} + * @memberof IoK8sApiCoreV1PortworxVolumeSource + */ + volumeID: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PortworxVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1PortworxVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "volumeID" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1PortworxVolumeSourceFromJSON(json: any): IoK8sApiCoreV1PortworxVolumeSource { + return IoK8sApiCoreV1PortworxVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PortworxVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PortworxVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'fsType': !exists(json, 'fsType') ? undefined : json['fsType'], + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + 'volumeID': json['volumeID'], + }; +} + +export function IoK8sApiCoreV1PortworxVolumeSourceToJSON(value?: IoK8sApiCoreV1PortworxVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'fsType': value.fsType, + 'readOnly': value.readOnly, + 'volumeID': value.volumeID, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PreferredSchedulingTerm.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PreferredSchedulingTerm.ts new file mode 100644 index 000000000..84cb7d6bc --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1PreferredSchedulingTerm.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1NodeSelectorTerm } from './IoK8sApiCoreV1NodeSelectorTerm'; +import { + IoK8sApiCoreV1NodeSelectorTermFromJSON, + IoK8sApiCoreV1NodeSelectorTermFromJSONTyped, + IoK8sApiCoreV1NodeSelectorTermToJSON, +} from './IoK8sApiCoreV1NodeSelectorTerm'; + +/** + * An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). + * @export + * @interface IoK8sApiCoreV1PreferredSchedulingTerm + */ +export interface IoK8sApiCoreV1PreferredSchedulingTerm { + /** + * + * @type {IoK8sApiCoreV1NodeSelectorTerm} + * @memberof IoK8sApiCoreV1PreferredSchedulingTerm + */ + preference: IoK8sApiCoreV1NodeSelectorTerm; + /** + * Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + * @type {number} + * @memberof IoK8sApiCoreV1PreferredSchedulingTerm + */ + weight: number; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1PreferredSchedulingTerm interface. + */ +export function instanceOfIoK8sApiCoreV1PreferredSchedulingTerm(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "preference" in value; + isInstance = isInstance && "weight" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1PreferredSchedulingTermFromJSON(json: any): IoK8sApiCoreV1PreferredSchedulingTerm { + return IoK8sApiCoreV1PreferredSchedulingTermFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1PreferredSchedulingTermFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1PreferredSchedulingTerm { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'preference': IoK8sApiCoreV1NodeSelectorTermFromJSON(json['preference']), + 'weight': json['weight'], + }; +} + +export function IoK8sApiCoreV1PreferredSchedulingTermToJSON(value?: IoK8sApiCoreV1PreferredSchedulingTerm | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'preference': IoK8sApiCoreV1NodeSelectorTermToJSON(value.preference), + 'weight': value.weight, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Probe.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Probe.ts new file mode 100644 index 000000000..787509080 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Probe.ts @@ -0,0 +1,162 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ExecAction } from './IoK8sApiCoreV1ExecAction'; +import { + IoK8sApiCoreV1ExecActionFromJSON, + IoK8sApiCoreV1ExecActionFromJSONTyped, + IoK8sApiCoreV1ExecActionToJSON, +} from './IoK8sApiCoreV1ExecAction'; +import type { IoK8sApiCoreV1GRPCAction } from './IoK8sApiCoreV1GRPCAction'; +import { + IoK8sApiCoreV1GRPCActionFromJSON, + IoK8sApiCoreV1GRPCActionFromJSONTyped, + IoK8sApiCoreV1GRPCActionToJSON, +} from './IoK8sApiCoreV1GRPCAction'; +import type { IoK8sApiCoreV1HTTPGetAction } from './IoK8sApiCoreV1HTTPGetAction'; +import { + IoK8sApiCoreV1HTTPGetActionFromJSON, + IoK8sApiCoreV1HTTPGetActionFromJSONTyped, + IoK8sApiCoreV1HTTPGetActionToJSON, +} from './IoK8sApiCoreV1HTTPGetAction'; +import type { IoK8sApiCoreV1TCPSocketAction } from './IoK8sApiCoreV1TCPSocketAction'; +import { + IoK8sApiCoreV1TCPSocketActionFromJSON, + IoK8sApiCoreV1TCPSocketActionFromJSONTyped, + IoK8sApiCoreV1TCPSocketActionToJSON, +} from './IoK8sApiCoreV1TCPSocketAction'; + +/** + * Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. + * @export + * @interface IoK8sApiCoreV1Probe + */ +export interface IoK8sApiCoreV1Probe { + /** + * + * @type {IoK8sApiCoreV1ExecAction} + * @memberof IoK8sApiCoreV1Probe + */ + exec?: IoK8sApiCoreV1ExecAction; + /** + * Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * @type {number} + * @memberof IoK8sApiCoreV1Probe + */ + failureThreshold?: number; + /** + * + * @type {IoK8sApiCoreV1GRPCAction} + * @memberof IoK8sApiCoreV1Probe + */ + grpc?: IoK8sApiCoreV1GRPCAction; + /** + * + * @type {IoK8sApiCoreV1HTTPGetAction} + * @memberof IoK8sApiCoreV1Probe + */ + httpGet?: IoK8sApiCoreV1HTTPGetAction; + /** + * Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * @type {number} + * @memberof IoK8sApiCoreV1Probe + */ + initialDelaySeconds?: number; + /** + * How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * @type {number} + * @memberof IoK8sApiCoreV1Probe + */ + periodSeconds?: number; + /** + * Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * @type {number} + * @memberof IoK8sApiCoreV1Probe + */ + successThreshold?: number; + /** + * + * @type {IoK8sApiCoreV1TCPSocketAction} + * @memberof IoK8sApiCoreV1Probe + */ + tcpSocket?: IoK8sApiCoreV1TCPSocketAction; + /** + * Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. + * @type {number} + * @memberof IoK8sApiCoreV1Probe + */ + terminationGracePeriodSeconds?: number; + /** + * Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * @type {number} + * @memberof IoK8sApiCoreV1Probe + */ + timeoutSeconds?: number; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1Probe interface. + */ +export function instanceOfIoK8sApiCoreV1Probe(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1ProbeFromJSON(json: any): IoK8sApiCoreV1Probe { + return IoK8sApiCoreV1ProbeFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ProbeFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1Probe { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'exec': !exists(json, 'exec') ? undefined : IoK8sApiCoreV1ExecActionFromJSON(json['exec']), + 'failureThreshold': !exists(json, 'failureThreshold') ? undefined : json['failureThreshold'], + 'grpc': !exists(json, 'grpc') ? undefined : IoK8sApiCoreV1GRPCActionFromJSON(json['grpc']), + 'httpGet': !exists(json, 'httpGet') ? undefined : IoK8sApiCoreV1HTTPGetActionFromJSON(json['httpGet']), + 'initialDelaySeconds': !exists(json, 'initialDelaySeconds') ? undefined : json['initialDelaySeconds'], + 'periodSeconds': !exists(json, 'periodSeconds') ? undefined : json['periodSeconds'], + 'successThreshold': !exists(json, 'successThreshold') ? undefined : json['successThreshold'], + 'tcpSocket': !exists(json, 'tcpSocket') ? undefined : IoK8sApiCoreV1TCPSocketActionFromJSON(json['tcpSocket']), + 'terminationGracePeriodSeconds': !exists(json, 'terminationGracePeriodSeconds') ? undefined : json['terminationGracePeriodSeconds'], + 'timeoutSeconds': !exists(json, 'timeoutSeconds') ? undefined : json['timeoutSeconds'], + }; +} + +export function IoK8sApiCoreV1ProbeToJSON(value?: IoK8sApiCoreV1Probe | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'exec': IoK8sApiCoreV1ExecActionToJSON(value.exec), + 'failureThreshold': value.failureThreshold, + 'grpc': IoK8sApiCoreV1GRPCActionToJSON(value.grpc), + 'httpGet': IoK8sApiCoreV1HTTPGetActionToJSON(value.httpGet), + 'initialDelaySeconds': value.initialDelaySeconds, + 'periodSeconds': value.periodSeconds, + 'successThreshold': value.successThreshold, + 'tcpSocket': IoK8sApiCoreV1TCPSocketActionToJSON(value.tcpSocket), + 'terminationGracePeriodSeconds': value.terminationGracePeriodSeconds, + 'timeoutSeconds': value.timeoutSeconds, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ProjectedVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ProjectedVolumeSource.ts new file mode 100644 index 000000000..f8f57b359 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ProjectedVolumeSource.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1VolumeProjection } from './IoK8sApiCoreV1VolumeProjection'; +import { + IoK8sApiCoreV1VolumeProjectionFromJSON, + IoK8sApiCoreV1VolumeProjectionFromJSONTyped, + IoK8sApiCoreV1VolumeProjectionToJSON, +} from './IoK8sApiCoreV1VolumeProjection'; + +/** + * Represents a projected volume source + * @export + * @interface IoK8sApiCoreV1ProjectedVolumeSource + */ +export interface IoK8sApiCoreV1ProjectedVolumeSource { + /** + * defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + * @type {number} + * @memberof IoK8sApiCoreV1ProjectedVolumeSource + */ + defaultMode?: number; + /** + * sources is the list of volume projections + * @type {Array} + * @memberof IoK8sApiCoreV1ProjectedVolumeSource + */ + sources?: Array; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ProjectedVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1ProjectedVolumeSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1ProjectedVolumeSourceFromJSON(json: any): IoK8sApiCoreV1ProjectedVolumeSource { + return IoK8sApiCoreV1ProjectedVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ProjectedVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ProjectedVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'defaultMode': !exists(json, 'defaultMode') ? undefined : json['defaultMode'], + 'sources': !exists(json, 'sources') ? undefined : ((json['sources'] as Array).map(IoK8sApiCoreV1VolumeProjectionFromJSON)), + }; +} + +export function IoK8sApiCoreV1ProjectedVolumeSourceToJSON(value?: IoK8sApiCoreV1ProjectedVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'defaultMode': value.defaultMode, + 'sources': value.sources === undefined ? undefined : ((value.sources as Array).map(IoK8sApiCoreV1VolumeProjectionToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1QuobyteVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1QuobyteVolumeSource.ts new file mode 100644 index 000000000..e9b3e9ada --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1QuobyteVolumeSource.ts @@ -0,0 +1,107 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling. + * @export + * @interface IoK8sApiCoreV1QuobyteVolumeSource + */ +export interface IoK8sApiCoreV1QuobyteVolumeSource { + /** + * group to map volume access to Default is no group + * @type {string} + * @memberof IoK8sApiCoreV1QuobyteVolumeSource + */ + group?: string; + /** + * readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * @type {boolean} + * @memberof IoK8sApiCoreV1QuobyteVolumeSource + */ + readOnly?: boolean; + /** + * registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * @type {string} + * @memberof IoK8sApiCoreV1QuobyteVolumeSource + */ + registry: string; + /** + * tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * @type {string} + * @memberof IoK8sApiCoreV1QuobyteVolumeSource + */ + tenant?: string; + /** + * user to map volume access to Defaults to serivceaccount user + * @type {string} + * @memberof IoK8sApiCoreV1QuobyteVolumeSource + */ + user?: string; + /** + * volume is a string that references an already created Quobyte volume by name. + * @type {string} + * @memberof IoK8sApiCoreV1QuobyteVolumeSource + */ + volume: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1QuobyteVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1QuobyteVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "registry" in value; + isInstance = isInstance && "volume" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1QuobyteVolumeSourceFromJSON(json: any): IoK8sApiCoreV1QuobyteVolumeSource { + return IoK8sApiCoreV1QuobyteVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1QuobyteVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1QuobyteVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'group': !exists(json, 'group') ? undefined : json['group'], + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + 'registry': json['registry'], + 'tenant': !exists(json, 'tenant') ? undefined : json['tenant'], + 'user': !exists(json, 'user') ? undefined : json['user'], + 'volume': json['volume'], + }; +} + +export function IoK8sApiCoreV1QuobyteVolumeSourceToJSON(value?: IoK8sApiCoreV1QuobyteVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'group': value.group, + 'readOnly': value.readOnly, + 'registry': value.registry, + 'tenant': value.tenant, + 'user': value.user, + 'volume': value.volume, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1RBDPersistentVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1RBDPersistentVolumeSource.ts new file mode 100644 index 000000000..be7099072 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1RBDPersistentVolumeSource.ts @@ -0,0 +1,130 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1SecretReference } from './IoK8sApiCoreV1SecretReference'; +import { + IoK8sApiCoreV1SecretReferenceFromJSON, + IoK8sApiCoreV1SecretReferenceFromJSONTyped, + IoK8sApiCoreV1SecretReferenceToJSON, +} from './IoK8sApiCoreV1SecretReference'; + +/** + * Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. + * @export + * @interface IoK8sApiCoreV1RBDPersistentVolumeSource + */ +export interface IoK8sApiCoreV1RBDPersistentVolumeSource { + /** + * fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * @type {string} + * @memberof IoK8sApiCoreV1RBDPersistentVolumeSource + */ + fsType?: string; + /** + * image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @type {string} + * @memberof IoK8sApiCoreV1RBDPersistentVolumeSource + */ + image: string; + /** + * keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @type {string} + * @memberof IoK8sApiCoreV1RBDPersistentVolumeSource + */ + keyring?: string; + /** + * monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @type {Array} + * @memberof IoK8sApiCoreV1RBDPersistentVolumeSource + */ + monitors: string[]; + /** + * pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @type {string} + * @memberof IoK8sApiCoreV1RBDPersistentVolumeSource + */ + pool?: string; + /** + * readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @type {boolean} + * @memberof IoK8sApiCoreV1RBDPersistentVolumeSource + */ + readOnly?: boolean; + /** + * + * @type {IoK8sApiCoreV1SecretReference} + * @memberof IoK8sApiCoreV1RBDPersistentVolumeSource + */ + secretRef?: IoK8sApiCoreV1SecretReference; + /** + * user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @type {string} + * @memberof IoK8sApiCoreV1RBDPersistentVolumeSource + */ + user?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1RBDPersistentVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1RBDPersistentVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "image" in value; + isInstance = isInstance && "monitors" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1RBDPersistentVolumeSourceFromJSON(json: any): IoK8sApiCoreV1RBDPersistentVolumeSource { + return IoK8sApiCoreV1RBDPersistentVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1RBDPersistentVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1RBDPersistentVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'fsType': !exists(json, 'fsType') ? undefined : json['fsType'], + 'image': json['image'], + 'keyring': !exists(json, 'keyring') ? undefined : json['keyring'], + 'monitors': json['monitors'], + 'pool': !exists(json, 'pool') ? undefined : json['pool'], + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + 'secretRef': !exists(json, 'secretRef') ? undefined : IoK8sApiCoreV1SecretReferenceFromJSON(json['secretRef']), + 'user': !exists(json, 'user') ? undefined : json['user'], + }; +} + +export function IoK8sApiCoreV1RBDPersistentVolumeSourceToJSON(value?: IoK8sApiCoreV1RBDPersistentVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'fsType': value.fsType, + 'image': value.image, + 'keyring': value.keyring, + 'monitors': value.monitors, + 'pool': value.pool, + 'readOnly': value.readOnly, + 'secretRef': IoK8sApiCoreV1SecretReferenceToJSON(value.secretRef), + 'user': value.user, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1RBDVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1RBDVolumeSource.ts new file mode 100644 index 000000000..055639528 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1RBDVolumeSource.ts @@ -0,0 +1,130 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1LocalObjectReference } from './IoK8sApiCoreV1LocalObjectReference'; +import { + IoK8sApiCoreV1LocalObjectReferenceFromJSON, + IoK8sApiCoreV1LocalObjectReferenceFromJSONTyped, + IoK8sApiCoreV1LocalObjectReferenceToJSON, +} from './IoK8sApiCoreV1LocalObjectReference'; + +/** + * Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. + * @export + * @interface IoK8sApiCoreV1RBDVolumeSource + */ +export interface IoK8sApiCoreV1RBDVolumeSource { + /** + * fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * @type {string} + * @memberof IoK8sApiCoreV1RBDVolumeSource + */ + fsType?: string; + /** + * image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @type {string} + * @memberof IoK8sApiCoreV1RBDVolumeSource + */ + image: string; + /** + * keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @type {string} + * @memberof IoK8sApiCoreV1RBDVolumeSource + */ + keyring?: string; + /** + * monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @type {Array} + * @memberof IoK8sApiCoreV1RBDVolumeSource + */ + monitors: string[]; + /** + * pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @type {string} + * @memberof IoK8sApiCoreV1RBDVolumeSource + */ + pool?: string; + /** + * readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @type {boolean} + * @memberof IoK8sApiCoreV1RBDVolumeSource + */ + readOnly?: boolean; + /** + * + * @type {IoK8sApiCoreV1LocalObjectReference} + * @memberof IoK8sApiCoreV1RBDVolumeSource + */ + secretRef?: IoK8sApiCoreV1LocalObjectReference; + /** + * user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @type {string} + * @memberof IoK8sApiCoreV1RBDVolumeSource + */ + user?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1RBDVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1RBDVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "image" in value; + isInstance = isInstance && "monitors" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1RBDVolumeSourceFromJSON(json: any): IoK8sApiCoreV1RBDVolumeSource { + return IoK8sApiCoreV1RBDVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1RBDVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1RBDVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'fsType': !exists(json, 'fsType') ? undefined : json['fsType'], + 'image': json['image'], + 'keyring': !exists(json, 'keyring') ? undefined : json['keyring'], + 'monitors': json['monitors'], + 'pool': !exists(json, 'pool') ? undefined : json['pool'], + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + 'secretRef': !exists(json, 'secretRef') ? undefined : IoK8sApiCoreV1LocalObjectReferenceFromJSON(json['secretRef']), + 'user': !exists(json, 'user') ? undefined : json['user'], + }; +} + +export function IoK8sApiCoreV1RBDVolumeSourceToJSON(value?: IoK8sApiCoreV1RBDVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'fsType': value.fsType, + 'image': value.image, + 'keyring': value.keyring, + 'monitors': value.monitors, + 'pool': value.pool, + 'readOnly': value.readOnly, + 'secretRef': IoK8sApiCoreV1LocalObjectReferenceToJSON(value.secretRef), + 'user': value.user, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ReplicationController.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ReplicationController.ts new file mode 100644 index 000000000..8f5fcf3c8 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ReplicationController.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ReplicationControllerSpec } from './IoK8sApiCoreV1ReplicationControllerSpec'; +import { + IoK8sApiCoreV1ReplicationControllerSpecFromJSON, + IoK8sApiCoreV1ReplicationControllerSpecFromJSONTyped, + IoK8sApiCoreV1ReplicationControllerSpecToJSON, +} from './IoK8sApiCoreV1ReplicationControllerSpec'; +import type { IoK8sApiCoreV1ReplicationControllerStatus } from './IoK8sApiCoreV1ReplicationControllerStatus'; +import { + IoK8sApiCoreV1ReplicationControllerStatusFromJSON, + IoK8sApiCoreV1ReplicationControllerStatusFromJSONTyped, + IoK8sApiCoreV1ReplicationControllerStatusToJSON, +} from './IoK8sApiCoreV1ReplicationControllerStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * ReplicationController represents the configuration of a replication controller. + * @export + * @interface IoK8sApiCoreV1ReplicationController + */ +export interface IoK8sApiCoreV1ReplicationController { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1ReplicationController + */ + 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 + * @type {string} + * @memberof IoK8sApiCoreV1ReplicationController + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiCoreV1ReplicationController + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiCoreV1ReplicationControllerSpec} + * @memberof IoK8sApiCoreV1ReplicationController + */ + spec?: IoK8sApiCoreV1ReplicationControllerSpec; + /** + * + * @type {IoK8sApiCoreV1ReplicationControllerStatus} + * @memberof IoK8sApiCoreV1ReplicationController + */ + status?: IoK8sApiCoreV1ReplicationControllerStatus; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ReplicationController interface. + */ +export function instanceOfIoK8sApiCoreV1ReplicationController(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1ReplicationControllerFromJSON(json: any): IoK8sApiCoreV1ReplicationController { + return IoK8sApiCoreV1ReplicationControllerFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ReplicationControllerFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ReplicationController { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiCoreV1ReplicationControllerSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiCoreV1ReplicationControllerStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiCoreV1ReplicationControllerToJSON(value?: IoK8sApiCoreV1ReplicationController | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiCoreV1ReplicationControllerSpecToJSON(value.spec), + 'status': IoK8sApiCoreV1ReplicationControllerStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ReplicationControllerCondition.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ReplicationControllerCondition.ts new file mode 100644 index 000000000..c2da14563 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ReplicationControllerCondition.ts @@ -0,0 +1,99 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ReplicationControllerCondition describes the state of a replication controller at a certain point. + * @export + * @interface IoK8sApiCoreV1ReplicationControllerCondition + */ +export interface IoK8sApiCoreV1ReplicationControllerCondition { + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiCoreV1ReplicationControllerCondition + */ + lastTransitionTime?: string; + /** + * A human readable message indicating details about the transition. + * @type {string} + * @memberof IoK8sApiCoreV1ReplicationControllerCondition + */ + message?: string; + /** + * The reason for the condition's last transition. + * @type {string} + * @memberof IoK8sApiCoreV1ReplicationControllerCondition + */ + reason?: string; + /** + * Status of the condition, one of True, False, Unknown. + * @type {string} + * @memberof IoK8sApiCoreV1ReplicationControllerCondition + */ + status: string; + /** + * Type of replication controller condition. + * @type {string} + * @memberof IoK8sApiCoreV1ReplicationControllerCondition + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ReplicationControllerCondition interface. + */ +export function instanceOfIoK8sApiCoreV1ReplicationControllerCondition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "status" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1ReplicationControllerConditionFromJSON(json: any): IoK8sApiCoreV1ReplicationControllerCondition { + return IoK8sApiCoreV1ReplicationControllerConditionFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ReplicationControllerConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ReplicationControllerCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'lastTransitionTime': !exists(json, 'lastTransitionTime') ? undefined : json['lastTransitionTime'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'status': json['status'], + 'type': json['type'], + }; +} + +export function IoK8sApiCoreV1ReplicationControllerConditionToJSON(value?: IoK8sApiCoreV1ReplicationControllerCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'lastTransitionTime': value.lastTransitionTime === undefined ? undefined : (value.lastTransitionTime), + 'message': value.message, + 'reason': value.reason, + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ReplicationControllerList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ReplicationControllerList.ts new file mode 100644 index 000000000..fbe9019eb --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ReplicationControllerList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ReplicationController } from './IoK8sApiCoreV1ReplicationController'; +import { + IoK8sApiCoreV1ReplicationControllerFromJSON, + IoK8sApiCoreV1ReplicationControllerFromJSONTyped, + IoK8sApiCoreV1ReplicationControllerToJSON, +} from './IoK8sApiCoreV1ReplicationController'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * ReplicationControllerList is a collection of replication controllers. + * @export + * @interface IoK8sApiCoreV1ReplicationControllerList + */ +export interface IoK8sApiCoreV1ReplicationControllerList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1ReplicationControllerList + */ + apiVersion?: string; + /** + * List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + * @type {Array} + * @memberof IoK8sApiCoreV1ReplicationControllerList + */ + 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 + * @type {string} + * @memberof IoK8sApiCoreV1ReplicationControllerList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiCoreV1ReplicationControllerList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ReplicationControllerList interface. + */ +export function instanceOfIoK8sApiCoreV1ReplicationControllerList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1ReplicationControllerListFromJSON(json: any): IoK8sApiCoreV1ReplicationControllerList { + return IoK8sApiCoreV1ReplicationControllerListFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ReplicationControllerListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ReplicationControllerList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiCoreV1ReplicationControllerFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiCoreV1ReplicationControllerListToJSON(value?: IoK8sApiCoreV1ReplicationControllerList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiCoreV1ReplicationControllerToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ReplicationControllerSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ReplicationControllerSpec.ts new file mode 100644 index 000000000..d752e27c6 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ReplicationControllerSpec.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1PodTemplateSpec } from './IoK8sApiCoreV1PodTemplateSpec'; +import { + IoK8sApiCoreV1PodTemplateSpecFromJSON, + IoK8sApiCoreV1PodTemplateSpecFromJSONTyped, + IoK8sApiCoreV1PodTemplateSpecToJSON, +} from './IoK8sApiCoreV1PodTemplateSpec'; + +/** + * ReplicationControllerSpec is the specification of a replication controller. + * @export + * @interface IoK8sApiCoreV1ReplicationControllerSpec + */ +export interface IoK8sApiCoreV1ReplicationControllerSpec { + /** + * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * @type {number} + * @memberof IoK8sApiCoreV1ReplicationControllerSpec + */ + minReadySeconds?: number; + /** + * Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller + * @type {number} + * @memberof IoK8sApiCoreV1ReplicationControllerSpec + */ + replicas?: number; + /** + * Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1ReplicationControllerSpec + */ + selector?: { [key: string]: string; }; + /** + * + * @type {IoK8sApiCoreV1PodTemplateSpec} + * @memberof IoK8sApiCoreV1ReplicationControllerSpec + */ + template?: IoK8sApiCoreV1PodTemplateSpec; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ReplicationControllerSpec interface. + */ +export function instanceOfIoK8sApiCoreV1ReplicationControllerSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1ReplicationControllerSpecFromJSON(json: any): IoK8sApiCoreV1ReplicationControllerSpec { + return IoK8sApiCoreV1ReplicationControllerSpecFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ReplicationControllerSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ReplicationControllerSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'minReadySeconds': !exists(json, 'minReadySeconds') ? undefined : json['minReadySeconds'], + 'replicas': !exists(json, 'replicas') ? undefined : json['replicas'], + 'selector': !exists(json, 'selector') ? undefined : json['selector'], + 'template': !exists(json, 'template') ? undefined : IoK8sApiCoreV1PodTemplateSpecFromJSON(json['template']), + }; +} + +export function IoK8sApiCoreV1ReplicationControllerSpecToJSON(value?: IoK8sApiCoreV1ReplicationControllerSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'minReadySeconds': value.minReadySeconds, + 'replicas': value.replicas, + 'selector': value.selector, + 'template': IoK8sApiCoreV1PodTemplateSpecToJSON(value.template), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ReplicationControllerStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ReplicationControllerStatus.ts new file mode 100644 index 000000000..bf3515433 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ReplicationControllerStatus.ts @@ -0,0 +1,113 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ReplicationControllerCondition } from './IoK8sApiCoreV1ReplicationControllerCondition'; +import { + IoK8sApiCoreV1ReplicationControllerConditionFromJSON, + IoK8sApiCoreV1ReplicationControllerConditionFromJSONTyped, + IoK8sApiCoreV1ReplicationControllerConditionToJSON, +} from './IoK8sApiCoreV1ReplicationControllerCondition'; + +/** + * ReplicationControllerStatus represents the current status of a replication controller. + * @export + * @interface IoK8sApiCoreV1ReplicationControllerStatus + */ +export interface IoK8sApiCoreV1ReplicationControllerStatus { + /** + * The number of available replicas (ready for at least minReadySeconds) for this replication controller. + * @type {number} + * @memberof IoK8sApiCoreV1ReplicationControllerStatus + */ + availableReplicas?: number; + /** + * Represents the latest available observations of a replication controller's current state. + * @type {Array} + * @memberof IoK8sApiCoreV1ReplicationControllerStatus + */ + conditions?: Array; + /** + * The number of pods that have labels matching the labels of the pod template of the replication controller. + * @type {number} + * @memberof IoK8sApiCoreV1ReplicationControllerStatus + */ + fullyLabeledReplicas?: number; + /** + * ObservedGeneration reflects the generation of the most recently observed replication controller. + * @type {number} + * @memberof IoK8sApiCoreV1ReplicationControllerStatus + */ + observedGeneration?: number; + /** + * The number of ready replicas for this replication controller. + * @type {number} + * @memberof IoK8sApiCoreV1ReplicationControllerStatus + */ + readyReplicas?: number; + /** + * Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller + * @type {number} + * @memberof IoK8sApiCoreV1ReplicationControllerStatus + */ + replicas: number; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ReplicationControllerStatus interface. + */ +export function instanceOfIoK8sApiCoreV1ReplicationControllerStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "replicas" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1ReplicationControllerStatusFromJSON(json: any): IoK8sApiCoreV1ReplicationControllerStatus { + return IoK8sApiCoreV1ReplicationControllerStatusFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ReplicationControllerStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ReplicationControllerStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'availableReplicas': !exists(json, 'availableReplicas') ? undefined : json['availableReplicas'], + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(IoK8sApiCoreV1ReplicationControllerConditionFromJSON)), + 'fullyLabeledReplicas': !exists(json, 'fullyLabeledReplicas') ? undefined : json['fullyLabeledReplicas'], + 'observedGeneration': !exists(json, 'observedGeneration') ? undefined : json['observedGeneration'], + 'readyReplicas': !exists(json, 'readyReplicas') ? undefined : json['readyReplicas'], + 'replicas': json['replicas'], + }; +} + +export function IoK8sApiCoreV1ReplicationControllerStatusToJSON(value?: IoK8sApiCoreV1ReplicationControllerStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'availableReplicas': value.availableReplicas, + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(IoK8sApiCoreV1ReplicationControllerConditionToJSON)), + 'fullyLabeledReplicas': value.fullyLabeledReplicas, + 'observedGeneration': value.observedGeneration, + 'readyReplicas': value.readyReplicas, + 'replicas': value.replicas, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ResourceClaim.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ResourceClaim.ts new file mode 100644 index 000000000..3527bc75b --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ResourceClaim.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ResourceClaim references one entry in PodSpec.ResourceClaims. + * @export + * @interface IoK8sApiCoreV1ResourceClaim + */ +export interface IoK8sApiCoreV1ResourceClaim { + /** + * 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. + * @type {string} + * @memberof IoK8sApiCoreV1ResourceClaim + */ + name: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ResourceClaim interface. + */ +export function instanceOfIoK8sApiCoreV1ResourceClaim(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1ResourceClaimFromJSON(json: any): IoK8sApiCoreV1ResourceClaim { + return IoK8sApiCoreV1ResourceClaimFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ResourceClaimFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ResourceClaim { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + }; +} + +export function IoK8sApiCoreV1ResourceClaimToJSON(value?: IoK8sApiCoreV1ResourceClaim | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ResourceFieldSelector.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ResourceFieldSelector.ts new file mode 100644 index 000000000..f4dbde47d --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ResourceFieldSelector.ts @@ -0,0 +1,118 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ResourceFieldSelector represents container resources (cpu, memory) and their output format + * @export + * @interface IoK8sApiCoreV1ResourceFieldSelector + */ +export interface IoK8sApiCoreV1ResourceFieldSelector { + /** + * Container name: required for volumes, optional for env vars + * @type {string} + * @memberof IoK8sApiCoreV1ResourceFieldSelector + */ + containerName?: string; + /** + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + * + * The serialization format is: + * + * ``` ::= + * + * (Note that may be empty, from the "" case in .) + * + * ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + * + * (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + * + * ::= m | "" | k | M | G | T | P | E + * + * (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + * + * ::= "e" | "E" ``` + * + * No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + * + * When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + * + * Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + * + * - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. + * + * The sign will be omitted unless the number is negative. + * + * Examples: + * + * - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" + * + * Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + * + * Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + * + * This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + * @type {string} + * @memberof IoK8sApiCoreV1ResourceFieldSelector + */ + divisor?: string; + /** + * Required: resource to select + * @type {string} + * @memberof IoK8sApiCoreV1ResourceFieldSelector + */ + resource: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ResourceFieldSelector interface. + */ +export function instanceOfIoK8sApiCoreV1ResourceFieldSelector(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "resource" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1ResourceFieldSelectorFromJSON(json: any): IoK8sApiCoreV1ResourceFieldSelector { + return IoK8sApiCoreV1ResourceFieldSelectorFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ResourceFieldSelectorFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ResourceFieldSelector { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'containerName': !exists(json, 'containerName') ? undefined : json['containerName'], + 'divisor': !exists(json, 'divisor') ? undefined : json['divisor'], + 'resource': json['resource'], + }; +} + +export function IoK8sApiCoreV1ResourceFieldSelectorToJSON(value?: IoK8sApiCoreV1ResourceFieldSelector | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'containerName': value.containerName, + 'divisor': value.divisor, + 'resource': value.resource, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ResourceQuota.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ResourceQuota.ts new file mode 100644 index 000000000..dcb616323 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ResourceQuota.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ResourceQuotaSpec } from './IoK8sApiCoreV1ResourceQuotaSpec'; +import { + IoK8sApiCoreV1ResourceQuotaSpecFromJSON, + IoK8sApiCoreV1ResourceQuotaSpecFromJSONTyped, + IoK8sApiCoreV1ResourceQuotaSpecToJSON, +} from './IoK8sApiCoreV1ResourceQuotaSpec'; +import type { IoK8sApiCoreV1ResourceQuotaStatus } from './IoK8sApiCoreV1ResourceQuotaStatus'; +import { + IoK8sApiCoreV1ResourceQuotaStatusFromJSON, + IoK8sApiCoreV1ResourceQuotaStatusFromJSONTyped, + IoK8sApiCoreV1ResourceQuotaStatusToJSON, +} from './IoK8sApiCoreV1ResourceQuotaStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * ResourceQuota sets aggregate quota restrictions enforced per namespace + * @export + * @interface IoK8sApiCoreV1ResourceQuota + */ +export interface IoK8sApiCoreV1ResourceQuota { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1ResourceQuota + */ + 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 + * @type {string} + * @memberof IoK8sApiCoreV1ResourceQuota + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiCoreV1ResourceQuota + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiCoreV1ResourceQuotaSpec} + * @memberof IoK8sApiCoreV1ResourceQuota + */ + spec?: IoK8sApiCoreV1ResourceQuotaSpec; + /** + * + * @type {IoK8sApiCoreV1ResourceQuotaStatus} + * @memberof IoK8sApiCoreV1ResourceQuota + */ + status?: IoK8sApiCoreV1ResourceQuotaStatus; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ResourceQuota interface. + */ +export function instanceOfIoK8sApiCoreV1ResourceQuota(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1ResourceQuotaFromJSON(json: any): IoK8sApiCoreV1ResourceQuota { + return IoK8sApiCoreV1ResourceQuotaFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ResourceQuotaFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ResourceQuota { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiCoreV1ResourceQuotaSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiCoreV1ResourceQuotaStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiCoreV1ResourceQuotaToJSON(value?: IoK8sApiCoreV1ResourceQuota | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiCoreV1ResourceQuotaSpecToJSON(value.spec), + 'status': IoK8sApiCoreV1ResourceQuotaStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ResourceQuotaList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ResourceQuotaList.ts new file mode 100644 index 000000000..7b507f51c --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ResourceQuotaList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ResourceQuota } from './IoK8sApiCoreV1ResourceQuota'; +import { + IoK8sApiCoreV1ResourceQuotaFromJSON, + IoK8sApiCoreV1ResourceQuotaFromJSONTyped, + IoK8sApiCoreV1ResourceQuotaToJSON, +} from './IoK8sApiCoreV1ResourceQuota'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * ResourceQuotaList is a list of ResourceQuota items. + * @export + * @interface IoK8sApiCoreV1ResourceQuotaList + */ +export interface IoK8sApiCoreV1ResourceQuotaList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1ResourceQuotaList + */ + apiVersion?: string; + /** + * Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + * @type {Array} + * @memberof IoK8sApiCoreV1ResourceQuotaList + */ + 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 + * @type {string} + * @memberof IoK8sApiCoreV1ResourceQuotaList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiCoreV1ResourceQuotaList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ResourceQuotaList interface. + */ +export function instanceOfIoK8sApiCoreV1ResourceQuotaList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1ResourceQuotaListFromJSON(json: any): IoK8sApiCoreV1ResourceQuotaList { + return IoK8sApiCoreV1ResourceQuotaListFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ResourceQuotaListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ResourceQuotaList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiCoreV1ResourceQuotaFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiCoreV1ResourceQuotaListToJSON(value?: IoK8sApiCoreV1ResourceQuotaList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiCoreV1ResourceQuotaToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ResourceQuotaSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ResourceQuotaSpec.ts new file mode 100644 index 000000000..043eac232 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ResourceQuotaSpec.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ScopeSelector } from './IoK8sApiCoreV1ScopeSelector'; +import { + IoK8sApiCoreV1ScopeSelectorFromJSON, + IoK8sApiCoreV1ScopeSelectorFromJSONTyped, + IoK8sApiCoreV1ScopeSelectorToJSON, +} from './IoK8sApiCoreV1ScopeSelector'; + +/** + * ResourceQuotaSpec defines the desired hard limits to enforce for Quota. + * @export + * @interface IoK8sApiCoreV1ResourceQuotaSpec + */ +export interface IoK8sApiCoreV1ResourceQuotaSpec { + /** + * hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1ResourceQuotaSpec + */ + hard?: { [key: string]: string; }; + /** + * + * @type {IoK8sApiCoreV1ScopeSelector} + * @memberof IoK8sApiCoreV1ResourceQuotaSpec + */ + scopeSelector?: IoK8sApiCoreV1ScopeSelector; + /** + * A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. + * @type {Array} + * @memberof IoK8sApiCoreV1ResourceQuotaSpec + */ + scopes?: string[]; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ResourceQuotaSpec interface. + */ +export function instanceOfIoK8sApiCoreV1ResourceQuotaSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1ResourceQuotaSpecFromJSON(json: any): IoK8sApiCoreV1ResourceQuotaSpec { + return IoK8sApiCoreV1ResourceQuotaSpecFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ResourceQuotaSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ResourceQuotaSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'hard': !exists(json, 'hard') ? undefined : json['hard'], + 'scopeSelector': !exists(json, 'scopeSelector') ? undefined : IoK8sApiCoreV1ScopeSelectorFromJSON(json['scopeSelector']), + 'scopes': !exists(json, 'scopes') ? undefined : json['scopes'], + }; +} + +export function IoK8sApiCoreV1ResourceQuotaSpecToJSON(value?: IoK8sApiCoreV1ResourceQuotaSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'hard': value.hard, + 'scopeSelector': IoK8sApiCoreV1ScopeSelectorToJSON(value.scopeSelector), + 'scopes': value.scopes, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ResourceQuotaStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ResourceQuotaStatus.ts new file mode 100644 index 000000000..6400470fe --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ResourceQuotaStatus.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ResourceQuotaStatus defines the enforced hard limits and observed use. + * @export + * @interface IoK8sApiCoreV1ResourceQuotaStatus + */ +export interface IoK8sApiCoreV1ResourceQuotaStatus { + /** + * Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1ResourceQuotaStatus + */ + hard?: { [key: string]: string; }; + /** + * Used is the current observed total usage of the resource in the namespace. + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1ResourceQuotaStatus + */ + used?: { [key: string]: string; }; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ResourceQuotaStatus interface. + */ +export function instanceOfIoK8sApiCoreV1ResourceQuotaStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1ResourceQuotaStatusFromJSON(json: any): IoK8sApiCoreV1ResourceQuotaStatus { + return IoK8sApiCoreV1ResourceQuotaStatusFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ResourceQuotaStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ResourceQuotaStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'hard': !exists(json, 'hard') ? undefined : json['hard'], + 'used': !exists(json, 'used') ? undefined : json['used'], + }; +} + +export function IoK8sApiCoreV1ResourceQuotaStatusToJSON(value?: IoK8sApiCoreV1ResourceQuotaStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'hard': value.hard, + 'used': value.used, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ResourceRequirements.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ResourceRequirements.ts new file mode 100644 index 000000000..4b25f906c --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ResourceRequirements.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ResourceClaim } from './IoK8sApiCoreV1ResourceClaim'; +import { + IoK8sApiCoreV1ResourceClaimFromJSON, + IoK8sApiCoreV1ResourceClaimFromJSONTyped, + IoK8sApiCoreV1ResourceClaimToJSON, +} from './IoK8sApiCoreV1ResourceClaim'; + +/** + * ResourceRequirements describes the compute resource requirements. + * @export + * @interface IoK8sApiCoreV1ResourceRequirements + */ +export interface IoK8sApiCoreV1ResourceRequirements { + /** + * Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. + * + * This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. + * + * This field is immutable. It can only be set for containers. + * @type {Array} + * @memberof IoK8sApiCoreV1ResourceRequirements + */ + claims?: Array; + /** + * Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1ResourceRequirements + */ + limits?: { [key: string]: string; }; + /** + * Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1ResourceRequirements + */ + requests?: { [key: string]: string; }; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ResourceRequirements interface. + */ +export function instanceOfIoK8sApiCoreV1ResourceRequirements(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1ResourceRequirementsFromJSON(json: any): IoK8sApiCoreV1ResourceRequirements { + return IoK8sApiCoreV1ResourceRequirementsFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ResourceRequirementsFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ResourceRequirements { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'claims': !exists(json, 'claims') ? undefined : ((json['claims'] as Array).map(IoK8sApiCoreV1ResourceClaimFromJSON)), + 'limits': !exists(json, 'limits') ? undefined : json['limits'], + 'requests': !exists(json, 'requests') ? undefined : json['requests'], + }; +} + +export function IoK8sApiCoreV1ResourceRequirementsToJSON(value?: IoK8sApiCoreV1ResourceRequirements | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'claims': value.claims === undefined ? undefined : ((value.claims as Array).map(IoK8sApiCoreV1ResourceClaimToJSON)), + 'limits': value.limits, + 'requests': value.requests, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SELinuxOptions.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SELinuxOptions.ts new file mode 100644 index 000000000..76516b888 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SELinuxOptions.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * SELinuxOptions are the labels to be applied to the container + * @export + * @interface IoK8sApiCoreV1SELinuxOptions + */ +export interface IoK8sApiCoreV1SELinuxOptions { + /** + * Level is SELinux level label that applies to the container. + * @type {string} + * @memberof IoK8sApiCoreV1SELinuxOptions + */ + level?: string; + /** + * Role is a SELinux role label that applies to the container. + * @type {string} + * @memberof IoK8sApiCoreV1SELinuxOptions + */ + role?: string; + /** + * Type is a SELinux type label that applies to the container. + * @type {string} + * @memberof IoK8sApiCoreV1SELinuxOptions + */ + type?: string; + /** + * User is a SELinux user label that applies to the container. + * @type {string} + * @memberof IoK8sApiCoreV1SELinuxOptions + */ + user?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1SELinuxOptions interface. + */ +export function instanceOfIoK8sApiCoreV1SELinuxOptions(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1SELinuxOptionsFromJSON(json: any): IoK8sApiCoreV1SELinuxOptions { + return IoK8sApiCoreV1SELinuxOptionsFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1SELinuxOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1SELinuxOptions { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'level': !exists(json, 'level') ? undefined : json['level'], + 'role': !exists(json, 'role') ? undefined : json['role'], + 'type': !exists(json, 'type') ? undefined : json['type'], + 'user': !exists(json, 'user') ? undefined : json['user'], + }; +} + +export function IoK8sApiCoreV1SELinuxOptionsToJSON(value?: IoK8sApiCoreV1SELinuxOptions | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'level': value.level, + 'role': value.role, + 'type': value.type, + 'user': value.user, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ScaleIOPersistentVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ScaleIOPersistentVolumeSource.ts new file mode 100644 index 000000000..0c7d74101 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ScaleIOPersistentVolumeSource.ts @@ -0,0 +1,147 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1SecretReference } from './IoK8sApiCoreV1SecretReference'; +import { + IoK8sApiCoreV1SecretReferenceFromJSON, + IoK8sApiCoreV1SecretReferenceFromJSONTyped, + IoK8sApiCoreV1SecretReferenceToJSON, +} from './IoK8sApiCoreV1SecretReference'; + +/** + * ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume + * @export + * @interface IoK8sApiCoreV1ScaleIOPersistentVolumeSource + */ +export interface IoK8sApiCoreV1ScaleIOPersistentVolumeSource { + /** + * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" + * @type {string} + * @memberof IoK8sApiCoreV1ScaleIOPersistentVolumeSource + */ + fsType?: string; + /** + * gateway is the host address of the ScaleIO API Gateway. + * @type {string} + * @memberof IoK8sApiCoreV1ScaleIOPersistentVolumeSource + */ + gateway: string; + /** + * protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. + * @type {string} + * @memberof IoK8sApiCoreV1ScaleIOPersistentVolumeSource + */ + protectionDomain?: string; + /** + * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * @type {boolean} + * @memberof IoK8sApiCoreV1ScaleIOPersistentVolumeSource + */ + readOnly?: boolean; + /** + * + * @type {IoK8sApiCoreV1SecretReference} + * @memberof IoK8sApiCoreV1ScaleIOPersistentVolumeSource + */ + secretRef: IoK8sApiCoreV1SecretReference; + /** + * sslEnabled is the flag to enable/disable SSL communication with Gateway, default false + * @type {boolean} + * @memberof IoK8sApiCoreV1ScaleIOPersistentVolumeSource + */ + sslEnabled?: boolean; + /** + * storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * @type {string} + * @memberof IoK8sApiCoreV1ScaleIOPersistentVolumeSource + */ + storageMode?: string; + /** + * storagePool is the ScaleIO Storage Pool associated with the protection domain. + * @type {string} + * @memberof IoK8sApiCoreV1ScaleIOPersistentVolumeSource + */ + storagePool?: string; + /** + * system is the name of the storage system as configured in ScaleIO. + * @type {string} + * @memberof IoK8sApiCoreV1ScaleIOPersistentVolumeSource + */ + system: string; + /** + * volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source. + * @type {string} + * @memberof IoK8sApiCoreV1ScaleIOPersistentVolumeSource + */ + volumeName?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ScaleIOPersistentVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1ScaleIOPersistentVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "gateway" in value; + isInstance = isInstance && "secretRef" in value; + isInstance = isInstance && "system" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1ScaleIOPersistentVolumeSourceFromJSON(json: any): IoK8sApiCoreV1ScaleIOPersistentVolumeSource { + return IoK8sApiCoreV1ScaleIOPersistentVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ScaleIOPersistentVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ScaleIOPersistentVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'fsType': !exists(json, 'fsType') ? undefined : json['fsType'], + 'gateway': json['gateway'], + 'protectionDomain': !exists(json, 'protectionDomain') ? undefined : json['protectionDomain'], + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + 'secretRef': IoK8sApiCoreV1SecretReferenceFromJSON(json['secretRef']), + 'sslEnabled': !exists(json, 'sslEnabled') ? undefined : json['sslEnabled'], + 'storageMode': !exists(json, 'storageMode') ? undefined : json['storageMode'], + 'storagePool': !exists(json, 'storagePool') ? undefined : json['storagePool'], + 'system': json['system'], + 'volumeName': !exists(json, 'volumeName') ? undefined : json['volumeName'], + }; +} + +export function IoK8sApiCoreV1ScaleIOPersistentVolumeSourceToJSON(value?: IoK8sApiCoreV1ScaleIOPersistentVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'fsType': value.fsType, + 'gateway': value.gateway, + 'protectionDomain': value.protectionDomain, + 'readOnly': value.readOnly, + 'secretRef': IoK8sApiCoreV1SecretReferenceToJSON(value.secretRef), + 'sslEnabled': value.sslEnabled, + 'storageMode': value.storageMode, + 'storagePool': value.storagePool, + 'system': value.system, + 'volumeName': value.volumeName, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ScaleIOVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ScaleIOVolumeSource.ts new file mode 100644 index 000000000..c9a56b96e --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ScaleIOVolumeSource.ts @@ -0,0 +1,147 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1LocalObjectReference } from './IoK8sApiCoreV1LocalObjectReference'; +import { + IoK8sApiCoreV1LocalObjectReferenceFromJSON, + IoK8sApiCoreV1LocalObjectReferenceFromJSONTyped, + IoK8sApiCoreV1LocalObjectReferenceToJSON, +} from './IoK8sApiCoreV1LocalObjectReference'; + +/** + * ScaleIOVolumeSource represents a persistent ScaleIO volume + * @export + * @interface IoK8sApiCoreV1ScaleIOVolumeSource + */ +export interface IoK8sApiCoreV1ScaleIOVolumeSource { + /** + * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * @type {string} + * @memberof IoK8sApiCoreV1ScaleIOVolumeSource + */ + fsType?: string; + /** + * gateway is the host address of the ScaleIO API Gateway. + * @type {string} + * @memberof IoK8sApiCoreV1ScaleIOVolumeSource + */ + gateway: string; + /** + * protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. + * @type {string} + * @memberof IoK8sApiCoreV1ScaleIOVolumeSource + */ + protectionDomain?: string; + /** + * readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * @type {boolean} + * @memberof IoK8sApiCoreV1ScaleIOVolumeSource + */ + readOnly?: boolean; + /** + * + * @type {IoK8sApiCoreV1LocalObjectReference} + * @memberof IoK8sApiCoreV1ScaleIOVolumeSource + */ + secretRef: IoK8sApiCoreV1LocalObjectReference; + /** + * sslEnabled Flag enable/disable SSL communication with Gateway, default false + * @type {boolean} + * @memberof IoK8sApiCoreV1ScaleIOVolumeSource + */ + sslEnabled?: boolean; + /** + * storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * @type {string} + * @memberof IoK8sApiCoreV1ScaleIOVolumeSource + */ + storageMode?: string; + /** + * storagePool is the ScaleIO Storage Pool associated with the protection domain. + * @type {string} + * @memberof IoK8sApiCoreV1ScaleIOVolumeSource + */ + storagePool?: string; + /** + * system is the name of the storage system as configured in ScaleIO. + * @type {string} + * @memberof IoK8sApiCoreV1ScaleIOVolumeSource + */ + system: string; + /** + * volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source. + * @type {string} + * @memberof IoK8sApiCoreV1ScaleIOVolumeSource + */ + volumeName?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ScaleIOVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1ScaleIOVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "gateway" in value; + isInstance = isInstance && "secretRef" in value; + isInstance = isInstance && "system" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1ScaleIOVolumeSourceFromJSON(json: any): IoK8sApiCoreV1ScaleIOVolumeSource { + return IoK8sApiCoreV1ScaleIOVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ScaleIOVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ScaleIOVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'fsType': !exists(json, 'fsType') ? undefined : json['fsType'], + 'gateway': json['gateway'], + 'protectionDomain': !exists(json, 'protectionDomain') ? undefined : json['protectionDomain'], + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + 'secretRef': IoK8sApiCoreV1LocalObjectReferenceFromJSON(json['secretRef']), + 'sslEnabled': !exists(json, 'sslEnabled') ? undefined : json['sslEnabled'], + 'storageMode': !exists(json, 'storageMode') ? undefined : json['storageMode'], + 'storagePool': !exists(json, 'storagePool') ? undefined : json['storagePool'], + 'system': json['system'], + 'volumeName': !exists(json, 'volumeName') ? undefined : json['volumeName'], + }; +} + +export function IoK8sApiCoreV1ScaleIOVolumeSourceToJSON(value?: IoK8sApiCoreV1ScaleIOVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'fsType': value.fsType, + 'gateway': value.gateway, + 'protectionDomain': value.protectionDomain, + 'readOnly': value.readOnly, + 'secretRef': IoK8sApiCoreV1LocalObjectReferenceToJSON(value.secretRef), + 'sslEnabled': value.sslEnabled, + 'storageMode': value.storageMode, + 'storagePool': value.storagePool, + 'system': value.system, + 'volumeName': value.volumeName, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ScopeSelector.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ScopeSelector.ts new file mode 100644 index 000000000..24122b8f1 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ScopeSelector.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ScopedResourceSelectorRequirement } from './IoK8sApiCoreV1ScopedResourceSelectorRequirement'; +import { + IoK8sApiCoreV1ScopedResourceSelectorRequirementFromJSON, + IoK8sApiCoreV1ScopedResourceSelectorRequirementFromJSONTyped, + IoK8sApiCoreV1ScopedResourceSelectorRequirementToJSON, +} from './IoK8sApiCoreV1ScopedResourceSelectorRequirement'; + +/** + * A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements. + * @export + * @interface IoK8sApiCoreV1ScopeSelector + */ +export interface IoK8sApiCoreV1ScopeSelector { + /** + * A list of scope selector requirements by scope of the resources. + * @type {Array} + * @memberof IoK8sApiCoreV1ScopeSelector + */ + matchExpressions?: Array; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ScopeSelector interface. + */ +export function instanceOfIoK8sApiCoreV1ScopeSelector(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1ScopeSelectorFromJSON(json: any): IoK8sApiCoreV1ScopeSelector { + return IoK8sApiCoreV1ScopeSelectorFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ScopeSelectorFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ScopeSelector { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'matchExpressions': !exists(json, 'matchExpressions') ? undefined : ((json['matchExpressions'] as Array).map(IoK8sApiCoreV1ScopedResourceSelectorRequirementFromJSON)), + }; +} + +export function IoK8sApiCoreV1ScopeSelectorToJSON(value?: IoK8sApiCoreV1ScopeSelector | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'matchExpressions': value.matchExpressions === undefined ? undefined : ((value.matchExpressions as Array).map(IoK8sApiCoreV1ScopedResourceSelectorRequirementToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ScopedResourceSelectorRequirement.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ScopedResourceSelectorRequirement.ts new file mode 100644 index 000000000..b8d4a0861 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ScopedResourceSelectorRequirement.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values. + * @export + * @interface IoK8sApiCoreV1ScopedResourceSelectorRequirement + */ +export interface IoK8sApiCoreV1ScopedResourceSelectorRequirement { + /** + * Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. + * @type {string} + * @memberof IoK8sApiCoreV1ScopedResourceSelectorRequirement + */ + operator: string; + /** + * The name of the scope that the selector applies to. + * @type {string} + * @memberof IoK8sApiCoreV1ScopedResourceSelectorRequirement + */ + scopeName: string; + /** + * An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. + * @type {Array} + * @memberof IoK8sApiCoreV1ScopedResourceSelectorRequirement + */ + values?: string[]; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ScopedResourceSelectorRequirement interface. + */ +export function instanceOfIoK8sApiCoreV1ScopedResourceSelectorRequirement(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "operator" in value; + isInstance = isInstance && "scopeName" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1ScopedResourceSelectorRequirementFromJSON(json: any): IoK8sApiCoreV1ScopedResourceSelectorRequirement { + return IoK8sApiCoreV1ScopedResourceSelectorRequirementFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ScopedResourceSelectorRequirementFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ScopedResourceSelectorRequirement { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'operator': json['operator'], + 'scopeName': json['scopeName'], + 'values': !exists(json, 'values') ? undefined : json['values'], + }; +} + +export function IoK8sApiCoreV1ScopedResourceSelectorRequirementToJSON(value?: IoK8sApiCoreV1ScopedResourceSelectorRequirement | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'operator': value.operator, + 'scopeName': value.scopeName, + 'values': value.values, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SeccompProfile.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SeccompProfile.ts new file mode 100644 index 000000000..191371539 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SeccompProfile.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set. + * @export + * @interface IoK8sApiCoreV1SeccompProfile + */ +export interface IoK8sApiCoreV1SeccompProfile { + /** + * localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is "Localhost". Must NOT be set for any other type. + * @type {string} + * @memberof IoK8sApiCoreV1SeccompProfile + */ + localhostProfile?: string; + /** + * type indicates which kind of seccomp profile will be applied. Valid options are: + * + * Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied. + * @type {string} + * @memberof IoK8sApiCoreV1SeccompProfile + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1SeccompProfile interface. + */ +export function instanceOfIoK8sApiCoreV1SeccompProfile(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1SeccompProfileFromJSON(json: any): IoK8sApiCoreV1SeccompProfile { + return IoK8sApiCoreV1SeccompProfileFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1SeccompProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1SeccompProfile { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'localhostProfile': !exists(json, 'localhostProfile') ? undefined : json['localhostProfile'], + 'type': json['type'], + }; +} + +export function IoK8sApiCoreV1SeccompProfileToJSON(value?: IoK8sApiCoreV1SeccompProfile | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'localhostProfile': value.localhostProfile, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Secret.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Secret.ts new file mode 100644 index 000000000..8ed4bcda7 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Secret.ts @@ -0,0 +1,120 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes. + * @export + * @interface IoK8sApiCoreV1Secret + */ +export interface IoK8sApiCoreV1Secret { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1Secret + */ + apiVersion?: string; + /** + * Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1Secret + */ + data?: { [key: string]: string; }; + /** + * Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. + * @type {boolean} + * @memberof IoK8sApiCoreV1Secret + */ + immutable?: boolean; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof IoK8sApiCoreV1Secret + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiCoreV1Secret + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API. + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1Secret + */ + stringData?: { [key: string]: string; }; + /** + * Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types + * @type {string} + * @memberof IoK8sApiCoreV1Secret + */ + type?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1Secret interface. + */ +export function instanceOfIoK8sApiCoreV1Secret(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1SecretFromJSON(json: any): IoK8sApiCoreV1Secret { + return IoK8sApiCoreV1SecretFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1SecretFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1Secret { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'data': !exists(json, 'data') ? undefined : json['data'], + 'immutable': !exists(json, 'immutable') ? undefined : json['immutable'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'stringData': !exists(json, 'stringData') ? undefined : json['stringData'], + 'type': !exists(json, 'type') ? undefined : json['type'], + }; +} + +export function IoK8sApiCoreV1SecretToJSON(value?: IoK8sApiCoreV1Secret | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'data': value.data, + 'immutable': value.immutable, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'stringData': value.stringData, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SecretEnvSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SecretEnvSource.ts new file mode 100644 index 000000000..ac26992f1 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SecretEnvSource.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * SecretEnvSource selects a Secret to populate the environment variables with. + * + * The contents of the target Secret's Data field will represent the key-value pairs as environment variables. + * @export + * @interface IoK8sApiCoreV1SecretEnvSource + */ +export interface IoK8sApiCoreV1SecretEnvSource { + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * @type {string} + * @memberof IoK8sApiCoreV1SecretEnvSource + */ + name?: string; + /** + * Specify whether the Secret must be defined + * @type {boolean} + * @memberof IoK8sApiCoreV1SecretEnvSource + */ + optional?: boolean; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1SecretEnvSource interface. + */ +export function instanceOfIoK8sApiCoreV1SecretEnvSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1SecretEnvSourceFromJSON(json: any): IoK8sApiCoreV1SecretEnvSource { + return IoK8sApiCoreV1SecretEnvSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1SecretEnvSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1SecretEnvSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': !exists(json, 'name') ? undefined : json['name'], + 'optional': !exists(json, 'optional') ? undefined : json['optional'], + }; +} + +export function IoK8sApiCoreV1SecretEnvSourceToJSON(value?: IoK8sApiCoreV1SecretEnvSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'optional': value.optional, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SecretKeySelector.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SecretKeySelector.ts new file mode 100644 index 000000000..98ab157f8 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SecretKeySelector.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * SecretKeySelector selects a key of a Secret. + * @export + * @interface IoK8sApiCoreV1SecretKeySelector + */ +export interface IoK8sApiCoreV1SecretKeySelector { + /** + * The key of the secret to select from. Must be a valid secret key. + * @type {string} + * @memberof IoK8sApiCoreV1SecretKeySelector + */ + key: string; + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * @type {string} + * @memberof IoK8sApiCoreV1SecretKeySelector + */ + name?: string; + /** + * Specify whether the Secret or its key must be defined + * @type {boolean} + * @memberof IoK8sApiCoreV1SecretKeySelector + */ + optional?: boolean; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1SecretKeySelector interface. + */ +export function instanceOfIoK8sApiCoreV1SecretKeySelector(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "key" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1SecretKeySelectorFromJSON(json: any): IoK8sApiCoreV1SecretKeySelector { + return IoK8sApiCoreV1SecretKeySelectorFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1SecretKeySelectorFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1SecretKeySelector { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'key': json['key'], + 'name': !exists(json, 'name') ? undefined : json['name'], + 'optional': !exists(json, 'optional') ? undefined : json['optional'], + }; +} + +export function IoK8sApiCoreV1SecretKeySelectorToJSON(value?: IoK8sApiCoreV1SecretKeySelector | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'key': value.key, + 'name': value.name, + 'optional': value.optional, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SecretList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SecretList.ts new file mode 100644 index 000000000..96acd7d7b --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SecretList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1Secret } from './IoK8sApiCoreV1Secret'; +import { + IoK8sApiCoreV1SecretFromJSON, + IoK8sApiCoreV1SecretFromJSONTyped, + IoK8sApiCoreV1SecretToJSON, +} from './IoK8sApiCoreV1Secret'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * SecretList is a list of Secret. + * @export + * @interface IoK8sApiCoreV1SecretList + */ +export interface IoK8sApiCoreV1SecretList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1SecretList + */ + apiVersion?: string; + /** + * Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret + * @type {Array} + * @memberof IoK8sApiCoreV1SecretList + */ + 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 + * @type {string} + * @memberof IoK8sApiCoreV1SecretList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiCoreV1SecretList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1SecretList interface. + */ +export function instanceOfIoK8sApiCoreV1SecretList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1SecretListFromJSON(json: any): IoK8sApiCoreV1SecretList { + return IoK8sApiCoreV1SecretListFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1SecretListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1SecretList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiCoreV1SecretFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiCoreV1SecretListToJSON(value?: IoK8sApiCoreV1SecretList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiCoreV1SecretToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SecretProjection.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SecretProjection.ts new file mode 100644 index 000000000..0fedefa96 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SecretProjection.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1KeyToPath } from './IoK8sApiCoreV1KeyToPath'; +import { + IoK8sApiCoreV1KeyToPathFromJSON, + IoK8sApiCoreV1KeyToPathFromJSONTyped, + IoK8sApiCoreV1KeyToPathToJSON, +} from './IoK8sApiCoreV1KeyToPath'; + +/** + * Adapts a secret into a projected volume. + * + * The contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode. + * @export + * @interface IoK8sApiCoreV1SecretProjection + */ +export interface IoK8sApiCoreV1SecretProjection { + /** + * items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * @type {Array} + * @memberof IoK8sApiCoreV1SecretProjection + */ + items?: Array; + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * @type {string} + * @memberof IoK8sApiCoreV1SecretProjection + */ + name?: string; + /** + * optional field specify whether the Secret or its key must be defined + * @type {boolean} + * @memberof IoK8sApiCoreV1SecretProjection + */ + optional?: boolean; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1SecretProjection interface. + */ +export function instanceOfIoK8sApiCoreV1SecretProjection(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1SecretProjectionFromJSON(json: any): IoK8sApiCoreV1SecretProjection { + return IoK8sApiCoreV1SecretProjectionFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1SecretProjectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1SecretProjection { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'items': !exists(json, 'items') ? undefined : ((json['items'] as Array).map(IoK8sApiCoreV1KeyToPathFromJSON)), + 'name': !exists(json, 'name') ? undefined : json['name'], + 'optional': !exists(json, 'optional') ? undefined : json['optional'], + }; +} + +export function IoK8sApiCoreV1SecretProjectionToJSON(value?: IoK8sApiCoreV1SecretProjection | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'items': value.items === undefined ? undefined : ((value.items as Array).map(IoK8sApiCoreV1KeyToPathToJSON)), + 'name': value.name, + 'optional': value.optional, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SecretReference.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SecretReference.ts new file mode 100644 index 000000000..25a602d39 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SecretReference.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace + * @export + * @interface IoK8sApiCoreV1SecretReference + */ +export interface IoK8sApiCoreV1SecretReference { + /** + * name is unique within a namespace to reference a secret resource. + * @type {string} + * @memberof IoK8sApiCoreV1SecretReference + */ + name?: string; + /** + * namespace defines the space within which the secret name must be unique. + * @type {string} + * @memberof IoK8sApiCoreV1SecretReference + */ + namespace?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1SecretReference interface. + */ +export function instanceOfIoK8sApiCoreV1SecretReference(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1SecretReferenceFromJSON(json: any): IoK8sApiCoreV1SecretReference { + return IoK8sApiCoreV1SecretReferenceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1SecretReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1SecretReference { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': !exists(json, 'name') ? undefined : json['name'], + 'namespace': !exists(json, 'namespace') ? undefined : json['namespace'], + }; +} + +export function IoK8sApiCoreV1SecretReferenceToJSON(value?: IoK8sApiCoreV1SecretReference | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'namespace': value.namespace, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SecretVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SecretVolumeSource.ts new file mode 100644 index 000000000..055880509 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SecretVolumeSource.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1KeyToPath } from './IoK8sApiCoreV1KeyToPath'; +import { + IoK8sApiCoreV1KeyToPathFromJSON, + IoK8sApiCoreV1KeyToPathFromJSONTyped, + IoK8sApiCoreV1KeyToPathToJSON, +} from './IoK8sApiCoreV1KeyToPath'; + +/** + * Adapts a Secret into a volume. + * + * The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling. + * @export + * @interface IoK8sApiCoreV1SecretVolumeSource + */ +export interface IoK8sApiCoreV1SecretVolumeSource { + /** + * defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + * @type {number} + * @memberof IoK8sApiCoreV1SecretVolumeSource + */ + defaultMode?: number; + /** + * items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * @type {Array} + * @memberof IoK8sApiCoreV1SecretVolumeSource + */ + items?: Array; + /** + * optional field specify whether the Secret or its keys must be defined + * @type {boolean} + * @memberof IoK8sApiCoreV1SecretVolumeSource + */ + optional?: boolean; + /** + * secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * @type {string} + * @memberof IoK8sApiCoreV1SecretVolumeSource + */ + secretName?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1SecretVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1SecretVolumeSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1SecretVolumeSourceFromJSON(json: any): IoK8sApiCoreV1SecretVolumeSource { + return IoK8sApiCoreV1SecretVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1SecretVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1SecretVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'defaultMode': !exists(json, 'defaultMode') ? undefined : json['defaultMode'], + 'items': !exists(json, 'items') ? undefined : ((json['items'] as Array).map(IoK8sApiCoreV1KeyToPathFromJSON)), + 'optional': !exists(json, 'optional') ? undefined : json['optional'], + 'secretName': !exists(json, 'secretName') ? undefined : json['secretName'], + }; +} + +export function IoK8sApiCoreV1SecretVolumeSourceToJSON(value?: IoK8sApiCoreV1SecretVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'defaultMode': value.defaultMode, + 'items': value.items === undefined ? undefined : ((value.items as Array).map(IoK8sApiCoreV1KeyToPathToJSON)), + 'optional': value.optional, + 'secretName': value.secretName, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SecurityContext.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SecurityContext.ts new file mode 100644 index 000000000..287766cce --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SecurityContext.ts @@ -0,0 +1,170 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1Capabilities } from './IoK8sApiCoreV1Capabilities'; +import { + IoK8sApiCoreV1CapabilitiesFromJSON, + IoK8sApiCoreV1CapabilitiesFromJSONTyped, + IoK8sApiCoreV1CapabilitiesToJSON, +} from './IoK8sApiCoreV1Capabilities'; +import type { IoK8sApiCoreV1SELinuxOptions } from './IoK8sApiCoreV1SELinuxOptions'; +import { + IoK8sApiCoreV1SELinuxOptionsFromJSON, + IoK8sApiCoreV1SELinuxOptionsFromJSONTyped, + IoK8sApiCoreV1SELinuxOptionsToJSON, +} from './IoK8sApiCoreV1SELinuxOptions'; +import type { IoK8sApiCoreV1SeccompProfile } from './IoK8sApiCoreV1SeccompProfile'; +import { + IoK8sApiCoreV1SeccompProfileFromJSON, + IoK8sApiCoreV1SeccompProfileFromJSONTyped, + IoK8sApiCoreV1SeccompProfileToJSON, +} from './IoK8sApiCoreV1SeccompProfile'; +import type { IoK8sApiCoreV1WindowsSecurityContextOptions } from './IoK8sApiCoreV1WindowsSecurityContextOptions'; +import { + IoK8sApiCoreV1WindowsSecurityContextOptionsFromJSON, + IoK8sApiCoreV1WindowsSecurityContextOptionsFromJSONTyped, + IoK8sApiCoreV1WindowsSecurityContextOptionsToJSON, +} from './IoK8sApiCoreV1WindowsSecurityContextOptions'; + +/** + * SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence. + * @export + * @interface IoK8sApiCoreV1SecurityContext + */ +export interface IoK8sApiCoreV1SecurityContext { + /** + * AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows. + * @type {boolean} + * @memberof IoK8sApiCoreV1SecurityContext + */ + allowPrivilegeEscalation?: boolean; + /** + * + * @type {IoK8sApiCoreV1Capabilities} + * @memberof IoK8sApiCoreV1SecurityContext + */ + capabilities?: IoK8sApiCoreV1Capabilities; + /** + * Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows. + * @type {boolean} + * @memberof IoK8sApiCoreV1SecurityContext + */ + privileged?: boolean; + /** + * procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows. + * @type {string} + * @memberof IoK8sApiCoreV1SecurityContext + */ + procMount?: string; + /** + * Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows. + * @type {boolean} + * @memberof IoK8sApiCoreV1SecurityContext + */ + readOnlyRootFilesystem?: boolean; + /** + * The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. + * @type {number} + * @memberof IoK8sApiCoreV1SecurityContext + */ + runAsGroup?: number; + /** + * Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * @type {boolean} + * @memberof IoK8sApiCoreV1SecurityContext + */ + runAsNonRoot?: boolean; + /** + * The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. + * @type {number} + * @memberof IoK8sApiCoreV1SecurityContext + */ + runAsUser?: number; + /** + * + * @type {IoK8sApiCoreV1SELinuxOptions} + * @memberof IoK8sApiCoreV1SecurityContext + */ + seLinuxOptions?: IoK8sApiCoreV1SELinuxOptions; + /** + * + * @type {IoK8sApiCoreV1SeccompProfile} + * @memberof IoK8sApiCoreV1SecurityContext + */ + seccompProfile?: IoK8sApiCoreV1SeccompProfile; + /** + * + * @type {IoK8sApiCoreV1WindowsSecurityContextOptions} + * @memberof IoK8sApiCoreV1SecurityContext + */ + windowsOptions?: IoK8sApiCoreV1WindowsSecurityContextOptions; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1SecurityContext interface. + */ +export function instanceOfIoK8sApiCoreV1SecurityContext(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1SecurityContextFromJSON(json: any): IoK8sApiCoreV1SecurityContext { + return IoK8sApiCoreV1SecurityContextFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1SecurityContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1SecurityContext { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'allowPrivilegeEscalation': !exists(json, 'allowPrivilegeEscalation') ? undefined : json['allowPrivilegeEscalation'], + 'capabilities': !exists(json, 'capabilities') ? undefined : IoK8sApiCoreV1CapabilitiesFromJSON(json['capabilities']), + 'privileged': !exists(json, 'privileged') ? undefined : json['privileged'], + 'procMount': !exists(json, 'procMount') ? undefined : json['procMount'], + 'readOnlyRootFilesystem': !exists(json, 'readOnlyRootFilesystem') ? undefined : json['readOnlyRootFilesystem'], + 'runAsGroup': !exists(json, 'runAsGroup') ? undefined : json['runAsGroup'], + 'runAsNonRoot': !exists(json, 'runAsNonRoot') ? undefined : json['runAsNonRoot'], + 'runAsUser': !exists(json, 'runAsUser') ? undefined : json['runAsUser'], + 'seLinuxOptions': !exists(json, 'seLinuxOptions') ? undefined : IoK8sApiCoreV1SELinuxOptionsFromJSON(json['seLinuxOptions']), + 'seccompProfile': !exists(json, 'seccompProfile') ? undefined : IoK8sApiCoreV1SeccompProfileFromJSON(json['seccompProfile']), + 'windowsOptions': !exists(json, 'windowsOptions') ? undefined : IoK8sApiCoreV1WindowsSecurityContextOptionsFromJSON(json['windowsOptions']), + }; +} + +export function IoK8sApiCoreV1SecurityContextToJSON(value?: IoK8sApiCoreV1SecurityContext | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'allowPrivilegeEscalation': value.allowPrivilegeEscalation, + 'capabilities': IoK8sApiCoreV1CapabilitiesToJSON(value.capabilities), + 'privileged': value.privileged, + 'procMount': value.procMount, + 'readOnlyRootFilesystem': value.readOnlyRootFilesystem, + 'runAsGroup': value.runAsGroup, + 'runAsNonRoot': value.runAsNonRoot, + 'runAsUser': value.runAsUser, + 'seLinuxOptions': IoK8sApiCoreV1SELinuxOptionsToJSON(value.seLinuxOptions), + 'seccompProfile': IoK8sApiCoreV1SeccompProfileToJSON(value.seccompProfile), + 'windowsOptions': IoK8sApiCoreV1WindowsSecurityContextOptionsToJSON(value.windowsOptions), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Service.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Service.ts new file mode 100644 index 000000000..d273ca08c --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Service.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ServiceSpec } from './IoK8sApiCoreV1ServiceSpec'; +import { + IoK8sApiCoreV1ServiceSpecFromJSON, + IoK8sApiCoreV1ServiceSpecFromJSONTyped, + IoK8sApiCoreV1ServiceSpecToJSON, +} from './IoK8sApiCoreV1ServiceSpec'; +import type { IoK8sApiCoreV1ServiceStatus } from './IoK8sApiCoreV1ServiceStatus'; +import { + IoK8sApiCoreV1ServiceStatusFromJSON, + IoK8sApiCoreV1ServiceStatusFromJSONTyped, + IoK8sApiCoreV1ServiceStatusToJSON, +} from './IoK8sApiCoreV1ServiceStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy. + * @export + * @interface IoK8sApiCoreV1Service + */ +export interface IoK8sApiCoreV1Service { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1Service + */ + 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 + * @type {string} + * @memberof IoK8sApiCoreV1Service + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiCoreV1Service + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiCoreV1ServiceSpec} + * @memberof IoK8sApiCoreV1Service + */ + spec?: IoK8sApiCoreV1ServiceSpec; + /** + * + * @type {IoK8sApiCoreV1ServiceStatus} + * @memberof IoK8sApiCoreV1Service + */ + status?: IoK8sApiCoreV1ServiceStatus; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1Service interface. + */ +export function instanceOfIoK8sApiCoreV1Service(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1ServiceFromJSON(json: any): IoK8sApiCoreV1Service { + return IoK8sApiCoreV1ServiceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1Service { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiCoreV1ServiceSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiCoreV1ServiceStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiCoreV1ServiceToJSON(value?: IoK8sApiCoreV1Service | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiCoreV1ServiceSpecToJSON(value.spec), + 'status': IoK8sApiCoreV1ServiceStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ServiceAccount.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ServiceAccount.ts new file mode 100644 index 000000000..d574e337e --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ServiceAccount.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1LocalObjectReference } from './IoK8sApiCoreV1LocalObjectReference'; +import { + IoK8sApiCoreV1LocalObjectReferenceFromJSON, + IoK8sApiCoreV1LocalObjectReferenceFromJSONTyped, + IoK8sApiCoreV1LocalObjectReferenceToJSON, +} from './IoK8sApiCoreV1LocalObjectReference'; +import type { IoK8sApiCoreV1ObjectReference } from './IoK8sApiCoreV1ObjectReference'; +import { + IoK8sApiCoreV1ObjectReferenceFromJSON, + IoK8sApiCoreV1ObjectReferenceFromJSONTyped, + IoK8sApiCoreV1ObjectReferenceToJSON, +} from './IoK8sApiCoreV1ObjectReference'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets + * @export + * @interface IoK8sApiCoreV1ServiceAccount + */ +export interface IoK8sApiCoreV1ServiceAccount { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1ServiceAccount + */ + apiVersion?: string; + /** + * AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. + * @type {boolean} + * @memberof IoK8sApiCoreV1ServiceAccount + */ + automountServiceAccountToken?: boolean; + /** + * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod + * @type {Array} + * @memberof IoK8sApiCoreV1ServiceAccount + */ + imagePullSecrets?: 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 + * @type {string} + * @memberof IoK8sApiCoreV1ServiceAccount + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiCoreV1ServiceAccount + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a "kubernetes.io/enforce-mountable-secrets" annotation set to "true". This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret + * @type {Array} + * @memberof IoK8sApiCoreV1ServiceAccount + */ + secrets?: Array; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ServiceAccount interface. + */ +export function instanceOfIoK8sApiCoreV1ServiceAccount(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1ServiceAccountFromJSON(json: any): IoK8sApiCoreV1ServiceAccount { + return IoK8sApiCoreV1ServiceAccountFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ServiceAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ServiceAccount { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'automountServiceAccountToken': !exists(json, 'automountServiceAccountToken') ? undefined : json['automountServiceAccountToken'], + 'imagePullSecrets': !exists(json, 'imagePullSecrets') ? undefined : ((json['imagePullSecrets'] as Array).map(IoK8sApiCoreV1LocalObjectReferenceFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'secrets': !exists(json, 'secrets') ? undefined : ((json['secrets'] as Array).map(IoK8sApiCoreV1ObjectReferenceFromJSON)), + }; +} + +export function IoK8sApiCoreV1ServiceAccountToJSON(value?: IoK8sApiCoreV1ServiceAccount | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'automountServiceAccountToken': value.automountServiceAccountToken, + 'imagePullSecrets': value.imagePullSecrets === undefined ? undefined : ((value.imagePullSecrets as Array).map(IoK8sApiCoreV1LocalObjectReferenceToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'secrets': value.secrets === undefined ? undefined : ((value.secrets as Array).map(IoK8sApiCoreV1ObjectReferenceToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ServiceAccountList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ServiceAccountList.ts new file mode 100644 index 000000000..5438d0295 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ServiceAccountList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ServiceAccount } from './IoK8sApiCoreV1ServiceAccount'; +import { + IoK8sApiCoreV1ServiceAccountFromJSON, + IoK8sApiCoreV1ServiceAccountFromJSONTyped, + IoK8sApiCoreV1ServiceAccountToJSON, +} from './IoK8sApiCoreV1ServiceAccount'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * ServiceAccountList is a list of ServiceAccount objects + * @export + * @interface IoK8sApiCoreV1ServiceAccountList + */ +export interface IoK8sApiCoreV1ServiceAccountList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1ServiceAccountList + */ + apiVersion?: string; + /** + * List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * @type {Array} + * @memberof IoK8sApiCoreV1ServiceAccountList + */ + 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 + * @type {string} + * @memberof IoK8sApiCoreV1ServiceAccountList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiCoreV1ServiceAccountList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ServiceAccountList interface. + */ +export function instanceOfIoK8sApiCoreV1ServiceAccountList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1ServiceAccountListFromJSON(json: any): IoK8sApiCoreV1ServiceAccountList { + return IoK8sApiCoreV1ServiceAccountListFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ServiceAccountListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ServiceAccountList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiCoreV1ServiceAccountFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiCoreV1ServiceAccountListToJSON(value?: IoK8sApiCoreV1ServiceAccountList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiCoreV1ServiceAccountToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ServiceAccountTokenProjection.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ServiceAccountTokenProjection.ts new file mode 100644 index 000000000..86d101a2f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ServiceAccountTokenProjection.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise). + * @export + * @interface IoK8sApiCoreV1ServiceAccountTokenProjection + */ +export interface IoK8sApiCoreV1ServiceAccountTokenProjection { + /** + * audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * @type {string} + * @memberof IoK8sApiCoreV1ServiceAccountTokenProjection + */ + audience?: string; + /** + * expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * @type {number} + * @memberof IoK8sApiCoreV1ServiceAccountTokenProjection + */ + expirationSeconds?: number; + /** + * path is the path relative to the mount point of the file to project the token into. + * @type {string} + * @memberof IoK8sApiCoreV1ServiceAccountTokenProjection + */ + path: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ServiceAccountTokenProjection interface. + */ +export function instanceOfIoK8sApiCoreV1ServiceAccountTokenProjection(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "path" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1ServiceAccountTokenProjectionFromJSON(json: any): IoK8sApiCoreV1ServiceAccountTokenProjection { + return IoK8sApiCoreV1ServiceAccountTokenProjectionFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ServiceAccountTokenProjectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ServiceAccountTokenProjection { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'audience': !exists(json, 'audience') ? undefined : json['audience'], + 'expirationSeconds': !exists(json, 'expirationSeconds') ? undefined : json['expirationSeconds'], + 'path': json['path'], + }; +} + +export function IoK8sApiCoreV1ServiceAccountTokenProjectionToJSON(value?: IoK8sApiCoreV1ServiceAccountTokenProjection | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'audience': value.audience, + 'expirationSeconds': value.expirationSeconds, + 'path': value.path, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ServiceList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ServiceList.ts new file mode 100644 index 000000000..7c28ad53b --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ServiceList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1Service } from './IoK8sApiCoreV1Service'; +import { + IoK8sApiCoreV1ServiceFromJSON, + IoK8sApiCoreV1ServiceFromJSONTyped, + IoK8sApiCoreV1ServiceToJSON, +} from './IoK8sApiCoreV1Service'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * ServiceList holds a list of services. + * @export + * @interface IoK8sApiCoreV1ServiceList + */ +export interface IoK8sApiCoreV1ServiceList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiCoreV1ServiceList + */ + apiVersion?: string; + /** + * List of services + * @type {Array} + * @memberof IoK8sApiCoreV1ServiceList + */ + 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 + * @type {string} + * @memberof IoK8sApiCoreV1ServiceList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiCoreV1ServiceList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ServiceList interface. + */ +export function instanceOfIoK8sApiCoreV1ServiceList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1ServiceListFromJSON(json: any): IoK8sApiCoreV1ServiceList { + return IoK8sApiCoreV1ServiceListFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ServiceListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ServiceList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiCoreV1ServiceFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiCoreV1ServiceListToJSON(value?: IoK8sApiCoreV1ServiceList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiCoreV1ServiceToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ServicePort.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ServicePort.ts new file mode 100644 index 000000000..63f17fd47 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ServicePort.ts @@ -0,0 +1,115 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ServicePort contains information on service's port. + * @export + * @interface IoK8sApiCoreV1ServicePort + */ +export interface IoK8sApiCoreV1ServicePort { + /** + * The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: + * + * * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). + * + * * Kubernetes-defined prefixed names: + * * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- + * * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 + * * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 + * + * * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. + * @type {string} + * @memberof IoK8sApiCoreV1ServicePort + */ + appProtocol?: string; + /** + * The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service. + * @type {string} + * @memberof IoK8sApiCoreV1ServicePort + */ + name?: string; + /** + * The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport + * @type {number} + * @memberof IoK8sApiCoreV1ServicePort + */ + nodePort?: number; + /** + * The port that will be exposed by this service. + * @type {number} + * @memberof IoK8sApiCoreV1ServicePort + */ + port: number; + /** + * The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is TCP. + * @type {string} + * @memberof IoK8sApiCoreV1ServicePort + */ + protocol?: string; + /** + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. + * @type {string} + * @memberof IoK8sApiCoreV1ServicePort + */ + targetPort?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ServicePort interface. + */ +export function instanceOfIoK8sApiCoreV1ServicePort(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "port" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1ServicePortFromJSON(json: any): IoK8sApiCoreV1ServicePort { + return IoK8sApiCoreV1ServicePortFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ServicePortFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ServicePort { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'appProtocol': !exists(json, 'appProtocol') ? undefined : json['appProtocol'], + 'name': !exists(json, 'name') ? undefined : json['name'], + 'nodePort': !exists(json, 'nodePort') ? undefined : json['nodePort'], + 'port': json['port'], + 'protocol': !exists(json, 'protocol') ? undefined : json['protocol'], + 'targetPort': !exists(json, 'targetPort') ? undefined : json['targetPort'], + }; +} + +export function IoK8sApiCoreV1ServicePortToJSON(value?: IoK8sApiCoreV1ServicePort | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'appProtocol': value.appProtocol, + 'name': value.name, + 'nodePort': value.nodePort, + 'port': value.port, + 'protocol': value.protocol, + 'targetPort': value.targetPort, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ServiceSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ServiceSpec.ts new file mode 100644 index 000000000..5d2bcb0f3 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ServiceSpec.ts @@ -0,0 +1,226 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ServicePort } from './IoK8sApiCoreV1ServicePort'; +import { + IoK8sApiCoreV1ServicePortFromJSON, + IoK8sApiCoreV1ServicePortFromJSONTyped, + IoK8sApiCoreV1ServicePortToJSON, +} from './IoK8sApiCoreV1ServicePort'; +import type { IoK8sApiCoreV1SessionAffinityConfig } from './IoK8sApiCoreV1SessionAffinityConfig'; +import { + IoK8sApiCoreV1SessionAffinityConfigFromJSON, + IoK8sApiCoreV1SessionAffinityConfigFromJSONTyped, + IoK8sApiCoreV1SessionAffinityConfigToJSON, +} from './IoK8sApiCoreV1SessionAffinityConfig'; + +/** + * ServiceSpec describes the attributes that a user creates on a service. + * @export + * @interface IoK8sApiCoreV1ServiceSpec + */ +export interface IoK8sApiCoreV1ServiceSpec { + /** + * allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is "true". It may be set to "false" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type. + * @type {boolean} + * @memberof IoK8sApiCoreV1ServiceSpec + */ + allocateLoadBalancerNodePorts?: boolean; + /** + * clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are "None", empty string (""), or a valid IP address. Setting this to "None" makes a "headless service" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + * @type {string} + * @memberof IoK8sApiCoreV1ServiceSpec + */ + clusterIP?: string; + /** + * ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are "None", empty string (""), or a valid IP address. Setting this to "None" makes a "headless service" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value. + * + * This field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + * @type {Array} + * @memberof IoK8sApiCoreV1ServiceSpec + */ + clusterIPs?: string[]; + /** + * externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. + * @type {Array} + * @memberof IoK8sApiCoreV1ServiceSpec + */ + externalIPs?: string[]; + /** + * externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be "ExternalName". + * @type {string} + * @memberof IoK8sApiCoreV1ServiceSpec + */ + externalName?: string; + /** + * externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's "externally-facing" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to "Local", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, "Cluster", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get "Cluster" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node. + * @type {string} + * @memberof IoK8sApiCoreV1ServiceSpec + */ + externalTrafficPolicy?: string; + /** + * healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set. + * @type {number} + * @memberof IoK8sApiCoreV1ServiceSpec + */ + healthCheckNodePort?: number; + /** + * InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to "Local", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, "Cluster", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). + * @type {string} + * @memberof IoK8sApiCoreV1ServiceSpec + */ + internalTrafficPolicy?: string; + /** + * IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are "IPv4" and "IPv6". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to "headless" services. This field will be wiped when updating a Service to type ExternalName. + * + * This field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. + * @type {Array} + * @memberof IoK8sApiCoreV1ServiceSpec + */ + ipFamilies?: string[]; + /** + * IPFamilyPolicy represents the dual-stack-ness requested or required by this Service. If there is no value provided, then this field will be set to SingleStack. Services can be "SingleStack" (a single IP family), "PreferDualStack" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or "RequireDualStack" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName. + * @type {string} + * @memberof IoK8sApiCoreV1ServiceSpec + */ + ipFamilyPolicy?: string; + /** + * loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type. + * @type {string} + * @memberof IoK8sApiCoreV1ServiceSpec + */ + loadBalancerClass?: string; + /** + * Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations. Using it is non-portable and it may not support dual-stack. Users are encouraged to use implementation-specific annotations when available. + * @type {string} + * @memberof IoK8sApiCoreV1ServiceSpec + */ + loadBalancerIP?: string; + /** + * If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature." More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/ + * @type {Array} + * @memberof IoK8sApiCoreV1ServiceSpec + */ + loadBalancerSourceRanges?: string[]; + /** + * The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + * @type {Array} + * @memberof IoK8sApiCoreV1ServiceSpec + */ + ports?: Array; + /** + * publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered "ready" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior. + * @type {boolean} + * @memberof IoK8sApiCoreV1ServiceSpec + */ + publishNotReadyAddresses?: boolean; + /** + * Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1ServiceSpec + */ + selector?: { [key: string]: string; }; + /** + * Supports "ClientIP" and "None". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + * @type {string} + * @memberof IoK8sApiCoreV1ServiceSpec + */ + sessionAffinity?: string; + /** + * + * @type {IoK8sApiCoreV1SessionAffinityConfig} + * @memberof IoK8sApiCoreV1ServiceSpec + */ + sessionAffinityConfig?: IoK8sApiCoreV1SessionAffinityConfig; + /** + * type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. "ClusterIP" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is "None", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. "NodePort" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. "LoadBalancer" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. "ExternalName" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types + * @type {string} + * @memberof IoK8sApiCoreV1ServiceSpec + */ + type?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ServiceSpec interface. + */ +export function instanceOfIoK8sApiCoreV1ServiceSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1ServiceSpecFromJSON(json: any): IoK8sApiCoreV1ServiceSpec { + return IoK8sApiCoreV1ServiceSpecFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ServiceSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ServiceSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'allocateLoadBalancerNodePorts': !exists(json, 'allocateLoadBalancerNodePorts') ? undefined : json['allocateLoadBalancerNodePorts'], + 'clusterIP': !exists(json, 'clusterIP') ? undefined : json['clusterIP'], + 'clusterIPs': !exists(json, 'clusterIPs') ? undefined : json['clusterIPs'], + 'externalIPs': !exists(json, 'externalIPs') ? undefined : json['externalIPs'], + 'externalName': !exists(json, 'externalName') ? undefined : json['externalName'], + 'externalTrafficPolicy': !exists(json, 'externalTrafficPolicy') ? undefined : json['externalTrafficPolicy'], + 'healthCheckNodePort': !exists(json, 'healthCheckNodePort') ? undefined : json['healthCheckNodePort'], + 'internalTrafficPolicy': !exists(json, 'internalTrafficPolicy') ? undefined : json['internalTrafficPolicy'], + 'ipFamilies': !exists(json, 'ipFamilies') ? undefined : json['ipFamilies'], + 'ipFamilyPolicy': !exists(json, 'ipFamilyPolicy') ? undefined : json['ipFamilyPolicy'], + 'loadBalancerClass': !exists(json, 'loadBalancerClass') ? undefined : json['loadBalancerClass'], + 'loadBalancerIP': !exists(json, 'loadBalancerIP') ? undefined : json['loadBalancerIP'], + 'loadBalancerSourceRanges': !exists(json, 'loadBalancerSourceRanges') ? undefined : json['loadBalancerSourceRanges'], + 'ports': !exists(json, 'ports') ? undefined : ((json['ports'] as Array).map(IoK8sApiCoreV1ServicePortFromJSON)), + 'publishNotReadyAddresses': !exists(json, 'publishNotReadyAddresses') ? undefined : json['publishNotReadyAddresses'], + 'selector': !exists(json, 'selector') ? undefined : json['selector'], + 'sessionAffinity': !exists(json, 'sessionAffinity') ? undefined : json['sessionAffinity'], + 'sessionAffinityConfig': !exists(json, 'sessionAffinityConfig') ? undefined : IoK8sApiCoreV1SessionAffinityConfigFromJSON(json['sessionAffinityConfig']), + 'type': !exists(json, 'type') ? undefined : json['type'], + }; +} + +export function IoK8sApiCoreV1ServiceSpecToJSON(value?: IoK8sApiCoreV1ServiceSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'allocateLoadBalancerNodePorts': value.allocateLoadBalancerNodePorts, + 'clusterIP': value.clusterIP, + 'clusterIPs': value.clusterIPs, + 'externalIPs': value.externalIPs, + 'externalName': value.externalName, + 'externalTrafficPolicy': value.externalTrafficPolicy, + 'healthCheckNodePort': value.healthCheckNodePort, + 'internalTrafficPolicy': value.internalTrafficPolicy, + 'ipFamilies': value.ipFamilies, + 'ipFamilyPolicy': value.ipFamilyPolicy, + 'loadBalancerClass': value.loadBalancerClass, + 'loadBalancerIP': value.loadBalancerIP, + 'loadBalancerSourceRanges': value.loadBalancerSourceRanges, + 'ports': value.ports === undefined ? undefined : ((value.ports as Array).map(IoK8sApiCoreV1ServicePortToJSON)), + 'publishNotReadyAddresses': value.publishNotReadyAddresses, + 'selector': value.selector, + 'sessionAffinity': value.sessionAffinity, + 'sessionAffinityConfig': IoK8sApiCoreV1SessionAffinityConfigToJSON(value.sessionAffinityConfig), + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ServiceStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ServiceStatus.ts new file mode 100644 index 000000000..b73ee3b76 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1ServiceStatus.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1LoadBalancerStatus } from './IoK8sApiCoreV1LoadBalancerStatus'; +import { + IoK8sApiCoreV1LoadBalancerStatusFromJSON, + IoK8sApiCoreV1LoadBalancerStatusFromJSONTyped, + IoK8sApiCoreV1LoadBalancerStatusToJSON, +} from './IoK8sApiCoreV1LoadBalancerStatus'; +import type { IoK8sApimachineryPkgApisMetaV1Condition } from './IoK8sApimachineryPkgApisMetaV1Condition'; +import { + IoK8sApimachineryPkgApisMetaV1ConditionFromJSON, + IoK8sApimachineryPkgApisMetaV1ConditionFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ConditionToJSON, +} from './IoK8sApimachineryPkgApisMetaV1Condition'; + +/** + * ServiceStatus represents the current status of a service. + * @export + * @interface IoK8sApiCoreV1ServiceStatus + */ +export interface IoK8sApiCoreV1ServiceStatus { + /** + * Current service state + * @type {Array} + * @memberof IoK8sApiCoreV1ServiceStatus + */ + conditions?: Array; + /** + * + * @type {IoK8sApiCoreV1LoadBalancerStatus} + * @memberof IoK8sApiCoreV1ServiceStatus + */ + loadBalancer?: IoK8sApiCoreV1LoadBalancerStatus; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1ServiceStatus interface. + */ +export function instanceOfIoK8sApiCoreV1ServiceStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1ServiceStatusFromJSON(json: any): IoK8sApiCoreV1ServiceStatus { + return IoK8sApiCoreV1ServiceStatusFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1ServiceStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1ServiceStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(IoK8sApimachineryPkgApisMetaV1ConditionFromJSON)), + 'loadBalancer': !exists(json, 'loadBalancer') ? undefined : IoK8sApiCoreV1LoadBalancerStatusFromJSON(json['loadBalancer']), + }; +} + +export function IoK8sApiCoreV1ServiceStatusToJSON(value?: IoK8sApiCoreV1ServiceStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(IoK8sApimachineryPkgApisMetaV1ConditionToJSON)), + 'loadBalancer': IoK8sApiCoreV1LoadBalancerStatusToJSON(value.loadBalancer), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SessionAffinityConfig.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SessionAffinityConfig.ts new file mode 100644 index 000000000..4deb18510 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SessionAffinityConfig.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ClientIPConfig } from './IoK8sApiCoreV1ClientIPConfig'; +import { + IoK8sApiCoreV1ClientIPConfigFromJSON, + IoK8sApiCoreV1ClientIPConfigFromJSONTyped, + IoK8sApiCoreV1ClientIPConfigToJSON, +} from './IoK8sApiCoreV1ClientIPConfig'; + +/** + * SessionAffinityConfig represents the configurations of session affinity. + * @export + * @interface IoK8sApiCoreV1SessionAffinityConfig + */ +export interface IoK8sApiCoreV1SessionAffinityConfig { + /** + * + * @type {IoK8sApiCoreV1ClientIPConfig} + * @memberof IoK8sApiCoreV1SessionAffinityConfig + */ + clientIP?: IoK8sApiCoreV1ClientIPConfig; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1SessionAffinityConfig interface. + */ +export function instanceOfIoK8sApiCoreV1SessionAffinityConfig(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1SessionAffinityConfigFromJSON(json: any): IoK8sApiCoreV1SessionAffinityConfig { + return IoK8sApiCoreV1SessionAffinityConfigFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1SessionAffinityConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1SessionAffinityConfig { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'clientIP': !exists(json, 'clientIP') ? undefined : IoK8sApiCoreV1ClientIPConfigFromJSON(json['clientIP']), + }; +} + +export function IoK8sApiCoreV1SessionAffinityConfigToJSON(value?: IoK8sApiCoreV1SessionAffinityConfig | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'clientIP': IoK8sApiCoreV1ClientIPConfigToJSON(value.clientIP), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SleepAction.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SleepAction.ts new file mode 100644 index 000000000..57f7057a8 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1SleepAction.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * SleepAction describes a "sleep" action. + * @export + * @interface IoK8sApiCoreV1SleepAction + */ +export interface IoK8sApiCoreV1SleepAction { + /** + * Seconds is the number of seconds to sleep. + * @type {number} + * @memberof IoK8sApiCoreV1SleepAction + */ + seconds: number; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1SleepAction interface. + */ +export function instanceOfIoK8sApiCoreV1SleepAction(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "seconds" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1SleepActionFromJSON(json: any): IoK8sApiCoreV1SleepAction { + return IoK8sApiCoreV1SleepActionFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1SleepActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1SleepAction { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'seconds': json['seconds'], + }; +} + +export function IoK8sApiCoreV1SleepActionToJSON(value?: IoK8sApiCoreV1SleepAction | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'seconds': value.seconds, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1StorageOSPersistentVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1StorageOSPersistentVolumeSource.ts new file mode 100644 index 000000000..4e4079478 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1StorageOSPersistentVolumeSource.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ObjectReference } from './IoK8sApiCoreV1ObjectReference'; +import { + IoK8sApiCoreV1ObjectReferenceFromJSON, + IoK8sApiCoreV1ObjectReferenceFromJSONTyped, + IoK8sApiCoreV1ObjectReferenceToJSON, +} from './IoK8sApiCoreV1ObjectReference'; + +/** + * Represents a StorageOS persistent volume resource. + * @export + * @interface IoK8sApiCoreV1StorageOSPersistentVolumeSource + */ +export interface IoK8sApiCoreV1StorageOSPersistentVolumeSource { + /** + * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * @type {string} + * @memberof IoK8sApiCoreV1StorageOSPersistentVolumeSource + */ + fsType?: string; + /** + * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * @type {boolean} + * @memberof IoK8sApiCoreV1StorageOSPersistentVolumeSource + */ + readOnly?: boolean; + /** + * + * @type {IoK8sApiCoreV1ObjectReference} + * @memberof IoK8sApiCoreV1StorageOSPersistentVolumeSource + */ + secretRef?: IoK8sApiCoreV1ObjectReference; + /** + * volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * @type {string} + * @memberof IoK8sApiCoreV1StorageOSPersistentVolumeSource + */ + volumeName?: string; + /** + * volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + * @type {string} + * @memberof IoK8sApiCoreV1StorageOSPersistentVolumeSource + */ + volumeNamespace?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1StorageOSPersistentVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1StorageOSPersistentVolumeSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1StorageOSPersistentVolumeSourceFromJSON(json: any): IoK8sApiCoreV1StorageOSPersistentVolumeSource { + return IoK8sApiCoreV1StorageOSPersistentVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1StorageOSPersistentVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1StorageOSPersistentVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'fsType': !exists(json, 'fsType') ? undefined : json['fsType'], + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + 'secretRef': !exists(json, 'secretRef') ? undefined : IoK8sApiCoreV1ObjectReferenceFromJSON(json['secretRef']), + 'volumeName': !exists(json, 'volumeName') ? undefined : json['volumeName'], + 'volumeNamespace': !exists(json, 'volumeNamespace') ? undefined : json['volumeNamespace'], + }; +} + +export function IoK8sApiCoreV1StorageOSPersistentVolumeSourceToJSON(value?: IoK8sApiCoreV1StorageOSPersistentVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'fsType': value.fsType, + 'readOnly': value.readOnly, + 'secretRef': IoK8sApiCoreV1ObjectReferenceToJSON(value.secretRef), + 'volumeName': value.volumeName, + 'volumeNamespace': value.volumeNamespace, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1StorageOSVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1StorageOSVolumeSource.ts new file mode 100644 index 000000000..f88debaf7 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1StorageOSVolumeSource.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1LocalObjectReference } from './IoK8sApiCoreV1LocalObjectReference'; +import { + IoK8sApiCoreV1LocalObjectReferenceFromJSON, + IoK8sApiCoreV1LocalObjectReferenceFromJSONTyped, + IoK8sApiCoreV1LocalObjectReferenceToJSON, +} from './IoK8sApiCoreV1LocalObjectReference'; + +/** + * Represents a StorageOS persistent volume resource. + * @export + * @interface IoK8sApiCoreV1StorageOSVolumeSource + */ +export interface IoK8sApiCoreV1StorageOSVolumeSource { + /** + * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * @type {string} + * @memberof IoK8sApiCoreV1StorageOSVolumeSource + */ + fsType?: string; + /** + * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * @type {boolean} + * @memberof IoK8sApiCoreV1StorageOSVolumeSource + */ + readOnly?: boolean; + /** + * + * @type {IoK8sApiCoreV1LocalObjectReference} + * @memberof IoK8sApiCoreV1StorageOSVolumeSource + */ + secretRef?: IoK8sApiCoreV1LocalObjectReference; + /** + * volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * @type {string} + * @memberof IoK8sApiCoreV1StorageOSVolumeSource + */ + volumeName?: string; + /** + * volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + * @type {string} + * @memberof IoK8sApiCoreV1StorageOSVolumeSource + */ + volumeNamespace?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1StorageOSVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1StorageOSVolumeSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1StorageOSVolumeSourceFromJSON(json: any): IoK8sApiCoreV1StorageOSVolumeSource { + return IoK8sApiCoreV1StorageOSVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1StorageOSVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1StorageOSVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'fsType': !exists(json, 'fsType') ? undefined : json['fsType'], + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + 'secretRef': !exists(json, 'secretRef') ? undefined : IoK8sApiCoreV1LocalObjectReferenceFromJSON(json['secretRef']), + 'volumeName': !exists(json, 'volumeName') ? undefined : json['volumeName'], + 'volumeNamespace': !exists(json, 'volumeNamespace') ? undefined : json['volumeNamespace'], + }; +} + +export function IoK8sApiCoreV1StorageOSVolumeSourceToJSON(value?: IoK8sApiCoreV1StorageOSVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'fsType': value.fsType, + 'readOnly': value.readOnly, + 'secretRef': IoK8sApiCoreV1LocalObjectReferenceToJSON(value.secretRef), + 'volumeName': value.volumeName, + 'volumeNamespace': value.volumeNamespace, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Sysctl.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Sysctl.ts new file mode 100644 index 000000000..a810bae8c --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Sysctl.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Sysctl defines a kernel parameter to be set + * @export + * @interface IoK8sApiCoreV1Sysctl + */ +export interface IoK8sApiCoreV1Sysctl { + /** + * Name of a property to set + * @type {string} + * @memberof IoK8sApiCoreV1Sysctl + */ + name: string; + /** + * Value of a property to set + * @type {string} + * @memberof IoK8sApiCoreV1Sysctl + */ + value: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1Sysctl interface. + */ +export function instanceOfIoK8sApiCoreV1Sysctl(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "value" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1SysctlFromJSON(json: any): IoK8sApiCoreV1Sysctl { + return IoK8sApiCoreV1SysctlFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1SysctlFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1Sysctl { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + 'value': json['value'], + }; +} + +export function IoK8sApiCoreV1SysctlToJSON(value?: IoK8sApiCoreV1Sysctl | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'value': value.value, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1TCPSocketAction.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1TCPSocketAction.ts new file mode 100644 index 000000000..b656c4a91 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1TCPSocketAction.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * TCPSocketAction describes an action based on opening a socket + * @export + * @interface IoK8sApiCoreV1TCPSocketAction + */ +export interface IoK8sApiCoreV1TCPSocketAction { + /** + * Optional: Host name to connect to, defaults to the pod IP. + * @type {string} + * @memberof IoK8sApiCoreV1TCPSocketAction + */ + host?: string; + /** + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. + * @type {string} + * @memberof IoK8sApiCoreV1TCPSocketAction + */ + port: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1TCPSocketAction interface. + */ +export function instanceOfIoK8sApiCoreV1TCPSocketAction(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "port" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1TCPSocketActionFromJSON(json: any): IoK8sApiCoreV1TCPSocketAction { + return IoK8sApiCoreV1TCPSocketActionFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1TCPSocketActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1TCPSocketAction { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'host': !exists(json, 'host') ? undefined : json['host'], + 'port': json['port'], + }; +} + +export function IoK8sApiCoreV1TCPSocketActionToJSON(value?: IoK8sApiCoreV1TCPSocketAction | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'host': value.host, + 'port': value.port, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Taint.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Taint.ts new file mode 100644 index 000000000..8a5571152 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Taint.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * The node this Taint is attached to has the "effect" on any pod that does not tolerate the Taint. + * @export + * @interface IoK8sApiCoreV1Taint + */ +export interface IoK8sApiCoreV1Taint { + /** + * Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. + * @type {string} + * @memberof IoK8sApiCoreV1Taint + */ + effect: string; + /** + * Required. The taint key to be applied to a node. + * @type {string} + * @memberof IoK8sApiCoreV1Taint + */ + key: string; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiCoreV1Taint + */ + timeAdded?: string; + /** + * The taint value corresponding to the taint key. + * @type {string} + * @memberof IoK8sApiCoreV1Taint + */ + value?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1Taint interface. + */ +export function instanceOfIoK8sApiCoreV1Taint(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "effect" in value; + isInstance = isInstance && "key" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1TaintFromJSON(json: any): IoK8sApiCoreV1Taint { + return IoK8sApiCoreV1TaintFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1TaintFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1Taint { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'effect': json['effect'], + 'key': json['key'], + 'timeAdded': !exists(json, 'timeAdded') ? undefined : json['timeAdded'], + 'value': !exists(json, 'value') ? undefined : json['value'], + }; +} + +export function IoK8sApiCoreV1TaintToJSON(value?: IoK8sApiCoreV1Taint | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'effect': value.effect, + 'key': value.key, + 'timeAdded': value.timeAdded === undefined ? undefined : (value.timeAdded), + 'value': value.value, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Toleration.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Toleration.ts new file mode 100644 index 000000000..4d7de5628 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Toleration.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator . + * @export + * @interface IoK8sApiCoreV1Toleration + */ +export interface IoK8sApiCoreV1Toleration { + /** + * Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * @type {string} + * @memberof IoK8sApiCoreV1Toleration + */ + 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. + * @type {string} + * @memberof IoK8sApiCoreV1Toleration + */ + 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 pod can tolerate all taints of a particular category. + * @type {string} + * @memberof IoK8sApiCoreV1Toleration + */ + 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. + * @type {number} + * @memberof IoK8sApiCoreV1Toleration + */ + tolerationSeconds?: number; + /** + * Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + * @type {string} + * @memberof IoK8sApiCoreV1Toleration + */ + value?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1Toleration interface. + */ +export function instanceOfIoK8sApiCoreV1Toleration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1TolerationFromJSON(json: any): IoK8sApiCoreV1Toleration { + return IoK8sApiCoreV1TolerationFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1TolerationFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1Toleration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'effect': !exists(json, 'effect') ? undefined : json['effect'], + 'key': !exists(json, 'key') ? undefined : json['key'], + 'operator': !exists(json, 'operator') ? undefined : json['operator'], + 'tolerationSeconds': !exists(json, 'tolerationSeconds') ? undefined : json['tolerationSeconds'], + 'value': !exists(json, 'value') ? undefined : json['value'], + }; +} + +export function IoK8sApiCoreV1TolerationToJSON(value?: IoK8sApiCoreV1Toleration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'effect': value.effect, + 'key': value.key, + 'operator': value.operator, + 'tolerationSeconds': value.tolerationSeconds, + 'value': value.value, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1TopologySelectorLabelRequirement.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1TopologySelectorLabelRequirement.ts new file mode 100644 index 000000000..fdf40ee59 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1TopologySelectorLabelRequirement.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future. + * @export + * @interface IoK8sApiCoreV1TopologySelectorLabelRequirement + */ +export interface IoK8sApiCoreV1TopologySelectorLabelRequirement { + /** + * The label key that the selector applies to. + * @type {string} + * @memberof IoK8sApiCoreV1TopologySelectorLabelRequirement + */ + key: string; + /** + * An array of string values. One value must match the label to be selected. Each entry in Values is ORed. + * @type {Array} + * @memberof IoK8sApiCoreV1TopologySelectorLabelRequirement + */ + values: string[]; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1TopologySelectorLabelRequirement interface. + */ +export function instanceOfIoK8sApiCoreV1TopologySelectorLabelRequirement(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "key" in value; + isInstance = isInstance && "values" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1TopologySelectorLabelRequirementFromJSON(json: any): IoK8sApiCoreV1TopologySelectorLabelRequirement { + return IoK8sApiCoreV1TopologySelectorLabelRequirementFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1TopologySelectorLabelRequirementFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1TopologySelectorLabelRequirement { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'key': json['key'], + 'values': json['values'], + }; +} + +export function IoK8sApiCoreV1TopologySelectorLabelRequirementToJSON(value?: IoK8sApiCoreV1TopologySelectorLabelRequirement | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'key': value.key, + 'values': value.values, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1TopologySelectorTerm.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1TopologySelectorTerm.ts new file mode 100644 index 000000000..6dbfbc01c --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1TopologySelectorTerm.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1TopologySelectorLabelRequirement } from './IoK8sApiCoreV1TopologySelectorLabelRequirement'; +import { + IoK8sApiCoreV1TopologySelectorLabelRequirementFromJSON, + IoK8sApiCoreV1TopologySelectorLabelRequirementFromJSONTyped, + IoK8sApiCoreV1TopologySelectorLabelRequirementToJSON, +} from './IoK8sApiCoreV1TopologySelectorLabelRequirement'; + +/** + * A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future. + * @export + * @interface IoK8sApiCoreV1TopologySelectorTerm + */ +export interface IoK8sApiCoreV1TopologySelectorTerm { + /** + * A list of topology selector requirements by labels. + * @type {Array} + * @memberof IoK8sApiCoreV1TopologySelectorTerm + */ + matchLabelExpressions?: Array; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1TopologySelectorTerm interface. + */ +export function instanceOfIoK8sApiCoreV1TopologySelectorTerm(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1TopologySelectorTermFromJSON(json: any): IoK8sApiCoreV1TopologySelectorTerm { + return IoK8sApiCoreV1TopologySelectorTermFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1TopologySelectorTermFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1TopologySelectorTerm { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'matchLabelExpressions': !exists(json, 'matchLabelExpressions') ? undefined : ((json['matchLabelExpressions'] as Array).map(IoK8sApiCoreV1TopologySelectorLabelRequirementFromJSON)), + }; +} + +export function IoK8sApiCoreV1TopologySelectorTermToJSON(value?: IoK8sApiCoreV1TopologySelectorTerm | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'matchLabelExpressions': value.matchLabelExpressions === undefined ? undefined : ((value.matchLabelExpressions as Array).map(IoK8sApiCoreV1TopologySelectorLabelRequirementToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1TopologySpreadConstraint.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1TopologySpreadConstraint.ts new file mode 100644 index 000000000..2d23e9cd3 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1TopologySpreadConstraint.ts @@ -0,0 +1,144 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1LabelSelector } from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; +import { + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON, + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; + +/** + * TopologySpreadConstraint specifies how to spread matching pods among the given topology. + * @export + * @interface IoK8sApiCoreV1TopologySpreadConstraint + */ +export interface IoK8sApiCoreV1TopologySpreadConstraint { + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1LabelSelector} + * @memberof IoK8sApiCoreV1TopologySpreadConstraint + */ + labelSelector?: IoK8sApimachineryPkgApisMetaV1LabelSelector; + /** + * MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. + * + * This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default). + * @type {Array} + * @memberof IoK8sApiCoreV1TopologySpreadConstraint + */ + matchLabelKeys?: string[]; + /** + * MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. + * @type {number} + * @memberof IoK8sApiCoreV1TopologySpreadConstraint + */ + maxSkew: number; + /** + * MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. + * + * For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. + * + * This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). + * @type {number} + * @memberof IoK8sApiCoreV1TopologySpreadConstraint + */ + minDomains?: number; + /** + * NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. + * + * If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. + * @type {string} + * @memberof IoK8sApiCoreV1TopologySpreadConstraint + */ + nodeAffinityPolicy?: string; + /** + * NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. + * + * If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. + * @type {string} + * @memberof IoK8sApiCoreV1TopologySpreadConstraint + */ + nodeTaintsPolicy?: string; + /** + * TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology. And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology. It's a required field. + * @type {string} + * @memberof IoK8sApiCoreV1TopologySpreadConstraint + */ + topologyKey: string; + /** + * WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, + * but giving higher precedence to topologies that would help reduce the + * skew. + * A constraint is considered "Unsatisfiable" for an incoming pod if and only if every possible node assignment for that pod would violate "MaxSkew" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + * @type {string} + * @memberof IoK8sApiCoreV1TopologySpreadConstraint + */ + whenUnsatisfiable: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1TopologySpreadConstraint interface. + */ +export function instanceOfIoK8sApiCoreV1TopologySpreadConstraint(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "maxSkew" in value; + isInstance = isInstance && "topologyKey" in value; + isInstance = isInstance && "whenUnsatisfiable" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1TopologySpreadConstraintFromJSON(json: any): IoK8sApiCoreV1TopologySpreadConstraint { + return IoK8sApiCoreV1TopologySpreadConstraintFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1TopologySpreadConstraintFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1TopologySpreadConstraint { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'labelSelector': !exists(json, 'labelSelector') ? undefined : IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['labelSelector']), + 'matchLabelKeys': !exists(json, 'matchLabelKeys') ? undefined : json['matchLabelKeys'], + 'maxSkew': json['maxSkew'], + 'minDomains': !exists(json, 'minDomains') ? undefined : json['minDomains'], + 'nodeAffinityPolicy': !exists(json, 'nodeAffinityPolicy') ? undefined : json['nodeAffinityPolicy'], + 'nodeTaintsPolicy': !exists(json, 'nodeTaintsPolicy') ? undefined : json['nodeTaintsPolicy'], + 'topologyKey': json['topologyKey'], + 'whenUnsatisfiable': json['whenUnsatisfiable'], + }; +} + +export function IoK8sApiCoreV1TopologySpreadConstraintToJSON(value?: IoK8sApiCoreV1TopologySpreadConstraint | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'labelSelector': IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value.labelSelector), + 'matchLabelKeys': value.matchLabelKeys, + 'maxSkew': value.maxSkew, + 'minDomains': value.minDomains, + 'nodeAffinityPolicy': value.nodeAffinityPolicy, + 'nodeTaintsPolicy': value.nodeTaintsPolicy, + 'topologyKey': value.topologyKey, + 'whenUnsatisfiable': value.whenUnsatisfiable, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1TypedLocalObjectReference.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1TypedLocalObjectReference.ts new file mode 100644 index 000000000..999f2c9a2 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1TypedLocalObjectReference.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace. + * @export + * @interface IoK8sApiCoreV1TypedLocalObjectReference + */ +export interface IoK8sApiCoreV1TypedLocalObjectReference { + /** + * APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * @type {string} + * @memberof IoK8sApiCoreV1TypedLocalObjectReference + */ + apiGroup?: string; + /** + * Kind is the type of resource being referenced + * @type {string} + * @memberof IoK8sApiCoreV1TypedLocalObjectReference + */ + kind: string; + /** + * Name is the name of resource being referenced + * @type {string} + * @memberof IoK8sApiCoreV1TypedLocalObjectReference + */ + name: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1TypedLocalObjectReference interface. + */ +export function instanceOfIoK8sApiCoreV1TypedLocalObjectReference(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "kind" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1TypedLocalObjectReferenceFromJSON(json: any): IoK8sApiCoreV1TypedLocalObjectReference { + return IoK8sApiCoreV1TypedLocalObjectReferenceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1TypedLocalObjectReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1TypedLocalObjectReference { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiGroup': !exists(json, 'apiGroup') ? undefined : json['apiGroup'], + 'kind': json['kind'], + 'name': json['name'], + }; +} + +export function IoK8sApiCoreV1TypedLocalObjectReferenceToJSON(value?: IoK8sApiCoreV1TypedLocalObjectReference | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiGroup': value.apiGroup, + 'kind': value.kind, + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1TypedObjectReference.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1TypedObjectReference.ts new file mode 100644 index 000000000..38942ca9b --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1TypedObjectReference.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface IoK8sApiCoreV1TypedObjectReference + */ +export interface IoK8sApiCoreV1TypedObjectReference { + /** + * APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * @type {string} + * @memberof IoK8sApiCoreV1TypedObjectReference + */ + apiGroup?: string; + /** + * Kind is the type of resource being referenced + * @type {string} + * @memberof IoK8sApiCoreV1TypedObjectReference + */ + kind: string; + /** + * Name is the name of resource being referenced + * @type {string} + * @memberof IoK8sApiCoreV1TypedObjectReference + */ + name: string; + /** + * Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled. + * @type {string} + * @memberof IoK8sApiCoreV1TypedObjectReference + */ + namespace?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1TypedObjectReference interface. + */ +export function instanceOfIoK8sApiCoreV1TypedObjectReference(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "kind" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1TypedObjectReferenceFromJSON(json: any): IoK8sApiCoreV1TypedObjectReference { + return IoK8sApiCoreV1TypedObjectReferenceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1TypedObjectReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1TypedObjectReference { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiGroup': !exists(json, 'apiGroup') ? undefined : json['apiGroup'], + 'kind': json['kind'], + 'name': json['name'], + 'namespace': !exists(json, 'namespace') ? undefined : json['namespace'], + }; +} + +export function IoK8sApiCoreV1TypedObjectReferenceToJSON(value?: IoK8sApiCoreV1TypedObjectReference | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiGroup': value.apiGroup, + 'kind': value.kind, + 'name': value.name, + 'namespace': value.namespace, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Volume.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Volume.ts new file mode 100644 index 000000000..ae97cca35 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1Volume.ts @@ -0,0 +1,473 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1AWSElasticBlockStoreVolumeSource } from './IoK8sApiCoreV1AWSElasticBlockStoreVolumeSource'; +import { + IoK8sApiCoreV1AWSElasticBlockStoreVolumeSourceFromJSON, + IoK8sApiCoreV1AWSElasticBlockStoreVolumeSourceFromJSONTyped, + IoK8sApiCoreV1AWSElasticBlockStoreVolumeSourceToJSON, +} from './IoK8sApiCoreV1AWSElasticBlockStoreVolumeSource'; +import type { IoK8sApiCoreV1AzureDiskVolumeSource } from './IoK8sApiCoreV1AzureDiskVolumeSource'; +import { + IoK8sApiCoreV1AzureDiskVolumeSourceFromJSON, + IoK8sApiCoreV1AzureDiskVolumeSourceFromJSONTyped, + IoK8sApiCoreV1AzureDiskVolumeSourceToJSON, +} from './IoK8sApiCoreV1AzureDiskVolumeSource'; +import type { IoK8sApiCoreV1AzureFileVolumeSource } from './IoK8sApiCoreV1AzureFileVolumeSource'; +import { + IoK8sApiCoreV1AzureFileVolumeSourceFromJSON, + IoK8sApiCoreV1AzureFileVolumeSourceFromJSONTyped, + IoK8sApiCoreV1AzureFileVolumeSourceToJSON, +} from './IoK8sApiCoreV1AzureFileVolumeSource'; +import type { IoK8sApiCoreV1CSIVolumeSource } from './IoK8sApiCoreV1CSIVolumeSource'; +import { + IoK8sApiCoreV1CSIVolumeSourceFromJSON, + IoK8sApiCoreV1CSIVolumeSourceFromJSONTyped, + IoK8sApiCoreV1CSIVolumeSourceToJSON, +} from './IoK8sApiCoreV1CSIVolumeSource'; +import type { IoK8sApiCoreV1CephFSVolumeSource } from './IoK8sApiCoreV1CephFSVolumeSource'; +import { + IoK8sApiCoreV1CephFSVolumeSourceFromJSON, + IoK8sApiCoreV1CephFSVolumeSourceFromJSONTyped, + IoK8sApiCoreV1CephFSVolumeSourceToJSON, +} from './IoK8sApiCoreV1CephFSVolumeSource'; +import type { IoK8sApiCoreV1CinderVolumeSource } from './IoK8sApiCoreV1CinderVolumeSource'; +import { + IoK8sApiCoreV1CinderVolumeSourceFromJSON, + IoK8sApiCoreV1CinderVolumeSourceFromJSONTyped, + IoK8sApiCoreV1CinderVolumeSourceToJSON, +} from './IoK8sApiCoreV1CinderVolumeSource'; +import type { IoK8sApiCoreV1ConfigMapVolumeSource } from './IoK8sApiCoreV1ConfigMapVolumeSource'; +import { + IoK8sApiCoreV1ConfigMapVolumeSourceFromJSON, + IoK8sApiCoreV1ConfigMapVolumeSourceFromJSONTyped, + IoK8sApiCoreV1ConfigMapVolumeSourceToJSON, +} from './IoK8sApiCoreV1ConfigMapVolumeSource'; +import type { IoK8sApiCoreV1DownwardAPIVolumeSource } from './IoK8sApiCoreV1DownwardAPIVolumeSource'; +import { + IoK8sApiCoreV1DownwardAPIVolumeSourceFromJSON, + IoK8sApiCoreV1DownwardAPIVolumeSourceFromJSONTyped, + IoK8sApiCoreV1DownwardAPIVolumeSourceToJSON, +} from './IoK8sApiCoreV1DownwardAPIVolumeSource'; +import type { IoK8sApiCoreV1EmptyDirVolumeSource } from './IoK8sApiCoreV1EmptyDirVolumeSource'; +import { + IoK8sApiCoreV1EmptyDirVolumeSourceFromJSON, + IoK8sApiCoreV1EmptyDirVolumeSourceFromJSONTyped, + IoK8sApiCoreV1EmptyDirVolumeSourceToJSON, +} from './IoK8sApiCoreV1EmptyDirVolumeSource'; +import type { IoK8sApiCoreV1EphemeralVolumeSource } from './IoK8sApiCoreV1EphemeralVolumeSource'; +import { + IoK8sApiCoreV1EphemeralVolumeSourceFromJSON, + IoK8sApiCoreV1EphemeralVolumeSourceFromJSONTyped, + IoK8sApiCoreV1EphemeralVolumeSourceToJSON, +} from './IoK8sApiCoreV1EphemeralVolumeSource'; +import type { IoK8sApiCoreV1FCVolumeSource } from './IoK8sApiCoreV1FCVolumeSource'; +import { + IoK8sApiCoreV1FCVolumeSourceFromJSON, + IoK8sApiCoreV1FCVolumeSourceFromJSONTyped, + IoK8sApiCoreV1FCVolumeSourceToJSON, +} from './IoK8sApiCoreV1FCVolumeSource'; +import type { IoK8sApiCoreV1FlexVolumeSource } from './IoK8sApiCoreV1FlexVolumeSource'; +import { + IoK8sApiCoreV1FlexVolumeSourceFromJSON, + IoK8sApiCoreV1FlexVolumeSourceFromJSONTyped, + IoK8sApiCoreV1FlexVolumeSourceToJSON, +} from './IoK8sApiCoreV1FlexVolumeSource'; +import type { IoK8sApiCoreV1FlockerVolumeSource } from './IoK8sApiCoreV1FlockerVolumeSource'; +import { + IoK8sApiCoreV1FlockerVolumeSourceFromJSON, + IoK8sApiCoreV1FlockerVolumeSourceFromJSONTyped, + IoK8sApiCoreV1FlockerVolumeSourceToJSON, +} from './IoK8sApiCoreV1FlockerVolumeSource'; +import type { IoK8sApiCoreV1GCEPersistentDiskVolumeSource } from './IoK8sApiCoreV1GCEPersistentDiskVolumeSource'; +import { + IoK8sApiCoreV1GCEPersistentDiskVolumeSourceFromJSON, + IoK8sApiCoreV1GCEPersistentDiskVolumeSourceFromJSONTyped, + IoK8sApiCoreV1GCEPersistentDiskVolumeSourceToJSON, +} from './IoK8sApiCoreV1GCEPersistentDiskVolumeSource'; +import type { IoK8sApiCoreV1GitRepoVolumeSource } from './IoK8sApiCoreV1GitRepoVolumeSource'; +import { + IoK8sApiCoreV1GitRepoVolumeSourceFromJSON, + IoK8sApiCoreV1GitRepoVolumeSourceFromJSONTyped, + IoK8sApiCoreV1GitRepoVolumeSourceToJSON, +} from './IoK8sApiCoreV1GitRepoVolumeSource'; +import type { IoK8sApiCoreV1GlusterfsVolumeSource } from './IoK8sApiCoreV1GlusterfsVolumeSource'; +import { + IoK8sApiCoreV1GlusterfsVolumeSourceFromJSON, + IoK8sApiCoreV1GlusterfsVolumeSourceFromJSONTyped, + IoK8sApiCoreV1GlusterfsVolumeSourceToJSON, +} from './IoK8sApiCoreV1GlusterfsVolumeSource'; +import type { IoK8sApiCoreV1HostPathVolumeSource } from './IoK8sApiCoreV1HostPathVolumeSource'; +import { + IoK8sApiCoreV1HostPathVolumeSourceFromJSON, + IoK8sApiCoreV1HostPathVolumeSourceFromJSONTyped, + IoK8sApiCoreV1HostPathVolumeSourceToJSON, +} from './IoK8sApiCoreV1HostPathVolumeSource'; +import type { IoK8sApiCoreV1ISCSIVolumeSource } from './IoK8sApiCoreV1ISCSIVolumeSource'; +import { + IoK8sApiCoreV1ISCSIVolumeSourceFromJSON, + IoK8sApiCoreV1ISCSIVolumeSourceFromJSONTyped, + IoK8sApiCoreV1ISCSIVolumeSourceToJSON, +} from './IoK8sApiCoreV1ISCSIVolumeSource'; +import type { IoK8sApiCoreV1NFSVolumeSource } from './IoK8sApiCoreV1NFSVolumeSource'; +import { + IoK8sApiCoreV1NFSVolumeSourceFromJSON, + IoK8sApiCoreV1NFSVolumeSourceFromJSONTyped, + IoK8sApiCoreV1NFSVolumeSourceToJSON, +} from './IoK8sApiCoreV1NFSVolumeSource'; +import type { IoK8sApiCoreV1PersistentVolumeClaimVolumeSource } from './IoK8sApiCoreV1PersistentVolumeClaimVolumeSource'; +import { + IoK8sApiCoreV1PersistentVolumeClaimVolumeSourceFromJSON, + IoK8sApiCoreV1PersistentVolumeClaimVolumeSourceFromJSONTyped, + IoK8sApiCoreV1PersistentVolumeClaimVolumeSourceToJSON, +} from './IoK8sApiCoreV1PersistentVolumeClaimVolumeSource'; +import type { IoK8sApiCoreV1PhotonPersistentDiskVolumeSource } from './IoK8sApiCoreV1PhotonPersistentDiskVolumeSource'; +import { + IoK8sApiCoreV1PhotonPersistentDiskVolumeSourceFromJSON, + IoK8sApiCoreV1PhotonPersistentDiskVolumeSourceFromJSONTyped, + IoK8sApiCoreV1PhotonPersistentDiskVolumeSourceToJSON, +} from './IoK8sApiCoreV1PhotonPersistentDiskVolumeSource'; +import type { IoK8sApiCoreV1PortworxVolumeSource } from './IoK8sApiCoreV1PortworxVolumeSource'; +import { + IoK8sApiCoreV1PortworxVolumeSourceFromJSON, + IoK8sApiCoreV1PortworxVolumeSourceFromJSONTyped, + IoK8sApiCoreV1PortworxVolumeSourceToJSON, +} from './IoK8sApiCoreV1PortworxVolumeSource'; +import type { IoK8sApiCoreV1ProjectedVolumeSource } from './IoK8sApiCoreV1ProjectedVolumeSource'; +import { + IoK8sApiCoreV1ProjectedVolumeSourceFromJSON, + IoK8sApiCoreV1ProjectedVolumeSourceFromJSONTyped, + IoK8sApiCoreV1ProjectedVolumeSourceToJSON, +} from './IoK8sApiCoreV1ProjectedVolumeSource'; +import type { IoK8sApiCoreV1QuobyteVolumeSource } from './IoK8sApiCoreV1QuobyteVolumeSource'; +import { + IoK8sApiCoreV1QuobyteVolumeSourceFromJSON, + IoK8sApiCoreV1QuobyteVolumeSourceFromJSONTyped, + IoK8sApiCoreV1QuobyteVolumeSourceToJSON, +} from './IoK8sApiCoreV1QuobyteVolumeSource'; +import type { IoK8sApiCoreV1RBDVolumeSource } from './IoK8sApiCoreV1RBDVolumeSource'; +import { + IoK8sApiCoreV1RBDVolumeSourceFromJSON, + IoK8sApiCoreV1RBDVolumeSourceFromJSONTyped, + IoK8sApiCoreV1RBDVolumeSourceToJSON, +} from './IoK8sApiCoreV1RBDVolumeSource'; +import type { IoK8sApiCoreV1ScaleIOVolumeSource } from './IoK8sApiCoreV1ScaleIOVolumeSource'; +import { + IoK8sApiCoreV1ScaleIOVolumeSourceFromJSON, + IoK8sApiCoreV1ScaleIOVolumeSourceFromJSONTyped, + IoK8sApiCoreV1ScaleIOVolumeSourceToJSON, +} from './IoK8sApiCoreV1ScaleIOVolumeSource'; +import type { IoK8sApiCoreV1SecretVolumeSource } from './IoK8sApiCoreV1SecretVolumeSource'; +import { + IoK8sApiCoreV1SecretVolumeSourceFromJSON, + IoK8sApiCoreV1SecretVolumeSourceFromJSONTyped, + IoK8sApiCoreV1SecretVolumeSourceToJSON, +} from './IoK8sApiCoreV1SecretVolumeSource'; +import type { IoK8sApiCoreV1StorageOSVolumeSource } from './IoK8sApiCoreV1StorageOSVolumeSource'; +import { + IoK8sApiCoreV1StorageOSVolumeSourceFromJSON, + IoK8sApiCoreV1StorageOSVolumeSourceFromJSONTyped, + IoK8sApiCoreV1StorageOSVolumeSourceToJSON, +} from './IoK8sApiCoreV1StorageOSVolumeSource'; +import type { IoK8sApiCoreV1VsphereVirtualDiskVolumeSource } from './IoK8sApiCoreV1VsphereVirtualDiskVolumeSource'; +import { + IoK8sApiCoreV1VsphereVirtualDiskVolumeSourceFromJSON, + IoK8sApiCoreV1VsphereVirtualDiskVolumeSourceFromJSONTyped, + IoK8sApiCoreV1VsphereVirtualDiskVolumeSourceToJSON, +} from './IoK8sApiCoreV1VsphereVirtualDiskVolumeSource'; + +/** + * Volume represents a named volume in a pod that may be accessed by any container in the pod. + * @export + * @interface IoK8sApiCoreV1Volume + */ +export interface IoK8sApiCoreV1Volume { + /** + * + * @type {IoK8sApiCoreV1AWSElasticBlockStoreVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + awsElasticBlockStore?: IoK8sApiCoreV1AWSElasticBlockStoreVolumeSource; + /** + * + * @type {IoK8sApiCoreV1AzureDiskVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + azureDisk?: IoK8sApiCoreV1AzureDiskVolumeSource; + /** + * + * @type {IoK8sApiCoreV1AzureFileVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + azureFile?: IoK8sApiCoreV1AzureFileVolumeSource; + /** + * + * @type {IoK8sApiCoreV1CephFSVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + cephfs?: IoK8sApiCoreV1CephFSVolumeSource; + /** + * + * @type {IoK8sApiCoreV1CinderVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + cinder?: IoK8sApiCoreV1CinderVolumeSource; + /** + * + * @type {IoK8sApiCoreV1ConfigMapVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + configMap?: IoK8sApiCoreV1ConfigMapVolumeSource; + /** + * + * @type {IoK8sApiCoreV1CSIVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + csi?: IoK8sApiCoreV1CSIVolumeSource; + /** + * + * @type {IoK8sApiCoreV1DownwardAPIVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + downwardAPI?: IoK8sApiCoreV1DownwardAPIVolumeSource; + /** + * + * @type {IoK8sApiCoreV1EmptyDirVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + emptyDir?: IoK8sApiCoreV1EmptyDirVolumeSource; + /** + * + * @type {IoK8sApiCoreV1EphemeralVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + ephemeral?: IoK8sApiCoreV1EphemeralVolumeSource; + /** + * + * @type {IoK8sApiCoreV1FCVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + fc?: IoK8sApiCoreV1FCVolumeSource; + /** + * + * @type {IoK8sApiCoreV1FlexVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + flexVolume?: IoK8sApiCoreV1FlexVolumeSource; + /** + * + * @type {IoK8sApiCoreV1FlockerVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + flocker?: IoK8sApiCoreV1FlockerVolumeSource; + /** + * + * @type {IoK8sApiCoreV1GCEPersistentDiskVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + gcePersistentDisk?: IoK8sApiCoreV1GCEPersistentDiskVolumeSource; + /** + * + * @type {IoK8sApiCoreV1GitRepoVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + gitRepo?: IoK8sApiCoreV1GitRepoVolumeSource; + /** + * + * @type {IoK8sApiCoreV1GlusterfsVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + glusterfs?: IoK8sApiCoreV1GlusterfsVolumeSource; + /** + * + * @type {IoK8sApiCoreV1HostPathVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + hostPath?: IoK8sApiCoreV1HostPathVolumeSource; + /** + * + * @type {IoK8sApiCoreV1ISCSIVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + iscsi?: IoK8sApiCoreV1ISCSIVolumeSource; + /** + * name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * @type {string} + * @memberof IoK8sApiCoreV1Volume + */ + name: string; + /** + * + * @type {IoK8sApiCoreV1NFSVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + nfs?: IoK8sApiCoreV1NFSVolumeSource; + /** + * + * @type {IoK8sApiCoreV1PersistentVolumeClaimVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + persistentVolumeClaim?: IoK8sApiCoreV1PersistentVolumeClaimVolumeSource; + /** + * + * @type {IoK8sApiCoreV1PhotonPersistentDiskVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + photonPersistentDisk?: IoK8sApiCoreV1PhotonPersistentDiskVolumeSource; + /** + * + * @type {IoK8sApiCoreV1PortworxVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + portworxVolume?: IoK8sApiCoreV1PortworxVolumeSource; + /** + * + * @type {IoK8sApiCoreV1ProjectedVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + projected?: IoK8sApiCoreV1ProjectedVolumeSource; + /** + * + * @type {IoK8sApiCoreV1QuobyteVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + quobyte?: IoK8sApiCoreV1QuobyteVolumeSource; + /** + * + * @type {IoK8sApiCoreV1RBDVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + rbd?: IoK8sApiCoreV1RBDVolumeSource; + /** + * + * @type {IoK8sApiCoreV1ScaleIOVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + scaleIO?: IoK8sApiCoreV1ScaleIOVolumeSource; + /** + * + * @type {IoK8sApiCoreV1SecretVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + secret?: IoK8sApiCoreV1SecretVolumeSource; + /** + * + * @type {IoK8sApiCoreV1StorageOSVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + storageos?: IoK8sApiCoreV1StorageOSVolumeSource; + /** + * + * @type {IoK8sApiCoreV1VsphereVirtualDiskVolumeSource} + * @memberof IoK8sApiCoreV1Volume + */ + vsphereVolume?: IoK8sApiCoreV1VsphereVirtualDiskVolumeSource; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1Volume interface. + */ +export function instanceOfIoK8sApiCoreV1Volume(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1VolumeFromJSON(json: any): IoK8sApiCoreV1Volume { + return IoK8sApiCoreV1VolumeFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1VolumeFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1Volume { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'awsElasticBlockStore': !exists(json, 'awsElasticBlockStore') ? undefined : IoK8sApiCoreV1AWSElasticBlockStoreVolumeSourceFromJSON(json['awsElasticBlockStore']), + 'azureDisk': !exists(json, 'azureDisk') ? undefined : IoK8sApiCoreV1AzureDiskVolumeSourceFromJSON(json['azureDisk']), + 'azureFile': !exists(json, 'azureFile') ? undefined : IoK8sApiCoreV1AzureFileVolumeSourceFromJSON(json['azureFile']), + 'cephfs': !exists(json, 'cephfs') ? undefined : IoK8sApiCoreV1CephFSVolumeSourceFromJSON(json['cephfs']), + 'cinder': !exists(json, 'cinder') ? undefined : IoK8sApiCoreV1CinderVolumeSourceFromJSON(json['cinder']), + 'configMap': !exists(json, 'configMap') ? undefined : IoK8sApiCoreV1ConfigMapVolumeSourceFromJSON(json['configMap']), + 'csi': !exists(json, 'csi') ? undefined : IoK8sApiCoreV1CSIVolumeSourceFromJSON(json['csi']), + 'downwardAPI': !exists(json, 'downwardAPI') ? undefined : IoK8sApiCoreV1DownwardAPIVolumeSourceFromJSON(json['downwardAPI']), + 'emptyDir': !exists(json, 'emptyDir') ? undefined : IoK8sApiCoreV1EmptyDirVolumeSourceFromJSON(json['emptyDir']), + 'ephemeral': !exists(json, 'ephemeral') ? undefined : IoK8sApiCoreV1EphemeralVolumeSourceFromJSON(json['ephemeral']), + 'fc': !exists(json, 'fc') ? undefined : IoK8sApiCoreV1FCVolumeSourceFromJSON(json['fc']), + 'flexVolume': !exists(json, 'flexVolume') ? undefined : IoK8sApiCoreV1FlexVolumeSourceFromJSON(json['flexVolume']), + 'flocker': !exists(json, 'flocker') ? undefined : IoK8sApiCoreV1FlockerVolumeSourceFromJSON(json['flocker']), + 'gcePersistentDisk': !exists(json, 'gcePersistentDisk') ? undefined : IoK8sApiCoreV1GCEPersistentDiskVolumeSourceFromJSON(json['gcePersistentDisk']), + 'gitRepo': !exists(json, 'gitRepo') ? undefined : IoK8sApiCoreV1GitRepoVolumeSourceFromJSON(json['gitRepo']), + 'glusterfs': !exists(json, 'glusterfs') ? undefined : IoK8sApiCoreV1GlusterfsVolumeSourceFromJSON(json['glusterfs']), + 'hostPath': !exists(json, 'hostPath') ? undefined : IoK8sApiCoreV1HostPathVolumeSourceFromJSON(json['hostPath']), + 'iscsi': !exists(json, 'iscsi') ? undefined : IoK8sApiCoreV1ISCSIVolumeSourceFromJSON(json['iscsi']), + 'name': json['name'], + 'nfs': !exists(json, 'nfs') ? undefined : IoK8sApiCoreV1NFSVolumeSourceFromJSON(json['nfs']), + 'persistentVolumeClaim': !exists(json, 'persistentVolumeClaim') ? undefined : IoK8sApiCoreV1PersistentVolumeClaimVolumeSourceFromJSON(json['persistentVolumeClaim']), + 'photonPersistentDisk': !exists(json, 'photonPersistentDisk') ? undefined : IoK8sApiCoreV1PhotonPersistentDiskVolumeSourceFromJSON(json['photonPersistentDisk']), + 'portworxVolume': !exists(json, 'portworxVolume') ? undefined : IoK8sApiCoreV1PortworxVolumeSourceFromJSON(json['portworxVolume']), + 'projected': !exists(json, 'projected') ? undefined : IoK8sApiCoreV1ProjectedVolumeSourceFromJSON(json['projected']), + 'quobyte': !exists(json, 'quobyte') ? undefined : IoK8sApiCoreV1QuobyteVolumeSourceFromJSON(json['quobyte']), + 'rbd': !exists(json, 'rbd') ? undefined : IoK8sApiCoreV1RBDVolumeSourceFromJSON(json['rbd']), + 'scaleIO': !exists(json, 'scaleIO') ? undefined : IoK8sApiCoreV1ScaleIOVolumeSourceFromJSON(json['scaleIO']), + 'secret': !exists(json, 'secret') ? undefined : IoK8sApiCoreV1SecretVolumeSourceFromJSON(json['secret']), + 'storageos': !exists(json, 'storageos') ? undefined : IoK8sApiCoreV1StorageOSVolumeSourceFromJSON(json['storageos']), + 'vsphereVolume': !exists(json, 'vsphereVolume') ? undefined : IoK8sApiCoreV1VsphereVirtualDiskVolumeSourceFromJSON(json['vsphereVolume']), + }; +} + +export function IoK8sApiCoreV1VolumeToJSON(value?: IoK8sApiCoreV1Volume | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'awsElasticBlockStore': IoK8sApiCoreV1AWSElasticBlockStoreVolumeSourceToJSON(value.awsElasticBlockStore), + 'azureDisk': IoK8sApiCoreV1AzureDiskVolumeSourceToJSON(value.azureDisk), + 'azureFile': IoK8sApiCoreV1AzureFileVolumeSourceToJSON(value.azureFile), + 'cephfs': IoK8sApiCoreV1CephFSVolumeSourceToJSON(value.cephfs), + 'cinder': IoK8sApiCoreV1CinderVolumeSourceToJSON(value.cinder), + 'configMap': IoK8sApiCoreV1ConfigMapVolumeSourceToJSON(value.configMap), + 'csi': IoK8sApiCoreV1CSIVolumeSourceToJSON(value.csi), + 'downwardAPI': IoK8sApiCoreV1DownwardAPIVolumeSourceToJSON(value.downwardAPI), + 'emptyDir': IoK8sApiCoreV1EmptyDirVolumeSourceToJSON(value.emptyDir), + 'ephemeral': IoK8sApiCoreV1EphemeralVolumeSourceToJSON(value.ephemeral), + 'fc': IoK8sApiCoreV1FCVolumeSourceToJSON(value.fc), + 'flexVolume': IoK8sApiCoreV1FlexVolumeSourceToJSON(value.flexVolume), + 'flocker': IoK8sApiCoreV1FlockerVolumeSourceToJSON(value.flocker), + 'gcePersistentDisk': IoK8sApiCoreV1GCEPersistentDiskVolumeSourceToJSON(value.gcePersistentDisk), + 'gitRepo': IoK8sApiCoreV1GitRepoVolumeSourceToJSON(value.gitRepo), + 'glusterfs': IoK8sApiCoreV1GlusterfsVolumeSourceToJSON(value.glusterfs), + 'hostPath': IoK8sApiCoreV1HostPathVolumeSourceToJSON(value.hostPath), + 'iscsi': IoK8sApiCoreV1ISCSIVolumeSourceToJSON(value.iscsi), + 'name': value.name, + 'nfs': IoK8sApiCoreV1NFSVolumeSourceToJSON(value.nfs), + 'persistentVolumeClaim': IoK8sApiCoreV1PersistentVolumeClaimVolumeSourceToJSON(value.persistentVolumeClaim), + 'photonPersistentDisk': IoK8sApiCoreV1PhotonPersistentDiskVolumeSourceToJSON(value.photonPersistentDisk), + 'portworxVolume': IoK8sApiCoreV1PortworxVolumeSourceToJSON(value.portworxVolume), + 'projected': IoK8sApiCoreV1ProjectedVolumeSourceToJSON(value.projected), + 'quobyte': IoK8sApiCoreV1QuobyteVolumeSourceToJSON(value.quobyte), + 'rbd': IoK8sApiCoreV1RBDVolumeSourceToJSON(value.rbd), + 'scaleIO': IoK8sApiCoreV1ScaleIOVolumeSourceToJSON(value.scaleIO), + 'secret': IoK8sApiCoreV1SecretVolumeSourceToJSON(value.secret), + 'storageos': IoK8sApiCoreV1StorageOSVolumeSourceToJSON(value.storageos), + 'vsphereVolume': IoK8sApiCoreV1VsphereVirtualDiskVolumeSourceToJSON(value.vsphereVolume), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1VolumeDevice.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1VolumeDevice.ts new file mode 100644 index 000000000..b95c3bbdf --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1VolumeDevice.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * volumeDevice describes a mapping of a raw block device within a container. + * @export + * @interface IoK8sApiCoreV1VolumeDevice + */ +export interface IoK8sApiCoreV1VolumeDevice { + /** + * devicePath is the path inside of the container that the device will be mapped to. + * @type {string} + * @memberof IoK8sApiCoreV1VolumeDevice + */ + devicePath: string; + /** + * name must match the name of a persistentVolumeClaim in the pod + * @type {string} + * @memberof IoK8sApiCoreV1VolumeDevice + */ + name: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1VolumeDevice interface. + */ +export function instanceOfIoK8sApiCoreV1VolumeDevice(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "devicePath" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1VolumeDeviceFromJSON(json: any): IoK8sApiCoreV1VolumeDevice { + return IoK8sApiCoreV1VolumeDeviceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1VolumeDeviceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1VolumeDevice { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'devicePath': json['devicePath'], + 'name': json['name'], + }; +} + +export function IoK8sApiCoreV1VolumeDeviceToJSON(value?: IoK8sApiCoreV1VolumeDevice | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'devicePath': value.devicePath, + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1VolumeMount.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1VolumeMount.ts new file mode 100644 index 000000000..3bafe0c82 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1VolumeMount.ts @@ -0,0 +1,107 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * VolumeMount describes a mounting of a Volume within a container. + * @export + * @interface IoK8sApiCoreV1VolumeMount + */ +export interface IoK8sApiCoreV1VolumeMount { + /** + * Path within the container at which the volume should be mounted. Must not contain ':'. + * @type {string} + * @memberof IoK8sApiCoreV1VolumeMount + */ + mountPath: string; + /** + * mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * @type {string} + * @memberof IoK8sApiCoreV1VolumeMount + */ + mountPropagation?: string; + /** + * This must match the Name of a Volume. + * @type {string} + * @memberof IoK8sApiCoreV1VolumeMount + */ + name: string; + /** + * Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * @type {boolean} + * @memberof IoK8sApiCoreV1VolumeMount + */ + readOnly?: boolean; + /** + * Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * @type {string} + * @memberof IoK8sApiCoreV1VolumeMount + */ + subPath?: string; + /** + * Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + * @type {string} + * @memberof IoK8sApiCoreV1VolumeMount + */ + subPathExpr?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1VolumeMount interface. + */ +export function instanceOfIoK8sApiCoreV1VolumeMount(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "mountPath" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1VolumeMountFromJSON(json: any): IoK8sApiCoreV1VolumeMount { + return IoK8sApiCoreV1VolumeMountFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1VolumeMountFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1VolumeMount { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'mountPath': json['mountPath'], + 'mountPropagation': !exists(json, 'mountPropagation') ? undefined : json['mountPropagation'], + 'name': json['name'], + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + 'subPath': !exists(json, 'subPath') ? undefined : json['subPath'], + 'subPathExpr': !exists(json, 'subPathExpr') ? undefined : json['subPathExpr'], + }; +} + +export function IoK8sApiCoreV1VolumeMountToJSON(value?: IoK8sApiCoreV1VolumeMount | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'mountPath': value.mountPath, + 'mountPropagation': value.mountPropagation, + 'name': value.name, + 'readOnly': value.readOnly, + 'subPath': value.subPath, + 'subPathExpr': value.subPathExpr, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1VolumeNodeAffinity.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1VolumeNodeAffinity.ts new file mode 100644 index 000000000..d49f07dc7 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1VolumeNodeAffinity.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1NodeSelector } from './IoK8sApiCoreV1NodeSelector'; +import { + IoK8sApiCoreV1NodeSelectorFromJSON, + IoK8sApiCoreV1NodeSelectorFromJSONTyped, + IoK8sApiCoreV1NodeSelectorToJSON, +} from './IoK8sApiCoreV1NodeSelector'; + +/** + * VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from. + * @export + * @interface IoK8sApiCoreV1VolumeNodeAffinity + */ +export interface IoK8sApiCoreV1VolumeNodeAffinity { + /** + * + * @type {IoK8sApiCoreV1NodeSelector} + * @memberof IoK8sApiCoreV1VolumeNodeAffinity + */ + required?: IoK8sApiCoreV1NodeSelector; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1VolumeNodeAffinity interface. + */ +export function instanceOfIoK8sApiCoreV1VolumeNodeAffinity(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1VolumeNodeAffinityFromJSON(json: any): IoK8sApiCoreV1VolumeNodeAffinity { + return IoK8sApiCoreV1VolumeNodeAffinityFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1VolumeNodeAffinityFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1VolumeNodeAffinity { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'required': !exists(json, 'required') ? undefined : IoK8sApiCoreV1NodeSelectorFromJSON(json['required']), + }; +} + +export function IoK8sApiCoreV1VolumeNodeAffinityToJSON(value?: IoK8sApiCoreV1VolumeNodeAffinity | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'required': IoK8sApiCoreV1NodeSelectorToJSON(value.required), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1VolumeProjection.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1VolumeProjection.ts new file mode 100644 index 000000000..1660c9c76 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1VolumeProjection.ts @@ -0,0 +1,128 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ClusterTrustBundleProjection } from './IoK8sApiCoreV1ClusterTrustBundleProjection'; +import { + IoK8sApiCoreV1ClusterTrustBundleProjectionFromJSON, + IoK8sApiCoreV1ClusterTrustBundleProjectionFromJSONTyped, + IoK8sApiCoreV1ClusterTrustBundleProjectionToJSON, +} from './IoK8sApiCoreV1ClusterTrustBundleProjection'; +import type { IoK8sApiCoreV1ConfigMapProjection } from './IoK8sApiCoreV1ConfigMapProjection'; +import { + IoK8sApiCoreV1ConfigMapProjectionFromJSON, + IoK8sApiCoreV1ConfigMapProjectionFromJSONTyped, + IoK8sApiCoreV1ConfigMapProjectionToJSON, +} from './IoK8sApiCoreV1ConfigMapProjection'; +import type { IoK8sApiCoreV1DownwardAPIProjection } from './IoK8sApiCoreV1DownwardAPIProjection'; +import { + IoK8sApiCoreV1DownwardAPIProjectionFromJSON, + IoK8sApiCoreV1DownwardAPIProjectionFromJSONTyped, + IoK8sApiCoreV1DownwardAPIProjectionToJSON, +} from './IoK8sApiCoreV1DownwardAPIProjection'; +import type { IoK8sApiCoreV1SecretProjection } from './IoK8sApiCoreV1SecretProjection'; +import { + IoK8sApiCoreV1SecretProjectionFromJSON, + IoK8sApiCoreV1SecretProjectionFromJSONTyped, + IoK8sApiCoreV1SecretProjectionToJSON, +} from './IoK8sApiCoreV1SecretProjection'; +import type { IoK8sApiCoreV1ServiceAccountTokenProjection } from './IoK8sApiCoreV1ServiceAccountTokenProjection'; +import { + IoK8sApiCoreV1ServiceAccountTokenProjectionFromJSON, + IoK8sApiCoreV1ServiceAccountTokenProjectionFromJSONTyped, + IoK8sApiCoreV1ServiceAccountTokenProjectionToJSON, +} from './IoK8sApiCoreV1ServiceAccountTokenProjection'; + +/** + * Projection that may be projected along with other supported volume types + * @export + * @interface IoK8sApiCoreV1VolumeProjection + */ +export interface IoK8sApiCoreV1VolumeProjection { + /** + * + * @type {IoK8sApiCoreV1ClusterTrustBundleProjection} + * @memberof IoK8sApiCoreV1VolumeProjection + */ + clusterTrustBundle?: IoK8sApiCoreV1ClusterTrustBundleProjection; + /** + * + * @type {IoK8sApiCoreV1ConfigMapProjection} + * @memberof IoK8sApiCoreV1VolumeProjection + */ + configMap?: IoK8sApiCoreV1ConfigMapProjection; + /** + * + * @type {IoK8sApiCoreV1DownwardAPIProjection} + * @memberof IoK8sApiCoreV1VolumeProjection + */ + downwardAPI?: IoK8sApiCoreV1DownwardAPIProjection; + /** + * + * @type {IoK8sApiCoreV1SecretProjection} + * @memberof IoK8sApiCoreV1VolumeProjection + */ + secret?: IoK8sApiCoreV1SecretProjection; + /** + * + * @type {IoK8sApiCoreV1ServiceAccountTokenProjection} + * @memberof IoK8sApiCoreV1VolumeProjection + */ + serviceAccountToken?: IoK8sApiCoreV1ServiceAccountTokenProjection; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1VolumeProjection interface. + */ +export function instanceOfIoK8sApiCoreV1VolumeProjection(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1VolumeProjectionFromJSON(json: any): IoK8sApiCoreV1VolumeProjection { + return IoK8sApiCoreV1VolumeProjectionFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1VolumeProjectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1VolumeProjection { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'clusterTrustBundle': !exists(json, 'clusterTrustBundle') ? undefined : IoK8sApiCoreV1ClusterTrustBundleProjectionFromJSON(json['clusterTrustBundle']), + 'configMap': !exists(json, 'configMap') ? undefined : IoK8sApiCoreV1ConfigMapProjectionFromJSON(json['configMap']), + 'downwardAPI': !exists(json, 'downwardAPI') ? undefined : IoK8sApiCoreV1DownwardAPIProjectionFromJSON(json['downwardAPI']), + 'secret': !exists(json, 'secret') ? undefined : IoK8sApiCoreV1SecretProjectionFromJSON(json['secret']), + 'serviceAccountToken': !exists(json, 'serviceAccountToken') ? undefined : IoK8sApiCoreV1ServiceAccountTokenProjectionFromJSON(json['serviceAccountToken']), + }; +} + +export function IoK8sApiCoreV1VolumeProjectionToJSON(value?: IoK8sApiCoreV1VolumeProjection | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'clusterTrustBundle': IoK8sApiCoreV1ClusterTrustBundleProjectionToJSON(value.clusterTrustBundle), + 'configMap': IoK8sApiCoreV1ConfigMapProjectionToJSON(value.configMap), + 'downwardAPI': IoK8sApiCoreV1DownwardAPIProjectionToJSON(value.downwardAPI), + 'secret': IoK8sApiCoreV1SecretProjectionToJSON(value.secret), + 'serviceAccountToken': IoK8sApiCoreV1ServiceAccountTokenProjectionToJSON(value.serviceAccountToken), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1VolumeResourceRequirements.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1VolumeResourceRequirements.ts new file mode 100644 index 000000000..1d2c6e5ee --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1VolumeResourceRequirements.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * VolumeResourceRequirements describes the storage resource requirements for a volume. + * @export + * @interface IoK8sApiCoreV1VolumeResourceRequirements + */ +export interface IoK8sApiCoreV1VolumeResourceRequirements { + /** + * Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1VolumeResourceRequirements + */ + limits?: { [key: string]: string; }; + /** + * Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiCoreV1VolumeResourceRequirements + */ + requests?: { [key: string]: string; }; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1VolumeResourceRequirements interface. + */ +export function instanceOfIoK8sApiCoreV1VolumeResourceRequirements(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1VolumeResourceRequirementsFromJSON(json: any): IoK8sApiCoreV1VolumeResourceRequirements { + return IoK8sApiCoreV1VolumeResourceRequirementsFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1VolumeResourceRequirementsFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1VolumeResourceRequirements { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'limits': !exists(json, 'limits') ? undefined : json['limits'], + 'requests': !exists(json, 'requests') ? undefined : json['requests'], + }; +} + +export function IoK8sApiCoreV1VolumeResourceRequirementsToJSON(value?: IoK8sApiCoreV1VolumeResourceRequirements | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'limits': value.limits, + 'requests': value.requests, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1VsphereVirtualDiskVolumeSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1VsphereVirtualDiskVolumeSource.ts new file mode 100644 index 000000000..071881afd --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1VsphereVirtualDiskVolumeSource.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Represents a vSphere volume resource. + * @export + * @interface IoK8sApiCoreV1VsphereVirtualDiskVolumeSource + */ +export interface IoK8sApiCoreV1VsphereVirtualDiskVolumeSource { + /** + * fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * @type {string} + * @memberof IoK8sApiCoreV1VsphereVirtualDiskVolumeSource + */ + fsType?: string; + /** + * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * @type {string} + * @memberof IoK8sApiCoreV1VsphereVirtualDiskVolumeSource + */ + storagePolicyID?: string; + /** + * storagePolicyName is the storage Policy Based Management (SPBM) profile name. + * @type {string} + * @memberof IoK8sApiCoreV1VsphereVirtualDiskVolumeSource + */ + storagePolicyName?: string; + /** + * volumePath is the path that identifies vSphere volume vmdk + * @type {string} + * @memberof IoK8sApiCoreV1VsphereVirtualDiskVolumeSource + */ + volumePath: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1VsphereVirtualDiskVolumeSource interface. + */ +export function instanceOfIoK8sApiCoreV1VsphereVirtualDiskVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "volumePath" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1VsphereVirtualDiskVolumeSourceFromJSON(json: any): IoK8sApiCoreV1VsphereVirtualDiskVolumeSource { + return IoK8sApiCoreV1VsphereVirtualDiskVolumeSourceFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1VsphereVirtualDiskVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1VsphereVirtualDiskVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'fsType': !exists(json, 'fsType') ? undefined : json['fsType'], + 'storagePolicyID': !exists(json, 'storagePolicyID') ? undefined : json['storagePolicyID'], + 'storagePolicyName': !exists(json, 'storagePolicyName') ? undefined : json['storagePolicyName'], + 'volumePath': json['volumePath'], + }; +} + +export function IoK8sApiCoreV1VsphereVirtualDiskVolumeSourceToJSON(value?: IoK8sApiCoreV1VsphereVirtualDiskVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'fsType': value.fsType, + 'storagePolicyID': value.storagePolicyID, + 'storagePolicyName': value.storagePolicyName, + 'volumePath': value.volumePath, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1WeightedPodAffinityTerm.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1WeightedPodAffinityTerm.ts new file mode 100644 index 000000000..0b68cd5a1 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1WeightedPodAffinityTerm.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1PodAffinityTerm } from './IoK8sApiCoreV1PodAffinityTerm'; +import { + IoK8sApiCoreV1PodAffinityTermFromJSON, + IoK8sApiCoreV1PodAffinityTermFromJSONTyped, + IoK8sApiCoreV1PodAffinityTermToJSON, +} from './IoK8sApiCoreV1PodAffinityTerm'; + +/** + * The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) + * @export + * @interface IoK8sApiCoreV1WeightedPodAffinityTerm + */ +export interface IoK8sApiCoreV1WeightedPodAffinityTerm { + /** + * + * @type {IoK8sApiCoreV1PodAffinityTerm} + * @memberof IoK8sApiCoreV1WeightedPodAffinityTerm + */ + podAffinityTerm: IoK8sApiCoreV1PodAffinityTerm; + /** + * weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + * @type {number} + * @memberof IoK8sApiCoreV1WeightedPodAffinityTerm + */ + weight: number; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1WeightedPodAffinityTerm interface. + */ +export function instanceOfIoK8sApiCoreV1WeightedPodAffinityTerm(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "podAffinityTerm" in value; + isInstance = isInstance && "weight" in value; + + return isInstance; +} + +export function IoK8sApiCoreV1WeightedPodAffinityTermFromJSON(json: any): IoK8sApiCoreV1WeightedPodAffinityTerm { + return IoK8sApiCoreV1WeightedPodAffinityTermFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1WeightedPodAffinityTermFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1WeightedPodAffinityTerm { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'podAffinityTerm': IoK8sApiCoreV1PodAffinityTermFromJSON(json['podAffinityTerm']), + 'weight': json['weight'], + }; +} + +export function IoK8sApiCoreV1WeightedPodAffinityTermToJSON(value?: IoK8sApiCoreV1WeightedPodAffinityTerm | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'podAffinityTerm': IoK8sApiCoreV1PodAffinityTermToJSON(value.podAffinityTerm), + 'weight': value.weight, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1WindowsSecurityContextOptions.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1WindowsSecurityContextOptions.ts new file mode 100644 index 000000000..b70fadfc1 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiCoreV1WindowsSecurityContextOptions.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * WindowsSecurityContextOptions contain Windows-specific options and credentials. + * @export + * @interface IoK8sApiCoreV1WindowsSecurityContextOptions + */ +export interface IoK8sApiCoreV1WindowsSecurityContextOptions { + /** + * GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * @type {string} + * @memberof IoK8sApiCoreV1WindowsSecurityContextOptions + */ + gmsaCredentialSpec?: string; + /** + * GMSACredentialSpecName is the name of the GMSA credential spec to use. + * @type {string} + * @memberof IoK8sApiCoreV1WindowsSecurityContextOptions + */ + gmsaCredentialSpecName?: string; + /** + * HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true. + * @type {boolean} + * @memberof IoK8sApiCoreV1WindowsSecurityContextOptions + */ + hostProcess?: boolean; + /** + * The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * @type {string} + * @memberof IoK8sApiCoreV1WindowsSecurityContextOptions + */ + runAsUserName?: string; +} + +/** + * Check if a given object implements the IoK8sApiCoreV1WindowsSecurityContextOptions interface. + */ +export function instanceOfIoK8sApiCoreV1WindowsSecurityContextOptions(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiCoreV1WindowsSecurityContextOptionsFromJSON(json: any): IoK8sApiCoreV1WindowsSecurityContextOptions { + return IoK8sApiCoreV1WindowsSecurityContextOptionsFromJSONTyped(json, false); +} + +export function IoK8sApiCoreV1WindowsSecurityContextOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiCoreV1WindowsSecurityContextOptions { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'gmsaCredentialSpec': !exists(json, 'gmsaCredentialSpec') ? undefined : json['gmsaCredentialSpec'], + 'gmsaCredentialSpecName': !exists(json, 'gmsaCredentialSpecName') ? undefined : json['gmsaCredentialSpecName'], + 'hostProcess': !exists(json, 'hostProcess') ? undefined : json['hostProcess'], + 'runAsUserName': !exists(json, 'runAsUserName') ? undefined : json['runAsUserName'], + }; +} + +export function IoK8sApiCoreV1WindowsSecurityContextOptionsToJSON(value?: IoK8sApiCoreV1WindowsSecurityContextOptions | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'gmsaCredentialSpec': value.gmsaCredentialSpec, + 'gmsaCredentialSpecName': value.gmsaCredentialSpecName, + 'hostProcess': value.hostProcess, + 'runAsUserName': value.runAsUserName, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiDiscoveryV1Endpoint.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiDiscoveryV1Endpoint.ts new file mode 100644 index 000000000..537ea4d23 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiDiscoveryV1Endpoint.ts @@ -0,0 +1,141 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1ObjectReference } from './IoK8sApiCoreV1ObjectReference'; +import { + IoK8sApiCoreV1ObjectReferenceFromJSON, + IoK8sApiCoreV1ObjectReferenceFromJSONTyped, + IoK8sApiCoreV1ObjectReferenceToJSON, +} from './IoK8sApiCoreV1ObjectReference'; +import type { IoK8sApiDiscoveryV1EndpointConditions } from './IoK8sApiDiscoveryV1EndpointConditions'; +import { + IoK8sApiDiscoveryV1EndpointConditionsFromJSON, + IoK8sApiDiscoveryV1EndpointConditionsFromJSONTyped, + IoK8sApiDiscoveryV1EndpointConditionsToJSON, +} from './IoK8sApiDiscoveryV1EndpointConditions'; +import type { IoK8sApiDiscoveryV1EndpointHints } from './IoK8sApiDiscoveryV1EndpointHints'; +import { + IoK8sApiDiscoveryV1EndpointHintsFromJSON, + IoK8sApiDiscoveryV1EndpointHintsFromJSONTyped, + IoK8sApiDiscoveryV1EndpointHintsToJSON, +} from './IoK8sApiDiscoveryV1EndpointHints'; + +/** + * Endpoint represents a single logical "backend" implementing a service. + * @export + * @interface IoK8sApiDiscoveryV1Endpoint + */ +export interface IoK8sApiDiscoveryV1Endpoint { + /** + * addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. These are all assumed to be fungible and clients may choose to only use the first element. Refer to: https://issue.k8s.io/106267 + * @type {Array} + * @memberof IoK8sApiDiscoveryV1Endpoint + */ + addresses: string[]; + /** + * + * @type {IoK8sApiDiscoveryV1EndpointConditions} + * @memberof IoK8sApiDiscoveryV1Endpoint + */ + conditions?: IoK8sApiDiscoveryV1EndpointConditions; + /** + * deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead. + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiDiscoveryV1Endpoint + */ + deprecatedTopology?: { [key: string]: string; }; + /** + * + * @type {IoK8sApiDiscoveryV1EndpointHints} + * @memberof IoK8sApiDiscoveryV1Endpoint + */ + hints?: IoK8sApiDiscoveryV1EndpointHints; + /** + * hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. + * @type {string} + * @memberof IoK8sApiDiscoveryV1Endpoint + */ + hostname?: string; + /** + * nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. + * @type {string} + * @memberof IoK8sApiDiscoveryV1Endpoint + */ + nodeName?: string; + /** + * + * @type {IoK8sApiCoreV1ObjectReference} + * @memberof IoK8sApiDiscoveryV1Endpoint + */ + targetRef?: IoK8sApiCoreV1ObjectReference; + /** + * zone is the name of the Zone this endpoint exists in. + * @type {string} + * @memberof IoK8sApiDiscoveryV1Endpoint + */ + zone?: string; +} + +/** + * Check if a given object implements the IoK8sApiDiscoveryV1Endpoint interface. + */ +export function instanceOfIoK8sApiDiscoveryV1Endpoint(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "addresses" in value; + + return isInstance; +} + +export function IoK8sApiDiscoveryV1EndpointFromJSON(json: any): IoK8sApiDiscoveryV1Endpoint { + return IoK8sApiDiscoveryV1EndpointFromJSONTyped(json, false); +} + +export function IoK8sApiDiscoveryV1EndpointFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiDiscoveryV1Endpoint { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'addresses': json['addresses'], + 'conditions': !exists(json, 'conditions') ? undefined : IoK8sApiDiscoveryV1EndpointConditionsFromJSON(json['conditions']), + 'deprecatedTopology': !exists(json, 'deprecatedTopology') ? undefined : json['deprecatedTopology'], + 'hints': !exists(json, 'hints') ? undefined : IoK8sApiDiscoveryV1EndpointHintsFromJSON(json['hints']), + 'hostname': !exists(json, 'hostname') ? undefined : json['hostname'], + 'nodeName': !exists(json, 'nodeName') ? undefined : json['nodeName'], + 'targetRef': !exists(json, 'targetRef') ? undefined : IoK8sApiCoreV1ObjectReferenceFromJSON(json['targetRef']), + 'zone': !exists(json, 'zone') ? undefined : json['zone'], + }; +} + +export function IoK8sApiDiscoveryV1EndpointToJSON(value?: IoK8sApiDiscoveryV1Endpoint | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'addresses': value.addresses, + 'conditions': IoK8sApiDiscoveryV1EndpointConditionsToJSON(value.conditions), + 'deprecatedTopology': value.deprecatedTopology, + 'hints': IoK8sApiDiscoveryV1EndpointHintsToJSON(value.hints), + 'hostname': value.hostname, + 'nodeName': value.nodeName, + 'targetRef': IoK8sApiCoreV1ObjectReferenceToJSON(value.targetRef), + 'zone': value.zone, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiDiscoveryV1EndpointConditions.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiDiscoveryV1EndpointConditions.ts new file mode 100644 index 000000000..1da0a370f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiDiscoveryV1EndpointConditions.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * EndpointConditions represents the current condition of an endpoint. + * @export + * @interface IoK8sApiDiscoveryV1EndpointConditions + */ +export interface IoK8sApiDiscoveryV1EndpointConditions { + /** + * ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be "true" for terminating endpoints, except when the normal readiness behavior is being explicitly overridden, for example when the associated Service has set the publishNotReadyAddresses flag. + * @type {boolean} + * @memberof IoK8sApiDiscoveryV1EndpointConditions + */ + ready?: boolean; + /** + * serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. + * @type {boolean} + * @memberof IoK8sApiDiscoveryV1EndpointConditions + */ + serving?: boolean; + /** + * terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. + * @type {boolean} + * @memberof IoK8sApiDiscoveryV1EndpointConditions + */ + terminating?: boolean; +} + +/** + * Check if a given object implements the IoK8sApiDiscoveryV1EndpointConditions interface. + */ +export function instanceOfIoK8sApiDiscoveryV1EndpointConditions(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiDiscoveryV1EndpointConditionsFromJSON(json: any): IoK8sApiDiscoveryV1EndpointConditions { + return IoK8sApiDiscoveryV1EndpointConditionsFromJSONTyped(json, false); +} + +export function IoK8sApiDiscoveryV1EndpointConditionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiDiscoveryV1EndpointConditions { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'ready': !exists(json, 'ready') ? undefined : json['ready'], + 'serving': !exists(json, 'serving') ? undefined : json['serving'], + 'terminating': !exists(json, 'terminating') ? undefined : json['terminating'], + }; +} + +export function IoK8sApiDiscoveryV1EndpointConditionsToJSON(value?: IoK8sApiDiscoveryV1EndpointConditions | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ready': value.ready, + 'serving': value.serving, + 'terminating': value.terminating, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiDiscoveryV1EndpointHints.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiDiscoveryV1EndpointHints.ts new file mode 100644 index 000000000..b73d1d926 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiDiscoveryV1EndpointHints.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiDiscoveryV1ForZone } from './IoK8sApiDiscoveryV1ForZone'; +import { + IoK8sApiDiscoveryV1ForZoneFromJSON, + IoK8sApiDiscoveryV1ForZoneFromJSONTyped, + IoK8sApiDiscoveryV1ForZoneToJSON, +} from './IoK8sApiDiscoveryV1ForZone'; + +/** + * EndpointHints provides hints describing how an endpoint should be consumed. + * @export + * @interface IoK8sApiDiscoveryV1EndpointHints + */ +export interface IoK8sApiDiscoveryV1EndpointHints { + /** + * forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing. + * @type {Array} + * @memberof IoK8sApiDiscoveryV1EndpointHints + */ + forZones?: Array; +} + +/** + * Check if a given object implements the IoK8sApiDiscoveryV1EndpointHints interface. + */ +export function instanceOfIoK8sApiDiscoveryV1EndpointHints(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiDiscoveryV1EndpointHintsFromJSON(json: any): IoK8sApiDiscoveryV1EndpointHints { + return IoK8sApiDiscoveryV1EndpointHintsFromJSONTyped(json, false); +} + +export function IoK8sApiDiscoveryV1EndpointHintsFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiDiscoveryV1EndpointHints { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'forZones': !exists(json, 'forZones') ? undefined : ((json['forZones'] as Array).map(IoK8sApiDiscoveryV1ForZoneFromJSON)), + }; +} + +export function IoK8sApiDiscoveryV1EndpointHintsToJSON(value?: IoK8sApiDiscoveryV1EndpointHints | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'forZones': value.forZones === undefined ? undefined : ((value.forZones as Array).map(IoK8sApiDiscoveryV1ForZoneToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiDiscoveryV1EndpointPort.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiDiscoveryV1EndpointPort.ts new file mode 100644 index 000000000..fd3e1d6e2 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiDiscoveryV1EndpointPort.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * EndpointPort represents a Port used by an EndpointSlice + * @export + * @interface IoK8sApiDiscoveryV1EndpointPort + */ +export interface IoK8sApiDiscoveryV1EndpointPort { + /** + * The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: + * + * * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). + * + * * Kubernetes-defined prefixed names: + * * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- + * * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 + * * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 + * + * * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. + * @type {string} + * @memberof IoK8sApiDiscoveryV1EndpointPort + */ + appProtocol?: string; + /** + * name represents the name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is derived from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string. + * @type {string} + * @memberof IoK8sApiDiscoveryV1EndpointPort + */ + name?: string; + /** + * port represents the port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer. + * @type {number} + * @memberof IoK8sApiDiscoveryV1EndpointPort + */ + port?: number; + /** + * protocol represents the IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. + * @type {string} + * @memberof IoK8sApiDiscoveryV1EndpointPort + */ + protocol?: string; +} + +/** + * Check if a given object implements the IoK8sApiDiscoveryV1EndpointPort interface. + */ +export function instanceOfIoK8sApiDiscoveryV1EndpointPort(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiDiscoveryV1EndpointPortFromJSON(json: any): IoK8sApiDiscoveryV1EndpointPort { + return IoK8sApiDiscoveryV1EndpointPortFromJSONTyped(json, false); +} + +export function IoK8sApiDiscoveryV1EndpointPortFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiDiscoveryV1EndpointPort { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'appProtocol': !exists(json, 'appProtocol') ? undefined : json['appProtocol'], + 'name': !exists(json, 'name') ? undefined : json['name'], + 'port': !exists(json, 'port') ? undefined : json['port'], + 'protocol': !exists(json, 'protocol') ? undefined : json['protocol'], + }; +} + +export function IoK8sApiDiscoveryV1EndpointPortToJSON(value?: IoK8sApiDiscoveryV1EndpointPort | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'appProtocol': value.appProtocol, + 'name': value.name, + 'port': value.port, + 'protocol': value.protocol, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiDiscoveryV1EndpointSlice.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiDiscoveryV1EndpointSlice.ts new file mode 100644 index 000000000..57693dfc3 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiDiscoveryV1EndpointSlice.ts @@ -0,0 +1,126 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiDiscoveryV1Endpoint } from './IoK8sApiDiscoveryV1Endpoint'; +import { + IoK8sApiDiscoveryV1EndpointFromJSON, + IoK8sApiDiscoveryV1EndpointFromJSONTyped, + IoK8sApiDiscoveryV1EndpointToJSON, +} from './IoK8sApiDiscoveryV1Endpoint'; +import type { IoK8sApiDiscoveryV1EndpointPort } from './IoK8sApiDiscoveryV1EndpointPort'; +import { + IoK8sApiDiscoveryV1EndpointPortFromJSON, + IoK8sApiDiscoveryV1EndpointPortFromJSONTyped, + IoK8sApiDiscoveryV1EndpointPortToJSON, +} from './IoK8sApiDiscoveryV1EndpointPort'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints. + * @export + * @interface IoK8sApiDiscoveryV1EndpointSlice + */ +export interface IoK8sApiDiscoveryV1EndpointSlice { + /** + * addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. + * @type {string} + * @memberof IoK8sApiDiscoveryV1EndpointSlice + */ + addressType: string; + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiDiscoveryV1EndpointSlice + */ + apiVersion?: string; + /** + * endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. + * @type {Array} + * @memberof IoK8sApiDiscoveryV1EndpointSlice + */ + endpoints: 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 + * @type {string} + * @memberof IoK8sApiDiscoveryV1EndpointSlice + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiDiscoveryV1EndpointSlice + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports. + * @type {Array} + * @memberof IoK8sApiDiscoveryV1EndpointSlice + */ + ports?: Array; +} + +/** + * Check if a given object implements the IoK8sApiDiscoveryV1EndpointSlice interface. + */ +export function instanceOfIoK8sApiDiscoveryV1EndpointSlice(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "addressType" in value; + isInstance = isInstance && "endpoints" in value; + + return isInstance; +} + +export function IoK8sApiDiscoveryV1EndpointSliceFromJSON(json: any): IoK8sApiDiscoveryV1EndpointSlice { + return IoK8sApiDiscoveryV1EndpointSliceFromJSONTyped(json, false); +} + +export function IoK8sApiDiscoveryV1EndpointSliceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiDiscoveryV1EndpointSlice { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'addressType': json['addressType'], + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'endpoints': ((json['endpoints'] as Array).map(IoK8sApiDiscoveryV1EndpointFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'ports': !exists(json, 'ports') ? undefined : ((json['ports'] as Array).map(IoK8sApiDiscoveryV1EndpointPortFromJSON)), + }; +} + +export function IoK8sApiDiscoveryV1EndpointSliceToJSON(value?: IoK8sApiDiscoveryV1EndpointSlice | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'addressType': value.addressType, + 'apiVersion': value.apiVersion, + 'endpoints': ((value.endpoints as Array).map(IoK8sApiDiscoveryV1EndpointToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'ports': value.ports === undefined ? undefined : ((value.ports as Array).map(IoK8sApiDiscoveryV1EndpointPortToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiDiscoveryV1EndpointSliceList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiDiscoveryV1EndpointSliceList.ts new file mode 100644 index 000000000..1c12f1394 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiDiscoveryV1EndpointSliceList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiDiscoveryV1EndpointSlice } from './IoK8sApiDiscoveryV1EndpointSlice'; +import { + IoK8sApiDiscoveryV1EndpointSliceFromJSON, + IoK8sApiDiscoveryV1EndpointSliceFromJSONTyped, + IoK8sApiDiscoveryV1EndpointSliceToJSON, +} from './IoK8sApiDiscoveryV1EndpointSlice'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * EndpointSliceList represents a list of endpoint slices + * @export + * @interface IoK8sApiDiscoveryV1EndpointSliceList + */ +export interface IoK8sApiDiscoveryV1EndpointSliceList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiDiscoveryV1EndpointSliceList + */ + apiVersion?: string; + /** + * items is the list of endpoint slices + * @type {Array} + * @memberof IoK8sApiDiscoveryV1EndpointSliceList + */ + 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 + * @type {string} + * @memberof IoK8sApiDiscoveryV1EndpointSliceList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiDiscoveryV1EndpointSliceList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiDiscoveryV1EndpointSliceList interface. + */ +export function instanceOfIoK8sApiDiscoveryV1EndpointSliceList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiDiscoveryV1EndpointSliceListFromJSON(json: any): IoK8sApiDiscoveryV1EndpointSliceList { + return IoK8sApiDiscoveryV1EndpointSliceListFromJSONTyped(json, false); +} + +export function IoK8sApiDiscoveryV1EndpointSliceListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiDiscoveryV1EndpointSliceList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiDiscoveryV1EndpointSliceFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiDiscoveryV1EndpointSliceListToJSON(value?: IoK8sApiDiscoveryV1EndpointSliceList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiDiscoveryV1EndpointSliceToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiDiscoveryV1ForZone.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiDiscoveryV1ForZone.ts new file mode 100644 index 000000000..a1b90c017 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiDiscoveryV1ForZone.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ForZone provides information about which zones should consume this endpoint. + * @export + * @interface IoK8sApiDiscoveryV1ForZone + */ +export interface IoK8sApiDiscoveryV1ForZone { + /** + * name represents the name of the zone. + * @type {string} + * @memberof IoK8sApiDiscoveryV1ForZone + */ + name: string; +} + +/** + * Check if a given object implements the IoK8sApiDiscoveryV1ForZone interface. + */ +export function instanceOfIoK8sApiDiscoveryV1ForZone(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiDiscoveryV1ForZoneFromJSON(json: any): IoK8sApiDiscoveryV1ForZone { + return IoK8sApiDiscoveryV1ForZoneFromJSONTyped(json, false); +} + +export function IoK8sApiDiscoveryV1ForZoneFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiDiscoveryV1ForZone { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + }; +} + +export function IoK8sApiDiscoveryV1ForZoneToJSON(value?: IoK8sApiDiscoveryV1ForZone | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiEventsV1Event.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiEventsV1Event.ts new file mode 100644 index 000000000..442562087 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiEventsV1Event.ts @@ -0,0 +1,219 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1EventSource } from './IoK8sApiCoreV1EventSource'; +import { + IoK8sApiCoreV1EventSourceFromJSON, + IoK8sApiCoreV1EventSourceFromJSONTyped, + IoK8sApiCoreV1EventSourceToJSON, +} from './IoK8sApiCoreV1EventSource'; +import type { IoK8sApiCoreV1ObjectReference } from './IoK8sApiCoreV1ObjectReference'; +import { + IoK8sApiCoreV1ObjectReferenceFromJSON, + IoK8sApiCoreV1ObjectReferenceFromJSONTyped, + IoK8sApiCoreV1ObjectReferenceToJSON, +} from './IoK8sApiCoreV1ObjectReference'; +import type { IoK8sApiEventsV1EventSeries } from './IoK8sApiEventsV1EventSeries'; +import { + IoK8sApiEventsV1EventSeriesFromJSON, + IoK8sApiEventsV1EventSeriesFromJSONTyped, + IoK8sApiEventsV1EventSeriesToJSON, +} from './IoK8sApiEventsV1EventSeries'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data. + * @export + * @interface IoK8sApiEventsV1Event + */ +export interface IoK8sApiEventsV1Event { + /** + * action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters. + * @type {string} + * @memberof IoK8sApiEventsV1Event + */ + action?: string; + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiEventsV1Event + */ + apiVersion?: string; + /** + * deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type. + * @type {number} + * @memberof IoK8sApiEventsV1Event + */ + deprecatedCount?: number; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiEventsV1Event + */ + deprecatedFirstTimestamp?: string; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiEventsV1Event + */ + deprecatedLastTimestamp?: string; + /** + * + * @type {IoK8sApiCoreV1EventSource} + * @memberof IoK8sApiEventsV1Event + */ + deprecatedSource?: IoK8sApiCoreV1EventSource; + /** + * MicroTime is version of Time with microsecond level precision. + * @type {Date} + * @memberof IoK8sApiEventsV1Event + */ + eventTime: 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 + * @type {string} + * @memberof IoK8sApiEventsV1Event + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiEventsV1Event + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. + * @type {string} + * @memberof IoK8sApiEventsV1Event + */ + note?: string; + /** + * reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. + * @type {string} + * @memberof IoK8sApiEventsV1Event + */ + reason?: string; + /** + * + * @type {IoK8sApiCoreV1ObjectReference} + * @memberof IoK8sApiEventsV1Event + */ + regarding?: IoK8sApiCoreV1ObjectReference; + /** + * + * @type {IoK8sApiCoreV1ObjectReference} + * @memberof IoK8sApiEventsV1Event + */ + related?: IoK8sApiCoreV1ObjectReference; + /** + * reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. + * @type {string} + * @memberof IoK8sApiEventsV1Event + */ + reportingController?: string; + /** + * reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters. + * @type {string} + * @memberof IoK8sApiEventsV1Event + */ + reportingInstance?: string; + /** + * + * @type {IoK8sApiEventsV1EventSeries} + * @memberof IoK8sApiEventsV1Event + */ + series?: IoK8sApiEventsV1EventSeries; + /** + * type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events. + * @type {string} + * @memberof IoK8sApiEventsV1Event + */ + type?: string; +} + +/** + * Check if a given object implements the IoK8sApiEventsV1Event interface. + */ +export function instanceOfIoK8sApiEventsV1Event(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "eventTime" in value; + + return isInstance; +} + +export function IoK8sApiEventsV1EventFromJSON(json: any): IoK8sApiEventsV1Event { + return IoK8sApiEventsV1EventFromJSONTyped(json, false); +} + +export function IoK8sApiEventsV1EventFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiEventsV1Event { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'action': !exists(json, 'action') ? undefined : json['action'], + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'deprecatedCount': !exists(json, 'deprecatedCount') ? undefined : json['deprecatedCount'], + 'deprecatedFirstTimestamp': !exists(json, 'deprecatedFirstTimestamp') ? undefined : json['deprecatedFirstTimestamp'], + 'deprecatedLastTimestamp': !exists(json, 'deprecatedLastTimestamp') ? undefined : json['deprecatedLastTimestamp'], + 'deprecatedSource': !exists(json, 'deprecatedSource') ? undefined : IoK8sApiCoreV1EventSourceFromJSON(json['deprecatedSource']), + 'eventTime': json['eventTime'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'note': !exists(json, 'note') ? undefined : json['note'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'regarding': !exists(json, 'regarding') ? undefined : IoK8sApiCoreV1ObjectReferenceFromJSON(json['regarding']), + 'related': !exists(json, 'related') ? undefined : IoK8sApiCoreV1ObjectReferenceFromJSON(json['related']), + 'reportingController': !exists(json, 'reportingController') ? undefined : json['reportingController'], + 'reportingInstance': !exists(json, 'reportingInstance') ? undefined : json['reportingInstance'], + 'series': !exists(json, 'series') ? undefined : IoK8sApiEventsV1EventSeriesFromJSON(json['series']), + 'type': !exists(json, 'type') ? undefined : json['type'], + }; +} + +export function IoK8sApiEventsV1EventToJSON(value?: IoK8sApiEventsV1Event | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'action': value.action, + 'apiVersion': value.apiVersion, + 'deprecatedCount': value.deprecatedCount, + 'deprecatedFirstTimestamp': value.deprecatedFirstTimestamp === undefined ? undefined : (value.deprecatedFirstTimestamp), + 'deprecatedLastTimestamp': value.deprecatedLastTimestamp === undefined ? undefined : (value.deprecatedLastTimestamp), + 'deprecatedSource': IoK8sApiCoreV1EventSourceToJSON(value.deprecatedSource), + 'eventTime': (value.eventTime), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'note': value.note, + 'reason': value.reason, + 'regarding': IoK8sApiCoreV1ObjectReferenceToJSON(value.regarding), + 'related': IoK8sApiCoreV1ObjectReferenceToJSON(value.related), + 'reportingController': value.reportingController, + 'reportingInstance': value.reportingInstance, + 'series': IoK8sApiEventsV1EventSeriesToJSON(value.series), + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiEventsV1EventList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiEventsV1EventList.ts new file mode 100644 index 000000000..99489e113 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiEventsV1EventList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiEventsV1Event } from './IoK8sApiEventsV1Event'; +import { + IoK8sApiEventsV1EventFromJSON, + IoK8sApiEventsV1EventFromJSONTyped, + IoK8sApiEventsV1EventToJSON, +} from './IoK8sApiEventsV1Event'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * EventList is a list of Event objects. + * @export + * @interface IoK8sApiEventsV1EventList + */ +export interface IoK8sApiEventsV1EventList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiEventsV1EventList + */ + apiVersion?: string; + /** + * items is a list of schema objects. + * @type {Array} + * @memberof IoK8sApiEventsV1EventList + */ + 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 + * @type {string} + * @memberof IoK8sApiEventsV1EventList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiEventsV1EventList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiEventsV1EventList interface. + */ +export function instanceOfIoK8sApiEventsV1EventList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiEventsV1EventListFromJSON(json: any): IoK8sApiEventsV1EventList { + return IoK8sApiEventsV1EventListFromJSONTyped(json, false); +} + +export function IoK8sApiEventsV1EventListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiEventsV1EventList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiEventsV1EventFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiEventsV1EventListToJSON(value?: IoK8sApiEventsV1EventList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiEventsV1EventToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiEventsV1EventSeries.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiEventsV1EventSeries.ts new file mode 100644 index 000000000..b5331479f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiEventsV1EventSeries.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in "k8s.io/client-go/tools/events/event_broadcaster.go" shows how this struct is updated on heartbeats and can guide customized reporter implementations. + * @export + * @interface IoK8sApiEventsV1EventSeries + */ +export interface IoK8sApiEventsV1EventSeries { + /** + * count is the number of occurrences in this series up to the last heartbeat time. + * @type {number} + * @memberof IoK8sApiEventsV1EventSeries + */ + count: number; + /** + * MicroTime is version of Time with microsecond level precision. + * @type {Date} + * @memberof IoK8sApiEventsV1EventSeries + */ + lastObservedTime: string; +} + +/** + * Check if a given object implements the IoK8sApiEventsV1EventSeries interface. + */ +export function instanceOfIoK8sApiEventsV1EventSeries(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "count" in value; + isInstance = isInstance && "lastObservedTime" in value; + + return isInstance; +} + +export function IoK8sApiEventsV1EventSeriesFromJSON(json: any): IoK8sApiEventsV1EventSeries { + return IoK8sApiEventsV1EventSeriesFromJSONTyped(json, false); +} + +export function IoK8sApiEventsV1EventSeriesFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiEventsV1EventSeries { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'count': json['count'], + 'lastObservedTime': json['lastObservedTime'], + }; +} + +export function IoK8sApiEventsV1EventSeriesToJSON(value?: IoK8sApiEventsV1EventSeries | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'count': value.count, + 'lastObservedTime': (value.lastObservedTime), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1ExemptPriorityLevelConfiguration.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1ExemptPriorityLevelConfiguration.ts new file mode 100644 index 000000000..b86f05314 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1ExemptPriorityLevelConfiguration.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`. + * @export + * @interface IoK8sApiFlowcontrolV1ExemptPriorityLevelConfiguration + */ +export interface IoK8sApiFlowcontrolV1ExemptPriorityLevelConfiguration { + /** + * `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. + * + * LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) + * @type {number} + * @memberof IoK8sApiFlowcontrolV1ExemptPriorityLevelConfiguration + */ + lendablePercent?: number; + /** + * `nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values: + * + * NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k) + * + * Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero. + * @type {number} + * @memberof IoK8sApiFlowcontrolV1ExemptPriorityLevelConfiguration + */ + nominalConcurrencyShares?: number; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1ExemptPriorityLevelConfiguration interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1ExemptPriorityLevelConfiguration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1ExemptPriorityLevelConfigurationFromJSON(json: any): IoK8sApiFlowcontrolV1ExemptPriorityLevelConfiguration { + return IoK8sApiFlowcontrolV1ExemptPriorityLevelConfigurationFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1ExemptPriorityLevelConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1ExemptPriorityLevelConfiguration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'lendablePercent': !exists(json, 'lendablePercent') ? undefined : json['lendablePercent'], + 'nominalConcurrencyShares': !exists(json, 'nominalConcurrencyShares') ? undefined : json['nominalConcurrencyShares'], + }; +} + +export function IoK8sApiFlowcontrolV1ExemptPriorityLevelConfigurationToJSON(value?: IoK8sApiFlowcontrolV1ExemptPriorityLevelConfiguration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'lendablePercent': value.lendablePercent, + 'nominalConcurrencyShares': value.nominalConcurrencyShares, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1FlowDistinguisherMethod.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1FlowDistinguisherMethod.ts new file mode 100644 index 000000000..b07558ee5 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1FlowDistinguisherMethod.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * FlowDistinguisherMethod specifies the method of a flow distinguisher. + * @export + * @interface IoK8sApiFlowcontrolV1FlowDistinguisherMethod + */ +export interface IoK8sApiFlowcontrolV1FlowDistinguisherMethod { + /** + * `type` is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1FlowDistinguisherMethod + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1FlowDistinguisherMethod interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1FlowDistinguisherMethod(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1FlowDistinguisherMethodFromJSON(json: any): IoK8sApiFlowcontrolV1FlowDistinguisherMethod { + return IoK8sApiFlowcontrolV1FlowDistinguisherMethodFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1FlowDistinguisherMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1FlowDistinguisherMethod { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'type': json['type'], + }; +} + +export function IoK8sApiFlowcontrolV1FlowDistinguisherMethodToJSON(value?: IoK8sApiFlowcontrolV1FlowDistinguisherMethod | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1FlowSchema.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1FlowSchema.ts new file mode 100644 index 000000000..1deb13f0e --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1FlowSchema.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiFlowcontrolV1FlowSchemaSpec } from './IoK8sApiFlowcontrolV1FlowSchemaSpec'; +import { + IoK8sApiFlowcontrolV1FlowSchemaSpecFromJSON, + IoK8sApiFlowcontrolV1FlowSchemaSpecFromJSONTyped, + IoK8sApiFlowcontrolV1FlowSchemaSpecToJSON, +} from './IoK8sApiFlowcontrolV1FlowSchemaSpec'; +import type { IoK8sApiFlowcontrolV1FlowSchemaStatus } from './IoK8sApiFlowcontrolV1FlowSchemaStatus'; +import { + IoK8sApiFlowcontrolV1FlowSchemaStatusFromJSON, + IoK8sApiFlowcontrolV1FlowSchemaStatusFromJSONTyped, + IoK8sApiFlowcontrolV1FlowSchemaStatusToJSON, +} from './IoK8sApiFlowcontrolV1FlowSchemaStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". + * @export + * @interface IoK8sApiFlowcontrolV1FlowSchema + */ +export interface IoK8sApiFlowcontrolV1FlowSchema { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiFlowcontrolV1FlowSchema + */ + 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 + * @type {string} + * @memberof IoK8sApiFlowcontrolV1FlowSchema + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiFlowcontrolV1FlowSchema + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiFlowcontrolV1FlowSchemaSpec} + * @memberof IoK8sApiFlowcontrolV1FlowSchema + */ + spec?: IoK8sApiFlowcontrolV1FlowSchemaSpec; + /** + * + * @type {IoK8sApiFlowcontrolV1FlowSchemaStatus} + * @memberof IoK8sApiFlowcontrolV1FlowSchema + */ + status?: IoK8sApiFlowcontrolV1FlowSchemaStatus; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1FlowSchema interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1FlowSchema(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1FlowSchemaFromJSON(json: any): IoK8sApiFlowcontrolV1FlowSchema { + return IoK8sApiFlowcontrolV1FlowSchemaFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1FlowSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1FlowSchema { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiFlowcontrolV1FlowSchemaSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiFlowcontrolV1FlowSchemaStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiFlowcontrolV1FlowSchemaToJSON(value?: IoK8sApiFlowcontrolV1FlowSchema | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiFlowcontrolV1FlowSchemaSpecToJSON(value.spec), + 'status': IoK8sApiFlowcontrolV1FlowSchemaStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1FlowSchemaCondition.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1FlowSchemaCondition.ts new file mode 100644 index 000000000..d7d67bced --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1FlowSchemaCondition.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * FlowSchemaCondition describes conditions for a FlowSchema. + * @export + * @interface IoK8sApiFlowcontrolV1FlowSchemaCondition + */ +export interface IoK8sApiFlowcontrolV1FlowSchemaCondition { + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiFlowcontrolV1FlowSchemaCondition + */ + lastTransitionTime?: string; + /** + * `message` is a human-readable message indicating details about last transition. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1FlowSchemaCondition + */ + message?: string; + /** + * `reason` is a unique, one-word, CamelCase reason for the condition's last transition. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1FlowSchemaCondition + */ + reason?: string; + /** + * `status` is the status of the condition. Can be True, False, Unknown. Required. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1FlowSchemaCondition + */ + status?: string; + /** + * `type` is the type of the condition. Required. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1FlowSchemaCondition + */ + type?: string; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1FlowSchemaCondition interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1FlowSchemaCondition(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1FlowSchemaConditionFromJSON(json: any): IoK8sApiFlowcontrolV1FlowSchemaCondition { + return IoK8sApiFlowcontrolV1FlowSchemaConditionFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1FlowSchemaConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1FlowSchemaCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'lastTransitionTime': !exists(json, 'lastTransitionTime') ? undefined : json['lastTransitionTime'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'status': !exists(json, 'status') ? undefined : json['status'], + 'type': !exists(json, 'type') ? undefined : json['type'], + }; +} + +export function IoK8sApiFlowcontrolV1FlowSchemaConditionToJSON(value?: IoK8sApiFlowcontrolV1FlowSchemaCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'lastTransitionTime': value.lastTransitionTime === undefined ? undefined : (value.lastTransitionTime), + 'message': value.message, + 'reason': value.reason, + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1FlowSchemaList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1FlowSchemaList.ts new file mode 100644 index 000000000..0bf9c206f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1FlowSchemaList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiFlowcontrolV1FlowSchema } from './IoK8sApiFlowcontrolV1FlowSchema'; +import { + IoK8sApiFlowcontrolV1FlowSchemaFromJSON, + IoK8sApiFlowcontrolV1FlowSchemaFromJSONTyped, + IoK8sApiFlowcontrolV1FlowSchemaToJSON, +} from './IoK8sApiFlowcontrolV1FlowSchema'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * FlowSchemaList is a list of FlowSchema objects. + * @export + * @interface IoK8sApiFlowcontrolV1FlowSchemaList + */ +export interface IoK8sApiFlowcontrolV1FlowSchemaList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiFlowcontrolV1FlowSchemaList + */ + apiVersion?: string; + /** + * `items` is a list of FlowSchemas. + * @type {Array} + * @memberof IoK8sApiFlowcontrolV1FlowSchemaList + */ + 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 + * @type {string} + * @memberof IoK8sApiFlowcontrolV1FlowSchemaList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiFlowcontrolV1FlowSchemaList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1FlowSchemaList interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1FlowSchemaList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1FlowSchemaListFromJSON(json: any): IoK8sApiFlowcontrolV1FlowSchemaList { + return IoK8sApiFlowcontrolV1FlowSchemaListFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1FlowSchemaListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1FlowSchemaList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiFlowcontrolV1FlowSchemaFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiFlowcontrolV1FlowSchemaListToJSON(value?: IoK8sApiFlowcontrolV1FlowSchemaList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiFlowcontrolV1FlowSchemaToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1FlowSchemaSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1FlowSchemaSpec.ts new file mode 100644 index 000000000..bcb514aba --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1FlowSchemaSpec.ts @@ -0,0 +1,109 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiFlowcontrolV1FlowDistinguisherMethod } from './IoK8sApiFlowcontrolV1FlowDistinguisherMethod'; +import { + IoK8sApiFlowcontrolV1FlowDistinguisherMethodFromJSON, + IoK8sApiFlowcontrolV1FlowDistinguisherMethodFromJSONTyped, + IoK8sApiFlowcontrolV1FlowDistinguisherMethodToJSON, +} from './IoK8sApiFlowcontrolV1FlowDistinguisherMethod'; +import type { IoK8sApiFlowcontrolV1PolicyRulesWithSubjects } from './IoK8sApiFlowcontrolV1PolicyRulesWithSubjects'; +import { + IoK8sApiFlowcontrolV1PolicyRulesWithSubjectsFromJSON, + IoK8sApiFlowcontrolV1PolicyRulesWithSubjectsFromJSONTyped, + IoK8sApiFlowcontrolV1PolicyRulesWithSubjectsToJSON, +} from './IoK8sApiFlowcontrolV1PolicyRulesWithSubjects'; +import type { IoK8sApiFlowcontrolV1PriorityLevelConfigurationReference } from './IoK8sApiFlowcontrolV1PriorityLevelConfigurationReference'; +import { + IoK8sApiFlowcontrolV1PriorityLevelConfigurationReferenceFromJSON, + IoK8sApiFlowcontrolV1PriorityLevelConfigurationReferenceFromJSONTyped, + IoK8sApiFlowcontrolV1PriorityLevelConfigurationReferenceToJSON, +} from './IoK8sApiFlowcontrolV1PriorityLevelConfigurationReference'; + +/** + * FlowSchemaSpec describes how the FlowSchema's specification looks like. + * @export + * @interface IoK8sApiFlowcontrolV1FlowSchemaSpec + */ +export interface IoK8sApiFlowcontrolV1FlowSchemaSpec { + /** + * + * @type {IoK8sApiFlowcontrolV1FlowDistinguisherMethod} + * @memberof IoK8sApiFlowcontrolV1FlowSchemaSpec + */ + distinguisherMethod?: IoK8sApiFlowcontrolV1FlowDistinguisherMethod; + /** + * `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. + * @type {number} + * @memberof IoK8sApiFlowcontrolV1FlowSchemaSpec + */ + matchingPrecedence?: number; + /** + * + * @type {IoK8sApiFlowcontrolV1PriorityLevelConfigurationReference} + * @memberof IoK8sApiFlowcontrolV1FlowSchemaSpec + */ + priorityLevelConfiguration: IoK8sApiFlowcontrolV1PriorityLevelConfigurationReference; + /** + * `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema. + * @type {Array} + * @memberof IoK8sApiFlowcontrolV1FlowSchemaSpec + */ + rules?: Array; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1FlowSchemaSpec interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1FlowSchemaSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "priorityLevelConfiguration" in value; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1FlowSchemaSpecFromJSON(json: any): IoK8sApiFlowcontrolV1FlowSchemaSpec { + return IoK8sApiFlowcontrolV1FlowSchemaSpecFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1FlowSchemaSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1FlowSchemaSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'distinguisherMethod': !exists(json, 'distinguisherMethod') ? undefined : IoK8sApiFlowcontrolV1FlowDistinguisherMethodFromJSON(json['distinguisherMethod']), + 'matchingPrecedence': !exists(json, 'matchingPrecedence') ? undefined : json['matchingPrecedence'], + 'priorityLevelConfiguration': IoK8sApiFlowcontrolV1PriorityLevelConfigurationReferenceFromJSON(json['priorityLevelConfiguration']), + 'rules': !exists(json, 'rules') ? undefined : ((json['rules'] as Array).map(IoK8sApiFlowcontrolV1PolicyRulesWithSubjectsFromJSON)), + }; +} + +export function IoK8sApiFlowcontrolV1FlowSchemaSpecToJSON(value?: IoK8sApiFlowcontrolV1FlowSchemaSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'distinguisherMethod': IoK8sApiFlowcontrolV1FlowDistinguisherMethodToJSON(value.distinguisherMethod), + 'matchingPrecedence': value.matchingPrecedence, + 'priorityLevelConfiguration': IoK8sApiFlowcontrolV1PriorityLevelConfigurationReferenceToJSON(value.priorityLevelConfiguration), + 'rules': value.rules === undefined ? undefined : ((value.rules as Array).map(IoK8sApiFlowcontrolV1PolicyRulesWithSubjectsToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1FlowSchemaStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1FlowSchemaStatus.ts new file mode 100644 index 000000000..0190ebf22 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1FlowSchemaStatus.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiFlowcontrolV1FlowSchemaCondition } from './IoK8sApiFlowcontrolV1FlowSchemaCondition'; +import { + IoK8sApiFlowcontrolV1FlowSchemaConditionFromJSON, + IoK8sApiFlowcontrolV1FlowSchemaConditionFromJSONTyped, + IoK8sApiFlowcontrolV1FlowSchemaConditionToJSON, +} from './IoK8sApiFlowcontrolV1FlowSchemaCondition'; + +/** + * FlowSchemaStatus represents the current state of a FlowSchema. + * @export + * @interface IoK8sApiFlowcontrolV1FlowSchemaStatus + */ +export interface IoK8sApiFlowcontrolV1FlowSchemaStatus { + /** + * `conditions` is a list of the current states of FlowSchema. + * @type {Array} + * @memberof IoK8sApiFlowcontrolV1FlowSchemaStatus + */ + conditions?: Array; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1FlowSchemaStatus interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1FlowSchemaStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1FlowSchemaStatusFromJSON(json: any): IoK8sApiFlowcontrolV1FlowSchemaStatus { + return IoK8sApiFlowcontrolV1FlowSchemaStatusFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1FlowSchemaStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1FlowSchemaStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(IoK8sApiFlowcontrolV1FlowSchemaConditionFromJSON)), + }; +} + +export function IoK8sApiFlowcontrolV1FlowSchemaStatusToJSON(value?: IoK8sApiFlowcontrolV1FlowSchemaStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(IoK8sApiFlowcontrolV1FlowSchemaConditionToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1GroupSubject.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1GroupSubject.ts new file mode 100644 index 000000000..aa59e8148 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1GroupSubject.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * GroupSubject holds detailed information for group-kind subject. + * @export + * @interface IoK8sApiFlowcontrolV1GroupSubject + */ +export interface IoK8sApiFlowcontrolV1GroupSubject { + /** + * name is the user group that matches, or "*" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1GroupSubject + */ + name: string; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1GroupSubject interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1GroupSubject(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1GroupSubjectFromJSON(json: any): IoK8sApiFlowcontrolV1GroupSubject { + return IoK8sApiFlowcontrolV1GroupSubjectFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1GroupSubjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1GroupSubject { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + }; +} + +export function IoK8sApiFlowcontrolV1GroupSubjectToJSON(value?: IoK8sApiFlowcontrolV1GroupSubject | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1LimitResponse.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1LimitResponse.ts new file mode 100644 index 000000000..454e33469 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1LimitResponse.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiFlowcontrolV1QueuingConfiguration } from './IoK8sApiFlowcontrolV1QueuingConfiguration'; +import { + IoK8sApiFlowcontrolV1QueuingConfigurationFromJSON, + IoK8sApiFlowcontrolV1QueuingConfigurationFromJSONTyped, + IoK8sApiFlowcontrolV1QueuingConfigurationToJSON, +} from './IoK8sApiFlowcontrolV1QueuingConfiguration'; + +/** + * LimitResponse defines how to handle requests that can not be executed right now. + * @export + * @interface IoK8sApiFlowcontrolV1LimitResponse + */ +export interface IoK8sApiFlowcontrolV1LimitResponse { + /** + * + * @type {IoK8sApiFlowcontrolV1QueuingConfiguration} + * @memberof IoK8sApiFlowcontrolV1LimitResponse + */ + queuing?: IoK8sApiFlowcontrolV1QueuingConfiguration; + /** + * `type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1LimitResponse + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1LimitResponse interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1LimitResponse(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1LimitResponseFromJSON(json: any): IoK8sApiFlowcontrolV1LimitResponse { + return IoK8sApiFlowcontrolV1LimitResponseFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1LimitResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1LimitResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'queuing': !exists(json, 'queuing') ? undefined : IoK8sApiFlowcontrolV1QueuingConfigurationFromJSON(json['queuing']), + 'type': json['type'], + }; +} + +export function IoK8sApiFlowcontrolV1LimitResponseToJSON(value?: IoK8sApiFlowcontrolV1LimitResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'queuing': IoK8sApiFlowcontrolV1QueuingConfigurationToJSON(value.queuing), + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1LimitedPriorityLevelConfiguration.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1LimitedPriorityLevelConfiguration.ts new file mode 100644 index 000000000..9bdee7e61 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1LimitedPriorityLevelConfiguration.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiFlowcontrolV1LimitResponse } from './IoK8sApiFlowcontrolV1LimitResponse'; +import { + IoK8sApiFlowcontrolV1LimitResponseFromJSON, + IoK8sApiFlowcontrolV1LimitResponseFromJSONTyped, + IoK8sApiFlowcontrolV1LimitResponseToJSON, +} from './IoK8sApiFlowcontrolV1LimitResponse'; + +/** + * LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues: + * - How are requests for this priority level limited? + * - What should be done with requests that exceed the limit? + * @export + * @interface IoK8sApiFlowcontrolV1LimitedPriorityLevelConfiguration + */ +export interface IoK8sApiFlowcontrolV1LimitedPriorityLevelConfiguration { + /** + * `borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows. + * + * BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) + * + * The value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite. + * @type {number} + * @memberof IoK8sApiFlowcontrolV1LimitedPriorityLevelConfiguration + */ + borrowingLimitPercent?: number; + /** + * `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. + * + * LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) + * @type {number} + * @memberof IoK8sApiFlowcontrolV1LimitedPriorityLevelConfiguration + */ + lendablePercent?: number; + /** + * + * @type {IoK8sApiFlowcontrolV1LimitResponse} + * @memberof IoK8sApiFlowcontrolV1LimitedPriorityLevelConfiguration + */ + limitResponse?: IoK8sApiFlowcontrolV1LimitResponse; + /** + * `nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values: + * + * NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k) + * + * Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. + * + * If not specified, this field defaults to a value of 30. + * + * Setting this field to zero supports the construction of a "jail" for this priority level that is used to hold some request(s) + * @type {number} + * @memberof IoK8sApiFlowcontrolV1LimitedPriorityLevelConfiguration + */ + nominalConcurrencyShares?: number; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1LimitedPriorityLevelConfiguration interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1LimitedPriorityLevelConfiguration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1LimitedPriorityLevelConfigurationFromJSON(json: any): IoK8sApiFlowcontrolV1LimitedPriorityLevelConfiguration { + return IoK8sApiFlowcontrolV1LimitedPriorityLevelConfigurationFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1LimitedPriorityLevelConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1LimitedPriorityLevelConfiguration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'borrowingLimitPercent': !exists(json, 'borrowingLimitPercent') ? undefined : json['borrowingLimitPercent'], + 'lendablePercent': !exists(json, 'lendablePercent') ? undefined : json['lendablePercent'], + 'limitResponse': !exists(json, 'limitResponse') ? undefined : IoK8sApiFlowcontrolV1LimitResponseFromJSON(json['limitResponse']), + 'nominalConcurrencyShares': !exists(json, 'nominalConcurrencyShares') ? undefined : json['nominalConcurrencyShares'], + }; +} + +export function IoK8sApiFlowcontrolV1LimitedPriorityLevelConfigurationToJSON(value?: IoK8sApiFlowcontrolV1LimitedPriorityLevelConfiguration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'borrowingLimitPercent': value.borrowingLimitPercent, + 'lendablePercent': value.lendablePercent, + 'limitResponse': IoK8sApiFlowcontrolV1LimitResponseToJSON(value.limitResponse), + 'nominalConcurrencyShares': value.nominalConcurrencyShares, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1NonResourcePolicyRule.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1NonResourcePolicyRule.ts new file mode 100644 index 000000000..e201ddb6e --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1NonResourcePolicyRule.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request. + * @export + * @interface IoK8sApiFlowcontrolV1NonResourcePolicyRule + */ +export interface IoK8sApiFlowcontrolV1NonResourcePolicyRule { + /** + * `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: + * - "/healthz" is legal + * - "/hea*" is illegal + * - "/hea" is legal but matches nothing + * - "/hea/*" also matches nothing + * - "/healthz/*" matches all per-component health checks. + * "*" matches all non-resource urls. if it is present, it must be the only entry. Required. + * @type {Array} + * @memberof IoK8sApiFlowcontrolV1NonResourcePolicyRule + */ + nonResourceURLs: string[]; + /** + * `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required. + * @type {Array} + * @memberof IoK8sApiFlowcontrolV1NonResourcePolicyRule + */ + verbs: string[]; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1NonResourcePolicyRule interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1NonResourcePolicyRule(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "nonResourceURLs" in value; + isInstance = isInstance && "verbs" in value; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1NonResourcePolicyRuleFromJSON(json: any): IoK8sApiFlowcontrolV1NonResourcePolicyRule { + return IoK8sApiFlowcontrolV1NonResourcePolicyRuleFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1NonResourcePolicyRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1NonResourcePolicyRule { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'nonResourceURLs': json['nonResourceURLs'], + 'verbs': json['verbs'], + }; +} + +export function IoK8sApiFlowcontrolV1NonResourcePolicyRuleToJSON(value?: IoK8sApiFlowcontrolV1NonResourcePolicyRule | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'nonResourceURLs': value.nonResourceURLs, + 'verbs': value.verbs, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1PolicyRulesWithSubjects.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1PolicyRulesWithSubjects.ts new file mode 100644 index 000000000..16ba9628c --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1PolicyRulesWithSubjects.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiFlowcontrolV1NonResourcePolicyRule } from './IoK8sApiFlowcontrolV1NonResourcePolicyRule'; +import { + IoK8sApiFlowcontrolV1NonResourcePolicyRuleFromJSON, + IoK8sApiFlowcontrolV1NonResourcePolicyRuleFromJSONTyped, + IoK8sApiFlowcontrolV1NonResourcePolicyRuleToJSON, +} from './IoK8sApiFlowcontrolV1NonResourcePolicyRule'; +import type { IoK8sApiFlowcontrolV1ResourcePolicyRule } from './IoK8sApiFlowcontrolV1ResourcePolicyRule'; +import { + IoK8sApiFlowcontrolV1ResourcePolicyRuleFromJSON, + IoK8sApiFlowcontrolV1ResourcePolicyRuleFromJSONTyped, + IoK8sApiFlowcontrolV1ResourcePolicyRuleToJSON, +} from './IoK8sApiFlowcontrolV1ResourcePolicyRule'; +import type { IoK8sApiFlowcontrolV1Subject } from './IoK8sApiFlowcontrolV1Subject'; +import { + IoK8sApiFlowcontrolV1SubjectFromJSON, + IoK8sApiFlowcontrolV1SubjectFromJSONTyped, + IoK8sApiFlowcontrolV1SubjectToJSON, +} from './IoK8sApiFlowcontrolV1Subject'; + +/** + * PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request. + * @export + * @interface IoK8sApiFlowcontrolV1PolicyRulesWithSubjects + */ +export interface IoK8sApiFlowcontrolV1PolicyRulesWithSubjects { + /** + * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. + * @type {Array} + * @memberof IoK8sApiFlowcontrolV1PolicyRulesWithSubjects + */ + nonResourceRules?: Array; + /** + * `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty. + * @type {Array} + * @memberof IoK8sApiFlowcontrolV1PolicyRulesWithSubjects + */ + resourceRules?: Array; + /** + * subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required. + * @type {Array} + * @memberof IoK8sApiFlowcontrolV1PolicyRulesWithSubjects + */ + subjects: Array; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1PolicyRulesWithSubjects interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1PolicyRulesWithSubjects(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "subjects" in value; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1PolicyRulesWithSubjectsFromJSON(json: any): IoK8sApiFlowcontrolV1PolicyRulesWithSubjects { + return IoK8sApiFlowcontrolV1PolicyRulesWithSubjectsFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1PolicyRulesWithSubjectsFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1PolicyRulesWithSubjects { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'nonResourceRules': !exists(json, 'nonResourceRules') ? undefined : ((json['nonResourceRules'] as Array).map(IoK8sApiFlowcontrolV1NonResourcePolicyRuleFromJSON)), + 'resourceRules': !exists(json, 'resourceRules') ? undefined : ((json['resourceRules'] as Array).map(IoK8sApiFlowcontrolV1ResourcePolicyRuleFromJSON)), + 'subjects': ((json['subjects'] as Array).map(IoK8sApiFlowcontrolV1SubjectFromJSON)), + }; +} + +export function IoK8sApiFlowcontrolV1PolicyRulesWithSubjectsToJSON(value?: IoK8sApiFlowcontrolV1PolicyRulesWithSubjects | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'nonResourceRules': value.nonResourceRules === undefined ? undefined : ((value.nonResourceRules as Array).map(IoK8sApiFlowcontrolV1NonResourcePolicyRuleToJSON)), + 'resourceRules': value.resourceRules === undefined ? undefined : ((value.resourceRules as Array).map(IoK8sApiFlowcontrolV1ResourcePolicyRuleToJSON)), + 'subjects': ((value.subjects as Array).map(IoK8sApiFlowcontrolV1SubjectToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1PriorityLevelConfiguration.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1PriorityLevelConfiguration.ts new file mode 100644 index 000000000..41636e40c --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1PriorityLevelConfiguration.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpec } from './IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpec'; +import { + IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpecFromJSON, + IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpecFromJSONTyped, + IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpecToJSON, +} from './IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpec'; +import type { IoK8sApiFlowcontrolV1PriorityLevelConfigurationStatus } from './IoK8sApiFlowcontrolV1PriorityLevelConfigurationStatus'; +import { + IoK8sApiFlowcontrolV1PriorityLevelConfigurationStatusFromJSON, + IoK8sApiFlowcontrolV1PriorityLevelConfigurationStatusFromJSONTyped, + IoK8sApiFlowcontrolV1PriorityLevelConfigurationStatusToJSON, +} from './IoK8sApiFlowcontrolV1PriorityLevelConfigurationStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * PriorityLevelConfiguration represents the configuration of a priority level. + * @export + * @interface IoK8sApiFlowcontrolV1PriorityLevelConfiguration + */ +export interface IoK8sApiFlowcontrolV1PriorityLevelConfiguration { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiFlowcontrolV1PriorityLevelConfiguration + */ + 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 + * @type {string} + * @memberof IoK8sApiFlowcontrolV1PriorityLevelConfiguration + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiFlowcontrolV1PriorityLevelConfiguration + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpec} + * @memberof IoK8sApiFlowcontrolV1PriorityLevelConfiguration + */ + spec?: IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpec; + /** + * + * @type {IoK8sApiFlowcontrolV1PriorityLevelConfigurationStatus} + * @memberof IoK8sApiFlowcontrolV1PriorityLevelConfiguration + */ + status?: IoK8sApiFlowcontrolV1PriorityLevelConfigurationStatus; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1PriorityLevelConfiguration interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1PriorityLevelConfiguration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1PriorityLevelConfigurationFromJSON(json: any): IoK8sApiFlowcontrolV1PriorityLevelConfiguration { + return IoK8sApiFlowcontrolV1PriorityLevelConfigurationFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1PriorityLevelConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1PriorityLevelConfiguration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiFlowcontrolV1PriorityLevelConfigurationStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiFlowcontrolV1PriorityLevelConfigurationToJSON(value?: IoK8sApiFlowcontrolV1PriorityLevelConfiguration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpecToJSON(value.spec), + 'status': IoK8sApiFlowcontrolV1PriorityLevelConfigurationStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1PriorityLevelConfigurationCondition.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1PriorityLevelConfigurationCondition.ts new file mode 100644 index 000000000..5294d74a7 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1PriorityLevelConfigurationCondition.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * PriorityLevelConfigurationCondition defines the condition of priority level. + * @export + * @interface IoK8sApiFlowcontrolV1PriorityLevelConfigurationCondition + */ +export interface IoK8sApiFlowcontrolV1PriorityLevelConfigurationCondition { + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiFlowcontrolV1PriorityLevelConfigurationCondition + */ + lastTransitionTime?: string; + /** + * `message` is a human-readable message indicating details about last transition. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1PriorityLevelConfigurationCondition + */ + message?: string; + /** + * `reason` is a unique, one-word, CamelCase reason for the condition's last transition. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1PriorityLevelConfigurationCondition + */ + reason?: string; + /** + * `status` is the status of the condition. Can be True, False, Unknown. Required. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1PriorityLevelConfigurationCondition + */ + status?: string; + /** + * `type` is the type of the condition. Required. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1PriorityLevelConfigurationCondition + */ + type?: string; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1PriorityLevelConfigurationCondition interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1PriorityLevelConfigurationCondition(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1PriorityLevelConfigurationConditionFromJSON(json: any): IoK8sApiFlowcontrolV1PriorityLevelConfigurationCondition { + return IoK8sApiFlowcontrolV1PriorityLevelConfigurationConditionFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1PriorityLevelConfigurationConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1PriorityLevelConfigurationCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'lastTransitionTime': !exists(json, 'lastTransitionTime') ? undefined : json['lastTransitionTime'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'status': !exists(json, 'status') ? undefined : json['status'], + 'type': !exists(json, 'type') ? undefined : json['type'], + }; +} + +export function IoK8sApiFlowcontrolV1PriorityLevelConfigurationConditionToJSON(value?: IoK8sApiFlowcontrolV1PriorityLevelConfigurationCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'lastTransitionTime': value.lastTransitionTime === undefined ? undefined : (value.lastTransitionTime), + 'message': value.message, + 'reason': value.reason, + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1PriorityLevelConfigurationList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1PriorityLevelConfigurationList.ts new file mode 100644 index 000000000..d92ab0b8a --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1PriorityLevelConfigurationList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiFlowcontrolV1PriorityLevelConfiguration } from './IoK8sApiFlowcontrolV1PriorityLevelConfiguration'; +import { + IoK8sApiFlowcontrolV1PriorityLevelConfigurationFromJSON, + IoK8sApiFlowcontrolV1PriorityLevelConfigurationFromJSONTyped, + IoK8sApiFlowcontrolV1PriorityLevelConfigurationToJSON, +} from './IoK8sApiFlowcontrolV1PriorityLevelConfiguration'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. + * @export + * @interface IoK8sApiFlowcontrolV1PriorityLevelConfigurationList + */ +export interface IoK8sApiFlowcontrolV1PriorityLevelConfigurationList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiFlowcontrolV1PriorityLevelConfigurationList + */ + apiVersion?: string; + /** + * `items` is a list of request-priorities. + * @type {Array} + * @memberof IoK8sApiFlowcontrolV1PriorityLevelConfigurationList + */ + 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 + * @type {string} + * @memberof IoK8sApiFlowcontrolV1PriorityLevelConfigurationList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiFlowcontrolV1PriorityLevelConfigurationList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1PriorityLevelConfigurationList interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1PriorityLevelConfigurationList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1PriorityLevelConfigurationListFromJSON(json: any): IoK8sApiFlowcontrolV1PriorityLevelConfigurationList { + return IoK8sApiFlowcontrolV1PriorityLevelConfigurationListFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1PriorityLevelConfigurationListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1PriorityLevelConfigurationList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiFlowcontrolV1PriorityLevelConfigurationFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiFlowcontrolV1PriorityLevelConfigurationListToJSON(value?: IoK8sApiFlowcontrolV1PriorityLevelConfigurationList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiFlowcontrolV1PriorityLevelConfigurationToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1PriorityLevelConfigurationReference.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1PriorityLevelConfigurationReference.ts new file mode 100644 index 000000000..e93a1401f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1PriorityLevelConfigurationReference.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * PriorityLevelConfigurationReference contains information that points to the "request-priority" being used. + * @export + * @interface IoK8sApiFlowcontrolV1PriorityLevelConfigurationReference + */ +export interface IoK8sApiFlowcontrolV1PriorityLevelConfigurationReference { + /** + * `name` is the name of the priority level configuration being referenced Required. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1PriorityLevelConfigurationReference + */ + name: string; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1PriorityLevelConfigurationReference interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1PriorityLevelConfigurationReference(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1PriorityLevelConfigurationReferenceFromJSON(json: any): IoK8sApiFlowcontrolV1PriorityLevelConfigurationReference { + return IoK8sApiFlowcontrolV1PriorityLevelConfigurationReferenceFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1PriorityLevelConfigurationReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1PriorityLevelConfigurationReference { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + }; +} + +export function IoK8sApiFlowcontrolV1PriorityLevelConfigurationReferenceToJSON(value?: IoK8sApiFlowcontrolV1PriorityLevelConfigurationReference | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpec.ts new file mode 100644 index 000000000..9c3b6b61c --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpec.ts @@ -0,0 +1,95 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiFlowcontrolV1ExemptPriorityLevelConfiguration } from './IoK8sApiFlowcontrolV1ExemptPriorityLevelConfiguration'; +import { + IoK8sApiFlowcontrolV1ExemptPriorityLevelConfigurationFromJSON, + IoK8sApiFlowcontrolV1ExemptPriorityLevelConfigurationFromJSONTyped, + IoK8sApiFlowcontrolV1ExemptPriorityLevelConfigurationToJSON, +} from './IoK8sApiFlowcontrolV1ExemptPriorityLevelConfiguration'; +import type { IoK8sApiFlowcontrolV1LimitedPriorityLevelConfiguration } from './IoK8sApiFlowcontrolV1LimitedPriorityLevelConfiguration'; +import { + IoK8sApiFlowcontrolV1LimitedPriorityLevelConfigurationFromJSON, + IoK8sApiFlowcontrolV1LimitedPriorityLevelConfigurationFromJSONTyped, + IoK8sApiFlowcontrolV1LimitedPriorityLevelConfigurationToJSON, +} from './IoK8sApiFlowcontrolV1LimitedPriorityLevelConfiguration'; + +/** + * PriorityLevelConfigurationSpec specifies the configuration of a priority level. + * @export + * @interface IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpec + */ +export interface IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpec { + /** + * + * @type {IoK8sApiFlowcontrolV1ExemptPriorityLevelConfiguration} + * @memberof IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpec + */ + exempt?: IoK8sApiFlowcontrolV1ExemptPriorityLevelConfiguration; + /** + * + * @type {IoK8sApiFlowcontrolV1LimitedPriorityLevelConfiguration} + * @memberof IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpec + */ + limited?: IoK8sApiFlowcontrolV1LimitedPriorityLevelConfiguration; + /** + * `type` indicates whether this priority level is subject to limitation on request execution. A value of `"Exempt"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `"Limited"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpec + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpec interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1PriorityLevelConfigurationSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpecFromJSON(json: any): IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpec { + return IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpecFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'exempt': !exists(json, 'exempt') ? undefined : IoK8sApiFlowcontrolV1ExemptPriorityLevelConfigurationFromJSON(json['exempt']), + 'limited': !exists(json, 'limited') ? undefined : IoK8sApiFlowcontrolV1LimitedPriorityLevelConfigurationFromJSON(json['limited']), + 'type': json['type'], + }; +} + +export function IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpecToJSON(value?: IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'exempt': IoK8sApiFlowcontrolV1ExemptPriorityLevelConfigurationToJSON(value.exempt), + 'limited': IoK8sApiFlowcontrolV1LimitedPriorityLevelConfigurationToJSON(value.limited), + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1PriorityLevelConfigurationStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1PriorityLevelConfigurationStatus.ts new file mode 100644 index 000000000..78d83cf46 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1PriorityLevelConfigurationStatus.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiFlowcontrolV1PriorityLevelConfigurationCondition } from './IoK8sApiFlowcontrolV1PriorityLevelConfigurationCondition'; +import { + IoK8sApiFlowcontrolV1PriorityLevelConfigurationConditionFromJSON, + IoK8sApiFlowcontrolV1PriorityLevelConfigurationConditionFromJSONTyped, + IoK8sApiFlowcontrolV1PriorityLevelConfigurationConditionToJSON, +} from './IoK8sApiFlowcontrolV1PriorityLevelConfigurationCondition'; + +/** + * PriorityLevelConfigurationStatus represents the current state of a "request-priority". + * @export + * @interface IoK8sApiFlowcontrolV1PriorityLevelConfigurationStatus + */ +export interface IoK8sApiFlowcontrolV1PriorityLevelConfigurationStatus { + /** + * `conditions` is the current state of "request-priority". + * @type {Array} + * @memberof IoK8sApiFlowcontrolV1PriorityLevelConfigurationStatus + */ + conditions?: Array; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1PriorityLevelConfigurationStatus interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1PriorityLevelConfigurationStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1PriorityLevelConfigurationStatusFromJSON(json: any): IoK8sApiFlowcontrolV1PriorityLevelConfigurationStatus { + return IoK8sApiFlowcontrolV1PriorityLevelConfigurationStatusFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1PriorityLevelConfigurationStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1PriorityLevelConfigurationStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(IoK8sApiFlowcontrolV1PriorityLevelConfigurationConditionFromJSON)), + }; +} + +export function IoK8sApiFlowcontrolV1PriorityLevelConfigurationStatusToJSON(value?: IoK8sApiFlowcontrolV1PriorityLevelConfigurationStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(IoK8sApiFlowcontrolV1PriorityLevelConfigurationConditionToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1QueuingConfiguration.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1QueuingConfiguration.ts new file mode 100644 index 000000000..7a67aa4b0 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1QueuingConfiguration.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * QueuingConfiguration holds the configuration parameters for queuing + * @export + * @interface IoK8sApiFlowcontrolV1QueuingConfiguration + */ +export interface IoK8sApiFlowcontrolV1QueuingConfiguration { + /** + * `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. + * @type {number} + * @memberof IoK8sApiFlowcontrolV1QueuingConfiguration + */ + handSize?: number; + /** + * `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. + * @type {number} + * @memberof IoK8sApiFlowcontrolV1QueuingConfiguration + */ + queueLengthLimit?: number; + /** + * `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. + * @type {number} + * @memberof IoK8sApiFlowcontrolV1QueuingConfiguration + */ + queues?: number; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1QueuingConfiguration interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1QueuingConfiguration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1QueuingConfigurationFromJSON(json: any): IoK8sApiFlowcontrolV1QueuingConfiguration { + return IoK8sApiFlowcontrolV1QueuingConfigurationFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1QueuingConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1QueuingConfiguration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'handSize': !exists(json, 'handSize') ? undefined : json['handSize'], + 'queueLengthLimit': !exists(json, 'queueLengthLimit') ? undefined : json['queueLengthLimit'], + 'queues': !exists(json, 'queues') ? undefined : json['queues'], + }; +} + +export function IoK8sApiFlowcontrolV1QueuingConfigurationToJSON(value?: IoK8sApiFlowcontrolV1QueuingConfiguration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'handSize': value.handSize, + 'queueLengthLimit': value.queueLengthLimit, + 'queues': value.queues, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1ResourcePolicyRule.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1ResourcePolicyRule.ts new file mode 100644 index 000000000..f4bb06ed8 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1ResourcePolicyRule.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==""`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace. + * @export + * @interface IoK8sApiFlowcontrolV1ResourcePolicyRule + */ +export interface IoK8sApiFlowcontrolV1ResourcePolicyRule { + /** + * `apiGroups` is a list of matching API groups and may not be empty. "*" matches all API groups and, if present, must be the only entry. Required. + * @type {Array} + * @memberof IoK8sApiFlowcontrolV1ResourcePolicyRule + */ + apiGroups: string[]; + /** + * `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. + * @type {boolean} + * @memberof IoK8sApiFlowcontrolV1ResourcePolicyRule + */ + clusterScope?: boolean; + /** + * `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains "*". Note that "*" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. + * @type {Array} + * @memberof IoK8sApiFlowcontrolV1ResourcePolicyRule + */ + namespaces?: string[]; + /** + * `resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ "services", "nodes/status" ]. This list may not be empty. "*" matches all resources and, if present, must be the only entry. Required. + * @type {Array} + * @memberof IoK8sApiFlowcontrolV1ResourcePolicyRule + */ + resources: string[]; + /** + * `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs and, if present, must be the only entry. Required. + * @type {Array} + * @memberof IoK8sApiFlowcontrolV1ResourcePolicyRule + */ + verbs: string[]; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1ResourcePolicyRule interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1ResourcePolicyRule(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "apiGroups" in value; + isInstance = isInstance && "resources" in value; + isInstance = isInstance && "verbs" in value; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1ResourcePolicyRuleFromJSON(json: any): IoK8sApiFlowcontrolV1ResourcePolicyRule { + return IoK8sApiFlowcontrolV1ResourcePolicyRuleFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1ResourcePolicyRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1ResourcePolicyRule { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiGroups': json['apiGroups'], + 'clusterScope': !exists(json, 'clusterScope') ? undefined : json['clusterScope'], + 'namespaces': !exists(json, 'namespaces') ? undefined : json['namespaces'], + 'resources': json['resources'], + 'verbs': json['verbs'], + }; +} + +export function IoK8sApiFlowcontrolV1ResourcePolicyRuleToJSON(value?: IoK8sApiFlowcontrolV1ResourcePolicyRule | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiGroups': value.apiGroups, + 'clusterScope': value.clusterScope, + 'namespaces': value.namespaces, + 'resources': value.resources, + 'verbs': value.verbs, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1ServiceAccountSubject.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1ServiceAccountSubject.ts new file mode 100644 index 000000000..97b7efd62 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1ServiceAccountSubject.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ServiceAccountSubject holds detailed information for service-account-kind subject. + * @export + * @interface IoK8sApiFlowcontrolV1ServiceAccountSubject + */ +export interface IoK8sApiFlowcontrolV1ServiceAccountSubject { + /** + * `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1ServiceAccountSubject + */ + name: string; + /** + * `namespace` is the namespace of matching ServiceAccount objects. Required. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1ServiceAccountSubject + */ + namespace: string; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1ServiceAccountSubject interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1ServiceAccountSubject(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "namespace" in value; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1ServiceAccountSubjectFromJSON(json: any): IoK8sApiFlowcontrolV1ServiceAccountSubject { + return IoK8sApiFlowcontrolV1ServiceAccountSubjectFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1ServiceAccountSubjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1ServiceAccountSubject { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + 'namespace': json['namespace'], + }; +} + +export function IoK8sApiFlowcontrolV1ServiceAccountSubjectToJSON(value?: IoK8sApiFlowcontrolV1ServiceAccountSubject | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'namespace': value.namespace, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1Subject.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1Subject.ts new file mode 100644 index 000000000..fb0527076 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1Subject.ts @@ -0,0 +1,109 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiFlowcontrolV1GroupSubject } from './IoK8sApiFlowcontrolV1GroupSubject'; +import { + IoK8sApiFlowcontrolV1GroupSubjectFromJSON, + IoK8sApiFlowcontrolV1GroupSubjectFromJSONTyped, + IoK8sApiFlowcontrolV1GroupSubjectToJSON, +} from './IoK8sApiFlowcontrolV1GroupSubject'; +import type { IoK8sApiFlowcontrolV1ServiceAccountSubject } from './IoK8sApiFlowcontrolV1ServiceAccountSubject'; +import { + IoK8sApiFlowcontrolV1ServiceAccountSubjectFromJSON, + IoK8sApiFlowcontrolV1ServiceAccountSubjectFromJSONTyped, + IoK8sApiFlowcontrolV1ServiceAccountSubjectToJSON, +} from './IoK8sApiFlowcontrolV1ServiceAccountSubject'; +import type { IoK8sApiFlowcontrolV1UserSubject } from './IoK8sApiFlowcontrolV1UserSubject'; +import { + IoK8sApiFlowcontrolV1UserSubjectFromJSON, + IoK8sApiFlowcontrolV1UserSubjectFromJSONTyped, + IoK8sApiFlowcontrolV1UserSubjectToJSON, +} from './IoK8sApiFlowcontrolV1UserSubject'; + +/** + * Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account. + * @export + * @interface IoK8sApiFlowcontrolV1Subject + */ +export interface IoK8sApiFlowcontrolV1Subject { + /** + * + * @type {IoK8sApiFlowcontrolV1GroupSubject} + * @memberof IoK8sApiFlowcontrolV1Subject + */ + group?: IoK8sApiFlowcontrolV1GroupSubject; + /** + * `kind` indicates which one of the other fields is non-empty. Required + * @type {string} + * @memberof IoK8sApiFlowcontrolV1Subject + */ + kind: string; + /** + * + * @type {IoK8sApiFlowcontrolV1ServiceAccountSubject} + * @memberof IoK8sApiFlowcontrolV1Subject + */ + serviceAccount?: IoK8sApiFlowcontrolV1ServiceAccountSubject; + /** + * + * @type {IoK8sApiFlowcontrolV1UserSubject} + * @memberof IoK8sApiFlowcontrolV1Subject + */ + user?: IoK8sApiFlowcontrolV1UserSubject; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1Subject interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1Subject(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "kind" in value; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1SubjectFromJSON(json: any): IoK8sApiFlowcontrolV1Subject { + return IoK8sApiFlowcontrolV1SubjectFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1SubjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1Subject { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'group': !exists(json, 'group') ? undefined : IoK8sApiFlowcontrolV1GroupSubjectFromJSON(json['group']), + 'kind': json['kind'], + 'serviceAccount': !exists(json, 'serviceAccount') ? undefined : IoK8sApiFlowcontrolV1ServiceAccountSubjectFromJSON(json['serviceAccount']), + 'user': !exists(json, 'user') ? undefined : IoK8sApiFlowcontrolV1UserSubjectFromJSON(json['user']), + }; +} + +export function IoK8sApiFlowcontrolV1SubjectToJSON(value?: IoK8sApiFlowcontrolV1Subject | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'group': IoK8sApiFlowcontrolV1GroupSubjectToJSON(value.group), + 'kind': value.kind, + 'serviceAccount': IoK8sApiFlowcontrolV1ServiceAccountSubjectToJSON(value.serviceAccount), + 'user': IoK8sApiFlowcontrolV1UserSubjectToJSON(value.user), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1UserSubject.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1UserSubject.ts new file mode 100644 index 000000000..94b5659e9 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1UserSubject.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * UserSubject holds detailed information for user-kind subject. + * @export + * @interface IoK8sApiFlowcontrolV1UserSubject + */ +export interface IoK8sApiFlowcontrolV1UserSubject { + /** + * `name` is the username that matches, or "*" to match all usernames. Required. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1UserSubject + */ + name: string; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1UserSubject interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1UserSubject(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1UserSubjectFromJSON(json: any): IoK8sApiFlowcontrolV1UserSubject { + return IoK8sApiFlowcontrolV1UserSubjectFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1UserSubjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1UserSubject { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + }; +} + +export function IoK8sApiFlowcontrolV1UserSubjectToJSON(value?: IoK8sApiFlowcontrolV1UserSubject | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfiguration.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfiguration.ts new file mode 100644 index 000000000..256976f32 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfiguration.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`. + * @export + * @interface IoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfiguration + */ +export interface IoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfiguration { + /** + * `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. + * + * LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) + * @type {number} + * @memberof IoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfiguration + */ + lendablePercent?: number; + /** + * `nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values: + * + * NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k) + * + * Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero. + * @type {number} + * @memberof IoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfiguration + */ + nominalConcurrencyShares?: number; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfiguration interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfiguration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfigurationFromJSON(json: any): IoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfiguration { + return IoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfigurationFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfiguration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'lendablePercent': !exists(json, 'lendablePercent') ? undefined : json['lendablePercent'], + 'nominalConcurrencyShares': !exists(json, 'nominalConcurrencyShares') ? undefined : json['nominalConcurrencyShares'], + }; +} + +export function IoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfigurationToJSON(value?: IoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfiguration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'lendablePercent': value.lendablePercent, + 'nominalConcurrencyShares': value.nominalConcurrencyShares, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3FlowDistinguisherMethod.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3FlowDistinguisherMethod.ts new file mode 100644 index 000000000..3310e215e --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3FlowDistinguisherMethod.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * FlowDistinguisherMethod specifies the method of a flow distinguisher. + * @export + * @interface IoK8sApiFlowcontrolV1beta3FlowDistinguisherMethod + */ +export interface IoK8sApiFlowcontrolV1beta3FlowDistinguisherMethod { + /** + * `type` is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1beta3FlowDistinguisherMethod + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1beta3FlowDistinguisherMethod interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1beta3FlowDistinguisherMethod(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1beta3FlowDistinguisherMethodFromJSON(json: any): IoK8sApiFlowcontrolV1beta3FlowDistinguisherMethod { + return IoK8sApiFlowcontrolV1beta3FlowDistinguisherMethodFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1beta3FlowDistinguisherMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1beta3FlowDistinguisherMethod { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'type': json['type'], + }; +} + +export function IoK8sApiFlowcontrolV1beta3FlowDistinguisherMethodToJSON(value?: IoK8sApiFlowcontrolV1beta3FlowDistinguisherMethod | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3FlowSchema.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3FlowSchema.ts new file mode 100644 index 000000000..672ce10c4 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3FlowSchema.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiFlowcontrolV1beta3FlowSchemaSpec } from './IoK8sApiFlowcontrolV1beta3FlowSchemaSpec'; +import { + IoK8sApiFlowcontrolV1beta3FlowSchemaSpecFromJSON, + IoK8sApiFlowcontrolV1beta3FlowSchemaSpecFromJSONTyped, + IoK8sApiFlowcontrolV1beta3FlowSchemaSpecToJSON, +} from './IoK8sApiFlowcontrolV1beta3FlowSchemaSpec'; +import type { IoK8sApiFlowcontrolV1beta3FlowSchemaStatus } from './IoK8sApiFlowcontrolV1beta3FlowSchemaStatus'; +import { + IoK8sApiFlowcontrolV1beta3FlowSchemaStatusFromJSON, + IoK8sApiFlowcontrolV1beta3FlowSchemaStatusFromJSONTyped, + IoK8sApiFlowcontrolV1beta3FlowSchemaStatusToJSON, +} from './IoK8sApiFlowcontrolV1beta3FlowSchemaStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". + * @export + * @interface IoK8sApiFlowcontrolV1beta3FlowSchema + */ +export interface IoK8sApiFlowcontrolV1beta3FlowSchema { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiFlowcontrolV1beta3FlowSchema + */ + 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 + * @type {string} + * @memberof IoK8sApiFlowcontrolV1beta3FlowSchema + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiFlowcontrolV1beta3FlowSchema + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiFlowcontrolV1beta3FlowSchemaSpec} + * @memberof IoK8sApiFlowcontrolV1beta3FlowSchema + */ + spec?: IoK8sApiFlowcontrolV1beta3FlowSchemaSpec; + /** + * + * @type {IoK8sApiFlowcontrolV1beta3FlowSchemaStatus} + * @memberof IoK8sApiFlowcontrolV1beta3FlowSchema + */ + status?: IoK8sApiFlowcontrolV1beta3FlowSchemaStatus; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1beta3FlowSchema interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1beta3FlowSchema(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1beta3FlowSchemaFromJSON(json: any): IoK8sApiFlowcontrolV1beta3FlowSchema { + return IoK8sApiFlowcontrolV1beta3FlowSchemaFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1beta3FlowSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1beta3FlowSchema { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiFlowcontrolV1beta3FlowSchemaSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiFlowcontrolV1beta3FlowSchemaStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiFlowcontrolV1beta3FlowSchemaToJSON(value?: IoK8sApiFlowcontrolV1beta3FlowSchema | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiFlowcontrolV1beta3FlowSchemaSpecToJSON(value.spec), + 'status': IoK8sApiFlowcontrolV1beta3FlowSchemaStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3FlowSchemaCondition.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3FlowSchemaCondition.ts new file mode 100644 index 000000000..c32f28d69 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3FlowSchemaCondition.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * FlowSchemaCondition describes conditions for a FlowSchema. + * @export + * @interface IoK8sApiFlowcontrolV1beta3FlowSchemaCondition + */ +export interface IoK8sApiFlowcontrolV1beta3FlowSchemaCondition { + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiFlowcontrolV1beta3FlowSchemaCondition + */ + lastTransitionTime?: string; + /** + * `message` is a human-readable message indicating details about last transition. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1beta3FlowSchemaCondition + */ + message?: string; + /** + * `reason` is a unique, one-word, CamelCase reason for the condition's last transition. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1beta3FlowSchemaCondition + */ + reason?: string; + /** + * `status` is the status of the condition. Can be True, False, Unknown. Required. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1beta3FlowSchemaCondition + */ + status?: string; + /** + * `type` is the type of the condition. Required. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1beta3FlowSchemaCondition + */ + type?: string; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1beta3FlowSchemaCondition interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1beta3FlowSchemaCondition(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1beta3FlowSchemaConditionFromJSON(json: any): IoK8sApiFlowcontrolV1beta3FlowSchemaCondition { + return IoK8sApiFlowcontrolV1beta3FlowSchemaConditionFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1beta3FlowSchemaConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1beta3FlowSchemaCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'lastTransitionTime': !exists(json, 'lastTransitionTime') ? undefined : json['lastTransitionTime'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'status': !exists(json, 'status') ? undefined : json['status'], + 'type': !exists(json, 'type') ? undefined : json['type'], + }; +} + +export function IoK8sApiFlowcontrolV1beta3FlowSchemaConditionToJSON(value?: IoK8sApiFlowcontrolV1beta3FlowSchemaCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'lastTransitionTime': value.lastTransitionTime === undefined ? undefined : (value.lastTransitionTime), + 'message': value.message, + 'reason': value.reason, + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3FlowSchemaList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3FlowSchemaList.ts new file mode 100644 index 000000000..d74a5bcaf --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3FlowSchemaList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiFlowcontrolV1beta3FlowSchema } from './IoK8sApiFlowcontrolV1beta3FlowSchema'; +import { + IoK8sApiFlowcontrolV1beta3FlowSchemaFromJSON, + IoK8sApiFlowcontrolV1beta3FlowSchemaFromJSONTyped, + IoK8sApiFlowcontrolV1beta3FlowSchemaToJSON, +} from './IoK8sApiFlowcontrolV1beta3FlowSchema'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * FlowSchemaList is a list of FlowSchema objects. + * @export + * @interface IoK8sApiFlowcontrolV1beta3FlowSchemaList + */ +export interface IoK8sApiFlowcontrolV1beta3FlowSchemaList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiFlowcontrolV1beta3FlowSchemaList + */ + apiVersion?: string; + /** + * `items` is a list of FlowSchemas. + * @type {Array} + * @memberof IoK8sApiFlowcontrolV1beta3FlowSchemaList + */ + 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 + * @type {string} + * @memberof IoK8sApiFlowcontrolV1beta3FlowSchemaList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiFlowcontrolV1beta3FlowSchemaList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1beta3FlowSchemaList interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1beta3FlowSchemaList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1beta3FlowSchemaListFromJSON(json: any): IoK8sApiFlowcontrolV1beta3FlowSchemaList { + return IoK8sApiFlowcontrolV1beta3FlowSchemaListFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1beta3FlowSchemaListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1beta3FlowSchemaList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiFlowcontrolV1beta3FlowSchemaFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiFlowcontrolV1beta3FlowSchemaListToJSON(value?: IoK8sApiFlowcontrolV1beta3FlowSchemaList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiFlowcontrolV1beta3FlowSchemaToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3FlowSchemaSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3FlowSchemaSpec.ts new file mode 100644 index 000000000..5edbd6768 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3FlowSchemaSpec.ts @@ -0,0 +1,109 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiFlowcontrolV1beta3FlowDistinguisherMethod } from './IoK8sApiFlowcontrolV1beta3FlowDistinguisherMethod'; +import { + IoK8sApiFlowcontrolV1beta3FlowDistinguisherMethodFromJSON, + IoK8sApiFlowcontrolV1beta3FlowDistinguisherMethodFromJSONTyped, + IoK8sApiFlowcontrolV1beta3FlowDistinguisherMethodToJSON, +} from './IoK8sApiFlowcontrolV1beta3FlowDistinguisherMethod'; +import type { IoK8sApiFlowcontrolV1beta3PolicyRulesWithSubjects } from './IoK8sApiFlowcontrolV1beta3PolicyRulesWithSubjects'; +import { + IoK8sApiFlowcontrolV1beta3PolicyRulesWithSubjectsFromJSON, + IoK8sApiFlowcontrolV1beta3PolicyRulesWithSubjectsFromJSONTyped, + IoK8sApiFlowcontrolV1beta3PolicyRulesWithSubjectsToJSON, +} from './IoK8sApiFlowcontrolV1beta3PolicyRulesWithSubjects'; +import type { IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationReference } from './IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationReference'; +import { + IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationReferenceFromJSON, + IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationReferenceFromJSONTyped, + IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationReferenceToJSON, +} from './IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationReference'; + +/** + * FlowSchemaSpec describes how the FlowSchema's specification looks like. + * @export + * @interface IoK8sApiFlowcontrolV1beta3FlowSchemaSpec + */ +export interface IoK8sApiFlowcontrolV1beta3FlowSchemaSpec { + /** + * + * @type {IoK8sApiFlowcontrolV1beta3FlowDistinguisherMethod} + * @memberof IoK8sApiFlowcontrolV1beta3FlowSchemaSpec + */ + distinguisherMethod?: IoK8sApiFlowcontrolV1beta3FlowDistinguisherMethod; + /** + * `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. + * @type {number} + * @memberof IoK8sApiFlowcontrolV1beta3FlowSchemaSpec + */ + matchingPrecedence?: number; + /** + * + * @type {IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationReference} + * @memberof IoK8sApiFlowcontrolV1beta3FlowSchemaSpec + */ + priorityLevelConfiguration: IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationReference; + /** + * `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema. + * @type {Array} + * @memberof IoK8sApiFlowcontrolV1beta3FlowSchemaSpec + */ + rules?: Array; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1beta3FlowSchemaSpec interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1beta3FlowSchemaSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "priorityLevelConfiguration" in value; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1beta3FlowSchemaSpecFromJSON(json: any): IoK8sApiFlowcontrolV1beta3FlowSchemaSpec { + return IoK8sApiFlowcontrolV1beta3FlowSchemaSpecFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1beta3FlowSchemaSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1beta3FlowSchemaSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'distinguisherMethod': !exists(json, 'distinguisherMethod') ? undefined : IoK8sApiFlowcontrolV1beta3FlowDistinguisherMethodFromJSON(json['distinguisherMethod']), + 'matchingPrecedence': !exists(json, 'matchingPrecedence') ? undefined : json['matchingPrecedence'], + 'priorityLevelConfiguration': IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationReferenceFromJSON(json['priorityLevelConfiguration']), + 'rules': !exists(json, 'rules') ? undefined : ((json['rules'] as Array).map(IoK8sApiFlowcontrolV1beta3PolicyRulesWithSubjectsFromJSON)), + }; +} + +export function IoK8sApiFlowcontrolV1beta3FlowSchemaSpecToJSON(value?: IoK8sApiFlowcontrolV1beta3FlowSchemaSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'distinguisherMethod': IoK8sApiFlowcontrolV1beta3FlowDistinguisherMethodToJSON(value.distinguisherMethod), + 'matchingPrecedence': value.matchingPrecedence, + 'priorityLevelConfiguration': IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationReferenceToJSON(value.priorityLevelConfiguration), + 'rules': value.rules === undefined ? undefined : ((value.rules as Array).map(IoK8sApiFlowcontrolV1beta3PolicyRulesWithSubjectsToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3FlowSchemaStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3FlowSchemaStatus.ts new file mode 100644 index 000000000..8d809515e --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3FlowSchemaStatus.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiFlowcontrolV1beta3FlowSchemaCondition } from './IoK8sApiFlowcontrolV1beta3FlowSchemaCondition'; +import { + IoK8sApiFlowcontrolV1beta3FlowSchemaConditionFromJSON, + IoK8sApiFlowcontrolV1beta3FlowSchemaConditionFromJSONTyped, + IoK8sApiFlowcontrolV1beta3FlowSchemaConditionToJSON, +} from './IoK8sApiFlowcontrolV1beta3FlowSchemaCondition'; + +/** + * FlowSchemaStatus represents the current state of a FlowSchema. + * @export + * @interface IoK8sApiFlowcontrolV1beta3FlowSchemaStatus + */ +export interface IoK8sApiFlowcontrolV1beta3FlowSchemaStatus { + /** + * `conditions` is a list of the current states of FlowSchema. + * @type {Array} + * @memberof IoK8sApiFlowcontrolV1beta3FlowSchemaStatus + */ + conditions?: Array; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1beta3FlowSchemaStatus interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1beta3FlowSchemaStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1beta3FlowSchemaStatusFromJSON(json: any): IoK8sApiFlowcontrolV1beta3FlowSchemaStatus { + return IoK8sApiFlowcontrolV1beta3FlowSchemaStatusFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1beta3FlowSchemaStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1beta3FlowSchemaStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(IoK8sApiFlowcontrolV1beta3FlowSchemaConditionFromJSON)), + }; +} + +export function IoK8sApiFlowcontrolV1beta3FlowSchemaStatusToJSON(value?: IoK8sApiFlowcontrolV1beta3FlowSchemaStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(IoK8sApiFlowcontrolV1beta3FlowSchemaConditionToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3GroupSubject.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3GroupSubject.ts new file mode 100644 index 000000000..aaf0ea599 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3GroupSubject.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * GroupSubject holds detailed information for group-kind subject. + * @export + * @interface IoK8sApiFlowcontrolV1beta3GroupSubject + */ +export interface IoK8sApiFlowcontrolV1beta3GroupSubject { + /** + * name is the user group that matches, or "*" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1beta3GroupSubject + */ + name: string; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1beta3GroupSubject interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1beta3GroupSubject(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1beta3GroupSubjectFromJSON(json: any): IoK8sApiFlowcontrolV1beta3GroupSubject { + return IoK8sApiFlowcontrolV1beta3GroupSubjectFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1beta3GroupSubjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1beta3GroupSubject { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + }; +} + +export function IoK8sApiFlowcontrolV1beta3GroupSubjectToJSON(value?: IoK8sApiFlowcontrolV1beta3GroupSubject | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3LimitResponse.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3LimitResponse.ts new file mode 100644 index 000000000..8808ba144 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3LimitResponse.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiFlowcontrolV1beta3QueuingConfiguration } from './IoK8sApiFlowcontrolV1beta3QueuingConfiguration'; +import { + IoK8sApiFlowcontrolV1beta3QueuingConfigurationFromJSON, + IoK8sApiFlowcontrolV1beta3QueuingConfigurationFromJSONTyped, + IoK8sApiFlowcontrolV1beta3QueuingConfigurationToJSON, +} from './IoK8sApiFlowcontrolV1beta3QueuingConfiguration'; + +/** + * LimitResponse defines how to handle requests that can not be executed right now. + * @export + * @interface IoK8sApiFlowcontrolV1beta3LimitResponse + */ +export interface IoK8sApiFlowcontrolV1beta3LimitResponse { + /** + * + * @type {IoK8sApiFlowcontrolV1beta3QueuingConfiguration} + * @memberof IoK8sApiFlowcontrolV1beta3LimitResponse + */ + queuing?: IoK8sApiFlowcontrolV1beta3QueuingConfiguration; + /** + * `type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1beta3LimitResponse + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1beta3LimitResponse interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1beta3LimitResponse(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1beta3LimitResponseFromJSON(json: any): IoK8sApiFlowcontrolV1beta3LimitResponse { + return IoK8sApiFlowcontrolV1beta3LimitResponseFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1beta3LimitResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1beta3LimitResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'queuing': !exists(json, 'queuing') ? undefined : IoK8sApiFlowcontrolV1beta3QueuingConfigurationFromJSON(json['queuing']), + 'type': json['type'], + }; +} + +export function IoK8sApiFlowcontrolV1beta3LimitResponseToJSON(value?: IoK8sApiFlowcontrolV1beta3LimitResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'queuing': IoK8sApiFlowcontrolV1beta3QueuingConfigurationToJSON(value.queuing), + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfiguration.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfiguration.ts new file mode 100644 index 000000000..29540ec3f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfiguration.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiFlowcontrolV1beta3LimitResponse } from './IoK8sApiFlowcontrolV1beta3LimitResponse'; +import { + IoK8sApiFlowcontrolV1beta3LimitResponseFromJSON, + IoK8sApiFlowcontrolV1beta3LimitResponseFromJSONTyped, + IoK8sApiFlowcontrolV1beta3LimitResponseToJSON, +} from './IoK8sApiFlowcontrolV1beta3LimitResponse'; + +/** + * LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues: + * - How are requests for this priority level limited? + * - What should be done with requests that exceed the limit? + * @export + * @interface IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfiguration + */ +export interface IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfiguration { + /** + * `borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows. + * + * BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) + * + * The value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite. + * @type {number} + * @memberof IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfiguration + */ + borrowingLimitPercent?: number; + /** + * `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. + * + * LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) + * @type {number} + * @memberof IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfiguration + */ + lendablePercent?: number; + /** + * + * @type {IoK8sApiFlowcontrolV1beta3LimitResponse} + * @memberof IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfiguration + */ + limitResponse?: IoK8sApiFlowcontrolV1beta3LimitResponse; + /** + * `nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values: + * + * NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k) + * + * Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of 30. + * @type {number} + * @memberof IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfiguration + */ + nominalConcurrencyShares?: number; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfiguration interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfiguration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfigurationFromJSON(json: any): IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfiguration { + return IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfigurationFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfiguration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'borrowingLimitPercent': !exists(json, 'borrowingLimitPercent') ? undefined : json['borrowingLimitPercent'], + 'lendablePercent': !exists(json, 'lendablePercent') ? undefined : json['lendablePercent'], + 'limitResponse': !exists(json, 'limitResponse') ? undefined : IoK8sApiFlowcontrolV1beta3LimitResponseFromJSON(json['limitResponse']), + 'nominalConcurrencyShares': !exists(json, 'nominalConcurrencyShares') ? undefined : json['nominalConcurrencyShares'], + }; +} + +export function IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfigurationToJSON(value?: IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfiguration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'borrowingLimitPercent': value.borrowingLimitPercent, + 'lendablePercent': value.lendablePercent, + 'limitResponse': IoK8sApiFlowcontrolV1beta3LimitResponseToJSON(value.limitResponse), + 'nominalConcurrencyShares': value.nominalConcurrencyShares, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3NonResourcePolicyRule.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3NonResourcePolicyRule.ts new file mode 100644 index 000000000..0486816cb --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3NonResourcePolicyRule.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request. + * @export + * @interface IoK8sApiFlowcontrolV1beta3NonResourcePolicyRule + */ +export interface IoK8sApiFlowcontrolV1beta3NonResourcePolicyRule { + /** + * `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: + * - "/healthz" is legal + * - "/hea*" is illegal + * - "/hea" is legal but matches nothing + * - "/hea/*" also matches nothing + * - "/healthz/*" matches all per-component health checks. + * "*" matches all non-resource urls. if it is present, it must be the only entry. Required. + * @type {Array} + * @memberof IoK8sApiFlowcontrolV1beta3NonResourcePolicyRule + */ + nonResourceURLs: string[]; + /** + * `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required. + * @type {Array} + * @memberof IoK8sApiFlowcontrolV1beta3NonResourcePolicyRule + */ + verbs: string[]; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1beta3NonResourcePolicyRule interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1beta3NonResourcePolicyRule(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "nonResourceURLs" in value; + isInstance = isInstance && "verbs" in value; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1beta3NonResourcePolicyRuleFromJSON(json: any): IoK8sApiFlowcontrolV1beta3NonResourcePolicyRule { + return IoK8sApiFlowcontrolV1beta3NonResourcePolicyRuleFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1beta3NonResourcePolicyRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1beta3NonResourcePolicyRule { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'nonResourceURLs': json['nonResourceURLs'], + 'verbs': json['verbs'], + }; +} + +export function IoK8sApiFlowcontrolV1beta3NonResourcePolicyRuleToJSON(value?: IoK8sApiFlowcontrolV1beta3NonResourcePolicyRule | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'nonResourceURLs': value.nonResourceURLs, + 'verbs': value.verbs, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3PolicyRulesWithSubjects.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3PolicyRulesWithSubjects.ts new file mode 100644 index 000000000..f7bade40b --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3PolicyRulesWithSubjects.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiFlowcontrolV1beta3NonResourcePolicyRule } from './IoK8sApiFlowcontrolV1beta3NonResourcePolicyRule'; +import { + IoK8sApiFlowcontrolV1beta3NonResourcePolicyRuleFromJSON, + IoK8sApiFlowcontrolV1beta3NonResourcePolicyRuleFromJSONTyped, + IoK8sApiFlowcontrolV1beta3NonResourcePolicyRuleToJSON, +} from './IoK8sApiFlowcontrolV1beta3NonResourcePolicyRule'; +import type { IoK8sApiFlowcontrolV1beta3ResourcePolicyRule } from './IoK8sApiFlowcontrolV1beta3ResourcePolicyRule'; +import { + IoK8sApiFlowcontrolV1beta3ResourcePolicyRuleFromJSON, + IoK8sApiFlowcontrolV1beta3ResourcePolicyRuleFromJSONTyped, + IoK8sApiFlowcontrolV1beta3ResourcePolicyRuleToJSON, +} from './IoK8sApiFlowcontrolV1beta3ResourcePolicyRule'; +import type { IoK8sApiFlowcontrolV1beta3Subject } from './IoK8sApiFlowcontrolV1beta3Subject'; +import { + IoK8sApiFlowcontrolV1beta3SubjectFromJSON, + IoK8sApiFlowcontrolV1beta3SubjectFromJSONTyped, + IoK8sApiFlowcontrolV1beta3SubjectToJSON, +} from './IoK8sApiFlowcontrolV1beta3Subject'; + +/** + * PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request. + * @export + * @interface IoK8sApiFlowcontrolV1beta3PolicyRulesWithSubjects + */ +export interface IoK8sApiFlowcontrolV1beta3PolicyRulesWithSubjects { + /** + * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. + * @type {Array} + * @memberof IoK8sApiFlowcontrolV1beta3PolicyRulesWithSubjects + */ + nonResourceRules?: Array; + /** + * `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty. + * @type {Array} + * @memberof IoK8sApiFlowcontrolV1beta3PolicyRulesWithSubjects + */ + resourceRules?: Array; + /** + * subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required. + * @type {Array} + * @memberof IoK8sApiFlowcontrolV1beta3PolicyRulesWithSubjects + */ + subjects: Array; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1beta3PolicyRulesWithSubjects interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1beta3PolicyRulesWithSubjects(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "subjects" in value; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1beta3PolicyRulesWithSubjectsFromJSON(json: any): IoK8sApiFlowcontrolV1beta3PolicyRulesWithSubjects { + return IoK8sApiFlowcontrolV1beta3PolicyRulesWithSubjectsFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1beta3PolicyRulesWithSubjectsFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1beta3PolicyRulesWithSubjects { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'nonResourceRules': !exists(json, 'nonResourceRules') ? undefined : ((json['nonResourceRules'] as Array).map(IoK8sApiFlowcontrolV1beta3NonResourcePolicyRuleFromJSON)), + 'resourceRules': !exists(json, 'resourceRules') ? undefined : ((json['resourceRules'] as Array).map(IoK8sApiFlowcontrolV1beta3ResourcePolicyRuleFromJSON)), + 'subjects': ((json['subjects'] as Array).map(IoK8sApiFlowcontrolV1beta3SubjectFromJSON)), + }; +} + +export function IoK8sApiFlowcontrolV1beta3PolicyRulesWithSubjectsToJSON(value?: IoK8sApiFlowcontrolV1beta3PolicyRulesWithSubjects | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'nonResourceRules': value.nonResourceRules === undefined ? undefined : ((value.nonResourceRules as Array).map(IoK8sApiFlowcontrolV1beta3NonResourcePolicyRuleToJSON)), + 'resourceRules': value.resourceRules === undefined ? undefined : ((value.resourceRules as Array).map(IoK8sApiFlowcontrolV1beta3ResourcePolicyRuleToJSON)), + 'subjects': ((value.subjects as Array).map(IoK8sApiFlowcontrolV1beta3SubjectToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3PriorityLevelConfiguration.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3PriorityLevelConfiguration.ts new file mode 100644 index 000000000..cbb0f185c --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3PriorityLevelConfiguration.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpec } from './IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpec'; +import { + IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpecFromJSON, + IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpecFromJSONTyped, + IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpecToJSON, +} from './IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpec'; +import type { IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationStatus } from './IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationStatus'; +import { + IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationStatusFromJSON, + IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationStatusFromJSONTyped, + IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationStatusToJSON, +} from './IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * PriorityLevelConfiguration represents the configuration of a priority level. + * @export + * @interface IoK8sApiFlowcontrolV1beta3PriorityLevelConfiguration + */ +export interface IoK8sApiFlowcontrolV1beta3PriorityLevelConfiguration { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiFlowcontrolV1beta3PriorityLevelConfiguration + */ + 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 + * @type {string} + * @memberof IoK8sApiFlowcontrolV1beta3PriorityLevelConfiguration + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiFlowcontrolV1beta3PriorityLevelConfiguration + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpec} + * @memberof IoK8sApiFlowcontrolV1beta3PriorityLevelConfiguration + */ + spec?: IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpec; + /** + * + * @type {IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationStatus} + * @memberof IoK8sApiFlowcontrolV1beta3PriorityLevelConfiguration + */ + status?: IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationStatus; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1beta3PriorityLevelConfiguration interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1beta3PriorityLevelConfiguration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationFromJSON(json: any): IoK8sApiFlowcontrolV1beta3PriorityLevelConfiguration { + return IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1beta3PriorityLevelConfiguration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationToJSON(value?: IoK8sApiFlowcontrolV1beta3PriorityLevelConfiguration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpecToJSON(value.spec), + 'status': IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationCondition.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationCondition.ts new file mode 100644 index 000000000..d1bd3ebca --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationCondition.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * PriorityLevelConfigurationCondition defines the condition of priority level. + * @export + * @interface IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationCondition + */ +export interface IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationCondition { + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationCondition + */ + lastTransitionTime?: string; + /** + * `message` is a human-readable message indicating details about last transition. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationCondition + */ + message?: string; + /** + * `reason` is a unique, one-word, CamelCase reason for the condition's last transition. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationCondition + */ + reason?: string; + /** + * `status` is the status of the condition. Can be True, False, Unknown. Required. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationCondition + */ + status?: string; + /** + * `type` is the type of the condition. Required. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationCondition + */ + type?: string; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationCondition interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationCondition(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationConditionFromJSON(json: any): IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationCondition { + return IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationConditionFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'lastTransitionTime': !exists(json, 'lastTransitionTime') ? undefined : json['lastTransitionTime'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'status': !exists(json, 'status') ? undefined : json['status'], + 'type': !exists(json, 'type') ? undefined : json['type'], + }; +} + +export function IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationConditionToJSON(value?: IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'lastTransitionTime': value.lastTransitionTime === undefined ? undefined : (value.lastTransitionTime), + 'message': value.message, + 'reason': value.reason, + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationList.ts new file mode 100644 index 000000000..0847ea17d --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiFlowcontrolV1beta3PriorityLevelConfiguration } from './IoK8sApiFlowcontrolV1beta3PriorityLevelConfiguration'; +import { + IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationFromJSON, + IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationFromJSONTyped, + IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationToJSON, +} from './IoK8sApiFlowcontrolV1beta3PriorityLevelConfiguration'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. + * @export + * @interface IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationList + */ +export interface IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationList + */ + apiVersion?: string; + /** + * `items` is a list of request-priorities. + * @type {Array} + * @memberof IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationList + */ + 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 + * @type {string} + * @memberof IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationList interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationListFromJSON(json: any): IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationList { + return IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationListFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationListToJSON(value?: IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationReference.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationReference.ts new file mode 100644 index 000000000..dc96e45a3 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationReference.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * PriorityLevelConfigurationReference contains information that points to the "request-priority" being used. + * @export + * @interface IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationReference + */ +export interface IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationReference { + /** + * `name` is the name of the priority level configuration being referenced Required. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationReference + */ + name: string; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationReference interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationReference(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationReferenceFromJSON(json: any): IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationReference { + return IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationReferenceFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationReference { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + }; +} + +export function IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationReferenceToJSON(value?: IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationReference | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpec.ts new file mode 100644 index 000000000..4dd840d1b --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpec.ts @@ -0,0 +1,95 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfiguration } from './IoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfiguration'; +import { + IoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfigurationFromJSON, + IoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfigurationFromJSONTyped, + IoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfigurationToJSON, +} from './IoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfiguration'; +import type { IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfiguration } from './IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfiguration'; +import { + IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfigurationFromJSON, + IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfigurationFromJSONTyped, + IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfigurationToJSON, +} from './IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfiguration'; + +/** + * PriorityLevelConfigurationSpec specifies the configuration of a priority level. + * @export + * @interface IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpec + */ +export interface IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpec { + /** + * + * @type {IoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfiguration} + * @memberof IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpec + */ + exempt?: IoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfiguration; + /** + * + * @type {IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfiguration} + * @memberof IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpec + */ + limited?: IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfiguration; + /** + * `type` indicates whether this priority level is subject to limitation on request execution. A value of `"Exempt"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `"Limited"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpec + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpec interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpecFromJSON(json: any): IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpec { + return IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpecFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'exempt': !exists(json, 'exempt') ? undefined : IoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfigurationFromJSON(json['exempt']), + 'limited': !exists(json, 'limited') ? undefined : IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfigurationFromJSON(json['limited']), + 'type': json['type'], + }; +} + +export function IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpecToJSON(value?: IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'exempt': IoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfigurationToJSON(value.exempt), + 'limited': IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfigurationToJSON(value.limited), + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationStatus.ts new file mode 100644 index 000000000..8bd5fe4fa --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationStatus.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationCondition } from './IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationCondition'; +import { + IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationConditionFromJSON, + IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationConditionFromJSONTyped, + IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationConditionToJSON, +} from './IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationCondition'; + +/** + * PriorityLevelConfigurationStatus represents the current state of a "request-priority". + * @export + * @interface IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationStatus + */ +export interface IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationStatus { + /** + * `conditions` is the current state of "request-priority". + * @type {Array} + * @memberof IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationStatus + */ + conditions?: Array; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationStatus interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationStatusFromJSON(json: any): IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationStatus { + return IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationStatusFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationConditionFromJSON)), + }; +} + +export function IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationStatusToJSON(value?: IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationConditionToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3QueuingConfiguration.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3QueuingConfiguration.ts new file mode 100644 index 000000000..a0f58b326 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3QueuingConfiguration.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * QueuingConfiguration holds the configuration parameters for queuing + * @export + * @interface IoK8sApiFlowcontrolV1beta3QueuingConfiguration + */ +export interface IoK8sApiFlowcontrolV1beta3QueuingConfiguration { + /** + * `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. + * @type {number} + * @memberof IoK8sApiFlowcontrolV1beta3QueuingConfiguration + */ + handSize?: number; + /** + * `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. + * @type {number} + * @memberof IoK8sApiFlowcontrolV1beta3QueuingConfiguration + */ + queueLengthLimit?: number; + /** + * `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. + * @type {number} + * @memberof IoK8sApiFlowcontrolV1beta3QueuingConfiguration + */ + queues?: number; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1beta3QueuingConfiguration interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1beta3QueuingConfiguration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1beta3QueuingConfigurationFromJSON(json: any): IoK8sApiFlowcontrolV1beta3QueuingConfiguration { + return IoK8sApiFlowcontrolV1beta3QueuingConfigurationFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1beta3QueuingConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1beta3QueuingConfiguration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'handSize': !exists(json, 'handSize') ? undefined : json['handSize'], + 'queueLengthLimit': !exists(json, 'queueLengthLimit') ? undefined : json['queueLengthLimit'], + 'queues': !exists(json, 'queues') ? undefined : json['queues'], + }; +} + +export function IoK8sApiFlowcontrolV1beta3QueuingConfigurationToJSON(value?: IoK8sApiFlowcontrolV1beta3QueuingConfiguration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'handSize': value.handSize, + 'queueLengthLimit': value.queueLengthLimit, + 'queues': value.queues, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3ResourcePolicyRule.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3ResourcePolicyRule.ts new file mode 100644 index 000000000..5c55025b0 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3ResourcePolicyRule.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==""`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace. + * @export + * @interface IoK8sApiFlowcontrolV1beta3ResourcePolicyRule + */ +export interface IoK8sApiFlowcontrolV1beta3ResourcePolicyRule { + /** + * `apiGroups` is a list of matching API groups and may not be empty. "*" matches all API groups and, if present, must be the only entry. Required. + * @type {Array} + * @memberof IoK8sApiFlowcontrolV1beta3ResourcePolicyRule + */ + apiGroups: string[]; + /** + * `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. + * @type {boolean} + * @memberof IoK8sApiFlowcontrolV1beta3ResourcePolicyRule + */ + clusterScope?: boolean; + /** + * `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains "*". Note that "*" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. + * @type {Array} + * @memberof IoK8sApiFlowcontrolV1beta3ResourcePolicyRule + */ + namespaces?: string[]; + /** + * `resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ "services", "nodes/status" ]. This list may not be empty. "*" matches all resources and, if present, must be the only entry. Required. + * @type {Array} + * @memberof IoK8sApiFlowcontrolV1beta3ResourcePolicyRule + */ + resources: string[]; + /** + * `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs and, if present, must be the only entry. Required. + * @type {Array} + * @memberof IoK8sApiFlowcontrolV1beta3ResourcePolicyRule + */ + verbs: string[]; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1beta3ResourcePolicyRule interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1beta3ResourcePolicyRule(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "apiGroups" in value; + isInstance = isInstance && "resources" in value; + isInstance = isInstance && "verbs" in value; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1beta3ResourcePolicyRuleFromJSON(json: any): IoK8sApiFlowcontrolV1beta3ResourcePolicyRule { + return IoK8sApiFlowcontrolV1beta3ResourcePolicyRuleFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1beta3ResourcePolicyRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1beta3ResourcePolicyRule { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiGroups': json['apiGroups'], + 'clusterScope': !exists(json, 'clusterScope') ? undefined : json['clusterScope'], + 'namespaces': !exists(json, 'namespaces') ? undefined : json['namespaces'], + 'resources': json['resources'], + 'verbs': json['verbs'], + }; +} + +export function IoK8sApiFlowcontrolV1beta3ResourcePolicyRuleToJSON(value?: IoK8sApiFlowcontrolV1beta3ResourcePolicyRule | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiGroups': value.apiGroups, + 'clusterScope': value.clusterScope, + 'namespaces': value.namespaces, + 'resources': value.resources, + 'verbs': value.verbs, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3ServiceAccountSubject.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3ServiceAccountSubject.ts new file mode 100644 index 000000000..89ed0fa49 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3ServiceAccountSubject.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ServiceAccountSubject holds detailed information for service-account-kind subject. + * @export + * @interface IoK8sApiFlowcontrolV1beta3ServiceAccountSubject + */ +export interface IoK8sApiFlowcontrolV1beta3ServiceAccountSubject { + /** + * `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1beta3ServiceAccountSubject + */ + name: string; + /** + * `namespace` is the namespace of matching ServiceAccount objects. Required. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1beta3ServiceAccountSubject + */ + namespace: string; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1beta3ServiceAccountSubject interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1beta3ServiceAccountSubject(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "namespace" in value; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1beta3ServiceAccountSubjectFromJSON(json: any): IoK8sApiFlowcontrolV1beta3ServiceAccountSubject { + return IoK8sApiFlowcontrolV1beta3ServiceAccountSubjectFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1beta3ServiceAccountSubjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1beta3ServiceAccountSubject { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + 'namespace': json['namespace'], + }; +} + +export function IoK8sApiFlowcontrolV1beta3ServiceAccountSubjectToJSON(value?: IoK8sApiFlowcontrolV1beta3ServiceAccountSubject | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'namespace': value.namespace, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3Subject.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3Subject.ts new file mode 100644 index 000000000..91bce7fac --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3Subject.ts @@ -0,0 +1,109 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiFlowcontrolV1beta3GroupSubject } from './IoK8sApiFlowcontrolV1beta3GroupSubject'; +import { + IoK8sApiFlowcontrolV1beta3GroupSubjectFromJSON, + IoK8sApiFlowcontrolV1beta3GroupSubjectFromJSONTyped, + IoK8sApiFlowcontrolV1beta3GroupSubjectToJSON, +} from './IoK8sApiFlowcontrolV1beta3GroupSubject'; +import type { IoK8sApiFlowcontrolV1beta3ServiceAccountSubject } from './IoK8sApiFlowcontrolV1beta3ServiceAccountSubject'; +import { + IoK8sApiFlowcontrolV1beta3ServiceAccountSubjectFromJSON, + IoK8sApiFlowcontrolV1beta3ServiceAccountSubjectFromJSONTyped, + IoK8sApiFlowcontrolV1beta3ServiceAccountSubjectToJSON, +} from './IoK8sApiFlowcontrolV1beta3ServiceAccountSubject'; +import type { IoK8sApiFlowcontrolV1beta3UserSubject } from './IoK8sApiFlowcontrolV1beta3UserSubject'; +import { + IoK8sApiFlowcontrolV1beta3UserSubjectFromJSON, + IoK8sApiFlowcontrolV1beta3UserSubjectFromJSONTyped, + IoK8sApiFlowcontrolV1beta3UserSubjectToJSON, +} from './IoK8sApiFlowcontrolV1beta3UserSubject'; + +/** + * Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account. + * @export + * @interface IoK8sApiFlowcontrolV1beta3Subject + */ +export interface IoK8sApiFlowcontrolV1beta3Subject { + /** + * + * @type {IoK8sApiFlowcontrolV1beta3GroupSubject} + * @memberof IoK8sApiFlowcontrolV1beta3Subject + */ + group?: IoK8sApiFlowcontrolV1beta3GroupSubject; + /** + * `kind` indicates which one of the other fields is non-empty. Required + * @type {string} + * @memberof IoK8sApiFlowcontrolV1beta3Subject + */ + kind: string; + /** + * + * @type {IoK8sApiFlowcontrolV1beta3ServiceAccountSubject} + * @memberof IoK8sApiFlowcontrolV1beta3Subject + */ + serviceAccount?: IoK8sApiFlowcontrolV1beta3ServiceAccountSubject; + /** + * + * @type {IoK8sApiFlowcontrolV1beta3UserSubject} + * @memberof IoK8sApiFlowcontrolV1beta3Subject + */ + user?: IoK8sApiFlowcontrolV1beta3UserSubject; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1beta3Subject interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1beta3Subject(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "kind" in value; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1beta3SubjectFromJSON(json: any): IoK8sApiFlowcontrolV1beta3Subject { + return IoK8sApiFlowcontrolV1beta3SubjectFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1beta3SubjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1beta3Subject { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'group': !exists(json, 'group') ? undefined : IoK8sApiFlowcontrolV1beta3GroupSubjectFromJSON(json['group']), + 'kind': json['kind'], + 'serviceAccount': !exists(json, 'serviceAccount') ? undefined : IoK8sApiFlowcontrolV1beta3ServiceAccountSubjectFromJSON(json['serviceAccount']), + 'user': !exists(json, 'user') ? undefined : IoK8sApiFlowcontrolV1beta3UserSubjectFromJSON(json['user']), + }; +} + +export function IoK8sApiFlowcontrolV1beta3SubjectToJSON(value?: IoK8sApiFlowcontrolV1beta3Subject | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'group': IoK8sApiFlowcontrolV1beta3GroupSubjectToJSON(value.group), + 'kind': value.kind, + 'serviceAccount': IoK8sApiFlowcontrolV1beta3ServiceAccountSubjectToJSON(value.serviceAccount), + 'user': IoK8sApiFlowcontrolV1beta3UserSubjectToJSON(value.user), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3UserSubject.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3UserSubject.ts new file mode 100644 index 000000000..39cd476cb --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiFlowcontrolV1beta3UserSubject.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * UserSubject holds detailed information for user-kind subject. + * @export + * @interface IoK8sApiFlowcontrolV1beta3UserSubject + */ +export interface IoK8sApiFlowcontrolV1beta3UserSubject { + /** + * `name` is the username that matches, or "*" to match all usernames. Required. + * @type {string} + * @memberof IoK8sApiFlowcontrolV1beta3UserSubject + */ + name: string; +} + +/** + * Check if a given object implements the IoK8sApiFlowcontrolV1beta3UserSubject interface. + */ +export function instanceOfIoK8sApiFlowcontrolV1beta3UserSubject(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiFlowcontrolV1beta3UserSubjectFromJSON(json: any): IoK8sApiFlowcontrolV1beta3UserSubject { + return IoK8sApiFlowcontrolV1beta3UserSubjectFromJSONTyped(json, false); +} + +export function IoK8sApiFlowcontrolV1beta3UserSubjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiFlowcontrolV1beta3UserSubject { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + }; +} + +export function IoK8sApiFlowcontrolV1beta3UserSubjectToJSON(value?: IoK8sApiFlowcontrolV1beta3UserSubject | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1HTTPIngressPath.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1HTTPIngressPath.ts new file mode 100644 index 000000000..32b2dd0e1 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1HTTPIngressPath.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiNetworkingV1IngressBackend } from './IoK8sApiNetworkingV1IngressBackend'; +import { + IoK8sApiNetworkingV1IngressBackendFromJSON, + IoK8sApiNetworkingV1IngressBackendFromJSONTyped, + IoK8sApiNetworkingV1IngressBackendToJSON, +} from './IoK8sApiNetworkingV1IngressBackend'; + +/** + * HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend. + * @export + * @interface IoK8sApiNetworkingV1HTTPIngressPath + */ +export interface IoK8sApiNetworkingV1HTTPIngressPath { + /** + * + * @type {IoK8sApiNetworkingV1IngressBackend} + * @memberof IoK8sApiNetworkingV1HTTPIngressPath + */ + backend: IoK8sApiNetworkingV1IngressBackend; + /** + * path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/' and must be present when using PathType with value "Exact" or "Prefix". + * @type {string} + * @memberof IoK8sApiNetworkingV1HTTPIngressPath + */ + path?: string; + /** + * pathType determines the interpretation of the path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is + * done on a path element by element basis. A path element refers is the + * list of labels in the path split by the '/' separator. A request is a + * match for path p if every p is an element-wise prefix of p of the + * request path. Note that if the last element of the path is a substring + * of the last element in request path, it is not a match (e.g. /foo/bar + * matches /foo/bar/baz, but does not match /foo/barbaz). + * * ImplementationSpecific: Interpretation of the Path matching is up to + * the IngressClass. Implementations can treat this as a separate PathType + * or treat it identically to Prefix or Exact path types. + * Implementations are required to support all path types. + * @type {string} + * @memberof IoK8sApiNetworkingV1HTTPIngressPath + */ + pathType: string; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1HTTPIngressPath interface. + */ +export function instanceOfIoK8sApiNetworkingV1HTTPIngressPath(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "backend" in value; + isInstance = isInstance && "pathType" in value; + + return isInstance; +} + +export function IoK8sApiNetworkingV1HTTPIngressPathFromJSON(json: any): IoK8sApiNetworkingV1HTTPIngressPath { + return IoK8sApiNetworkingV1HTTPIngressPathFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1HTTPIngressPathFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1HTTPIngressPath { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'backend': IoK8sApiNetworkingV1IngressBackendFromJSON(json['backend']), + 'path': !exists(json, 'path') ? undefined : json['path'], + 'pathType': json['pathType'], + }; +} + +export function IoK8sApiNetworkingV1HTTPIngressPathToJSON(value?: IoK8sApiNetworkingV1HTTPIngressPath | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'backend': IoK8sApiNetworkingV1IngressBackendToJSON(value.backend), + 'path': value.path, + 'pathType': value.pathType, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1HTTPIngressRuleValue.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1HTTPIngressRuleValue.ts new file mode 100644 index 000000000..30a07fcd9 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1HTTPIngressRuleValue.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiNetworkingV1HTTPIngressPath } from './IoK8sApiNetworkingV1HTTPIngressPath'; +import { + IoK8sApiNetworkingV1HTTPIngressPathFromJSON, + IoK8sApiNetworkingV1HTTPIngressPathFromJSONTyped, + IoK8sApiNetworkingV1HTTPIngressPathToJSON, +} from './IoK8sApiNetworkingV1HTTPIngressPath'; + +/** + * HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'. + * @export + * @interface IoK8sApiNetworkingV1HTTPIngressRuleValue + */ +export interface IoK8sApiNetworkingV1HTTPIngressRuleValue { + /** + * paths is a collection of paths that map requests to backends. + * @type {Array} + * @memberof IoK8sApiNetworkingV1HTTPIngressRuleValue + */ + paths: Array; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1HTTPIngressRuleValue interface. + */ +export function instanceOfIoK8sApiNetworkingV1HTTPIngressRuleValue(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "paths" in value; + + return isInstance; +} + +export function IoK8sApiNetworkingV1HTTPIngressRuleValueFromJSON(json: any): IoK8sApiNetworkingV1HTTPIngressRuleValue { + return IoK8sApiNetworkingV1HTTPIngressRuleValueFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1HTTPIngressRuleValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1HTTPIngressRuleValue { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'paths': ((json['paths'] as Array).map(IoK8sApiNetworkingV1HTTPIngressPathFromJSON)), + }; +} + +export function IoK8sApiNetworkingV1HTTPIngressRuleValueToJSON(value?: IoK8sApiNetworkingV1HTTPIngressRuleValue | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'paths': ((value.paths as Array).map(IoK8sApiNetworkingV1HTTPIngressPathToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IPBlock.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IPBlock.ts new file mode 100644 index 000000000..4b70fd591 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IPBlock.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * IPBlock describes a particular CIDR (Ex. "192.168.1.0/24","2001:db8::/64") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule. + * @export + * @interface IoK8sApiNetworkingV1IPBlock + */ +export interface IoK8sApiNetworkingV1IPBlock { + /** + * cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" + * @type {string} + * @memberof IoK8sApiNetworkingV1IPBlock + */ + cidr: string; + /** + * except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range + * @type {Array} + * @memberof IoK8sApiNetworkingV1IPBlock + */ + except?: string[]; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1IPBlock interface. + */ +export function instanceOfIoK8sApiNetworkingV1IPBlock(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "cidr" in value; + + return isInstance; +} + +export function IoK8sApiNetworkingV1IPBlockFromJSON(json: any): IoK8sApiNetworkingV1IPBlock { + return IoK8sApiNetworkingV1IPBlockFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1IPBlockFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1IPBlock { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'cidr': json['cidr'], + 'except': !exists(json, 'except') ? undefined : json['except'], + }; +} + +export function IoK8sApiNetworkingV1IPBlockToJSON(value?: IoK8sApiNetworkingV1IPBlock | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'cidr': value.cidr, + 'except': value.except, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1Ingress.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1Ingress.ts new file mode 100644 index 000000000..2f88e9404 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1Ingress.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiNetworkingV1IngressSpec } from './IoK8sApiNetworkingV1IngressSpec'; +import { + IoK8sApiNetworkingV1IngressSpecFromJSON, + IoK8sApiNetworkingV1IngressSpecFromJSONTyped, + IoK8sApiNetworkingV1IngressSpecToJSON, +} from './IoK8sApiNetworkingV1IngressSpec'; +import type { IoK8sApiNetworkingV1IngressStatus } from './IoK8sApiNetworkingV1IngressStatus'; +import { + IoK8sApiNetworkingV1IngressStatusFromJSON, + IoK8sApiNetworkingV1IngressStatusFromJSONTyped, + IoK8sApiNetworkingV1IngressStatusToJSON, +} from './IoK8sApiNetworkingV1IngressStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. + * @export + * @interface IoK8sApiNetworkingV1Ingress + */ +export interface IoK8sApiNetworkingV1Ingress { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiNetworkingV1Ingress + */ + 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 + * @type {string} + * @memberof IoK8sApiNetworkingV1Ingress + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiNetworkingV1Ingress + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiNetworkingV1IngressSpec} + * @memberof IoK8sApiNetworkingV1Ingress + */ + spec?: IoK8sApiNetworkingV1IngressSpec; + /** + * + * @type {IoK8sApiNetworkingV1IngressStatus} + * @memberof IoK8sApiNetworkingV1Ingress + */ + status?: IoK8sApiNetworkingV1IngressStatus; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1Ingress interface. + */ +export function instanceOfIoK8sApiNetworkingV1Ingress(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiNetworkingV1IngressFromJSON(json: any): IoK8sApiNetworkingV1Ingress { + return IoK8sApiNetworkingV1IngressFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1IngressFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1Ingress { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiNetworkingV1IngressSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiNetworkingV1IngressStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiNetworkingV1IngressToJSON(value?: IoK8sApiNetworkingV1Ingress | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiNetworkingV1IngressSpecToJSON(value.spec), + 'status': IoK8sApiNetworkingV1IngressStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressBackend.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressBackend.ts new file mode 100644 index 000000000..843cca743 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressBackend.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1TypedLocalObjectReference } from './IoK8sApiCoreV1TypedLocalObjectReference'; +import { + IoK8sApiCoreV1TypedLocalObjectReferenceFromJSON, + IoK8sApiCoreV1TypedLocalObjectReferenceFromJSONTyped, + IoK8sApiCoreV1TypedLocalObjectReferenceToJSON, +} from './IoK8sApiCoreV1TypedLocalObjectReference'; +import type { IoK8sApiNetworkingV1IngressServiceBackend } from './IoK8sApiNetworkingV1IngressServiceBackend'; +import { + IoK8sApiNetworkingV1IngressServiceBackendFromJSON, + IoK8sApiNetworkingV1IngressServiceBackendFromJSONTyped, + IoK8sApiNetworkingV1IngressServiceBackendToJSON, +} from './IoK8sApiNetworkingV1IngressServiceBackend'; + +/** + * IngressBackend describes all endpoints for a given service and port. + * @export + * @interface IoK8sApiNetworkingV1IngressBackend + */ +export interface IoK8sApiNetworkingV1IngressBackend { + /** + * + * @type {IoK8sApiCoreV1TypedLocalObjectReference} + * @memberof IoK8sApiNetworkingV1IngressBackend + */ + resource?: IoK8sApiCoreV1TypedLocalObjectReference; + /** + * + * @type {IoK8sApiNetworkingV1IngressServiceBackend} + * @memberof IoK8sApiNetworkingV1IngressBackend + */ + service?: IoK8sApiNetworkingV1IngressServiceBackend; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1IngressBackend interface. + */ +export function instanceOfIoK8sApiNetworkingV1IngressBackend(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiNetworkingV1IngressBackendFromJSON(json: any): IoK8sApiNetworkingV1IngressBackend { + return IoK8sApiNetworkingV1IngressBackendFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1IngressBackendFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1IngressBackend { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'resource': !exists(json, 'resource') ? undefined : IoK8sApiCoreV1TypedLocalObjectReferenceFromJSON(json['resource']), + 'service': !exists(json, 'service') ? undefined : IoK8sApiNetworkingV1IngressServiceBackendFromJSON(json['service']), + }; +} + +export function IoK8sApiNetworkingV1IngressBackendToJSON(value?: IoK8sApiNetworkingV1IngressBackend | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'resource': IoK8sApiCoreV1TypedLocalObjectReferenceToJSON(value.resource), + 'service': IoK8sApiNetworkingV1IngressServiceBackendToJSON(value.service), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressClass.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressClass.ts new file mode 100644 index 000000000..3dcb3a5f5 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressClass.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiNetworkingV1IngressClassSpec } from './IoK8sApiNetworkingV1IngressClassSpec'; +import { + IoK8sApiNetworkingV1IngressClassSpecFromJSON, + IoK8sApiNetworkingV1IngressClassSpecFromJSONTyped, + IoK8sApiNetworkingV1IngressClassSpecToJSON, +} from './IoK8sApiNetworkingV1IngressClassSpec'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class. + * @export + * @interface IoK8sApiNetworkingV1IngressClass + */ +export interface IoK8sApiNetworkingV1IngressClass { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiNetworkingV1IngressClass + */ + 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 + * @type {string} + * @memberof IoK8sApiNetworkingV1IngressClass + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiNetworkingV1IngressClass + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiNetworkingV1IngressClassSpec} + * @memberof IoK8sApiNetworkingV1IngressClass + */ + spec?: IoK8sApiNetworkingV1IngressClassSpec; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1IngressClass interface. + */ +export function instanceOfIoK8sApiNetworkingV1IngressClass(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiNetworkingV1IngressClassFromJSON(json: any): IoK8sApiNetworkingV1IngressClass { + return IoK8sApiNetworkingV1IngressClassFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1IngressClassFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1IngressClass { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiNetworkingV1IngressClassSpecFromJSON(json['spec']), + }; +} + +export function IoK8sApiNetworkingV1IngressClassToJSON(value?: IoK8sApiNetworkingV1IngressClass | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiNetworkingV1IngressClassSpecToJSON(value.spec), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressClassList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressClassList.ts new file mode 100644 index 000000000..d05551239 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressClassList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiNetworkingV1IngressClass } from './IoK8sApiNetworkingV1IngressClass'; +import { + IoK8sApiNetworkingV1IngressClassFromJSON, + IoK8sApiNetworkingV1IngressClassFromJSONTyped, + IoK8sApiNetworkingV1IngressClassToJSON, +} from './IoK8sApiNetworkingV1IngressClass'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * IngressClassList is a collection of IngressClasses. + * @export + * @interface IoK8sApiNetworkingV1IngressClassList + */ +export interface IoK8sApiNetworkingV1IngressClassList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiNetworkingV1IngressClassList + */ + apiVersion?: string; + /** + * items is the list of IngressClasses. + * @type {Array} + * @memberof IoK8sApiNetworkingV1IngressClassList + */ + 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 + * @type {string} + * @memberof IoK8sApiNetworkingV1IngressClassList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiNetworkingV1IngressClassList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1IngressClassList interface. + */ +export function instanceOfIoK8sApiNetworkingV1IngressClassList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiNetworkingV1IngressClassListFromJSON(json: any): IoK8sApiNetworkingV1IngressClassList { + return IoK8sApiNetworkingV1IngressClassListFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1IngressClassListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1IngressClassList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiNetworkingV1IngressClassFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiNetworkingV1IngressClassListToJSON(value?: IoK8sApiNetworkingV1IngressClassList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiNetworkingV1IngressClassToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressClassParametersReference.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressClassParametersReference.ts new file mode 100644 index 000000000..b9ca0b51a --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressClassParametersReference.ts @@ -0,0 +1,99 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource. + * @export + * @interface IoK8sApiNetworkingV1IngressClassParametersReference + */ +export interface IoK8sApiNetworkingV1IngressClassParametersReference { + /** + * apiGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * @type {string} + * @memberof IoK8sApiNetworkingV1IngressClassParametersReference + */ + apiGroup?: string; + /** + * kind is the type of resource being referenced. + * @type {string} + * @memberof IoK8sApiNetworkingV1IngressClassParametersReference + */ + kind: string; + /** + * name is the name of resource being referenced. + * @type {string} + * @memberof IoK8sApiNetworkingV1IngressClassParametersReference + */ + name: string; + /** + * namespace is the namespace of the resource being referenced. This field is required when scope is set to "Namespace" and must be unset when scope is set to "Cluster". + * @type {string} + * @memberof IoK8sApiNetworkingV1IngressClassParametersReference + */ + namespace?: string; + /** + * scope represents if this refers to a cluster or namespace scoped resource. This may be set to "Cluster" (default) or "Namespace". + * @type {string} + * @memberof IoK8sApiNetworkingV1IngressClassParametersReference + */ + scope?: string; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1IngressClassParametersReference interface. + */ +export function instanceOfIoK8sApiNetworkingV1IngressClassParametersReference(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "kind" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiNetworkingV1IngressClassParametersReferenceFromJSON(json: any): IoK8sApiNetworkingV1IngressClassParametersReference { + return IoK8sApiNetworkingV1IngressClassParametersReferenceFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1IngressClassParametersReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1IngressClassParametersReference { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiGroup': !exists(json, 'apiGroup') ? undefined : json['apiGroup'], + 'kind': json['kind'], + 'name': json['name'], + 'namespace': !exists(json, 'namespace') ? undefined : json['namespace'], + 'scope': !exists(json, 'scope') ? undefined : json['scope'], + }; +} + +export function IoK8sApiNetworkingV1IngressClassParametersReferenceToJSON(value?: IoK8sApiNetworkingV1IngressClassParametersReference | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiGroup': value.apiGroup, + 'kind': value.kind, + 'name': value.name, + 'namespace': value.namespace, + 'scope': value.scope, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressClassSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressClassSpec.ts new file mode 100644 index 000000000..3dbdcdf50 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressClassSpec.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiNetworkingV1IngressClassParametersReference } from './IoK8sApiNetworkingV1IngressClassParametersReference'; +import { + IoK8sApiNetworkingV1IngressClassParametersReferenceFromJSON, + IoK8sApiNetworkingV1IngressClassParametersReferenceFromJSONTyped, + IoK8sApiNetworkingV1IngressClassParametersReferenceToJSON, +} from './IoK8sApiNetworkingV1IngressClassParametersReference'; + +/** + * IngressClassSpec provides information about the class of an Ingress. + * @export + * @interface IoK8sApiNetworkingV1IngressClassSpec + */ +export interface IoK8sApiNetworkingV1IngressClassSpec { + /** + * controller refers to the name of the controller that should handle this class. This allows for different "flavors" that are controlled by the same controller. For example, you may have different parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. "acme.io/ingress-controller". This field is immutable. + * @type {string} + * @memberof IoK8sApiNetworkingV1IngressClassSpec + */ + controller?: string; + /** + * + * @type {IoK8sApiNetworkingV1IngressClassParametersReference} + * @memberof IoK8sApiNetworkingV1IngressClassSpec + */ + parameters?: IoK8sApiNetworkingV1IngressClassParametersReference; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1IngressClassSpec interface. + */ +export function instanceOfIoK8sApiNetworkingV1IngressClassSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiNetworkingV1IngressClassSpecFromJSON(json: any): IoK8sApiNetworkingV1IngressClassSpec { + return IoK8sApiNetworkingV1IngressClassSpecFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1IngressClassSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1IngressClassSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'controller': !exists(json, 'controller') ? undefined : json['controller'], + 'parameters': !exists(json, 'parameters') ? undefined : IoK8sApiNetworkingV1IngressClassParametersReferenceFromJSON(json['parameters']), + }; +} + +export function IoK8sApiNetworkingV1IngressClassSpecToJSON(value?: IoK8sApiNetworkingV1IngressClassSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'controller': value.controller, + 'parameters': IoK8sApiNetworkingV1IngressClassParametersReferenceToJSON(value.parameters), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressList.ts new file mode 100644 index 000000000..bb8f0b331 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiNetworkingV1Ingress } from './IoK8sApiNetworkingV1Ingress'; +import { + IoK8sApiNetworkingV1IngressFromJSON, + IoK8sApiNetworkingV1IngressFromJSONTyped, + IoK8sApiNetworkingV1IngressToJSON, +} from './IoK8sApiNetworkingV1Ingress'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * IngressList is a collection of Ingress. + * @export + * @interface IoK8sApiNetworkingV1IngressList + */ +export interface IoK8sApiNetworkingV1IngressList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiNetworkingV1IngressList + */ + apiVersion?: string; + /** + * items is the list of Ingress. + * @type {Array} + * @memberof IoK8sApiNetworkingV1IngressList + */ + 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 + * @type {string} + * @memberof IoK8sApiNetworkingV1IngressList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiNetworkingV1IngressList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1IngressList interface. + */ +export function instanceOfIoK8sApiNetworkingV1IngressList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiNetworkingV1IngressListFromJSON(json: any): IoK8sApiNetworkingV1IngressList { + return IoK8sApiNetworkingV1IngressListFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1IngressListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1IngressList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiNetworkingV1IngressFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiNetworkingV1IngressListToJSON(value?: IoK8sApiNetworkingV1IngressList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiNetworkingV1IngressToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressLoadBalancerIngress.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressLoadBalancerIngress.ts new file mode 100644 index 000000000..f766d43bc --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressLoadBalancerIngress.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiNetworkingV1IngressPortStatus } from './IoK8sApiNetworkingV1IngressPortStatus'; +import { + IoK8sApiNetworkingV1IngressPortStatusFromJSON, + IoK8sApiNetworkingV1IngressPortStatusFromJSONTyped, + IoK8sApiNetworkingV1IngressPortStatusToJSON, +} from './IoK8sApiNetworkingV1IngressPortStatus'; + +/** + * IngressLoadBalancerIngress represents the status of a load-balancer ingress point. + * @export + * @interface IoK8sApiNetworkingV1IngressLoadBalancerIngress + */ +export interface IoK8sApiNetworkingV1IngressLoadBalancerIngress { + /** + * hostname is set for load-balancer ingress points that are DNS based. + * @type {string} + * @memberof IoK8sApiNetworkingV1IngressLoadBalancerIngress + */ + hostname?: string; + /** + * ip is set for load-balancer ingress points that are IP based. + * @type {string} + * @memberof IoK8sApiNetworkingV1IngressLoadBalancerIngress + */ + ip?: string; + /** + * ports provides information about the ports exposed by this LoadBalancer. + * @type {Array} + * @memberof IoK8sApiNetworkingV1IngressLoadBalancerIngress + */ + ports?: Array; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1IngressLoadBalancerIngress interface. + */ +export function instanceOfIoK8sApiNetworkingV1IngressLoadBalancerIngress(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiNetworkingV1IngressLoadBalancerIngressFromJSON(json: any): IoK8sApiNetworkingV1IngressLoadBalancerIngress { + return IoK8sApiNetworkingV1IngressLoadBalancerIngressFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1IngressLoadBalancerIngressFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1IngressLoadBalancerIngress { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'hostname': !exists(json, 'hostname') ? undefined : json['hostname'], + 'ip': !exists(json, 'ip') ? undefined : json['ip'], + 'ports': !exists(json, 'ports') ? undefined : ((json['ports'] as Array).map(IoK8sApiNetworkingV1IngressPortStatusFromJSON)), + }; +} + +export function IoK8sApiNetworkingV1IngressLoadBalancerIngressToJSON(value?: IoK8sApiNetworkingV1IngressLoadBalancerIngress | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'hostname': value.hostname, + 'ip': value.ip, + 'ports': value.ports === undefined ? undefined : ((value.ports as Array).map(IoK8sApiNetworkingV1IngressPortStatusToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressLoadBalancerStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressLoadBalancerStatus.ts new file mode 100644 index 000000000..6105d2e3d --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressLoadBalancerStatus.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiNetworkingV1IngressLoadBalancerIngress } from './IoK8sApiNetworkingV1IngressLoadBalancerIngress'; +import { + IoK8sApiNetworkingV1IngressLoadBalancerIngressFromJSON, + IoK8sApiNetworkingV1IngressLoadBalancerIngressFromJSONTyped, + IoK8sApiNetworkingV1IngressLoadBalancerIngressToJSON, +} from './IoK8sApiNetworkingV1IngressLoadBalancerIngress'; + +/** + * IngressLoadBalancerStatus represents the status of a load-balancer. + * @export + * @interface IoK8sApiNetworkingV1IngressLoadBalancerStatus + */ +export interface IoK8sApiNetworkingV1IngressLoadBalancerStatus { + /** + * ingress is a list containing ingress points for the load-balancer. + * @type {Array} + * @memberof IoK8sApiNetworkingV1IngressLoadBalancerStatus + */ + ingress?: Array; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1IngressLoadBalancerStatus interface. + */ +export function instanceOfIoK8sApiNetworkingV1IngressLoadBalancerStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiNetworkingV1IngressLoadBalancerStatusFromJSON(json: any): IoK8sApiNetworkingV1IngressLoadBalancerStatus { + return IoK8sApiNetworkingV1IngressLoadBalancerStatusFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1IngressLoadBalancerStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1IngressLoadBalancerStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'ingress': !exists(json, 'ingress') ? undefined : ((json['ingress'] as Array).map(IoK8sApiNetworkingV1IngressLoadBalancerIngressFromJSON)), + }; +} + +export function IoK8sApiNetworkingV1IngressLoadBalancerStatusToJSON(value?: IoK8sApiNetworkingV1IngressLoadBalancerStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ingress': value.ingress === undefined ? undefined : ((value.ingress as Array).map(IoK8sApiNetworkingV1IngressLoadBalancerIngressToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressPortStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressPortStatus.ts new file mode 100644 index 000000000..8b272b888 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressPortStatus.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * IngressPortStatus represents the error condition of a service port + * @export + * @interface IoK8sApiNetworkingV1IngressPortStatus + */ +export interface IoK8sApiNetworkingV1IngressPortStatus { + /** + * error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use + * CamelCase names + * - cloud provider specific error values must have names that comply with the + * format foo.example.com/CamelCase. + * @type {string} + * @memberof IoK8sApiNetworkingV1IngressPortStatus + */ + error?: string; + /** + * port is the port number of the ingress port. + * @type {number} + * @memberof IoK8sApiNetworkingV1IngressPortStatus + */ + port: number; + /** + * protocol is the protocol of the ingress port. The supported values are: "TCP", "UDP", "SCTP" + * @type {string} + * @memberof IoK8sApiNetworkingV1IngressPortStatus + */ + protocol: string; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1IngressPortStatus interface. + */ +export function instanceOfIoK8sApiNetworkingV1IngressPortStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "port" in value; + isInstance = isInstance && "protocol" in value; + + return isInstance; +} + +export function IoK8sApiNetworkingV1IngressPortStatusFromJSON(json: any): IoK8sApiNetworkingV1IngressPortStatus { + return IoK8sApiNetworkingV1IngressPortStatusFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1IngressPortStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1IngressPortStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'error': !exists(json, 'error') ? undefined : json['error'], + 'port': json['port'], + 'protocol': json['protocol'], + }; +} + +export function IoK8sApiNetworkingV1IngressPortStatusToJSON(value?: IoK8sApiNetworkingV1IngressPortStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'error': value.error, + 'port': value.port, + 'protocol': value.protocol, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressRule.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressRule.ts new file mode 100644 index 000000000..7791a9c3b --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressRule.ts @@ -0,0 +1,87 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiNetworkingV1HTTPIngressRuleValue } from './IoK8sApiNetworkingV1HTTPIngressRuleValue'; +import { + IoK8sApiNetworkingV1HTTPIngressRuleValueFromJSON, + IoK8sApiNetworkingV1HTTPIngressRuleValueFromJSONTyped, + IoK8sApiNetworkingV1HTTPIngressRuleValueToJSON, +} from './IoK8sApiNetworkingV1HTTPIngressRuleValue'; + +/** + * IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue. + * @export + * @interface IoK8sApiNetworkingV1IngressRule + */ +export interface IoK8sApiNetworkingV1IngressRule { + /** + * host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to + * the IP in the Spec of the parent Ingress. + * 2. The `:` delimiter is not respected because ports are not allowed. + * Currently the port of an Ingress is implicitly :80 for http and + * :443 for https. + * Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. + * + * host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If host is precise, the request matches this rule if the http host header is equal to Host. 2. If host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule. + * @type {string} + * @memberof IoK8sApiNetworkingV1IngressRule + */ + host?: string; + /** + * + * @type {IoK8sApiNetworkingV1HTTPIngressRuleValue} + * @memberof IoK8sApiNetworkingV1IngressRule + */ + http?: IoK8sApiNetworkingV1HTTPIngressRuleValue; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1IngressRule interface. + */ +export function instanceOfIoK8sApiNetworkingV1IngressRule(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiNetworkingV1IngressRuleFromJSON(json: any): IoK8sApiNetworkingV1IngressRule { + return IoK8sApiNetworkingV1IngressRuleFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1IngressRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1IngressRule { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'host': !exists(json, 'host') ? undefined : json['host'], + 'http': !exists(json, 'http') ? undefined : IoK8sApiNetworkingV1HTTPIngressRuleValueFromJSON(json['http']), + }; +} + +export function IoK8sApiNetworkingV1IngressRuleToJSON(value?: IoK8sApiNetworkingV1IngressRule | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'host': value.host, + 'http': IoK8sApiNetworkingV1HTTPIngressRuleValueToJSON(value.http), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressServiceBackend.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressServiceBackend.ts new file mode 100644 index 000000000..efcf64598 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressServiceBackend.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiNetworkingV1ServiceBackendPort } from './IoK8sApiNetworkingV1ServiceBackendPort'; +import { + IoK8sApiNetworkingV1ServiceBackendPortFromJSON, + IoK8sApiNetworkingV1ServiceBackendPortFromJSONTyped, + IoK8sApiNetworkingV1ServiceBackendPortToJSON, +} from './IoK8sApiNetworkingV1ServiceBackendPort'; + +/** + * IngressServiceBackend references a Kubernetes Service as a Backend. + * @export + * @interface IoK8sApiNetworkingV1IngressServiceBackend + */ +export interface IoK8sApiNetworkingV1IngressServiceBackend { + /** + * name is the referenced service. The service must exist in the same namespace as the Ingress object. + * @type {string} + * @memberof IoK8sApiNetworkingV1IngressServiceBackend + */ + name: string; + /** + * + * @type {IoK8sApiNetworkingV1ServiceBackendPort} + * @memberof IoK8sApiNetworkingV1IngressServiceBackend + */ + port?: IoK8sApiNetworkingV1ServiceBackendPort; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1IngressServiceBackend interface. + */ +export function instanceOfIoK8sApiNetworkingV1IngressServiceBackend(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiNetworkingV1IngressServiceBackendFromJSON(json: any): IoK8sApiNetworkingV1IngressServiceBackend { + return IoK8sApiNetworkingV1IngressServiceBackendFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1IngressServiceBackendFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1IngressServiceBackend { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + 'port': !exists(json, 'port') ? undefined : IoK8sApiNetworkingV1ServiceBackendPortFromJSON(json['port']), + }; +} + +export function IoK8sApiNetworkingV1IngressServiceBackendToJSON(value?: IoK8sApiNetworkingV1IngressServiceBackend | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'port': IoK8sApiNetworkingV1ServiceBackendPortToJSON(value.port), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressSpec.ts new file mode 100644 index 000000000..190fbebd9 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressSpec.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiNetworkingV1IngressBackend } from './IoK8sApiNetworkingV1IngressBackend'; +import { + IoK8sApiNetworkingV1IngressBackendFromJSON, + IoK8sApiNetworkingV1IngressBackendFromJSONTyped, + IoK8sApiNetworkingV1IngressBackendToJSON, +} from './IoK8sApiNetworkingV1IngressBackend'; +import type { IoK8sApiNetworkingV1IngressRule } from './IoK8sApiNetworkingV1IngressRule'; +import { + IoK8sApiNetworkingV1IngressRuleFromJSON, + IoK8sApiNetworkingV1IngressRuleFromJSONTyped, + IoK8sApiNetworkingV1IngressRuleToJSON, +} from './IoK8sApiNetworkingV1IngressRule'; +import type { IoK8sApiNetworkingV1IngressTLS } from './IoK8sApiNetworkingV1IngressTLS'; +import { + IoK8sApiNetworkingV1IngressTLSFromJSON, + IoK8sApiNetworkingV1IngressTLSFromJSONTyped, + IoK8sApiNetworkingV1IngressTLSToJSON, +} from './IoK8sApiNetworkingV1IngressTLS'; + +/** + * IngressSpec describes the Ingress the user wishes to exist. + * @export + * @interface IoK8sApiNetworkingV1IngressSpec + */ +export interface IoK8sApiNetworkingV1IngressSpec { + /** + * + * @type {IoK8sApiNetworkingV1IngressBackend} + * @memberof IoK8sApiNetworkingV1IngressSpec + */ + defaultBackend?: IoK8sApiNetworkingV1IngressBackend; + /** + * ingressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present. + * @type {string} + * @memberof IoK8sApiNetworkingV1IngressSpec + */ + ingressClassName?: string; + /** + * rules is a list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. + * @type {Array} + * @memberof IoK8sApiNetworkingV1IngressSpec + */ + rules?: Array; + /** + * tls represents the TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. + * @type {Array} + * @memberof IoK8sApiNetworkingV1IngressSpec + */ + tls?: Array; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1IngressSpec interface. + */ +export function instanceOfIoK8sApiNetworkingV1IngressSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiNetworkingV1IngressSpecFromJSON(json: any): IoK8sApiNetworkingV1IngressSpec { + return IoK8sApiNetworkingV1IngressSpecFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1IngressSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1IngressSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'defaultBackend': !exists(json, 'defaultBackend') ? undefined : IoK8sApiNetworkingV1IngressBackendFromJSON(json['defaultBackend']), + 'ingressClassName': !exists(json, 'ingressClassName') ? undefined : json['ingressClassName'], + 'rules': !exists(json, 'rules') ? undefined : ((json['rules'] as Array).map(IoK8sApiNetworkingV1IngressRuleFromJSON)), + 'tls': !exists(json, 'tls') ? undefined : ((json['tls'] as Array).map(IoK8sApiNetworkingV1IngressTLSFromJSON)), + }; +} + +export function IoK8sApiNetworkingV1IngressSpecToJSON(value?: IoK8sApiNetworkingV1IngressSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'defaultBackend': IoK8sApiNetworkingV1IngressBackendToJSON(value.defaultBackend), + 'ingressClassName': value.ingressClassName, + 'rules': value.rules === undefined ? undefined : ((value.rules as Array).map(IoK8sApiNetworkingV1IngressRuleToJSON)), + 'tls': value.tls === undefined ? undefined : ((value.tls as Array).map(IoK8sApiNetworkingV1IngressTLSToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressStatus.ts new file mode 100644 index 000000000..3b9611b62 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressStatus.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiNetworkingV1IngressLoadBalancerStatus } from './IoK8sApiNetworkingV1IngressLoadBalancerStatus'; +import { + IoK8sApiNetworkingV1IngressLoadBalancerStatusFromJSON, + IoK8sApiNetworkingV1IngressLoadBalancerStatusFromJSONTyped, + IoK8sApiNetworkingV1IngressLoadBalancerStatusToJSON, +} from './IoK8sApiNetworkingV1IngressLoadBalancerStatus'; + +/** + * IngressStatus describe the current state of the Ingress. + * @export + * @interface IoK8sApiNetworkingV1IngressStatus + */ +export interface IoK8sApiNetworkingV1IngressStatus { + /** + * + * @type {IoK8sApiNetworkingV1IngressLoadBalancerStatus} + * @memberof IoK8sApiNetworkingV1IngressStatus + */ + loadBalancer?: IoK8sApiNetworkingV1IngressLoadBalancerStatus; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1IngressStatus interface. + */ +export function instanceOfIoK8sApiNetworkingV1IngressStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiNetworkingV1IngressStatusFromJSON(json: any): IoK8sApiNetworkingV1IngressStatus { + return IoK8sApiNetworkingV1IngressStatusFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1IngressStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1IngressStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'loadBalancer': !exists(json, 'loadBalancer') ? undefined : IoK8sApiNetworkingV1IngressLoadBalancerStatusFromJSON(json['loadBalancer']), + }; +} + +export function IoK8sApiNetworkingV1IngressStatusToJSON(value?: IoK8sApiNetworkingV1IngressStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'loadBalancer': IoK8sApiNetworkingV1IngressLoadBalancerStatusToJSON(value.loadBalancer), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressTLS.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressTLS.ts new file mode 100644 index 000000000..b6baa5f0f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1IngressTLS.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * IngressTLS describes the transport layer security associated with an ingress. + * @export + * @interface IoK8sApiNetworkingV1IngressTLS + */ +export interface IoK8sApiNetworkingV1IngressTLS { + /** + * hosts is a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. + * @type {Array} + * @memberof IoK8sApiNetworkingV1IngressTLS + */ + hosts?: string[]; + /** + * secretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the "Host" header field used by an IngressRule, the SNI host is used for termination and value of the "Host" header is used for routing. + * @type {string} + * @memberof IoK8sApiNetworkingV1IngressTLS + */ + secretName?: string; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1IngressTLS interface. + */ +export function instanceOfIoK8sApiNetworkingV1IngressTLS(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiNetworkingV1IngressTLSFromJSON(json: any): IoK8sApiNetworkingV1IngressTLS { + return IoK8sApiNetworkingV1IngressTLSFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1IngressTLSFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1IngressTLS { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'hosts': !exists(json, 'hosts') ? undefined : json['hosts'], + 'secretName': !exists(json, 'secretName') ? undefined : json['secretName'], + }; +} + +export function IoK8sApiNetworkingV1IngressTLSToJSON(value?: IoK8sApiNetworkingV1IngressTLS | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'hosts': value.hosts, + 'secretName': value.secretName, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1NetworkPolicy.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1NetworkPolicy.ts new file mode 100644 index 000000000..72a899ab1 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1NetworkPolicy.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiNetworkingV1NetworkPolicySpec } from './IoK8sApiNetworkingV1NetworkPolicySpec'; +import { + IoK8sApiNetworkingV1NetworkPolicySpecFromJSON, + IoK8sApiNetworkingV1NetworkPolicySpecFromJSONTyped, + IoK8sApiNetworkingV1NetworkPolicySpecToJSON, +} from './IoK8sApiNetworkingV1NetworkPolicySpec'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * NetworkPolicy describes what network traffic is allowed for a set of Pods + * @export + * @interface IoK8sApiNetworkingV1NetworkPolicy + */ +export interface IoK8sApiNetworkingV1NetworkPolicy { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiNetworkingV1NetworkPolicy + */ + 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 + * @type {string} + * @memberof IoK8sApiNetworkingV1NetworkPolicy + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiNetworkingV1NetworkPolicy + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiNetworkingV1NetworkPolicySpec} + * @memberof IoK8sApiNetworkingV1NetworkPolicy + */ + spec?: IoK8sApiNetworkingV1NetworkPolicySpec; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1NetworkPolicy interface. + */ +export function instanceOfIoK8sApiNetworkingV1NetworkPolicy(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiNetworkingV1NetworkPolicyFromJSON(json: any): IoK8sApiNetworkingV1NetworkPolicy { + return IoK8sApiNetworkingV1NetworkPolicyFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1NetworkPolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1NetworkPolicy { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiNetworkingV1NetworkPolicySpecFromJSON(json['spec']), + }; +} + +export function IoK8sApiNetworkingV1NetworkPolicyToJSON(value?: IoK8sApiNetworkingV1NetworkPolicy | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiNetworkingV1NetworkPolicySpecToJSON(value.spec), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1NetworkPolicyEgressRule.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1NetworkPolicyEgressRule.ts new file mode 100644 index 000000000..341c62562 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1NetworkPolicyEgressRule.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiNetworkingV1NetworkPolicyPeer } from './IoK8sApiNetworkingV1NetworkPolicyPeer'; +import { + IoK8sApiNetworkingV1NetworkPolicyPeerFromJSON, + IoK8sApiNetworkingV1NetworkPolicyPeerFromJSONTyped, + IoK8sApiNetworkingV1NetworkPolicyPeerToJSON, +} from './IoK8sApiNetworkingV1NetworkPolicyPeer'; +import type { IoK8sApiNetworkingV1NetworkPolicyPort } from './IoK8sApiNetworkingV1NetworkPolicyPort'; +import { + IoK8sApiNetworkingV1NetworkPolicyPortFromJSON, + IoK8sApiNetworkingV1NetworkPolicyPortFromJSONTyped, + IoK8sApiNetworkingV1NetworkPolicyPortToJSON, +} from './IoK8sApiNetworkingV1NetworkPolicyPort'; + +/** + * NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8 + * @export + * @interface IoK8sApiNetworkingV1NetworkPolicyEgressRule + */ +export interface IoK8sApiNetworkingV1NetworkPolicyEgressRule { + /** + * ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + * @type {Array} + * @memberof IoK8sApiNetworkingV1NetworkPolicyEgressRule + */ + ports?: Array; + /** + * to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. + * @type {Array} + * @memberof IoK8sApiNetworkingV1NetworkPolicyEgressRule + */ + to?: Array; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1NetworkPolicyEgressRule interface. + */ +export function instanceOfIoK8sApiNetworkingV1NetworkPolicyEgressRule(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiNetworkingV1NetworkPolicyEgressRuleFromJSON(json: any): IoK8sApiNetworkingV1NetworkPolicyEgressRule { + return IoK8sApiNetworkingV1NetworkPolicyEgressRuleFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1NetworkPolicyEgressRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1NetworkPolicyEgressRule { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'ports': !exists(json, 'ports') ? undefined : ((json['ports'] as Array).map(IoK8sApiNetworkingV1NetworkPolicyPortFromJSON)), + 'to': !exists(json, 'to') ? undefined : ((json['to'] as Array).map(IoK8sApiNetworkingV1NetworkPolicyPeerFromJSON)), + }; +} + +export function IoK8sApiNetworkingV1NetworkPolicyEgressRuleToJSON(value?: IoK8sApiNetworkingV1NetworkPolicyEgressRule | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ports': value.ports === undefined ? undefined : ((value.ports as Array).map(IoK8sApiNetworkingV1NetworkPolicyPortToJSON)), + 'to': value.to === undefined ? undefined : ((value.to as Array).map(IoK8sApiNetworkingV1NetworkPolicyPeerToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1NetworkPolicyIngressRule.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1NetworkPolicyIngressRule.ts new file mode 100644 index 000000000..bfed7f192 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1NetworkPolicyIngressRule.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiNetworkingV1NetworkPolicyPeer } from './IoK8sApiNetworkingV1NetworkPolicyPeer'; +import { + IoK8sApiNetworkingV1NetworkPolicyPeerFromJSON, + IoK8sApiNetworkingV1NetworkPolicyPeerFromJSONTyped, + IoK8sApiNetworkingV1NetworkPolicyPeerToJSON, +} from './IoK8sApiNetworkingV1NetworkPolicyPeer'; +import type { IoK8sApiNetworkingV1NetworkPolicyPort } from './IoK8sApiNetworkingV1NetworkPolicyPort'; +import { + IoK8sApiNetworkingV1NetworkPolicyPortFromJSON, + IoK8sApiNetworkingV1NetworkPolicyPortFromJSONTyped, + IoK8sApiNetworkingV1NetworkPolicyPortToJSON, +} from './IoK8sApiNetworkingV1NetworkPolicyPort'; + +/** + * NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from. + * @export + * @interface IoK8sApiNetworkingV1NetworkPolicyIngressRule + */ +export interface IoK8sApiNetworkingV1NetworkPolicyIngressRule { + /** + * from is a list of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. + * @type {Array} + * @memberof IoK8sApiNetworkingV1NetworkPolicyIngressRule + */ + from?: Array; + /** + * ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + * @type {Array} + * @memberof IoK8sApiNetworkingV1NetworkPolicyIngressRule + */ + ports?: Array; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1NetworkPolicyIngressRule interface. + */ +export function instanceOfIoK8sApiNetworkingV1NetworkPolicyIngressRule(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiNetworkingV1NetworkPolicyIngressRuleFromJSON(json: any): IoK8sApiNetworkingV1NetworkPolicyIngressRule { + return IoK8sApiNetworkingV1NetworkPolicyIngressRuleFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1NetworkPolicyIngressRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1NetworkPolicyIngressRule { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'from': !exists(json, 'from') ? undefined : ((json['from'] as Array).map(IoK8sApiNetworkingV1NetworkPolicyPeerFromJSON)), + 'ports': !exists(json, 'ports') ? undefined : ((json['ports'] as Array).map(IoK8sApiNetworkingV1NetworkPolicyPortFromJSON)), + }; +} + +export function IoK8sApiNetworkingV1NetworkPolicyIngressRuleToJSON(value?: IoK8sApiNetworkingV1NetworkPolicyIngressRule | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'from': value.from === undefined ? undefined : ((value.from as Array).map(IoK8sApiNetworkingV1NetworkPolicyPeerToJSON)), + 'ports': value.ports === undefined ? undefined : ((value.ports as Array).map(IoK8sApiNetworkingV1NetworkPolicyPortToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1NetworkPolicyList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1NetworkPolicyList.ts new file mode 100644 index 000000000..253963212 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1NetworkPolicyList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiNetworkingV1NetworkPolicy } from './IoK8sApiNetworkingV1NetworkPolicy'; +import { + IoK8sApiNetworkingV1NetworkPolicyFromJSON, + IoK8sApiNetworkingV1NetworkPolicyFromJSONTyped, + IoK8sApiNetworkingV1NetworkPolicyToJSON, +} from './IoK8sApiNetworkingV1NetworkPolicy'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * NetworkPolicyList is a list of NetworkPolicy objects. + * @export + * @interface IoK8sApiNetworkingV1NetworkPolicyList + */ +export interface IoK8sApiNetworkingV1NetworkPolicyList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiNetworkingV1NetworkPolicyList + */ + apiVersion?: string; + /** + * items is a list of schema objects. + * @type {Array} + * @memberof IoK8sApiNetworkingV1NetworkPolicyList + */ + 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 + * @type {string} + * @memberof IoK8sApiNetworkingV1NetworkPolicyList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiNetworkingV1NetworkPolicyList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1NetworkPolicyList interface. + */ +export function instanceOfIoK8sApiNetworkingV1NetworkPolicyList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiNetworkingV1NetworkPolicyListFromJSON(json: any): IoK8sApiNetworkingV1NetworkPolicyList { + return IoK8sApiNetworkingV1NetworkPolicyListFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1NetworkPolicyListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1NetworkPolicyList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiNetworkingV1NetworkPolicyFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiNetworkingV1NetworkPolicyListToJSON(value?: IoK8sApiNetworkingV1NetworkPolicyList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiNetworkingV1NetworkPolicyToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1NetworkPolicyPeer.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1NetworkPolicyPeer.ts new file mode 100644 index 000000000..bb1080081 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1NetworkPolicyPeer.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiNetworkingV1IPBlock } from './IoK8sApiNetworkingV1IPBlock'; +import { + IoK8sApiNetworkingV1IPBlockFromJSON, + IoK8sApiNetworkingV1IPBlockFromJSONTyped, + IoK8sApiNetworkingV1IPBlockToJSON, +} from './IoK8sApiNetworkingV1IPBlock'; +import type { IoK8sApimachineryPkgApisMetaV1LabelSelector } from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; +import { + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON, + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; + +/** + * NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed + * @export + * @interface IoK8sApiNetworkingV1NetworkPolicyPeer + */ +export interface IoK8sApiNetworkingV1NetworkPolicyPeer { + /** + * + * @type {IoK8sApiNetworkingV1IPBlock} + * @memberof IoK8sApiNetworkingV1NetworkPolicyPeer + */ + ipBlock?: IoK8sApiNetworkingV1IPBlock; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1LabelSelector} + * @memberof IoK8sApiNetworkingV1NetworkPolicyPeer + */ + namespaceSelector?: IoK8sApimachineryPkgApisMetaV1LabelSelector; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1LabelSelector} + * @memberof IoK8sApiNetworkingV1NetworkPolicyPeer + */ + podSelector?: IoK8sApimachineryPkgApisMetaV1LabelSelector; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1NetworkPolicyPeer interface. + */ +export function instanceOfIoK8sApiNetworkingV1NetworkPolicyPeer(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiNetworkingV1NetworkPolicyPeerFromJSON(json: any): IoK8sApiNetworkingV1NetworkPolicyPeer { + return IoK8sApiNetworkingV1NetworkPolicyPeerFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1NetworkPolicyPeerFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1NetworkPolicyPeer { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'ipBlock': !exists(json, 'ipBlock') ? undefined : IoK8sApiNetworkingV1IPBlockFromJSON(json['ipBlock']), + 'namespaceSelector': !exists(json, 'namespaceSelector') ? undefined : IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['namespaceSelector']), + 'podSelector': !exists(json, 'podSelector') ? undefined : IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['podSelector']), + }; +} + +export function IoK8sApiNetworkingV1NetworkPolicyPeerToJSON(value?: IoK8sApiNetworkingV1NetworkPolicyPeer | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ipBlock': IoK8sApiNetworkingV1IPBlockToJSON(value.ipBlock), + 'namespaceSelector': IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value.namespaceSelector), + 'podSelector': IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value.podSelector), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1NetworkPolicyPort.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1NetworkPolicyPort.ts new file mode 100644 index 000000000..b92c01dbc --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1NetworkPolicyPort.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * NetworkPolicyPort describes a port to allow traffic on + * @export + * @interface IoK8sApiNetworkingV1NetworkPolicyPort + */ +export interface IoK8sApiNetworkingV1NetworkPolicyPort { + /** + * endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. + * @type {number} + * @memberof IoK8sApiNetworkingV1NetworkPolicyPort + */ + endPort?: number; + /** + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. + * @type {string} + * @memberof IoK8sApiNetworkingV1NetworkPolicyPort + */ + port?: string; + /** + * protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. + * @type {string} + * @memberof IoK8sApiNetworkingV1NetworkPolicyPort + */ + protocol?: string; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1NetworkPolicyPort interface. + */ +export function instanceOfIoK8sApiNetworkingV1NetworkPolicyPort(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiNetworkingV1NetworkPolicyPortFromJSON(json: any): IoK8sApiNetworkingV1NetworkPolicyPort { + return IoK8sApiNetworkingV1NetworkPolicyPortFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1NetworkPolicyPortFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1NetworkPolicyPort { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'endPort': !exists(json, 'endPort') ? undefined : json['endPort'], + 'port': !exists(json, 'port') ? undefined : json['port'], + 'protocol': !exists(json, 'protocol') ? undefined : json['protocol'], + }; +} + +export function IoK8sApiNetworkingV1NetworkPolicyPortToJSON(value?: IoK8sApiNetworkingV1NetworkPolicyPort | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'endPort': value.endPort, + 'port': value.port, + 'protocol': value.protocol, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1NetworkPolicySpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1NetworkPolicySpec.ts new file mode 100644 index 000000000..7c8b356b5 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1NetworkPolicySpec.ts @@ -0,0 +1,109 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiNetworkingV1NetworkPolicyEgressRule } from './IoK8sApiNetworkingV1NetworkPolicyEgressRule'; +import { + IoK8sApiNetworkingV1NetworkPolicyEgressRuleFromJSON, + IoK8sApiNetworkingV1NetworkPolicyEgressRuleFromJSONTyped, + IoK8sApiNetworkingV1NetworkPolicyEgressRuleToJSON, +} from './IoK8sApiNetworkingV1NetworkPolicyEgressRule'; +import type { IoK8sApiNetworkingV1NetworkPolicyIngressRule } from './IoK8sApiNetworkingV1NetworkPolicyIngressRule'; +import { + IoK8sApiNetworkingV1NetworkPolicyIngressRuleFromJSON, + IoK8sApiNetworkingV1NetworkPolicyIngressRuleFromJSONTyped, + IoK8sApiNetworkingV1NetworkPolicyIngressRuleToJSON, +} from './IoK8sApiNetworkingV1NetworkPolicyIngressRule'; +import type { IoK8sApimachineryPkgApisMetaV1LabelSelector } from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; +import { + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON, + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; + +/** + * NetworkPolicySpec provides the specification of a NetworkPolicy + * @export + * @interface IoK8sApiNetworkingV1NetworkPolicySpec + */ +export interface IoK8sApiNetworkingV1NetworkPolicySpec { + /** + * egress is a list of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 + * @type {Array} + * @memberof IoK8sApiNetworkingV1NetworkPolicySpec + */ + egress?: Array; + /** + * ingress is a list of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default) + * @type {Array} + * @memberof IoK8sApiNetworkingV1NetworkPolicySpec + */ + ingress?: Array; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1LabelSelector} + * @memberof IoK8sApiNetworkingV1NetworkPolicySpec + */ + podSelector: IoK8sApimachineryPkgApisMetaV1LabelSelector; + /** + * policyTypes is a list of rule types that the NetworkPolicy relates to. Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. If this field is not specified, it will default based on the existence of ingress or egress rules; policies that contain an egress section are assumed to affect egress, and all policies (whether or not they contain an ingress section) are assumed to affect ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 + * @type {Array} + * @memberof IoK8sApiNetworkingV1NetworkPolicySpec + */ + policyTypes?: string[]; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1NetworkPolicySpec interface. + */ +export function instanceOfIoK8sApiNetworkingV1NetworkPolicySpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "podSelector" in value; + + return isInstance; +} + +export function IoK8sApiNetworkingV1NetworkPolicySpecFromJSON(json: any): IoK8sApiNetworkingV1NetworkPolicySpec { + return IoK8sApiNetworkingV1NetworkPolicySpecFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1NetworkPolicySpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1NetworkPolicySpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'egress': !exists(json, 'egress') ? undefined : ((json['egress'] as Array).map(IoK8sApiNetworkingV1NetworkPolicyEgressRuleFromJSON)), + 'ingress': !exists(json, 'ingress') ? undefined : ((json['ingress'] as Array).map(IoK8sApiNetworkingV1NetworkPolicyIngressRuleFromJSON)), + 'podSelector': IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['podSelector']), + 'policyTypes': !exists(json, 'policyTypes') ? undefined : json['policyTypes'], + }; +} + +export function IoK8sApiNetworkingV1NetworkPolicySpecToJSON(value?: IoK8sApiNetworkingV1NetworkPolicySpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'egress': value.egress === undefined ? undefined : ((value.egress as Array).map(IoK8sApiNetworkingV1NetworkPolicyEgressRuleToJSON)), + 'ingress': value.ingress === undefined ? undefined : ((value.ingress as Array).map(IoK8sApiNetworkingV1NetworkPolicyIngressRuleToJSON)), + 'podSelector': IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value.podSelector), + 'policyTypes': value.policyTypes, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1ServiceBackendPort.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1ServiceBackendPort.ts new file mode 100644 index 000000000..703ce219d --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1ServiceBackendPort.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ServiceBackendPort is the service port being referenced. + * @export + * @interface IoK8sApiNetworkingV1ServiceBackendPort + */ +export interface IoK8sApiNetworkingV1ServiceBackendPort { + /** + * name is the name of the port on the Service. This is a mutually exclusive setting with "Number". + * @type {string} + * @memberof IoK8sApiNetworkingV1ServiceBackendPort + */ + name?: string; + /** + * number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with "Name". + * @type {number} + * @memberof IoK8sApiNetworkingV1ServiceBackendPort + */ + number?: number; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1ServiceBackendPort interface. + */ +export function instanceOfIoK8sApiNetworkingV1ServiceBackendPort(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiNetworkingV1ServiceBackendPortFromJSON(json: any): IoK8sApiNetworkingV1ServiceBackendPort { + return IoK8sApiNetworkingV1ServiceBackendPortFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1ServiceBackendPortFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1ServiceBackendPort { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': !exists(json, 'name') ? undefined : json['name'], + 'number': !exists(json, 'number') ? undefined : json['number'], + }; +} + +export function IoK8sApiNetworkingV1ServiceBackendPortToJSON(value?: IoK8sApiNetworkingV1ServiceBackendPort | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'number': value.number, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1IPAddress.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1IPAddress.ts new file mode 100644 index 000000000..26307cbce --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1IPAddress.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiNetworkingV1alpha1IPAddressSpec } from './IoK8sApiNetworkingV1alpha1IPAddressSpec'; +import { + IoK8sApiNetworkingV1alpha1IPAddressSpecFromJSON, + IoK8sApiNetworkingV1alpha1IPAddressSpecFromJSONTyped, + IoK8sApiNetworkingV1alpha1IPAddressSpecToJSON, +} from './IoK8sApiNetworkingV1alpha1IPAddressSpec'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1 + * @export + * @interface IoK8sApiNetworkingV1alpha1IPAddress + */ +export interface IoK8sApiNetworkingV1alpha1IPAddress { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiNetworkingV1alpha1IPAddress + */ + 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 + * @type {string} + * @memberof IoK8sApiNetworkingV1alpha1IPAddress + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiNetworkingV1alpha1IPAddress + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiNetworkingV1alpha1IPAddressSpec} + * @memberof IoK8sApiNetworkingV1alpha1IPAddress + */ + spec?: IoK8sApiNetworkingV1alpha1IPAddressSpec; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1alpha1IPAddress interface. + */ +export function instanceOfIoK8sApiNetworkingV1alpha1IPAddress(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiNetworkingV1alpha1IPAddressFromJSON(json: any): IoK8sApiNetworkingV1alpha1IPAddress { + return IoK8sApiNetworkingV1alpha1IPAddressFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1alpha1IPAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1alpha1IPAddress { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiNetworkingV1alpha1IPAddressSpecFromJSON(json['spec']), + }; +} + +export function IoK8sApiNetworkingV1alpha1IPAddressToJSON(value?: IoK8sApiNetworkingV1alpha1IPAddress | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiNetworkingV1alpha1IPAddressSpecToJSON(value.spec), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1IPAddressList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1IPAddressList.ts new file mode 100644 index 000000000..d681cd09f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1IPAddressList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiNetworkingV1alpha1IPAddress } from './IoK8sApiNetworkingV1alpha1IPAddress'; +import { + IoK8sApiNetworkingV1alpha1IPAddressFromJSON, + IoK8sApiNetworkingV1alpha1IPAddressFromJSONTyped, + IoK8sApiNetworkingV1alpha1IPAddressToJSON, +} from './IoK8sApiNetworkingV1alpha1IPAddress'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * IPAddressList contains a list of IPAddress. + * @export + * @interface IoK8sApiNetworkingV1alpha1IPAddressList + */ +export interface IoK8sApiNetworkingV1alpha1IPAddressList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiNetworkingV1alpha1IPAddressList + */ + apiVersion?: string; + /** + * items is the list of IPAddresses. + * @type {Array} + * @memberof IoK8sApiNetworkingV1alpha1IPAddressList + */ + 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 + * @type {string} + * @memberof IoK8sApiNetworkingV1alpha1IPAddressList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiNetworkingV1alpha1IPAddressList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1alpha1IPAddressList interface. + */ +export function instanceOfIoK8sApiNetworkingV1alpha1IPAddressList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiNetworkingV1alpha1IPAddressListFromJSON(json: any): IoK8sApiNetworkingV1alpha1IPAddressList { + return IoK8sApiNetworkingV1alpha1IPAddressListFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1alpha1IPAddressListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1alpha1IPAddressList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiNetworkingV1alpha1IPAddressFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiNetworkingV1alpha1IPAddressListToJSON(value?: IoK8sApiNetworkingV1alpha1IPAddressList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiNetworkingV1alpha1IPAddressToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1IPAddressSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1IPAddressSpec.ts new file mode 100644 index 000000000..2e271a8c5 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1IPAddressSpec.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiNetworkingV1alpha1ParentReference } from './IoK8sApiNetworkingV1alpha1ParentReference'; +import { + IoK8sApiNetworkingV1alpha1ParentReferenceFromJSON, + IoK8sApiNetworkingV1alpha1ParentReferenceFromJSONTyped, + IoK8sApiNetworkingV1alpha1ParentReferenceToJSON, +} from './IoK8sApiNetworkingV1alpha1ParentReference'; + +/** + * IPAddressSpec describe the attributes in an IP Address. + * @export + * @interface IoK8sApiNetworkingV1alpha1IPAddressSpec + */ +export interface IoK8sApiNetworkingV1alpha1IPAddressSpec { + /** + * + * @type {IoK8sApiNetworkingV1alpha1ParentReference} + * @memberof IoK8sApiNetworkingV1alpha1IPAddressSpec + */ + parentRef?: IoK8sApiNetworkingV1alpha1ParentReference; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1alpha1IPAddressSpec interface. + */ +export function instanceOfIoK8sApiNetworkingV1alpha1IPAddressSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiNetworkingV1alpha1IPAddressSpecFromJSON(json: any): IoK8sApiNetworkingV1alpha1IPAddressSpec { + return IoK8sApiNetworkingV1alpha1IPAddressSpecFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1alpha1IPAddressSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1alpha1IPAddressSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'parentRef': !exists(json, 'parentRef') ? undefined : IoK8sApiNetworkingV1alpha1ParentReferenceFromJSON(json['parentRef']), + }; +} + +export function IoK8sApiNetworkingV1alpha1IPAddressSpecToJSON(value?: IoK8sApiNetworkingV1alpha1IPAddressSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'parentRef': IoK8sApiNetworkingV1alpha1ParentReferenceToJSON(value.parentRef), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1ParentReference.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1ParentReference.ts new file mode 100644 index 000000000..d172158bf --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1ParentReference.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ParentReference describes a reference to a parent object. + * @export + * @interface IoK8sApiNetworkingV1alpha1ParentReference + */ +export interface IoK8sApiNetworkingV1alpha1ParentReference { + /** + * Group is the group of the object being referenced. + * @type {string} + * @memberof IoK8sApiNetworkingV1alpha1ParentReference + */ + group?: string; + /** + * Name is the name of the object being referenced. + * @type {string} + * @memberof IoK8sApiNetworkingV1alpha1ParentReference + */ + name?: string; + /** + * Namespace is the namespace of the object being referenced. + * @type {string} + * @memberof IoK8sApiNetworkingV1alpha1ParentReference + */ + namespace?: string; + /** + * Resource is the resource of the object being referenced. + * @type {string} + * @memberof IoK8sApiNetworkingV1alpha1ParentReference + */ + resource?: string; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1alpha1ParentReference interface. + */ +export function instanceOfIoK8sApiNetworkingV1alpha1ParentReference(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiNetworkingV1alpha1ParentReferenceFromJSON(json: any): IoK8sApiNetworkingV1alpha1ParentReference { + return IoK8sApiNetworkingV1alpha1ParentReferenceFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1alpha1ParentReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1alpha1ParentReference { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'group': !exists(json, 'group') ? undefined : json['group'], + 'name': !exists(json, 'name') ? undefined : json['name'], + 'namespace': !exists(json, 'namespace') ? undefined : json['namespace'], + 'resource': !exists(json, 'resource') ? undefined : json['resource'], + }; +} + +export function IoK8sApiNetworkingV1alpha1ParentReferenceToJSON(value?: IoK8sApiNetworkingV1alpha1ParentReference | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'group': value.group, + 'name': value.name, + 'namespace': value.namespace, + 'resource': value.resource, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1ServiceCIDR.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1ServiceCIDR.ts new file mode 100644 index 000000000..54fe913ba --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1ServiceCIDR.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiNetworkingV1alpha1ServiceCIDRSpec } from './IoK8sApiNetworkingV1alpha1ServiceCIDRSpec'; +import { + IoK8sApiNetworkingV1alpha1ServiceCIDRSpecFromJSON, + IoK8sApiNetworkingV1alpha1ServiceCIDRSpecFromJSONTyped, + IoK8sApiNetworkingV1alpha1ServiceCIDRSpecToJSON, +} from './IoK8sApiNetworkingV1alpha1ServiceCIDRSpec'; +import type { IoK8sApiNetworkingV1alpha1ServiceCIDRStatus } from './IoK8sApiNetworkingV1alpha1ServiceCIDRStatus'; +import { + IoK8sApiNetworkingV1alpha1ServiceCIDRStatusFromJSON, + IoK8sApiNetworkingV1alpha1ServiceCIDRStatusFromJSONTyped, + IoK8sApiNetworkingV1alpha1ServiceCIDRStatusToJSON, +} from './IoK8sApiNetworkingV1alpha1ServiceCIDRStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects. + * @export + * @interface IoK8sApiNetworkingV1alpha1ServiceCIDR + */ +export interface IoK8sApiNetworkingV1alpha1ServiceCIDR { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiNetworkingV1alpha1ServiceCIDR + */ + 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 + * @type {string} + * @memberof IoK8sApiNetworkingV1alpha1ServiceCIDR + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiNetworkingV1alpha1ServiceCIDR + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiNetworkingV1alpha1ServiceCIDRSpec} + * @memberof IoK8sApiNetworkingV1alpha1ServiceCIDR + */ + spec?: IoK8sApiNetworkingV1alpha1ServiceCIDRSpec; + /** + * + * @type {IoK8sApiNetworkingV1alpha1ServiceCIDRStatus} + * @memberof IoK8sApiNetworkingV1alpha1ServiceCIDR + */ + status?: IoK8sApiNetworkingV1alpha1ServiceCIDRStatus; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1alpha1ServiceCIDR interface. + */ +export function instanceOfIoK8sApiNetworkingV1alpha1ServiceCIDR(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiNetworkingV1alpha1ServiceCIDRFromJSON(json: any): IoK8sApiNetworkingV1alpha1ServiceCIDR { + return IoK8sApiNetworkingV1alpha1ServiceCIDRFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1alpha1ServiceCIDRFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1alpha1ServiceCIDR { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiNetworkingV1alpha1ServiceCIDRSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiNetworkingV1alpha1ServiceCIDRStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiNetworkingV1alpha1ServiceCIDRToJSON(value?: IoK8sApiNetworkingV1alpha1ServiceCIDR | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiNetworkingV1alpha1ServiceCIDRSpecToJSON(value.spec), + 'status': IoK8sApiNetworkingV1alpha1ServiceCIDRStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1ServiceCIDRList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1ServiceCIDRList.ts new file mode 100644 index 000000000..6a3b7e73f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1ServiceCIDRList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiNetworkingV1alpha1ServiceCIDR } from './IoK8sApiNetworkingV1alpha1ServiceCIDR'; +import { + IoK8sApiNetworkingV1alpha1ServiceCIDRFromJSON, + IoK8sApiNetworkingV1alpha1ServiceCIDRFromJSONTyped, + IoK8sApiNetworkingV1alpha1ServiceCIDRToJSON, +} from './IoK8sApiNetworkingV1alpha1ServiceCIDR'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * ServiceCIDRList contains a list of ServiceCIDR objects. + * @export + * @interface IoK8sApiNetworkingV1alpha1ServiceCIDRList + */ +export interface IoK8sApiNetworkingV1alpha1ServiceCIDRList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiNetworkingV1alpha1ServiceCIDRList + */ + apiVersion?: string; + /** + * items is the list of ServiceCIDRs. + * @type {Array} + * @memberof IoK8sApiNetworkingV1alpha1ServiceCIDRList + */ + 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 + * @type {string} + * @memberof IoK8sApiNetworkingV1alpha1ServiceCIDRList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiNetworkingV1alpha1ServiceCIDRList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1alpha1ServiceCIDRList interface. + */ +export function instanceOfIoK8sApiNetworkingV1alpha1ServiceCIDRList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiNetworkingV1alpha1ServiceCIDRListFromJSON(json: any): IoK8sApiNetworkingV1alpha1ServiceCIDRList { + return IoK8sApiNetworkingV1alpha1ServiceCIDRListFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1alpha1ServiceCIDRListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1alpha1ServiceCIDRList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiNetworkingV1alpha1ServiceCIDRFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiNetworkingV1alpha1ServiceCIDRListToJSON(value?: IoK8sApiNetworkingV1alpha1ServiceCIDRList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiNetworkingV1alpha1ServiceCIDRToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1ServiceCIDRSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1ServiceCIDRSpec.ts new file mode 100644 index 000000000..726e733dc --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1ServiceCIDRSpec.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services. + * @export + * @interface IoK8sApiNetworkingV1alpha1ServiceCIDRSpec + */ +export interface IoK8sApiNetworkingV1alpha1ServiceCIDRSpec { + /** + * CIDRs defines the IP blocks in CIDR notation (e.g. "192.168.0.0/24" or "2001:db8::/64") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable. + * @type {Array} + * @memberof IoK8sApiNetworkingV1alpha1ServiceCIDRSpec + */ + cidrs?: string[]; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1alpha1ServiceCIDRSpec interface. + */ +export function instanceOfIoK8sApiNetworkingV1alpha1ServiceCIDRSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiNetworkingV1alpha1ServiceCIDRSpecFromJSON(json: any): IoK8sApiNetworkingV1alpha1ServiceCIDRSpec { + return IoK8sApiNetworkingV1alpha1ServiceCIDRSpecFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1alpha1ServiceCIDRSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1alpha1ServiceCIDRSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'cidrs': !exists(json, 'cidrs') ? undefined : json['cidrs'], + }; +} + +export function IoK8sApiNetworkingV1alpha1ServiceCIDRSpecToJSON(value?: IoK8sApiNetworkingV1alpha1ServiceCIDRSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'cidrs': value.cidrs, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1ServiceCIDRStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1ServiceCIDRStatus.ts new file mode 100644 index 000000000..dce5df5d6 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNetworkingV1alpha1ServiceCIDRStatus.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1Condition } from './IoK8sApimachineryPkgApisMetaV1Condition'; +import { + IoK8sApimachineryPkgApisMetaV1ConditionFromJSON, + IoK8sApimachineryPkgApisMetaV1ConditionFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ConditionToJSON, +} from './IoK8sApimachineryPkgApisMetaV1Condition'; + +/** + * ServiceCIDRStatus describes the current state of the ServiceCIDR. + * @export + * @interface IoK8sApiNetworkingV1alpha1ServiceCIDRStatus + */ +export interface IoK8sApiNetworkingV1alpha1ServiceCIDRStatus { + /** + * conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state + * @type {Array} + * @memberof IoK8sApiNetworkingV1alpha1ServiceCIDRStatus + */ + conditions?: Array; +} + +/** + * Check if a given object implements the IoK8sApiNetworkingV1alpha1ServiceCIDRStatus interface. + */ +export function instanceOfIoK8sApiNetworkingV1alpha1ServiceCIDRStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiNetworkingV1alpha1ServiceCIDRStatusFromJSON(json: any): IoK8sApiNetworkingV1alpha1ServiceCIDRStatus { + return IoK8sApiNetworkingV1alpha1ServiceCIDRStatusFromJSONTyped(json, false); +} + +export function IoK8sApiNetworkingV1alpha1ServiceCIDRStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNetworkingV1alpha1ServiceCIDRStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(IoK8sApimachineryPkgApisMetaV1ConditionFromJSON)), + }; +} + +export function IoK8sApiNetworkingV1alpha1ServiceCIDRStatusToJSON(value?: IoK8sApiNetworkingV1alpha1ServiceCIDRStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(IoK8sApimachineryPkgApisMetaV1ConditionToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNodeV1Overhead.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNodeV1Overhead.ts new file mode 100644 index 000000000..6d0b54e3f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNodeV1Overhead.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Overhead structure represents the resource overhead associated with running a pod. + * @export + * @interface IoK8sApiNodeV1Overhead + */ +export interface IoK8sApiNodeV1Overhead { + /** + * podFixed represents the fixed resource overhead associated with running a pod. + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiNodeV1Overhead + */ + podFixed?: { [key: string]: string; }; +} + +/** + * Check if a given object implements the IoK8sApiNodeV1Overhead interface. + */ +export function instanceOfIoK8sApiNodeV1Overhead(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiNodeV1OverheadFromJSON(json: any): IoK8sApiNodeV1Overhead { + return IoK8sApiNodeV1OverheadFromJSONTyped(json, false); +} + +export function IoK8sApiNodeV1OverheadFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNodeV1Overhead { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'podFixed': !exists(json, 'podFixed') ? undefined : json['podFixed'], + }; +} + +export function IoK8sApiNodeV1OverheadToJSON(value?: IoK8sApiNodeV1Overhead | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'podFixed': value.podFixed, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNodeV1RuntimeClass.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNodeV1RuntimeClass.ts new file mode 100644 index 000000000..c226e8132 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNodeV1RuntimeClass.ts @@ -0,0 +1,125 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiNodeV1Overhead } from './IoK8sApiNodeV1Overhead'; +import { + IoK8sApiNodeV1OverheadFromJSON, + IoK8sApiNodeV1OverheadFromJSONTyped, + IoK8sApiNodeV1OverheadToJSON, +} from './IoK8sApiNodeV1Overhead'; +import type { IoK8sApiNodeV1Scheduling } from './IoK8sApiNodeV1Scheduling'; +import { + IoK8sApiNodeV1SchedulingFromJSON, + IoK8sApiNodeV1SchedulingFromJSONTyped, + IoK8sApiNodeV1SchedulingToJSON, +} from './IoK8sApiNodeV1Scheduling'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/ + * @export + * @interface IoK8sApiNodeV1RuntimeClass + */ +export interface IoK8sApiNodeV1RuntimeClass { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiNodeV1RuntimeClass + */ + apiVersion?: string; + /** + * handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable. + * @type {string} + * @memberof IoK8sApiNodeV1RuntimeClass + */ + handler: 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 + * @type {string} + * @memberof IoK8sApiNodeV1RuntimeClass + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiNodeV1RuntimeClass + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiNodeV1Overhead} + * @memberof IoK8sApiNodeV1RuntimeClass + */ + overhead?: IoK8sApiNodeV1Overhead; + /** + * + * @type {IoK8sApiNodeV1Scheduling} + * @memberof IoK8sApiNodeV1RuntimeClass + */ + scheduling?: IoK8sApiNodeV1Scheduling; +} + +/** + * Check if a given object implements the IoK8sApiNodeV1RuntimeClass interface. + */ +export function instanceOfIoK8sApiNodeV1RuntimeClass(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "handler" in value; + + return isInstance; +} + +export function IoK8sApiNodeV1RuntimeClassFromJSON(json: any): IoK8sApiNodeV1RuntimeClass { + return IoK8sApiNodeV1RuntimeClassFromJSONTyped(json, false); +} + +export function IoK8sApiNodeV1RuntimeClassFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNodeV1RuntimeClass { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'handler': json['handler'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'overhead': !exists(json, 'overhead') ? undefined : IoK8sApiNodeV1OverheadFromJSON(json['overhead']), + 'scheduling': !exists(json, 'scheduling') ? undefined : IoK8sApiNodeV1SchedulingFromJSON(json['scheduling']), + }; +} + +export function IoK8sApiNodeV1RuntimeClassToJSON(value?: IoK8sApiNodeV1RuntimeClass | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'handler': value.handler, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'overhead': IoK8sApiNodeV1OverheadToJSON(value.overhead), + 'scheduling': IoK8sApiNodeV1SchedulingToJSON(value.scheduling), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNodeV1RuntimeClassList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNodeV1RuntimeClassList.ts new file mode 100644 index 000000000..3ca37d37e --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNodeV1RuntimeClassList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiNodeV1RuntimeClass } from './IoK8sApiNodeV1RuntimeClass'; +import { + IoK8sApiNodeV1RuntimeClassFromJSON, + IoK8sApiNodeV1RuntimeClassFromJSONTyped, + IoK8sApiNodeV1RuntimeClassToJSON, +} from './IoK8sApiNodeV1RuntimeClass'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * RuntimeClassList is a list of RuntimeClass objects. + * @export + * @interface IoK8sApiNodeV1RuntimeClassList + */ +export interface IoK8sApiNodeV1RuntimeClassList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiNodeV1RuntimeClassList + */ + apiVersion?: string; + /** + * items is a list of schema objects. + * @type {Array} + * @memberof IoK8sApiNodeV1RuntimeClassList + */ + 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 + * @type {string} + * @memberof IoK8sApiNodeV1RuntimeClassList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiNodeV1RuntimeClassList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiNodeV1RuntimeClassList interface. + */ +export function instanceOfIoK8sApiNodeV1RuntimeClassList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiNodeV1RuntimeClassListFromJSON(json: any): IoK8sApiNodeV1RuntimeClassList { + return IoK8sApiNodeV1RuntimeClassListFromJSONTyped(json, false); +} + +export function IoK8sApiNodeV1RuntimeClassListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNodeV1RuntimeClassList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiNodeV1RuntimeClassFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiNodeV1RuntimeClassListToJSON(value?: IoK8sApiNodeV1RuntimeClassList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiNodeV1RuntimeClassToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiNodeV1Scheduling.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiNodeV1Scheduling.ts new file mode 100644 index 000000000..4f064b064 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiNodeV1Scheduling.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1Toleration } from './IoK8sApiCoreV1Toleration'; +import { + IoK8sApiCoreV1TolerationFromJSON, + IoK8sApiCoreV1TolerationFromJSONTyped, + IoK8sApiCoreV1TolerationToJSON, +} from './IoK8sApiCoreV1Toleration'; + +/** + * Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass. + * @export + * @interface IoK8sApiNodeV1Scheduling + */ +export interface IoK8sApiNodeV1Scheduling { + /** + * nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiNodeV1Scheduling + */ + nodeSelector?: { [key: string]: string; }; + /** + * tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. + * @type {Array} + * @memberof IoK8sApiNodeV1Scheduling + */ + tolerations?: Array; +} + +/** + * Check if a given object implements the IoK8sApiNodeV1Scheduling interface. + */ +export function instanceOfIoK8sApiNodeV1Scheduling(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiNodeV1SchedulingFromJSON(json: any): IoK8sApiNodeV1Scheduling { + return IoK8sApiNodeV1SchedulingFromJSONTyped(json, false); +} + +export function IoK8sApiNodeV1SchedulingFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiNodeV1Scheduling { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'nodeSelector': !exists(json, 'nodeSelector') ? undefined : json['nodeSelector'], + 'tolerations': !exists(json, 'tolerations') ? undefined : ((json['tolerations'] as Array).map(IoK8sApiCoreV1TolerationFromJSON)), + }; +} + +export function IoK8sApiNodeV1SchedulingToJSON(value?: IoK8sApiNodeV1Scheduling | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'nodeSelector': value.nodeSelector, + 'tolerations': value.tolerations === undefined ? undefined : ((value.tolerations as Array).map(IoK8sApiCoreV1TolerationToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiPolicyV1Eviction.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiPolicyV1Eviction.ts new file mode 100644 index 000000000..f68ad5906 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiPolicyV1Eviction.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1DeleteOptions } from './IoK8sApimachineryPkgApisMetaV1DeleteOptions'; +import { + IoK8sApimachineryPkgApisMetaV1DeleteOptionsFromJSON, + IoK8sApimachineryPkgApisMetaV1DeleteOptionsFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1DeleteOptionsToJSON, +} from './IoK8sApimachineryPkgApisMetaV1DeleteOptions'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions. + * @export + * @interface IoK8sApiPolicyV1Eviction + */ +export interface IoK8sApiPolicyV1Eviction { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiPolicyV1Eviction + */ + apiVersion?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1DeleteOptions} + * @memberof IoK8sApiPolicyV1Eviction + */ + deleteOptions?: IoK8sApimachineryPkgApisMetaV1DeleteOptions; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof IoK8sApiPolicyV1Eviction + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiPolicyV1Eviction + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; +} + +/** + * Check if a given object implements the IoK8sApiPolicyV1Eviction interface. + */ +export function instanceOfIoK8sApiPolicyV1Eviction(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiPolicyV1EvictionFromJSON(json: any): IoK8sApiPolicyV1Eviction { + return IoK8sApiPolicyV1EvictionFromJSONTyped(json, false); +} + +export function IoK8sApiPolicyV1EvictionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiPolicyV1Eviction { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'deleteOptions': !exists(json, 'deleteOptions') ? undefined : IoK8sApimachineryPkgApisMetaV1DeleteOptionsFromJSON(json['deleteOptions']), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiPolicyV1EvictionToJSON(value?: IoK8sApiPolicyV1Eviction | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'deleteOptions': IoK8sApimachineryPkgApisMetaV1DeleteOptionsToJSON(value.deleteOptions), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiPolicyV1PodDisruptionBudget.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiPolicyV1PodDisruptionBudget.ts new file mode 100644 index 000000000..cbf640c7f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiPolicyV1PodDisruptionBudget.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiPolicyV1PodDisruptionBudgetSpec } from './IoK8sApiPolicyV1PodDisruptionBudgetSpec'; +import { + IoK8sApiPolicyV1PodDisruptionBudgetSpecFromJSON, + IoK8sApiPolicyV1PodDisruptionBudgetSpecFromJSONTyped, + IoK8sApiPolicyV1PodDisruptionBudgetSpecToJSON, +} from './IoK8sApiPolicyV1PodDisruptionBudgetSpec'; +import type { IoK8sApiPolicyV1PodDisruptionBudgetStatus } from './IoK8sApiPolicyV1PodDisruptionBudgetStatus'; +import { + IoK8sApiPolicyV1PodDisruptionBudgetStatusFromJSON, + IoK8sApiPolicyV1PodDisruptionBudgetStatusFromJSONTyped, + IoK8sApiPolicyV1PodDisruptionBudgetStatusToJSON, +} from './IoK8sApiPolicyV1PodDisruptionBudgetStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods + * @export + * @interface IoK8sApiPolicyV1PodDisruptionBudget + */ +export interface IoK8sApiPolicyV1PodDisruptionBudget { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiPolicyV1PodDisruptionBudget + */ + 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 + * @type {string} + * @memberof IoK8sApiPolicyV1PodDisruptionBudget + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiPolicyV1PodDisruptionBudget + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiPolicyV1PodDisruptionBudgetSpec} + * @memberof IoK8sApiPolicyV1PodDisruptionBudget + */ + spec?: IoK8sApiPolicyV1PodDisruptionBudgetSpec; + /** + * + * @type {IoK8sApiPolicyV1PodDisruptionBudgetStatus} + * @memberof IoK8sApiPolicyV1PodDisruptionBudget + */ + status?: IoK8sApiPolicyV1PodDisruptionBudgetStatus; +} + +/** + * Check if a given object implements the IoK8sApiPolicyV1PodDisruptionBudget interface. + */ +export function instanceOfIoK8sApiPolicyV1PodDisruptionBudget(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiPolicyV1PodDisruptionBudgetFromJSON(json: any): IoK8sApiPolicyV1PodDisruptionBudget { + return IoK8sApiPolicyV1PodDisruptionBudgetFromJSONTyped(json, false); +} + +export function IoK8sApiPolicyV1PodDisruptionBudgetFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiPolicyV1PodDisruptionBudget { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sApiPolicyV1PodDisruptionBudgetSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiPolicyV1PodDisruptionBudgetStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiPolicyV1PodDisruptionBudgetToJSON(value?: IoK8sApiPolicyV1PodDisruptionBudget | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiPolicyV1PodDisruptionBudgetSpecToJSON(value.spec), + 'status': IoK8sApiPolicyV1PodDisruptionBudgetStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiPolicyV1PodDisruptionBudgetList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiPolicyV1PodDisruptionBudgetList.ts new file mode 100644 index 000000000..4a5d22562 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiPolicyV1PodDisruptionBudgetList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiPolicyV1PodDisruptionBudget } from './IoK8sApiPolicyV1PodDisruptionBudget'; +import { + IoK8sApiPolicyV1PodDisruptionBudgetFromJSON, + IoK8sApiPolicyV1PodDisruptionBudgetFromJSONTyped, + IoK8sApiPolicyV1PodDisruptionBudgetToJSON, +} from './IoK8sApiPolicyV1PodDisruptionBudget'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * PodDisruptionBudgetList is a collection of PodDisruptionBudgets. + * @export + * @interface IoK8sApiPolicyV1PodDisruptionBudgetList + */ +export interface IoK8sApiPolicyV1PodDisruptionBudgetList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiPolicyV1PodDisruptionBudgetList + */ + apiVersion?: string; + /** + * Items is a list of PodDisruptionBudgets + * @type {Array} + * @memberof IoK8sApiPolicyV1PodDisruptionBudgetList + */ + 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 + * @type {string} + * @memberof IoK8sApiPolicyV1PodDisruptionBudgetList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiPolicyV1PodDisruptionBudgetList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiPolicyV1PodDisruptionBudgetList interface. + */ +export function instanceOfIoK8sApiPolicyV1PodDisruptionBudgetList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiPolicyV1PodDisruptionBudgetListFromJSON(json: any): IoK8sApiPolicyV1PodDisruptionBudgetList { + return IoK8sApiPolicyV1PodDisruptionBudgetListFromJSONTyped(json, false); +} + +export function IoK8sApiPolicyV1PodDisruptionBudgetListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiPolicyV1PodDisruptionBudgetList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiPolicyV1PodDisruptionBudgetFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiPolicyV1PodDisruptionBudgetListToJSON(value?: IoK8sApiPolicyV1PodDisruptionBudgetList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiPolicyV1PodDisruptionBudgetToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiPolicyV1PodDisruptionBudgetSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiPolicyV1PodDisruptionBudgetSpec.ts new file mode 100644 index 000000000..00fc79877 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiPolicyV1PodDisruptionBudgetSpec.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1LabelSelector } from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; +import { + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON, + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; + +/** + * PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. + * @export + * @interface IoK8sApiPolicyV1PodDisruptionBudgetSpec + */ +export interface IoK8sApiPolicyV1PodDisruptionBudgetSpec { + /** + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. + * @type {string} + * @memberof IoK8sApiPolicyV1PodDisruptionBudgetSpec + */ + maxUnavailable?: string; + /** + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. + * @type {string} + * @memberof IoK8sApiPolicyV1PodDisruptionBudgetSpec + */ + minAvailable?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1LabelSelector} + * @memberof IoK8sApiPolicyV1PodDisruptionBudgetSpec + */ + selector?: IoK8sApimachineryPkgApisMetaV1LabelSelector; + /** + * UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type="Ready",status="True". + * + * Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy. + * + * IfHealthyBudget policy means that running pods (status.phase="Running"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction. + * + * AlwaysAllow policy means that all running pods (status.phase="Running"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction. + * + * Additional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field. + * + * This field is beta-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default). + * @type {string} + * @memberof IoK8sApiPolicyV1PodDisruptionBudgetSpec + */ + unhealthyPodEvictionPolicy?: string; +} + +/** + * Check if a given object implements the IoK8sApiPolicyV1PodDisruptionBudgetSpec interface. + */ +export function instanceOfIoK8sApiPolicyV1PodDisruptionBudgetSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiPolicyV1PodDisruptionBudgetSpecFromJSON(json: any): IoK8sApiPolicyV1PodDisruptionBudgetSpec { + return IoK8sApiPolicyV1PodDisruptionBudgetSpecFromJSONTyped(json, false); +} + +export function IoK8sApiPolicyV1PodDisruptionBudgetSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiPolicyV1PodDisruptionBudgetSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'maxUnavailable': !exists(json, 'maxUnavailable') ? undefined : json['maxUnavailable'], + 'minAvailable': !exists(json, 'minAvailable') ? undefined : json['minAvailable'], + 'selector': !exists(json, 'selector') ? undefined : IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['selector']), + 'unhealthyPodEvictionPolicy': !exists(json, 'unhealthyPodEvictionPolicy') ? undefined : json['unhealthyPodEvictionPolicy'], + }; +} + +export function IoK8sApiPolicyV1PodDisruptionBudgetSpecToJSON(value?: IoK8sApiPolicyV1PodDisruptionBudgetSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'maxUnavailable': value.maxUnavailable, + 'minAvailable': value.minAvailable, + 'selector': IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value.selector), + 'unhealthyPodEvictionPolicy': value.unhealthyPodEvictionPolicy, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiPolicyV1PodDisruptionBudgetStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiPolicyV1PodDisruptionBudgetStatus.ts new file mode 100644 index 000000000..6e0664c96 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiPolicyV1PodDisruptionBudgetStatus.ts @@ -0,0 +1,132 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1Condition } from './IoK8sApimachineryPkgApisMetaV1Condition'; +import { + IoK8sApimachineryPkgApisMetaV1ConditionFromJSON, + IoK8sApimachineryPkgApisMetaV1ConditionFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ConditionToJSON, +} from './IoK8sApimachineryPkgApisMetaV1Condition'; + +/** + * PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system. + * @export + * @interface IoK8sApiPolicyV1PodDisruptionBudgetStatus + */ +export interface IoK8sApiPolicyV1PodDisruptionBudgetStatus { + /** + * Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute + * the number of allowed disruptions. Therefore no disruptions are + * allowed and the status of the condition will be False. + * - InsufficientPods: The number of pods are either at or below the number + * required by the PodDisruptionBudget. No disruptions are + * allowed and the status of the condition will be False. + * - SufficientPods: There are more pods than required by the PodDisruptionBudget. + * The condition will be True, and the number of allowed + * disruptions are provided by the disruptionsAllowed property. + * @type {Array} + * @memberof IoK8sApiPolicyV1PodDisruptionBudgetStatus + */ + conditions?: Array; + /** + * current number of healthy pods + * @type {number} + * @memberof IoK8sApiPolicyV1PodDisruptionBudgetStatus + */ + currentHealthy: number; + /** + * minimum desired number of healthy pods + * @type {number} + * @memberof IoK8sApiPolicyV1PodDisruptionBudgetStatus + */ + desiredHealthy: number; + /** + * DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiPolicyV1PodDisruptionBudgetStatus + */ + disruptedPods?: { [key: string]: string; }; + /** + * Number of pod disruptions that are currently allowed. + * @type {number} + * @memberof IoK8sApiPolicyV1PodDisruptionBudgetStatus + */ + disruptionsAllowed: number; + /** + * total number of pods counted by this disruption budget + * @type {number} + * @memberof IoK8sApiPolicyV1PodDisruptionBudgetStatus + */ + expectedPods: number; + /** + * Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation. + * @type {number} + * @memberof IoK8sApiPolicyV1PodDisruptionBudgetStatus + */ + observedGeneration?: number; +} + +/** + * Check if a given object implements the IoK8sApiPolicyV1PodDisruptionBudgetStatus interface. + */ +export function instanceOfIoK8sApiPolicyV1PodDisruptionBudgetStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "currentHealthy" in value; + isInstance = isInstance && "desiredHealthy" in value; + isInstance = isInstance && "disruptionsAllowed" in value; + isInstance = isInstance && "expectedPods" in value; + + return isInstance; +} + +export function IoK8sApiPolicyV1PodDisruptionBudgetStatusFromJSON(json: any): IoK8sApiPolicyV1PodDisruptionBudgetStatus { + return IoK8sApiPolicyV1PodDisruptionBudgetStatusFromJSONTyped(json, false); +} + +export function IoK8sApiPolicyV1PodDisruptionBudgetStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiPolicyV1PodDisruptionBudgetStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(IoK8sApimachineryPkgApisMetaV1ConditionFromJSON)), + 'currentHealthy': json['currentHealthy'], + 'desiredHealthy': json['desiredHealthy'], + 'disruptedPods': !exists(json, 'disruptedPods') ? undefined : json['disruptedPods'], + 'disruptionsAllowed': json['disruptionsAllowed'], + 'expectedPods': json['expectedPods'], + 'observedGeneration': !exists(json, 'observedGeneration') ? undefined : json['observedGeneration'], + }; +} + +export function IoK8sApiPolicyV1PodDisruptionBudgetStatusToJSON(value?: IoK8sApiPolicyV1PodDisruptionBudgetStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(IoK8sApimachineryPkgApisMetaV1ConditionToJSON)), + 'currentHealthy': value.currentHealthy, + 'desiredHealthy': value.desiredHealthy, + 'disruptedPods': value.disruptedPods, + 'disruptionsAllowed': value.disruptionsAllowed, + 'expectedPods': value.expectedPods, + 'observedGeneration': value.observedGeneration, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1AggregationRule.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1AggregationRule.ts new file mode 100644 index 000000000..87d528786 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1AggregationRule.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1LabelSelector } from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; +import { + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON, + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; + +/** + * AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole + * @export + * @interface IoK8sApiRbacV1AggregationRule + */ +export interface IoK8sApiRbacV1AggregationRule { + /** + * ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added + * @type {Array} + * @memberof IoK8sApiRbacV1AggregationRule + */ + clusterRoleSelectors?: Array; +} + +/** + * Check if a given object implements the IoK8sApiRbacV1AggregationRule interface. + */ +export function instanceOfIoK8sApiRbacV1AggregationRule(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiRbacV1AggregationRuleFromJSON(json: any): IoK8sApiRbacV1AggregationRule { + return IoK8sApiRbacV1AggregationRuleFromJSONTyped(json, false); +} + +export function IoK8sApiRbacV1AggregationRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiRbacV1AggregationRule { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'clusterRoleSelectors': !exists(json, 'clusterRoleSelectors') ? undefined : ((json['clusterRoleSelectors'] as Array).map(IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON)), + }; +} + +export function IoK8sApiRbacV1AggregationRuleToJSON(value?: IoK8sApiRbacV1AggregationRule | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'clusterRoleSelectors': value.clusterRoleSelectors === undefined ? undefined : ((value.clusterRoleSelectors as Array).map(IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1ClusterRole.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1ClusterRole.ts new file mode 100644 index 000000000..d4259d202 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1ClusterRole.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiRbacV1AggregationRule } from './IoK8sApiRbacV1AggregationRule'; +import { + IoK8sApiRbacV1AggregationRuleFromJSON, + IoK8sApiRbacV1AggregationRuleFromJSONTyped, + IoK8sApiRbacV1AggregationRuleToJSON, +} from './IoK8sApiRbacV1AggregationRule'; +import type { IoK8sApiRbacV1PolicyRule } from './IoK8sApiRbacV1PolicyRule'; +import { + IoK8sApiRbacV1PolicyRuleFromJSON, + IoK8sApiRbacV1PolicyRuleFromJSONTyped, + IoK8sApiRbacV1PolicyRuleToJSON, +} from './IoK8sApiRbacV1PolicyRule'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. + * @export + * @interface IoK8sApiRbacV1ClusterRole + */ +export interface IoK8sApiRbacV1ClusterRole { + /** + * + * @type {IoK8sApiRbacV1AggregationRule} + * @memberof IoK8sApiRbacV1ClusterRole + */ + aggregationRule?: IoK8sApiRbacV1AggregationRule; + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiRbacV1ClusterRole + */ + 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 + * @type {string} + * @memberof IoK8sApiRbacV1ClusterRole + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiRbacV1ClusterRole + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * Rules holds all the PolicyRules for this ClusterRole + * @type {Array} + * @memberof IoK8sApiRbacV1ClusterRole + */ + rules?: Array; +} + +/** + * Check if a given object implements the IoK8sApiRbacV1ClusterRole interface. + */ +export function instanceOfIoK8sApiRbacV1ClusterRole(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiRbacV1ClusterRoleFromJSON(json: any): IoK8sApiRbacV1ClusterRole { + return IoK8sApiRbacV1ClusterRoleFromJSONTyped(json, false); +} + +export function IoK8sApiRbacV1ClusterRoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiRbacV1ClusterRole { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'aggregationRule': !exists(json, 'aggregationRule') ? undefined : IoK8sApiRbacV1AggregationRuleFromJSON(json['aggregationRule']), + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'rules': !exists(json, 'rules') ? undefined : ((json['rules'] as Array).map(IoK8sApiRbacV1PolicyRuleFromJSON)), + }; +} + +export function IoK8sApiRbacV1ClusterRoleToJSON(value?: IoK8sApiRbacV1ClusterRole | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'aggregationRule': IoK8sApiRbacV1AggregationRuleToJSON(value.aggregationRule), + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'rules': value.rules === undefined ? undefined : ((value.rules as Array).map(IoK8sApiRbacV1PolicyRuleToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1ClusterRoleBinding.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1ClusterRoleBinding.ts new file mode 100644 index 000000000..06ed2c4c3 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1ClusterRoleBinding.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiRbacV1RoleRef } from './IoK8sApiRbacV1RoleRef'; +import { + IoK8sApiRbacV1RoleRefFromJSON, + IoK8sApiRbacV1RoleRefFromJSONTyped, + IoK8sApiRbacV1RoleRefToJSON, +} from './IoK8sApiRbacV1RoleRef'; +import type { IoK8sApiRbacV1Subject } from './IoK8sApiRbacV1Subject'; +import { + IoK8sApiRbacV1SubjectFromJSON, + IoK8sApiRbacV1SubjectFromJSONTyped, + IoK8sApiRbacV1SubjectToJSON, +} from './IoK8sApiRbacV1Subject'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. + * @export + * @interface IoK8sApiRbacV1ClusterRoleBinding + */ +export interface IoK8sApiRbacV1ClusterRoleBinding { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiRbacV1ClusterRoleBinding + */ + 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 + * @type {string} + * @memberof IoK8sApiRbacV1ClusterRoleBinding + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiRbacV1ClusterRoleBinding + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiRbacV1RoleRef} + * @memberof IoK8sApiRbacV1ClusterRoleBinding + */ + roleRef: IoK8sApiRbacV1RoleRef; + /** + * Subjects holds references to the objects the role applies to. + * @type {Array} + * @memberof IoK8sApiRbacV1ClusterRoleBinding + */ + subjects?: Array; +} + +/** + * Check if a given object implements the IoK8sApiRbacV1ClusterRoleBinding interface. + */ +export function instanceOfIoK8sApiRbacV1ClusterRoleBinding(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "roleRef" in value; + + return isInstance; +} + +export function IoK8sApiRbacV1ClusterRoleBindingFromJSON(json: any): IoK8sApiRbacV1ClusterRoleBinding { + return IoK8sApiRbacV1ClusterRoleBindingFromJSONTyped(json, false); +} + +export function IoK8sApiRbacV1ClusterRoleBindingFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiRbacV1ClusterRoleBinding { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'roleRef': IoK8sApiRbacV1RoleRefFromJSON(json['roleRef']), + 'subjects': !exists(json, 'subjects') ? undefined : ((json['subjects'] as Array).map(IoK8sApiRbacV1SubjectFromJSON)), + }; +} + +export function IoK8sApiRbacV1ClusterRoleBindingToJSON(value?: IoK8sApiRbacV1ClusterRoleBinding | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'roleRef': IoK8sApiRbacV1RoleRefToJSON(value.roleRef), + 'subjects': value.subjects === undefined ? undefined : ((value.subjects as Array).map(IoK8sApiRbacV1SubjectToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1ClusterRoleBindingList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1ClusterRoleBindingList.ts new file mode 100644 index 000000000..1af0a794d --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1ClusterRoleBindingList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiRbacV1ClusterRoleBinding } from './IoK8sApiRbacV1ClusterRoleBinding'; +import { + IoK8sApiRbacV1ClusterRoleBindingFromJSON, + IoK8sApiRbacV1ClusterRoleBindingFromJSONTyped, + IoK8sApiRbacV1ClusterRoleBindingToJSON, +} from './IoK8sApiRbacV1ClusterRoleBinding'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * ClusterRoleBindingList is a collection of ClusterRoleBindings + * @export + * @interface IoK8sApiRbacV1ClusterRoleBindingList + */ +export interface IoK8sApiRbacV1ClusterRoleBindingList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiRbacV1ClusterRoleBindingList + */ + apiVersion?: string; + /** + * Items is a list of ClusterRoleBindings + * @type {Array} + * @memberof IoK8sApiRbacV1ClusterRoleBindingList + */ + 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 + * @type {string} + * @memberof IoK8sApiRbacV1ClusterRoleBindingList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiRbacV1ClusterRoleBindingList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiRbacV1ClusterRoleBindingList interface. + */ +export function instanceOfIoK8sApiRbacV1ClusterRoleBindingList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiRbacV1ClusterRoleBindingListFromJSON(json: any): IoK8sApiRbacV1ClusterRoleBindingList { + return IoK8sApiRbacV1ClusterRoleBindingListFromJSONTyped(json, false); +} + +export function IoK8sApiRbacV1ClusterRoleBindingListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiRbacV1ClusterRoleBindingList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiRbacV1ClusterRoleBindingFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiRbacV1ClusterRoleBindingListToJSON(value?: IoK8sApiRbacV1ClusterRoleBindingList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiRbacV1ClusterRoleBindingToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1ClusterRoleList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1ClusterRoleList.ts new file mode 100644 index 000000000..62121479a --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1ClusterRoleList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiRbacV1ClusterRole } from './IoK8sApiRbacV1ClusterRole'; +import { + IoK8sApiRbacV1ClusterRoleFromJSON, + IoK8sApiRbacV1ClusterRoleFromJSONTyped, + IoK8sApiRbacV1ClusterRoleToJSON, +} from './IoK8sApiRbacV1ClusterRole'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * ClusterRoleList is a collection of ClusterRoles + * @export + * @interface IoK8sApiRbacV1ClusterRoleList + */ +export interface IoK8sApiRbacV1ClusterRoleList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiRbacV1ClusterRoleList + */ + apiVersion?: string; + /** + * Items is a list of ClusterRoles + * @type {Array} + * @memberof IoK8sApiRbacV1ClusterRoleList + */ + 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 + * @type {string} + * @memberof IoK8sApiRbacV1ClusterRoleList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiRbacV1ClusterRoleList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiRbacV1ClusterRoleList interface. + */ +export function instanceOfIoK8sApiRbacV1ClusterRoleList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiRbacV1ClusterRoleListFromJSON(json: any): IoK8sApiRbacV1ClusterRoleList { + return IoK8sApiRbacV1ClusterRoleListFromJSONTyped(json, false); +} + +export function IoK8sApiRbacV1ClusterRoleListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiRbacV1ClusterRoleList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiRbacV1ClusterRoleFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiRbacV1ClusterRoleListToJSON(value?: IoK8sApiRbacV1ClusterRoleList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiRbacV1ClusterRoleToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1PolicyRule.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1PolicyRule.ts new file mode 100644 index 000000000..1f51f9326 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1PolicyRule.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to. + * @export + * @interface IoK8sApiRbacV1PolicyRule + */ +export interface IoK8sApiRbacV1PolicyRule { + /** + * APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "" represents the core API group and "*" represents all API groups. + * @type {Array} + * @memberof IoK8sApiRbacV1PolicyRule + */ + apiGroups?: string[]; + /** + * NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. + * @type {Array} + * @memberof IoK8sApiRbacV1PolicyRule + */ + nonResourceURLs?: string[]; + /** + * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * @type {Array} + * @memberof IoK8sApiRbacV1PolicyRule + */ + resourceNames?: string[]; + /** + * Resources is a list of resources this rule applies to. '*' represents all resources. + * @type {Array} + * @memberof IoK8sApiRbacV1PolicyRule + */ + resources?: string[]; + /** + * Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs. + * @type {Array} + * @memberof IoK8sApiRbacV1PolicyRule + */ + verbs: string[]; +} + +/** + * Check if a given object implements the IoK8sApiRbacV1PolicyRule interface. + */ +export function instanceOfIoK8sApiRbacV1PolicyRule(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "verbs" in value; + + return isInstance; +} + +export function IoK8sApiRbacV1PolicyRuleFromJSON(json: any): IoK8sApiRbacV1PolicyRule { + return IoK8sApiRbacV1PolicyRuleFromJSONTyped(json, false); +} + +export function IoK8sApiRbacV1PolicyRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiRbacV1PolicyRule { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiGroups': !exists(json, 'apiGroups') ? undefined : json['apiGroups'], + 'nonResourceURLs': !exists(json, 'nonResourceURLs') ? undefined : json['nonResourceURLs'], + 'resourceNames': !exists(json, 'resourceNames') ? undefined : json['resourceNames'], + 'resources': !exists(json, 'resources') ? undefined : json['resources'], + 'verbs': json['verbs'], + }; +} + +export function IoK8sApiRbacV1PolicyRuleToJSON(value?: IoK8sApiRbacV1PolicyRule | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiGroups': value.apiGroups, + 'nonResourceURLs': value.nonResourceURLs, + 'resourceNames': value.resourceNames, + 'resources': value.resources, + 'verbs': value.verbs, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1Role.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1Role.ts new file mode 100644 index 000000000..daeee6bd3 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1Role.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiRbacV1PolicyRule } from './IoK8sApiRbacV1PolicyRule'; +import { + IoK8sApiRbacV1PolicyRuleFromJSON, + IoK8sApiRbacV1PolicyRuleFromJSONTyped, + IoK8sApiRbacV1PolicyRuleToJSON, +} from './IoK8sApiRbacV1PolicyRule'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. + * @export + * @interface IoK8sApiRbacV1Role + */ +export interface IoK8sApiRbacV1Role { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiRbacV1Role + */ + 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 + * @type {string} + * @memberof IoK8sApiRbacV1Role + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiRbacV1Role + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * Rules holds all the PolicyRules for this Role + * @type {Array} + * @memberof IoK8sApiRbacV1Role + */ + rules?: Array; +} + +/** + * Check if a given object implements the IoK8sApiRbacV1Role interface. + */ +export function instanceOfIoK8sApiRbacV1Role(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiRbacV1RoleFromJSON(json: any): IoK8sApiRbacV1Role { + return IoK8sApiRbacV1RoleFromJSONTyped(json, false); +} + +export function IoK8sApiRbacV1RoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiRbacV1Role { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'rules': !exists(json, 'rules') ? undefined : ((json['rules'] as Array).map(IoK8sApiRbacV1PolicyRuleFromJSON)), + }; +} + +export function IoK8sApiRbacV1RoleToJSON(value?: IoK8sApiRbacV1Role | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'rules': value.rules === undefined ? undefined : ((value.rules as Array).map(IoK8sApiRbacV1PolicyRuleToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1RoleBinding.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1RoleBinding.ts new file mode 100644 index 000000000..5b832cade --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1RoleBinding.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiRbacV1RoleRef } from './IoK8sApiRbacV1RoleRef'; +import { + IoK8sApiRbacV1RoleRefFromJSON, + IoK8sApiRbacV1RoleRefFromJSONTyped, + IoK8sApiRbacV1RoleRefToJSON, +} from './IoK8sApiRbacV1RoleRef'; +import type { IoK8sApiRbacV1Subject } from './IoK8sApiRbacV1Subject'; +import { + IoK8sApiRbacV1SubjectFromJSON, + IoK8sApiRbacV1SubjectFromJSONTyped, + IoK8sApiRbacV1SubjectToJSON, +} from './IoK8sApiRbacV1Subject'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. + * @export + * @interface IoK8sApiRbacV1RoleBinding + */ +export interface IoK8sApiRbacV1RoleBinding { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiRbacV1RoleBinding + */ + 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 + * @type {string} + * @memberof IoK8sApiRbacV1RoleBinding + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiRbacV1RoleBinding + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiRbacV1RoleRef} + * @memberof IoK8sApiRbacV1RoleBinding + */ + roleRef: IoK8sApiRbacV1RoleRef; + /** + * Subjects holds references to the objects the role applies to. + * @type {Array} + * @memberof IoK8sApiRbacV1RoleBinding + */ + subjects?: Array; +} + +/** + * Check if a given object implements the IoK8sApiRbacV1RoleBinding interface. + */ +export function instanceOfIoK8sApiRbacV1RoleBinding(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "roleRef" in value; + + return isInstance; +} + +export function IoK8sApiRbacV1RoleBindingFromJSON(json: any): IoK8sApiRbacV1RoleBinding { + return IoK8sApiRbacV1RoleBindingFromJSONTyped(json, false); +} + +export function IoK8sApiRbacV1RoleBindingFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiRbacV1RoleBinding { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'roleRef': IoK8sApiRbacV1RoleRefFromJSON(json['roleRef']), + 'subjects': !exists(json, 'subjects') ? undefined : ((json['subjects'] as Array).map(IoK8sApiRbacV1SubjectFromJSON)), + }; +} + +export function IoK8sApiRbacV1RoleBindingToJSON(value?: IoK8sApiRbacV1RoleBinding | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'roleRef': IoK8sApiRbacV1RoleRefToJSON(value.roleRef), + 'subjects': value.subjects === undefined ? undefined : ((value.subjects as Array).map(IoK8sApiRbacV1SubjectToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1RoleBindingList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1RoleBindingList.ts new file mode 100644 index 000000000..bc0900885 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1RoleBindingList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiRbacV1RoleBinding } from './IoK8sApiRbacV1RoleBinding'; +import { + IoK8sApiRbacV1RoleBindingFromJSON, + IoK8sApiRbacV1RoleBindingFromJSONTyped, + IoK8sApiRbacV1RoleBindingToJSON, +} from './IoK8sApiRbacV1RoleBinding'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * RoleBindingList is a collection of RoleBindings + * @export + * @interface IoK8sApiRbacV1RoleBindingList + */ +export interface IoK8sApiRbacV1RoleBindingList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiRbacV1RoleBindingList + */ + apiVersion?: string; + /** + * Items is a list of RoleBindings + * @type {Array} + * @memberof IoK8sApiRbacV1RoleBindingList + */ + 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 + * @type {string} + * @memberof IoK8sApiRbacV1RoleBindingList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiRbacV1RoleBindingList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiRbacV1RoleBindingList interface. + */ +export function instanceOfIoK8sApiRbacV1RoleBindingList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiRbacV1RoleBindingListFromJSON(json: any): IoK8sApiRbacV1RoleBindingList { + return IoK8sApiRbacV1RoleBindingListFromJSONTyped(json, false); +} + +export function IoK8sApiRbacV1RoleBindingListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiRbacV1RoleBindingList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiRbacV1RoleBindingFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiRbacV1RoleBindingListToJSON(value?: IoK8sApiRbacV1RoleBindingList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiRbacV1RoleBindingToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1RoleList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1RoleList.ts new file mode 100644 index 000000000..005d59dc2 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1RoleList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiRbacV1Role } from './IoK8sApiRbacV1Role'; +import { + IoK8sApiRbacV1RoleFromJSON, + IoK8sApiRbacV1RoleFromJSONTyped, + IoK8sApiRbacV1RoleToJSON, +} from './IoK8sApiRbacV1Role'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * RoleList is a collection of Roles + * @export + * @interface IoK8sApiRbacV1RoleList + */ +export interface IoK8sApiRbacV1RoleList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiRbacV1RoleList + */ + apiVersion?: string; + /** + * Items is a list of Roles + * @type {Array} + * @memberof IoK8sApiRbacV1RoleList + */ + 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 + * @type {string} + * @memberof IoK8sApiRbacV1RoleList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiRbacV1RoleList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiRbacV1RoleList interface. + */ +export function instanceOfIoK8sApiRbacV1RoleList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiRbacV1RoleListFromJSON(json: any): IoK8sApiRbacV1RoleList { + return IoK8sApiRbacV1RoleListFromJSONTyped(json, false); +} + +export function IoK8sApiRbacV1RoleListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiRbacV1RoleList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiRbacV1RoleFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiRbacV1RoleListToJSON(value?: IoK8sApiRbacV1RoleList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiRbacV1RoleToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1RoleRef.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1RoleRef.ts new file mode 100644 index 000000000..e36397b39 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1RoleRef.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * RoleRef contains information that points to the role being used + * @export + * @interface IoK8sApiRbacV1RoleRef + */ +export interface IoK8sApiRbacV1RoleRef { + /** + * APIGroup is the group for the resource being referenced + * @type {string} + * @memberof IoK8sApiRbacV1RoleRef + */ + apiGroup: string; + /** + * Kind is the type of resource being referenced + * @type {string} + * @memberof IoK8sApiRbacV1RoleRef + */ + kind: string; + /** + * Name is the name of resource being referenced + * @type {string} + * @memberof IoK8sApiRbacV1RoleRef + */ + name: string; +} + +/** + * Check if a given object implements the IoK8sApiRbacV1RoleRef interface. + */ +export function instanceOfIoK8sApiRbacV1RoleRef(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "apiGroup" in value; + isInstance = isInstance && "kind" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiRbacV1RoleRefFromJSON(json: any): IoK8sApiRbacV1RoleRef { + return IoK8sApiRbacV1RoleRefFromJSONTyped(json, false); +} + +export function IoK8sApiRbacV1RoleRefFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiRbacV1RoleRef { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiGroup': json['apiGroup'], + 'kind': json['kind'], + 'name': json['name'], + }; +} + +export function IoK8sApiRbacV1RoleRefToJSON(value?: IoK8sApiRbacV1RoleRef | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiGroup': value.apiGroup, + 'kind': value.kind, + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1Subject.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1Subject.ts new file mode 100644 index 000000000..8bd958d95 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiRbacV1Subject.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names. + * @export + * @interface IoK8sApiRbacV1Subject + */ +export interface IoK8sApiRbacV1Subject { + /** + * APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. + * @type {string} + * @memberof IoK8sApiRbacV1Subject + */ + apiGroup?: string; + /** + * Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + * @type {string} + * @memberof IoK8sApiRbacV1Subject + */ + kind: string; + /** + * Name of the object being referenced. + * @type {string} + * @memberof IoK8sApiRbacV1Subject + */ + name: string; + /** + * Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. + * @type {string} + * @memberof IoK8sApiRbacV1Subject + */ + namespace?: string; +} + +/** + * Check if a given object implements the IoK8sApiRbacV1Subject interface. + */ +export function instanceOfIoK8sApiRbacV1Subject(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "kind" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiRbacV1SubjectFromJSON(json: any): IoK8sApiRbacV1Subject { + return IoK8sApiRbacV1SubjectFromJSONTyped(json, false); +} + +export function IoK8sApiRbacV1SubjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiRbacV1Subject { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiGroup': !exists(json, 'apiGroup') ? undefined : json['apiGroup'], + 'kind': json['kind'], + 'name': json['name'], + 'namespace': !exists(json, 'namespace') ? undefined : json['namespace'], + }; +} + +export function IoK8sApiRbacV1SubjectToJSON(value?: IoK8sApiRbacV1Subject | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiGroup': value.apiGroup, + 'kind': value.kind, + 'name': value.name, + 'namespace': value.namespace, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2AllocationResult.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2AllocationResult.ts new file mode 100644 index 000000000..b2e4c1cc0 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2AllocationResult.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1NodeSelector } from './IoK8sApiCoreV1NodeSelector'; +import { + IoK8sApiCoreV1NodeSelectorFromJSON, + IoK8sApiCoreV1NodeSelectorFromJSONTyped, + IoK8sApiCoreV1NodeSelectorToJSON, +} from './IoK8sApiCoreV1NodeSelector'; +import type { IoK8sApiResourceV1alpha2ResourceHandle } from './IoK8sApiResourceV1alpha2ResourceHandle'; +import { + IoK8sApiResourceV1alpha2ResourceHandleFromJSON, + IoK8sApiResourceV1alpha2ResourceHandleFromJSONTyped, + IoK8sApiResourceV1alpha2ResourceHandleToJSON, +} from './IoK8sApiResourceV1alpha2ResourceHandle'; + +/** + * AllocationResult contains attributes of an allocated resource. + * @export + * @interface IoK8sApiResourceV1alpha2AllocationResult + */ +export interface IoK8sApiResourceV1alpha2AllocationResult { + /** + * + * @type {IoK8sApiCoreV1NodeSelector} + * @memberof IoK8sApiResourceV1alpha2AllocationResult + */ + availableOnNodes?: IoK8sApiCoreV1NodeSelector; + /** + * ResourceHandles contain the state associated with an allocation that should be maintained throughout the lifetime of a claim. Each ResourceHandle contains data that should be passed to a specific kubelet plugin once it lands on a node. This data is returned by the driver after a successful allocation and is opaque to Kubernetes. Driver documentation may explain to users how to interpret this data if needed. + * + * Setting this field is optional. It has a maximum size of 32 entries. If null (or empty), it is assumed this allocation will be processed by a single kubelet plugin with no ResourceHandle data attached. The name of the kubelet plugin invoked will match the DriverName set in the ResourceClaimStatus this AllocationResult is embedded in. + * @type {Array} + * @memberof IoK8sApiResourceV1alpha2AllocationResult + */ + resourceHandles?: Array; + /** + * Shareable determines whether the resource supports more than one consumer at a time. + * @type {boolean} + * @memberof IoK8sApiResourceV1alpha2AllocationResult + */ + shareable?: boolean; +} + +/** + * Check if a given object implements the IoK8sApiResourceV1alpha2AllocationResult interface. + */ +export function instanceOfIoK8sApiResourceV1alpha2AllocationResult(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiResourceV1alpha2AllocationResultFromJSON(json: any): IoK8sApiResourceV1alpha2AllocationResult { + return IoK8sApiResourceV1alpha2AllocationResultFromJSONTyped(json, false); +} + +export function IoK8sApiResourceV1alpha2AllocationResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiResourceV1alpha2AllocationResult { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'availableOnNodes': !exists(json, 'availableOnNodes') ? undefined : IoK8sApiCoreV1NodeSelectorFromJSON(json['availableOnNodes']), + 'resourceHandles': !exists(json, 'resourceHandles') ? undefined : ((json['resourceHandles'] as Array).map(IoK8sApiResourceV1alpha2ResourceHandleFromJSON)), + 'shareable': !exists(json, 'shareable') ? undefined : json['shareable'], + }; +} + +export function IoK8sApiResourceV1alpha2AllocationResultToJSON(value?: IoK8sApiResourceV1alpha2AllocationResult | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'availableOnNodes': IoK8sApiCoreV1NodeSelectorToJSON(value.availableOnNodes), + 'resourceHandles': value.resourceHandles === undefined ? undefined : ((value.resourceHandles as Array).map(IoK8sApiResourceV1alpha2ResourceHandleToJSON)), + 'shareable': value.shareable, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2PodSchedulingContext.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2PodSchedulingContext.ts new file mode 100644 index 000000000..da345dc97 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2PodSchedulingContext.ts @@ -0,0 +1,119 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiResourceV1alpha2PodSchedulingContextSpec } from './IoK8sApiResourceV1alpha2PodSchedulingContextSpec'; +import { + IoK8sApiResourceV1alpha2PodSchedulingContextSpecFromJSON, + IoK8sApiResourceV1alpha2PodSchedulingContextSpecFromJSONTyped, + IoK8sApiResourceV1alpha2PodSchedulingContextSpecToJSON, +} from './IoK8sApiResourceV1alpha2PodSchedulingContextSpec'; +import type { IoK8sApiResourceV1alpha2PodSchedulingContextStatus } from './IoK8sApiResourceV1alpha2PodSchedulingContextStatus'; +import { + IoK8sApiResourceV1alpha2PodSchedulingContextStatusFromJSON, + IoK8sApiResourceV1alpha2PodSchedulingContextStatusFromJSONTyped, + IoK8sApiResourceV1alpha2PodSchedulingContextStatusToJSON, +} from './IoK8sApiResourceV1alpha2PodSchedulingContextStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * PodSchedulingContext objects hold information that is needed to schedule a Pod with ResourceClaims that use "WaitForFirstConsumer" allocation mode. + * + * This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. + * @export + * @interface IoK8sApiResourceV1alpha2PodSchedulingContext + */ +export interface IoK8sApiResourceV1alpha2PodSchedulingContext { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiResourceV1alpha2PodSchedulingContext + */ + 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 + * @type {string} + * @memberof IoK8sApiResourceV1alpha2PodSchedulingContext + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiResourceV1alpha2PodSchedulingContext + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiResourceV1alpha2PodSchedulingContextSpec} + * @memberof IoK8sApiResourceV1alpha2PodSchedulingContext + */ + spec: IoK8sApiResourceV1alpha2PodSchedulingContextSpec; + /** + * + * @type {IoK8sApiResourceV1alpha2PodSchedulingContextStatus} + * @memberof IoK8sApiResourceV1alpha2PodSchedulingContext + */ + status?: IoK8sApiResourceV1alpha2PodSchedulingContextStatus; +} + +/** + * Check if a given object implements the IoK8sApiResourceV1alpha2PodSchedulingContext interface. + */ +export function instanceOfIoK8sApiResourceV1alpha2PodSchedulingContext(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function IoK8sApiResourceV1alpha2PodSchedulingContextFromJSON(json: any): IoK8sApiResourceV1alpha2PodSchedulingContext { + return IoK8sApiResourceV1alpha2PodSchedulingContextFromJSONTyped(json, false); +} + +export function IoK8sApiResourceV1alpha2PodSchedulingContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiResourceV1alpha2PodSchedulingContext { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': IoK8sApiResourceV1alpha2PodSchedulingContextSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiResourceV1alpha2PodSchedulingContextStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiResourceV1alpha2PodSchedulingContextToJSON(value?: IoK8sApiResourceV1alpha2PodSchedulingContext | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiResourceV1alpha2PodSchedulingContextSpecToJSON(value.spec), + 'status': IoK8sApiResourceV1alpha2PodSchedulingContextStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2PodSchedulingContextList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2PodSchedulingContextList.ts new file mode 100644 index 000000000..d512a16a9 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2PodSchedulingContextList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiResourceV1alpha2PodSchedulingContext } from './IoK8sApiResourceV1alpha2PodSchedulingContext'; +import { + IoK8sApiResourceV1alpha2PodSchedulingContextFromJSON, + IoK8sApiResourceV1alpha2PodSchedulingContextFromJSONTyped, + IoK8sApiResourceV1alpha2PodSchedulingContextToJSON, +} from './IoK8sApiResourceV1alpha2PodSchedulingContext'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * PodSchedulingContextList is a collection of Pod scheduling objects. + * @export + * @interface IoK8sApiResourceV1alpha2PodSchedulingContextList + */ +export interface IoK8sApiResourceV1alpha2PodSchedulingContextList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiResourceV1alpha2PodSchedulingContextList + */ + apiVersion?: string; + /** + * Items is the list of PodSchedulingContext objects. + * @type {Array} + * @memberof IoK8sApiResourceV1alpha2PodSchedulingContextList + */ + 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 + * @type {string} + * @memberof IoK8sApiResourceV1alpha2PodSchedulingContextList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiResourceV1alpha2PodSchedulingContextList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiResourceV1alpha2PodSchedulingContextList interface. + */ +export function instanceOfIoK8sApiResourceV1alpha2PodSchedulingContextList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiResourceV1alpha2PodSchedulingContextListFromJSON(json: any): IoK8sApiResourceV1alpha2PodSchedulingContextList { + return IoK8sApiResourceV1alpha2PodSchedulingContextListFromJSONTyped(json, false); +} + +export function IoK8sApiResourceV1alpha2PodSchedulingContextListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiResourceV1alpha2PodSchedulingContextList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiResourceV1alpha2PodSchedulingContextFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiResourceV1alpha2PodSchedulingContextListToJSON(value?: IoK8sApiResourceV1alpha2PodSchedulingContextList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiResourceV1alpha2PodSchedulingContextToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2PodSchedulingContextSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2PodSchedulingContextSpec.ts new file mode 100644 index 000000000..3f2319f0f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2PodSchedulingContextSpec.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * PodSchedulingContextSpec describes where resources for the Pod are needed. + * @export + * @interface IoK8sApiResourceV1alpha2PodSchedulingContextSpec + */ +export interface IoK8sApiResourceV1alpha2PodSchedulingContextSpec { + /** + * PotentialNodes lists nodes where the Pod might be able to run. + * + * The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced. + * @type {Array} + * @memberof IoK8sApiResourceV1alpha2PodSchedulingContextSpec + */ + potentialNodes?: string[]; + /** + * SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted. + * @type {string} + * @memberof IoK8sApiResourceV1alpha2PodSchedulingContextSpec + */ + selectedNode?: string; +} + +/** + * Check if a given object implements the IoK8sApiResourceV1alpha2PodSchedulingContextSpec interface. + */ +export function instanceOfIoK8sApiResourceV1alpha2PodSchedulingContextSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiResourceV1alpha2PodSchedulingContextSpecFromJSON(json: any): IoK8sApiResourceV1alpha2PodSchedulingContextSpec { + return IoK8sApiResourceV1alpha2PodSchedulingContextSpecFromJSONTyped(json, false); +} + +export function IoK8sApiResourceV1alpha2PodSchedulingContextSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiResourceV1alpha2PodSchedulingContextSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'potentialNodes': !exists(json, 'potentialNodes') ? undefined : json['potentialNodes'], + 'selectedNode': !exists(json, 'selectedNode') ? undefined : json['selectedNode'], + }; +} + +export function IoK8sApiResourceV1alpha2PodSchedulingContextSpecToJSON(value?: IoK8sApiResourceV1alpha2PodSchedulingContextSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'potentialNodes': value.potentialNodes, + 'selectedNode': value.selectedNode, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2PodSchedulingContextStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2PodSchedulingContextStatus.ts new file mode 100644 index 000000000..2ed01b4c3 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2PodSchedulingContextStatus.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiResourceV1alpha2ResourceClaimSchedulingStatus } from './IoK8sApiResourceV1alpha2ResourceClaimSchedulingStatus'; +import { + IoK8sApiResourceV1alpha2ResourceClaimSchedulingStatusFromJSON, + IoK8sApiResourceV1alpha2ResourceClaimSchedulingStatusFromJSONTyped, + IoK8sApiResourceV1alpha2ResourceClaimSchedulingStatusToJSON, +} from './IoK8sApiResourceV1alpha2ResourceClaimSchedulingStatus'; + +/** + * PodSchedulingContextStatus describes where resources for the Pod can be allocated. + * @export + * @interface IoK8sApiResourceV1alpha2PodSchedulingContextStatus + */ +export interface IoK8sApiResourceV1alpha2PodSchedulingContextStatus { + /** + * ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode. + * @type {Array} + * @memberof IoK8sApiResourceV1alpha2PodSchedulingContextStatus + */ + resourceClaims?: Array; +} + +/** + * Check if a given object implements the IoK8sApiResourceV1alpha2PodSchedulingContextStatus interface. + */ +export function instanceOfIoK8sApiResourceV1alpha2PodSchedulingContextStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiResourceV1alpha2PodSchedulingContextStatusFromJSON(json: any): IoK8sApiResourceV1alpha2PodSchedulingContextStatus { + return IoK8sApiResourceV1alpha2PodSchedulingContextStatusFromJSONTyped(json, false); +} + +export function IoK8sApiResourceV1alpha2PodSchedulingContextStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiResourceV1alpha2PodSchedulingContextStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'resourceClaims': !exists(json, 'resourceClaims') ? undefined : ((json['resourceClaims'] as Array).map(IoK8sApiResourceV1alpha2ResourceClaimSchedulingStatusFromJSON)), + }; +} + +export function IoK8sApiResourceV1alpha2PodSchedulingContextStatusToJSON(value?: IoK8sApiResourceV1alpha2PodSchedulingContextStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'resourceClaims': value.resourceClaims === undefined ? undefined : ((value.resourceClaims as Array).map(IoK8sApiResourceV1alpha2ResourceClaimSchedulingStatusToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaim.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaim.ts new file mode 100644 index 000000000..a90629cc7 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaim.ts @@ -0,0 +1,119 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiResourceV1alpha2ResourceClaimSpec } from './IoK8sApiResourceV1alpha2ResourceClaimSpec'; +import { + IoK8sApiResourceV1alpha2ResourceClaimSpecFromJSON, + IoK8sApiResourceV1alpha2ResourceClaimSpecFromJSONTyped, + IoK8sApiResourceV1alpha2ResourceClaimSpecToJSON, +} from './IoK8sApiResourceV1alpha2ResourceClaimSpec'; +import type { IoK8sApiResourceV1alpha2ResourceClaimStatus } from './IoK8sApiResourceV1alpha2ResourceClaimStatus'; +import { + IoK8sApiResourceV1alpha2ResourceClaimStatusFromJSON, + IoK8sApiResourceV1alpha2ResourceClaimStatusFromJSONTyped, + IoK8sApiResourceV1alpha2ResourceClaimStatusToJSON, +} from './IoK8sApiResourceV1alpha2ResourceClaimStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * ResourceClaim describes which resources are needed by a resource consumer. Its status tracks whether the resource has been allocated and what the resulting attributes are. + * + * This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. + * @export + * @interface IoK8sApiResourceV1alpha2ResourceClaim + */ +export interface IoK8sApiResourceV1alpha2ResourceClaim { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceClaim + */ + 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 + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceClaim + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiResourceV1alpha2ResourceClaim + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiResourceV1alpha2ResourceClaimSpec} + * @memberof IoK8sApiResourceV1alpha2ResourceClaim + */ + spec: IoK8sApiResourceV1alpha2ResourceClaimSpec; + /** + * + * @type {IoK8sApiResourceV1alpha2ResourceClaimStatus} + * @memberof IoK8sApiResourceV1alpha2ResourceClaim + */ + status?: IoK8sApiResourceV1alpha2ResourceClaimStatus; +} + +/** + * Check if a given object implements the IoK8sApiResourceV1alpha2ResourceClaim interface. + */ +export function instanceOfIoK8sApiResourceV1alpha2ResourceClaim(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function IoK8sApiResourceV1alpha2ResourceClaimFromJSON(json: any): IoK8sApiResourceV1alpha2ResourceClaim { + return IoK8sApiResourceV1alpha2ResourceClaimFromJSONTyped(json, false); +} + +export function IoK8sApiResourceV1alpha2ResourceClaimFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiResourceV1alpha2ResourceClaim { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': IoK8sApiResourceV1alpha2ResourceClaimSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiResourceV1alpha2ResourceClaimStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiResourceV1alpha2ResourceClaimToJSON(value?: IoK8sApiResourceV1alpha2ResourceClaim | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiResourceV1alpha2ResourceClaimSpecToJSON(value.spec), + 'status': IoK8sApiResourceV1alpha2ResourceClaimStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimConsumerReference.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimConsumerReference.ts new file mode 100644 index 000000000..34096faf7 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimConsumerReference.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim. + * @export + * @interface IoK8sApiResourceV1alpha2ResourceClaimConsumerReference + */ +export interface IoK8sApiResourceV1alpha2ResourceClaimConsumerReference { + /** + * APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimConsumerReference + */ + apiGroup?: string; + /** + * Name is the name of resource being referenced. + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimConsumerReference + */ + name: string; + /** + * Resource is the type of resource being referenced, for example "pods". + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimConsumerReference + */ + resource: string; + /** + * UID identifies exactly one incarnation of the resource. + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimConsumerReference + */ + uid: string; +} + +/** + * Check if a given object implements the IoK8sApiResourceV1alpha2ResourceClaimConsumerReference interface. + */ +export function instanceOfIoK8sApiResourceV1alpha2ResourceClaimConsumerReference(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "resource" in value; + isInstance = isInstance && "uid" in value; + + return isInstance; +} + +export function IoK8sApiResourceV1alpha2ResourceClaimConsumerReferenceFromJSON(json: any): IoK8sApiResourceV1alpha2ResourceClaimConsumerReference { + return IoK8sApiResourceV1alpha2ResourceClaimConsumerReferenceFromJSONTyped(json, false); +} + +export function IoK8sApiResourceV1alpha2ResourceClaimConsumerReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiResourceV1alpha2ResourceClaimConsumerReference { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiGroup': !exists(json, 'apiGroup') ? undefined : json['apiGroup'], + 'name': json['name'], + 'resource': json['resource'], + 'uid': json['uid'], + }; +} + +export function IoK8sApiResourceV1alpha2ResourceClaimConsumerReferenceToJSON(value?: IoK8sApiResourceV1alpha2ResourceClaimConsumerReference | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiGroup': value.apiGroup, + 'name': value.name, + 'resource': value.resource, + 'uid': value.uid, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimList.ts new file mode 100644 index 000000000..ed17c6dde --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiResourceV1alpha2ResourceClaim } from './IoK8sApiResourceV1alpha2ResourceClaim'; +import { + IoK8sApiResourceV1alpha2ResourceClaimFromJSON, + IoK8sApiResourceV1alpha2ResourceClaimFromJSONTyped, + IoK8sApiResourceV1alpha2ResourceClaimToJSON, +} from './IoK8sApiResourceV1alpha2ResourceClaim'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * ResourceClaimList is a collection of claims. + * @export + * @interface IoK8sApiResourceV1alpha2ResourceClaimList + */ +export interface IoK8sApiResourceV1alpha2ResourceClaimList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimList + */ + apiVersion?: string; + /** + * Items is the list of resource claims. + * @type {Array} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimList + */ + 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 + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiResourceV1alpha2ResourceClaimList interface. + */ +export function instanceOfIoK8sApiResourceV1alpha2ResourceClaimList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiResourceV1alpha2ResourceClaimListFromJSON(json: any): IoK8sApiResourceV1alpha2ResourceClaimList { + return IoK8sApiResourceV1alpha2ResourceClaimListFromJSONTyped(json, false); +} + +export function IoK8sApiResourceV1alpha2ResourceClaimListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiResourceV1alpha2ResourceClaimList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiResourceV1alpha2ResourceClaimFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiResourceV1alpha2ResourceClaimListToJSON(value?: IoK8sApiResourceV1alpha2ResourceClaimList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiResourceV1alpha2ResourceClaimToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimParametersReference.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimParametersReference.ts new file mode 100644 index 000000000..fc1a9e1f6 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimParametersReference.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim. + * @export + * @interface IoK8sApiResourceV1alpha2ResourceClaimParametersReference + */ +export interface IoK8sApiResourceV1alpha2ResourceClaimParametersReference { + /** + * APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimParametersReference + */ + apiGroup?: string; + /** + * Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example "ConfigMap". + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimParametersReference + */ + kind: string; + /** + * Name is the name of resource being referenced. + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimParametersReference + */ + name: string; +} + +/** + * Check if a given object implements the IoK8sApiResourceV1alpha2ResourceClaimParametersReference interface. + */ +export function instanceOfIoK8sApiResourceV1alpha2ResourceClaimParametersReference(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "kind" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiResourceV1alpha2ResourceClaimParametersReferenceFromJSON(json: any): IoK8sApiResourceV1alpha2ResourceClaimParametersReference { + return IoK8sApiResourceV1alpha2ResourceClaimParametersReferenceFromJSONTyped(json, false); +} + +export function IoK8sApiResourceV1alpha2ResourceClaimParametersReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiResourceV1alpha2ResourceClaimParametersReference { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiGroup': !exists(json, 'apiGroup') ? undefined : json['apiGroup'], + 'kind': json['kind'], + 'name': json['name'], + }; +} + +export function IoK8sApiResourceV1alpha2ResourceClaimParametersReferenceToJSON(value?: IoK8sApiResourceV1alpha2ResourceClaimParametersReference | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiGroup': value.apiGroup, + 'kind': value.kind, + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimSchedulingStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimSchedulingStatus.ts new file mode 100644 index 000000000..f94319b67 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimSchedulingStatus.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with "WaitForFirstConsumer" allocation mode. + * @export + * @interface IoK8sApiResourceV1alpha2ResourceClaimSchedulingStatus + */ +export interface IoK8sApiResourceV1alpha2ResourceClaimSchedulingStatus { + /** + * Name matches the pod.spec.resourceClaims[*].Name field. + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimSchedulingStatus + */ + name?: string; + /** + * UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for. + * + * The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced. + * @type {Array} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimSchedulingStatus + */ + unsuitableNodes?: string[]; +} + +/** + * Check if a given object implements the IoK8sApiResourceV1alpha2ResourceClaimSchedulingStatus interface. + */ +export function instanceOfIoK8sApiResourceV1alpha2ResourceClaimSchedulingStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiResourceV1alpha2ResourceClaimSchedulingStatusFromJSON(json: any): IoK8sApiResourceV1alpha2ResourceClaimSchedulingStatus { + return IoK8sApiResourceV1alpha2ResourceClaimSchedulingStatusFromJSONTyped(json, false); +} + +export function IoK8sApiResourceV1alpha2ResourceClaimSchedulingStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiResourceV1alpha2ResourceClaimSchedulingStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': !exists(json, 'name') ? undefined : json['name'], + 'unsuitableNodes': !exists(json, 'unsuitableNodes') ? undefined : json['unsuitableNodes'], + }; +} + +export function IoK8sApiResourceV1alpha2ResourceClaimSchedulingStatusToJSON(value?: IoK8sApiResourceV1alpha2ResourceClaimSchedulingStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'unsuitableNodes': value.unsuitableNodes, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimSpec.ts new file mode 100644 index 000000000..e80b292d0 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimSpec.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiResourceV1alpha2ResourceClaimParametersReference } from './IoK8sApiResourceV1alpha2ResourceClaimParametersReference'; +import { + IoK8sApiResourceV1alpha2ResourceClaimParametersReferenceFromJSON, + IoK8sApiResourceV1alpha2ResourceClaimParametersReferenceFromJSONTyped, + IoK8sApiResourceV1alpha2ResourceClaimParametersReferenceToJSON, +} from './IoK8sApiResourceV1alpha2ResourceClaimParametersReference'; + +/** + * ResourceClaimSpec defines how a resource is to be allocated. + * @export + * @interface IoK8sApiResourceV1alpha2ResourceClaimSpec + */ +export interface IoK8sApiResourceV1alpha2ResourceClaimSpec { + /** + * Allocation can start immediately or when a Pod wants to use the resource. "WaitForFirstConsumer" is the default. + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimSpec + */ + allocationMode?: string; + /** + * + * @type {IoK8sApiResourceV1alpha2ResourceClaimParametersReference} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimSpec + */ + parametersRef?: IoK8sApiResourceV1alpha2ResourceClaimParametersReference; + /** + * ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment. + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimSpec + */ + resourceClassName: string; +} + +/** + * Check if a given object implements the IoK8sApiResourceV1alpha2ResourceClaimSpec interface. + */ +export function instanceOfIoK8sApiResourceV1alpha2ResourceClaimSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "resourceClassName" in value; + + return isInstance; +} + +export function IoK8sApiResourceV1alpha2ResourceClaimSpecFromJSON(json: any): IoK8sApiResourceV1alpha2ResourceClaimSpec { + return IoK8sApiResourceV1alpha2ResourceClaimSpecFromJSONTyped(json, false); +} + +export function IoK8sApiResourceV1alpha2ResourceClaimSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiResourceV1alpha2ResourceClaimSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'allocationMode': !exists(json, 'allocationMode') ? undefined : json['allocationMode'], + 'parametersRef': !exists(json, 'parametersRef') ? undefined : IoK8sApiResourceV1alpha2ResourceClaimParametersReferenceFromJSON(json['parametersRef']), + 'resourceClassName': json['resourceClassName'], + }; +} + +export function IoK8sApiResourceV1alpha2ResourceClaimSpecToJSON(value?: IoK8sApiResourceV1alpha2ResourceClaimSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'allocationMode': value.allocationMode, + 'parametersRef': IoK8sApiResourceV1alpha2ResourceClaimParametersReferenceToJSON(value.parametersRef), + 'resourceClassName': value.resourceClassName, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimStatus.ts new file mode 100644 index 000000000..5fe4895fe --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimStatus.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiResourceV1alpha2AllocationResult } from './IoK8sApiResourceV1alpha2AllocationResult'; +import { + IoK8sApiResourceV1alpha2AllocationResultFromJSON, + IoK8sApiResourceV1alpha2AllocationResultFromJSONTyped, + IoK8sApiResourceV1alpha2AllocationResultToJSON, +} from './IoK8sApiResourceV1alpha2AllocationResult'; +import type { IoK8sApiResourceV1alpha2ResourceClaimConsumerReference } from './IoK8sApiResourceV1alpha2ResourceClaimConsumerReference'; +import { + IoK8sApiResourceV1alpha2ResourceClaimConsumerReferenceFromJSON, + IoK8sApiResourceV1alpha2ResourceClaimConsumerReferenceFromJSONTyped, + IoK8sApiResourceV1alpha2ResourceClaimConsumerReferenceToJSON, +} from './IoK8sApiResourceV1alpha2ResourceClaimConsumerReference'; + +/** + * ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are. + * @export + * @interface IoK8sApiResourceV1alpha2ResourceClaimStatus + */ +export interface IoK8sApiResourceV1alpha2ResourceClaimStatus { + /** + * + * @type {IoK8sApiResourceV1alpha2AllocationResult} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimStatus + */ + allocation?: IoK8sApiResourceV1alpha2AllocationResult; + /** + * DeallocationRequested indicates that a ResourceClaim is to be deallocated. + * + * The driver then must deallocate this claim and reset the field together with clearing the Allocation field. + * + * While DeallocationRequested is set, no new consumers may be added to ReservedFor. + * @type {boolean} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimStatus + */ + deallocationRequested?: boolean; + /** + * DriverName is a copy of the driver name from the ResourceClass at the time when allocation started. + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimStatus + */ + driverName?: string; + /** + * ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. + * + * There can be at most 32 such reservations. This may get increased in the future, but not reduced. + * @type {Array} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimStatus + */ + reservedFor?: Array; +} + +/** + * Check if a given object implements the IoK8sApiResourceV1alpha2ResourceClaimStatus interface. + */ +export function instanceOfIoK8sApiResourceV1alpha2ResourceClaimStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiResourceV1alpha2ResourceClaimStatusFromJSON(json: any): IoK8sApiResourceV1alpha2ResourceClaimStatus { + return IoK8sApiResourceV1alpha2ResourceClaimStatusFromJSONTyped(json, false); +} + +export function IoK8sApiResourceV1alpha2ResourceClaimStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiResourceV1alpha2ResourceClaimStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'allocation': !exists(json, 'allocation') ? undefined : IoK8sApiResourceV1alpha2AllocationResultFromJSON(json['allocation']), + 'deallocationRequested': !exists(json, 'deallocationRequested') ? undefined : json['deallocationRequested'], + 'driverName': !exists(json, 'driverName') ? undefined : json['driverName'], + 'reservedFor': !exists(json, 'reservedFor') ? undefined : ((json['reservedFor'] as Array).map(IoK8sApiResourceV1alpha2ResourceClaimConsumerReferenceFromJSON)), + }; +} + +export function IoK8sApiResourceV1alpha2ResourceClaimStatusToJSON(value?: IoK8sApiResourceV1alpha2ResourceClaimStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'allocation': IoK8sApiResourceV1alpha2AllocationResultToJSON(value.allocation), + 'deallocationRequested': value.deallocationRequested, + 'driverName': value.driverName, + 'reservedFor': value.reservedFor === undefined ? undefined : ((value.reservedFor as Array).map(IoK8sApiResourceV1alpha2ResourceClaimConsumerReferenceToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimTemplate.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimTemplate.ts new file mode 100644 index 000000000..d6029b2f5 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimTemplate.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiResourceV1alpha2ResourceClaimTemplateSpec } from './IoK8sApiResourceV1alpha2ResourceClaimTemplateSpec'; +import { + IoK8sApiResourceV1alpha2ResourceClaimTemplateSpecFromJSON, + IoK8sApiResourceV1alpha2ResourceClaimTemplateSpecFromJSONTyped, + IoK8sApiResourceV1alpha2ResourceClaimTemplateSpecToJSON, +} from './IoK8sApiResourceV1alpha2ResourceClaimTemplateSpec'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * ResourceClaimTemplate is used to produce ResourceClaim objects. + * @export + * @interface IoK8sApiResourceV1alpha2ResourceClaimTemplate + */ +export interface IoK8sApiResourceV1alpha2ResourceClaimTemplate { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimTemplate + */ + 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 + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimTemplate + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimTemplate + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiResourceV1alpha2ResourceClaimTemplateSpec} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimTemplate + */ + spec: IoK8sApiResourceV1alpha2ResourceClaimTemplateSpec; +} + +/** + * Check if a given object implements the IoK8sApiResourceV1alpha2ResourceClaimTemplate interface. + */ +export function instanceOfIoK8sApiResourceV1alpha2ResourceClaimTemplate(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function IoK8sApiResourceV1alpha2ResourceClaimTemplateFromJSON(json: any): IoK8sApiResourceV1alpha2ResourceClaimTemplate { + return IoK8sApiResourceV1alpha2ResourceClaimTemplateFromJSONTyped(json, false); +} + +export function IoK8sApiResourceV1alpha2ResourceClaimTemplateFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiResourceV1alpha2ResourceClaimTemplate { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': IoK8sApiResourceV1alpha2ResourceClaimTemplateSpecFromJSON(json['spec']), + }; +} + +export function IoK8sApiResourceV1alpha2ResourceClaimTemplateToJSON(value?: IoK8sApiResourceV1alpha2ResourceClaimTemplate | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiResourceV1alpha2ResourceClaimTemplateSpecToJSON(value.spec), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimTemplateList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimTemplateList.ts new file mode 100644 index 000000000..35c122067 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimTemplateList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiResourceV1alpha2ResourceClaimTemplate } from './IoK8sApiResourceV1alpha2ResourceClaimTemplate'; +import { + IoK8sApiResourceV1alpha2ResourceClaimTemplateFromJSON, + IoK8sApiResourceV1alpha2ResourceClaimTemplateFromJSONTyped, + IoK8sApiResourceV1alpha2ResourceClaimTemplateToJSON, +} from './IoK8sApiResourceV1alpha2ResourceClaimTemplate'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * ResourceClaimTemplateList is a collection of claim templates. + * @export + * @interface IoK8sApiResourceV1alpha2ResourceClaimTemplateList + */ +export interface IoK8sApiResourceV1alpha2ResourceClaimTemplateList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimTemplateList + */ + apiVersion?: string; + /** + * Items is the list of resource claim templates. + * @type {Array} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimTemplateList + */ + 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 + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimTemplateList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimTemplateList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiResourceV1alpha2ResourceClaimTemplateList interface. + */ +export function instanceOfIoK8sApiResourceV1alpha2ResourceClaimTemplateList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiResourceV1alpha2ResourceClaimTemplateListFromJSON(json: any): IoK8sApiResourceV1alpha2ResourceClaimTemplateList { + return IoK8sApiResourceV1alpha2ResourceClaimTemplateListFromJSONTyped(json, false); +} + +export function IoK8sApiResourceV1alpha2ResourceClaimTemplateListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiResourceV1alpha2ResourceClaimTemplateList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiResourceV1alpha2ResourceClaimTemplateFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiResourceV1alpha2ResourceClaimTemplateListToJSON(value?: IoK8sApiResourceV1alpha2ResourceClaimTemplateList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiResourceV1alpha2ResourceClaimTemplateToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimTemplateSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimTemplateSpec.ts new file mode 100644 index 000000000..43bdb4d13 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClaimTemplateSpec.ts @@ -0,0 +1,87 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiResourceV1alpha2ResourceClaimSpec } from './IoK8sApiResourceV1alpha2ResourceClaimSpec'; +import { + IoK8sApiResourceV1alpha2ResourceClaimSpecFromJSON, + IoK8sApiResourceV1alpha2ResourceClaimSpecFromJSONTyped, + IoK8sApiResourceV1alpha2ResourceClaimSpecToJSON, +} from './IoK8sApiResourceV1alpha2ResourceClaimSpec'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. + * @export + * @interface IoK8sApiResourceV1alpha2ResourceClaimTemplateSpec + */ +export interface IoK8sApiResourceV1alpha2ResourceClaimTemplateSpec { + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimTemplateSpec + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiResourceV1alpha2ResourceClaimSpec} + * @memberof IoK8sApiResourceV1alpha2ResourceClaimTemplateSpec + */ + spec: IoK8sApiResourceV1alpha2ResourceClaimSpec; +} + +/** + * Check if a given object implements the IoK8sApiResourceV1alpha2ResourceClaimTemplateSpec interface. + */ +export function instanceOfIoK8sApiResourceV1alpha2ResourceClaimTemplateSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function IoK8sApiResourceV1alpha2ResourceClaimTemplateSpecFromJSON(json: any): IoK8sApiResourceV1alpha2ResourceClaimTemplateSpec { + return IoK8sApiResourceV1alpha2ResourceClaimTemplateSpecFromJSONTyped(json, false); +} + +export function IoK8sApiResourceV1alpha2ResourceClaimTemplateSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiResourceV1alpha2ResourceClaimTemplateSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': IoK8sApiResourceV1alpha2ResourceClaimSpecFromJSON(json['spec']), + }; +} + +export function IoK8sApiResourceV1alpha2ResourceClaimTemplateSpecToJSON(value?: IoK8sApiResourceV1alpha2ResourceClaimTemplateSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiResourceV1alpha2ResourceClaimSpecToJSON(value.spec), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClass.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClass.ts new file mode 100644 index 000000000..9ba731dbd --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClass.ts @@ -0,0 +1,129 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1NodeSelector } from './IoK8sApiCoreV1NodeSelector'; +import { + IoK8sApiCoreV1NodeSelectorFromJSON, + IoK8sApiCoreV1NodeSelectorFromJSONTyped, + IoK8sApiCoreV1NodeSelectorToJSON, +} from './IoK8sApiCoreV1NodeSelector'; +import type { IoK8sApiResourceV1alpha2ResourceClassParametersReference } from './IoK8sApiResourceV1alpha2ResourceClassParametersReference'; +import { + IoK8sApiResourceV1alpha2ResourceClassParametersReferenceFromJSON, + IoK8sApiResourceV1alpha2ResourceClassParametersReferenceFromJSONTyped, + IoK8sApiResourceV1alpha2ResourceClassParametersReferenceToJSON, +} from './IoK8sApiResourceV1alpha2ResourceClassParametersReference'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * ResourceClass is used by administrators to influence how resources are allocated. + * + * This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. + * @export + * @interface IoK8sApiResourceV1alpha2ResourceClass + */ +export interface IoK8sApiResourceV1alpha2ResourceClass { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceClass + */ + apiVersion?: string; + /** + * DriverName defines the name of the dynamic resource driver that is used for allocation of a ResourceClaim that uses this class. + * + * Resource drivers have a unique name in forward domain order (acme.example.com). + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceClass + */ + driverName: 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 + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceClass + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiResourceV1alpha2ResourceClass + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiResourceV1alpha2ResourceClassParametersReference} + * @memberof IoK8sApiResourceV1alpha2ResourceClass + */ + parametersRef?: IoK8sApiResourceV1alpha2ResourceClassParametersReference; + /** + * + * @type {IoK8sApiCoreV1NodeSelector} + * @memberof IoK8sApiResourceV1alpha2ResourceClass + */ + suitableNodes?: IoK8sApiCoreV1NodeSelector; +} + +/** + * Check if a given object implements the IoK8sApiResourceV1alpha2ResourceClass interface. + */ +export function instanceOfIoK8sApiResourceV1alpha2ResourceClass(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "driverName" in value; + + return isInstance; +} + +export function IoK8sApiResourceV1alpha2ResourceClassFromJSON(json: any): IoK8sApiResourceV1alpha2ResourceClass { + return IoK8sApiResourceV1alpha2ResourceClassFromJSONTyped(json, false); +} + +export function IoK8sApiResourceV1alpha2ResourceClassFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiResourceV1alpha2ResourceClass { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'driverName': json['driverName'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'parametersRef': !exists(json, 'parametersRef') ? undefined : IoK8sApiResourceV1alpha2ResourceClassParametersReferenceFromJSON(json['parametersRef']), + 'suitableNodes': !exists(json, 'suitableNodes') ? undefined : IoK8sApiCoreV1NodeSelectorFromJSON(json['suitableNodes']), + }; +} + +export function IoK8sApiResourceV1alpha2ResourceClassToJSON(value?: IoK8sApiResourceV1alpha2ResourceClass | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'driverName': value.driverName, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'parametersRef': IoK8sApiResourceV1alpha2ResourceClassParametersReferenceToJSON(value.parametersRef), + 'suitableNodes': IoK8sApiCoreV1NodeSelectorToJSON(value.suitableNodes), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClassList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClassList.ts new file mode 100644 index 000000000..ac67e2bc3 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClassList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiResourceV1alpha2ResourceClass } from './IoK8sApiResourceV1alpha2ResourceClass'; +import { + IoK8sApiResourceV1alpha2ResourceClassFromJSON, + IoK8sApiResourceV1alpha2ResourceClassFromJSONTyped, + IoK8sApiResourceV1alpha2ResourceClassToJSON, +} from './IoK8sApiResourceV1alpha2ResourceClass'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * ResourceClassList is a collection of classes. + * @export + * @interface IoK8sApiResourceV1alpha2ResourceClassList + */ +export interface IoK8sApiResourceV1alpha2ResourceClassList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceClassList + */ + apiVersion?: string; + /** + * Items is the list of resource classes. + * @type {Array} + * @memberof IoK8sApiResourceV1alpha2ResourceClassList + */ + 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 + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceClassList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiResourceV1alpha2ResourceClassList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiResourceV1alpha2ResourceClassList interface. + */ +export function instanceOfIoK8sApiResourceV1alpha2ResourceClassList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiResourceV1alpha2ResourceClassListFromJSON(json: any): IoK8sApiResourceV1alpha2ResourceClassList { + return IoK8sApiResourceV1alpha2ResourceClassListFromJSONTyped(json, false); +} + +export function IoK8sApiResourceV1alpha2ResourceClassListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiResourceV1alpha2ResourceClassList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiResourceV1alpha2ResourceClassFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiResourceV1alpha2ResourceClassListToJSON(value?: IoK8sApiResourceV1alpha2ResourceClassList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiResourceV1alpha2ResourceClassToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClassParametersReference.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClassParametersReference.ts new file mode 100644 index 000000000..6a77bb658 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceClassParametersReference.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass. + * @export + * @interface IoK8sApiResourceV1alpha2ResourceClassParametersReference + */ +export interface IoK8sApiResourceV1alpha2ResourceClassParametersReference { + /** + * APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceClassParametersReference + */ + apiGroup?: string; + /** + * Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata. + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceClassParametersReference + */ + kind: string; + /** + * Name is the name of resource being referenced. + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceClassParametersReference + */ + name: string; + /** + * Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources. + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceClassParametersReference + */ + namespace?: string; +} + +/** + * Check if a given object implements the IoK8sApiResourceV1alpha2ResourceClassParametersReference interface. + */ +export function instanceOfIoK8sApiResourceV1alpha2ResourceClassParametersReference(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "kind" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function IoK8sApiResourceV1alpha2ResourceClassParametersReferenceFromJSON(json: any): IoK8sApiResourceV1alpha2ResourceClassParametersReference { + return IoK8sApiResourceV1alpha2ResourceClassParametersReferenceFromJSONTyped(json, false); +} + +export function IoK8sApiResourceV1alpha2ResourceClassParametersReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiResourceV1alpha2ResourceClassParametersReference { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiGroup': !exists(json, 'apiGroup') ? undefined : json['apiGroup'], + 'kind': json['kind'], + 'name': json['name'], + 'namespace': !exists(json, 'namespace') ? undefined : json['namespace'], + }; +} + +export function IoK8sApiResourceV1alpha2ResourceClassParametersReferenceToJSON(value?: IoK8sApiResourceV1alpha2ResourceClassParametersReference | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiGroup': value.apiGroup, + 'kind': value.kind, + 'name': value.name, + 'namespace': value.namespace, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceHandle.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceHandle.ts new file mode 100644 index 000000000..391858a5c --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiResourceV1alpha2ResourceHandle.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ResourceHandle holds opaque resource data for processing by a specific kubelet plugin. + * @export + * @interface IoK8sApiResourceV1alpha2ResourceHandle + */ +export interface IoK8sApiResourceV1alpha2ResourceHandle { + /** + * Data contains the opaque data associated with this ResourceHandle. It is set by the controller component of the resource driver whose name matches the DriverName set in the ResourceClaimStatus this ResourceHandle is embedded in. It is set at allocation time and is intended for processing by the kubelet plugin whose name matches the DriverName set in this ResourceHandle. + * + * The maximum size of this field is 16KiB. This may get increased in the future, but not reduced. + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceHandle + */ + data?: string; + /** + * DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in. + * @type {string} + * @memberof IoK8sApiResourceV1alpha2ResourceHandle + */ + driverName?: string; +} + +/** + * Check if a given object implements the IoK8sApiResourceV1alpha2ResourceHandle interface. + */ +export function instanceOfIoK8sApiResourceV1alpha2ResourceHandle(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiResourceV1alpha2ResourceHandleFromJSON(json: any): IoK8sApiResourceV1alpha2ResourceHandle { + return IoK8sApiResourceV1alpha2ResourceHandleFromJSONTyped(json, false); +} + +export function IoK8sApiResourceV1alpha2ResourceHandleFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiResourceV1alpha2ResourceHandle { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'data': !exists(json, 'data') ? undefined : json['data'], + 'driverName': !exists(json, 'driverName') ? undefined : json['driverName'], + }; +} + +export function IoK8sApiResourceV1alpha2ResourceHandleToJSON(value?: IoK8sApiResourceV1alpha2ResourceHandle | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'data': value.data, + 'driverName': value.driverName, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiSchedulingV1PriorityClass.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiSchedulingV1PriorityClass.ts new file mode 100644 index 000000000..87b50b60a --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiSchedulingV1PriorityClass.ts @@ -0,0 +1,121 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. + * @export + * @interface IoK8sApiSchedulingV1PriorityClass + */ +export interface IoK8sApiSchedulingV1PriorityClass { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiSchedulingV1PriorityClass + */ + apiVersion?: string; + /** + * description is an arbitrary string that usually provides guidelines on when this priority class should be used. + * @type {string} + * @memberof IoK8sApiSchedulingV1PriorityClass + */ + description?: string; + /** + * globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + * @type {boolean} + * @memberof IoK8sApiSchedulingV1PriorityClass + */ + globalDefault?: boolean; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof IoK8sApiSchedulingV1PriorityClass + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiSchedulingV1PriorityClass + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. + * @type {string} + * @memberof IoK8sApiSchedulingV1PriorityClass + */ + preemptionPolicy?: string; + /** + * value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + * @type {number} + * @memberof IoK8sApiSchedulingV1PriorityClass + */ + value: number; +} + +/** + * Check if a given object implements the IoK8sApiSchedulingV1PriorityClass interface. + */ +export function instanceOfIoK8sApiSchedulingV1PriorityClass(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "value" in value; + + return isInstance; +} + +export function IoK8sApiSchedulingV1PriorityClassFromJSON(json: any): IoK8sApiSchedulingV1PriorityClass { + return IoK8sApiSchedulingV1PriorityClassFromJSONTyped(json, false); +} + +export function IoK8sApiSchedulingV1PriorityClassFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiSchedulingV1PriorityClass { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'description': !exists(json, 'description') ? undefined : json['description'], + 'globalDefault': !exists(json, 'globalDefault') ? undefined : json['globalDefault'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'preemptionPolicy': !exists(json, 'preemptionPolicy') ? undefined : json['preemptionPolicy'], + 'value': json['value'], + }; +} + +export function IoK8sApiSchedulingV1PriorityClassToJSON(value?: IoK8sApiSchedulingV1PriorityClass | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'description': value.description, + 'globalDefault': value.globalDefault, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'preemptionPolicy': value.preemptionPolicy, + 'value': value.value, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiSchedulingV1PriorityClassList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiSchedulingV1PriorityClassList.ts new file mode 100644 index 000000000..36f3e42ed --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiSchedulingV1PriorityClassList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiSchedulingV1PriorityClass } from './IoK8sApiSchedulingV1PriorityClass'; +import { + IoK8sApiSchedulingV1PriorityClassFromJSON, + IoK8sApiSchedulingV1PriorityClassFromJSONTyped, + IoK8sApiSchedulingV1PriorityClassToJSON, +} from './IoK8sApiSchedulingV1PriorityClass'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * PriorityClassList is a collection of priority classes. + * @export + * @interface IoK8sApiSchedulingV1PriorityClassList + */ +export interface IoK8sApiSchedulingV1PriorityClassList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiSchedulingV1PriorityClassList + */ + apiVersion?: string; + /** + * items is the list of PriorityClasses + * @type {Array} + * @memberof IoK8sApiSchedulingV1PriorityClassList + */ + 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 + * @type {string} + * @memberof IoK8sApiSchedulingV1PriorityClassList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiSchedulingV1PriorityClassList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiSchedulingV1PriorityClassList interface. + */ +export function instanceOfIoK8sApiSchedulingV1PriorityClassList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiSchedulingV1PriorityClassListFromJSON(json: any): IoK8sApiSchedulingV1PriorityClassList { + return IoK8sApiSchedulingV1PriorityClassListFromJSONTyped(json, false); +} + +export function IoK8sApiSchedulingV1PriorityClassListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiSchedulingV1PriorityClassList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiSchedulingV1PriorityClassFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiSchedulingV1PriorityClassListToJSON(value?: IoK8sApiSchedulingV1PriorityClassList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiSchedulingV1PriorityClassToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSIDriver.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSIDriver.ts new file mode 100644 index 000000000..1e1e04b69 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSIDriver.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiStorageV1CSIDriverSpec } from './IoK8sApiStorageV1CSIDriverSpec'; +import { + IoK8sApiStorageV1CSIDriverSpecFromJSON, + IoK8sApiStorageV1CSIDriverSpecFromJSONTyped, + IoK8sApiStorageV1CSIDriverSpecToJSON, +} from './IoK8sApiStorageV1CSIDriverSpec'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced. + * @export + * @interface IoK8sApiStorageV1CSIDriver + */ +export interface IoK8sApiStorageV1CSIDriver { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiStorageV1CSIDriver + */ + 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 + * @type {string} + * @memberof IoK8sApiStorageV1CSIDriver + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiStorageV1CSIDriver + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiStorageV1CSIDriverSpec} + * @memberof IoK8sApiStorageV1CSIDriver + */ + spec: IoK8sApiStorageV1CSIDriverSpec; +} + +/** + * Check if a given object implements the IoK8sApiStorageV1CSIDriver interface. + */ +export function instanceOfIoK8sApiStorageV1CSIDriver(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function IoK8sApiStorageV1CSIDriverFromJSON(json: any): IoK8sApiStorageV1CSIDriver { + return IoK8sApiStorageV1CSIDriverFromJSONTyped(json, false); +} + +export function IoK8sApiStorageV1CSIDriverFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiStorageV1CSIDriver { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': IoK8sApiStorageV1CSIDriverSpecFromJSON(json['spec']), + }; +} + +export function IoK8sApiStorageV1CSIDriverToJSON(value?: IoK8sApiStorageV1CSIDriver | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiStorageV1CSIDriverSpecToJSON(value.spec), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSIDriverList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSIDriverList.ts new file mode 100644 index 000000000..3f2662f4c --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSIDriverList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiStorageV1CSIDriver } from './IoK8sApiStorageV1CSIDriver'; +import { + IoK8sApiStorageV1CSIDriverFromJSON, + IoK8sApiStorageV1CSIDriverFromJSONTyped, + IoK8sApiStorageV1CSIDriverToJSON, +} from './IoK8sApiStorageV1CSIDriver'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * CSIDriverList is a collection of CSIDriver objects. + * @export + * @interface IoK8sApiStorageV1CSIDriverList + */ +export interface IoK8sApiStorageV1CSIDriverList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiStorageV1CSIDriverList + */ + apiVersion?: string; + /** + * items is the list of CSIDriver + * @type {Array} + * @memberof IoK8sApiStorageV1CSIDriverList + */ + 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 + * @type {string} + * @memberof IoK8sApiStorageV1CSIDriverList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiStorageV1CSIDriverList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiStorageV1CSIDriverList interface. + */ +export function instanceOfIoK8sApiStorageV1CSIDriverList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiStorageV1CSIDriverListFromJSON(json: any): IoK8sApiStorageV1CSIDriverList { + return IoK8sApiStorageV1CSIDriverListFromJSONTyped(json, false); +} + +export function IoK8sApiStorageV1CSIDriverListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiStorageV1CSIDriverList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiStorageV1CSIDriverFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiStorageV1CSIDriverListToJSON(value?: IoK8sApiStorageV1CSIDriverList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiStorageV1CSIDriverToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSIDriverSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSIDriverSpec.ts new file mode 100644 index 000000000..43b45ae4a --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSIDriverSpec.ts @@ -0,0 +1,171 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiStorageV1TokenRequest } from './IoK8sApiStorageV1TokenRequest'; +import { + IoK8sApiStorageV1TokenRequestFromJSON, + IoK8sApiStorageV1TokenRequestFromJSONTyped, + IoK8sApiStorageV1TokenRequestToJSON, +} from './IoK8sApiStorageV1TokenRequest'; + +/** + * CSIDriverSpec is the specification of a CSIDriver. + * @export + * @interface IoK8sApiStorageV1CSIDriverSpec + */ +export interface IoK8sApiStorageV1CSIDriverSpec { + /** + * 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. + * @type {boolean} + * @memberof IoK8sApiStorageV1CSIDriverSpec + */ + attachRequired?: boolean; + /** + * fsGroupPolicy defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details. + * + * This field was immutable in Kubernetes < 1.29 and now is mutable. + * + * Defaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce. + * @type {string} + * @memberof IoK8sApiStorageV1CSIDriverSpec + */ + fsGroupPolicy?: string; + /** + * podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false. + * + * The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. + * + * The following VolumeContext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" if the volume is an ephemeral inline volume + * defined by a CSIVolumeSource, otherwise "false" + * + * "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. + * + * This field was immutable in Kubernetes < 1.29 and now is mutable. + * @type {boolean} + * @memberof IoK8sApiStorageV1CSIDriverSpec + */ + podInfoOnMount?: boolean; + /** + * requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false. + * + * Note: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container. + * @type {boolean} + * @memberof IoK8sApiStorageV1CSIDriverSpec + */ + requiresRepublish?: boolean; + /** + * seLinuxMount specifies if the CSI driver supports "-o context" mount option. + * + * When "true", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with "-o context=xyz" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context. + * + * When "false", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem. + * + * Default is "false". + * @type {boolean} + * @memberof IoK8sApiStorageV1CSIDriverSpec + */ + seLinuxMount?: boolean; + /** + * storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information, if set to true. + * + * The check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object. + * + * Alternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published. + * + * This field was immutable in Kubernetes <= 1.22 and now is mutable. + * @type {boolean} + * @memberof IoK8sApiStorageV1CSIDriverSpec + */ + storageCapacity?: boolean; + /** + * tokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: "csi.storage.k8s.io/serviceAccount.tokens": { + * "": { + * "token": , + * "expirationTimestamp": , + * }, + * ... + * } + * + * Note: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically. + * @type {Array} + * @memberof IoK8sApiStorageV1CSIDriverSpec + */ + tokenRequests?: Array; + /** + * volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. + * + * The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. + * + * For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. + * + * This field is beta. This field is immutable. + * @type {Array} + * @memberof IoK8sApiStorageV1CSIDriverSpec + */ + volumeLifecycleModes?: string[]; +} + +/** + * Check if a given object implements the IoK8sApiStorageV1CSIDriverSpec interface. + */ +export function instanceOfIoK8sApiStorageV1CSIDriverSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiStorageV1CSIDriverSpecFromJSON(json: any): IoK8sApiStorageV1CSIDriverSpec { + return IoK8sApiStorageV1CSIDriverSpecFromJSONTyped(json, false); +} + +export function IoK8sApiStorageV1CSIDriverSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiStorageV1CSIDriverSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'attachRequired': !exists(json, 'attachRequired') ? undefined : json['attachRequired'], + 'fsGroupPolicy': !exists(json, 'fsGroupPolicy') ? undefined : json['fsGroupPolicy'], + 'podInfoOnMount': !exists(json, 'podInfoOnMount') ? undefined : json['podInfoOnMount'], + 'requiresRepublish': !exists(json, 'requiresRepublish') ? undefined : json['requiresRepublish'], + 'seLinuxMount': !exists(json, 'seLinuxMount') ? undefined : json['seLinuxMount'], + 'storageCapacity': !exists(json, 'storageCapacity') ? undefined : json['storageCapacity'], + 'tokenRequests': !exists(json, 'tokenRequests') ? undefined : ((json['tokenRequests'] as Array).map(IoK8sApiStorageV1TokenRequestFromJSON)), + 'volumeLifecycleModes': !exists(json, 'volumeLifecycleModes') ? undefined : json['volumeLifecycleModes'], + }; +} + +export function IoK8sApiStorageV1CSIDriverSpecToJSON(value?: IoK8sApiStorageV1CSIDriverSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'attachRequired': value.attachRequired, + 'fsGroupPolicy': value.fsGroupPolicy, + 'podInfoOnMount': value.podInfoOnMount, + 'requiresRepublish': value.requiresRepublish, + 'seLinuxMount': value.seLinuxMount, + 'storageCapacity': value.storageCapacity, + 'tokenRequests': value.tokenRequests === undefined ? undefined : ((value.tokenRequests as Array).map(IoK8sApiStorageV1TokenRequestToJSON)), + 'volumeLifecycleModes': value.volumeLifecycleModes, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSINode.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSINode.ts new file mode 100644 index 000000000..5cf35c891 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSINode.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiStorageV1CSINodeSpec } from './IoK8sApiStorageV1CSINodeSpec'; +import { + IoK8sApiStorageV1CSINodeSpecFromJSON, + IoK8sApiStorageV1CSINodeSpecFromJSONTyped, + IoK8sApiStorageV1CSINodeSpecToJSON, +} from './IoK8sApiStorageV1CSINodeSpec'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object. + * @export + * @interface IoK8sApiStorageV1CSINode + */ +export interface IoK8sApiStorageV1CSINode { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiStorageV1CSINode + */ + 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 + * @type {string} + * @memberof IoK8sApiStorageV1CSINode + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiStorageV1CSINode + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiStorageV1CSINodeSpec} + * @memberof IoK8sApiStorageV1CSINode + */ + spec: IoK8sApiStorageV1CSINodeSpec; +} + +/** + * Check if a given object implements the IoK8sApiStorageV1CSINode interface. + */ +export function instanceOfIoK8sApiStorageV1CSINode(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function IoK8sApiStorageV1CSINodeFromJSON(json: any): IoK8sApiStorageV1CSINode { + return IoK8sApiStorageV1CSINodeFromJSONTyped(json, false); +} + +export function IoK8sApiStorageV1CSINodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiStorageV1CSINode { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': IoK8sApiStorageV1CSINodeSpecFromJSON(json['spec']), + }; +} + +export function IoK8sApiStorageV1CSINodeToJSON(value?: IoK8sApiStorageV1CSINode | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiStorageV1CSINodeSpecToJSON(value.spec), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSINodeDriver.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSINodeDriver.ts new file mode 100644 index 000000000..38186bcac --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSINodeDriver.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiStorageV1VolumeNodeResources } from './IoK8sApiStorageV1VolumeNodeResources'; +import { + IoK8sApiStorageV1VolumeNodeResourcesFromJSON, + IoK8sApiStorageV1VolumeNodeResourcesFromJSONTyped, + IoK8sApiStorageV1VolumeNodeResourcesToJSON, +} from './IoK8sApiStorageV1VolumeNodeResources'; + +/** + * CSINodeDriver holds information about the specification of one CSI driver installed on a node + * @export + * @interface IoK8sApiStorageV1CSINodeDriver + */ +export interface IoK8sApiStorageV1CSINodeDriver { + /** + * + * @type {IoK8sApiStorageV1VolumeNodeResources} + * @memberof IoK8sApiStorageV1CSINodeDriver + */ + allocatable?: IoK8sApiStorageV1VolumeNodeResources; + /** + * name represents the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. + * @type {string} + * @memberof IoK8sApiStorageV1CSINodeDriver + */ + name: string; + /** + * nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required. + * @type {string} + * @memberof IoK8sApiStorageV1CSINodeDriver + */ + nodeID: string; + /** + * topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. + * @type {Array} + * @memberof IoK8sApiStorageV1CSINodeDriver + */ + topologyKeys?: string[]; +} + +/** + * Check if a given object implements the IoK8sApiStorageV1CSINodeDriver interface. + */ +export function instanceOfIoK8sApiStorageV1CSINodeDriver(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "nodeID" in value; + + return isInstance; +} + +export function IoK8sApiStorageV1CSINodeDriverFromJSON(json: any): IoK8sApiStorageV1CSINodeDriver { + return IoK8sApiStorageV1CSINodeDriverFromJSONTyped(json, false); +} + +export function IoK8sApiStorageV1CSINodeDriverFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiStorageV1CSINodeDriver { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'allocatable': !exists(json, 'allocatable') ? undefined : IoK8sApiStorageV1VolumeNodeResourcesFromJSON(json['allocatable']), + 'name': json['name'], + 'nodeID': json['nodeID'], + 'topologyKeys': !exists(json, 'topologyKeys') ? undefined : json['topologyKeys'], + }; +} + +export function IoK8sApiStorageV1CSINodeDriverToJSON(value?: IoK8sApiStorageV1CSINodeDriver | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'allocatable': IoK8sApiStorageV1VolumeNodeResourcesToJSON(value.allocatable), + 'name': value.name, + 'nodeID': value.nodeID, + 'topologyKeys': value.topologyKeys, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSINodeList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSINodeList.ts new file mode 100644 index 000000000..0f7d6672c --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSINodeList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiStorageV1CSINode } from './IoK8sApiStorageV1CSINode'; +import { + IoK8sApiStorageV1CSINodeFromJSON, + IoK8sApiStorageV1CSINodeFromJSONTyped, + IoK8sApiStorageV1CSINodeToJSON, +} from './IoK8sApiStorageV1CSINode'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * CSINodeList is a collection of CSINode objects. + * @export + * @interface IoK8sApiStorageV1CSINodeList + */ +export interface IoK8sApiStorageV1CSINodeList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiStorageV1CSINodeList + */ + apiVersion?: string; + /** + * items is the list of CSINode + * @type {Array} + * @memberof IoK8sApiStorageV1CSINodeList + */ + 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 + * @type {string} + * @memberof IoK8sApiStorageV1CSINodeList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiStorageV1CSINodeList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiStorageV1CSINodeList interface. + */ +export function instanceOfIoK8sApiStorageV1CSINodeList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiStorageV1CSINodeListFromJSON(json: any): IoK8sApiStorageV1CSINodeList { + return IoK8sApiStorageV1CSINodeListFromJSONTyped(json, false); +} + +export function IoK8sApiStorageV1CSINodeListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiStorageV1CSINodeList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiStorageV1CSINodeFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiStorageV1CSINodeListToJSON(value?: IoK8sApiStorageV1CSINodeList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiStorageV1CSINodeToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSINodeSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSINodeSpec.ts new file mode 100644 index 000000000..6c34c32cf --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSINodeSpec.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiStorageV1CSINodeDriver } from './IoK8sApiStorageV1CSINodeDriver'; +import { + IoK8sApiStorageV1CSINodeDriverFromJSON, + IoK8sApiStorageV1CSINodeDriverFromJSONTyped, + IoK8sApiStorageV1CSINodeDriverToJSON, +} from './IoK8sApiStorageV1CSINodeDriver'; + +/** + * CSINodeSpec holds information about the specification of all CSI drivers installed on a node + * @export + * @interface IoK8sApiStorageV1CSINodeSpec + */ +export interface IoK8sApiStorageV1CSINodeSpec { + /** + * drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. + * @type {Array} + * @memberof IoK8sApiStorageV1CSINodeSpec + */ + drivers: Array; +} + +/** + * Check if a given object implements the IoK8sApiStorageV1CSINodeSpec interface. + */ +export function instanceOfIoK8sApiStorageV1CSINodeSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "drivers" in value; + + return isInstance; +} + +export function IoK8sApiStorageV1CSINodeSpecFromJSON(json: any): IoK8sApiStorageV1CSINodeSpec { + return IoK8sApiStorageV1CSINodeSpecFromJSONTyped(json, false); +} + +export function IoK8sApiStorageV1CSINodeSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiStorageV1CSINodeSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'drivers': ((json['drivers'] as Array).map(IoK8sApiStorageV1CSINodeDriverFromJSON)), + }; +} + +export function IoK8sApiStorageV1CSINodeSpecToJSON(value?: IoK8sApiStorageV1CSINodeSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'drivers': ((value.drivers as Array).map(IoK8sApiStorageV1CSINodeDriverToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSIStorageCapacity.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSIStorageCapacity.ts new file mode 100644 index 000000000..bf3ed49a4 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSIStorageCapacity.ts @@ -0,0 +1,207 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1LabelSelector } from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; +import { + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON, + IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes. + * + * For example this can express things like: - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" + * + * The following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero + * + * The producer of these objects can decide which approach is more suitable. + * + * They are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node. + * @export + * @interface IoK8sApiStorageV1CSIStorageCapacity + */ +export interface IoK8sApiStorageV1CSIStorageCapacity { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiStorageV1CSIStorageCapacity + */ + apiVersion?: string; + /** + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + * + * The serialization format is: + * + * ``` ::= + * + * (Note that may be empty, from the "" case in .) + * + * ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + * + * (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + * + * ::= m | "" | k | M | G | T | P | E + * + * (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + * + * ::= "e" | "E" ``` + * + * No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + * + * When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + * + * Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + * + * - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. + * + * The sign will be omitted unless the number is negative. + * + * Examples: + * + * - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" + * + * Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + * + * Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + * + * This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + * @type {string} + * @memberof IoK8sApiStorageV1CSIStorageCapacity + */ + capacity?: 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 + * @type {string} + * @memberof IoK8sApiStorageV1CSIStorageCapacity + */ + kind?: string; + /** + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + * + * The serialization format is: + * + * ``` ::= + * + * (Note that may be empty, from the "" case in .) + * + * ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + * + * (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + * + * ::= m | "" | k | M | G | T | P | E + * + * (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + * + * ::= "e" | "E" ``` + * + * No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + * + * When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + * + * Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + * + * - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. + * + * The sign will be omitted unless the number is negative. + * + * Examples: + * + * - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" + * + * Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + * + * Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + * + * This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + * @type {string} + * @memberof IoK8sApiStorageV1CSIStorageCapacity + */ + maximumVolumeSize?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiStorageV1CSIStorageCapacity + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1LabelSelector} + * @memberof IoK8sApiStorageV1CSIStorageCapacity + */ + nodeTopology?: IoK8sApimachineryPkgApisMetaV1LabelSelector; + /** + * storageClassName represents the name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable. + * @type {string} + * @memberof IoK8sApiStorageV1CSIStorageCapacity + */ + storageClassName: string; +} + +/** + * Check if a given object implements the IoK8sApiStorageV1CSIStorageCapacity interface. + */ +export function instanceOfIoK8sApiStorageV1CSIStorageCapacity(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "storageClassName" in value; + + return isInstance; +} + +export function IoK8sApiStorageV1CSIStorageCapacityFromJSON(json: any): IoK8sApiStorageV1CSIStorageCapacity { + return IoK8sApiStorageV1CSIStorageCapacityFromJSONTyped(json, false); +} + +export function IoK8sApiStorageV1CSIStorageCapacityFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiStorageV1CSIStorageCapacity { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'capacity': !exists(json, 'capacity') ? undefined : json['capacity'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'maximumVolumeSize': !exists(json, 'maximumVolumeSize') ? undefined : json['maximumVolumeSize'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'nodeTopology': !exists(json, 'nodeTopology') ? undefined : IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['nodeTopology']), + 'storageClassName': json['storageClassName'], + }; +} + +export function IoK8sApiStorageV1CSIStorageCapacityToJSON(value?: IoK8sApiStorageV1CSIStorageCapacity | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'capacity': value.capacity, + 'kind': value.kind, + 'maximumVolumeSize': value.maximumVolumeSize, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'nodeTopology': IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value.nodeTopology), + 'storageClassName': value.storageClassName, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSIStorageCapacityList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSIStorageCapacityList.ts new file mode 100644 index 000000000..c90c3db4b --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1CSIStorageCapacityList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiStorageV1CSIStorageCapacity } from './IoK8sApiStorageV1CSIStorageCapacity'; +import { + IoK8sApiStorageV1CSIStorageCapacityFromJSON, + IoK8sApiStorageV1CSIStorageCapacityFromJSONTyped, + IoK8sApiStorageV1CSIStorageCapacityToJSON, +} from './IoK8sApiStorageV1CSIStorageCapacity'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * CSIStorageCapacityList is a collection of CSIStorageCapacity objects. + * @export + * @interface IoK8sApiStorageV1CSIStorageCapacityList + */ +export interface IoK8sApiStorageV1CSIStorageCapacityList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiStorageV1CSIStorageCapacityList + */ + apiVersion?: string; + /** + * items is the list of CSIStorageCapacity objects. + * @type {Array} + * @memberof IoK8sApiStorageV1CSIStorageCapacityList + */ + 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 + * @type {string} + * @memberof IoK8sApiStorageV1CSIStorageCapacityList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiStorageV1CSIStorageCapacityList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiStorageV1CSIStorageCapacityList interface. + */ +export function instanceOfIoK8sApiStorageV1CSIStorageCapacityList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiStorageV1CSIStorageCapacityListFromJSON(json: any): IoK8sApiStorageV1CSIStorageCapacityList { + return IoK8sApiStorageV1CSIStorageCapacityListFromJSONTyped(json, false); +} + +export function IoK8sApiStorageV1CSIStorageCapacityListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiStorageV1CSIStorageCapacityList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiStorageV1CSIStorageCapacityFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiStorageV1CSIStorageCapacityListToJSON(value?: IoK8sApiStorageV1CSIStorageCapacityList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiStorageV1CSIStorageCapacityToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1StorageClass.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1StorageClass.ts new file mode 100644 index 000000000..f6131e22d --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1StorageClass.ts @@ -0,0 +1,153 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1TopologySelectorTerm } from './IoK8sApiCoreV1TopologySelectorTerm'; +import { + IoK8sApiCoreV1TopologySelectorTermFromJSON, + IoK8sApiCoreV1TopologySelectorTermFromJSONTyped, + IoK8sApiCoreV1TopologySelectorTermToJSON, +} from './IoK8sApiCoreV1TopologySelectorTerm'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. + * + * StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. + * @export + * @interface IoK8sApiStorageV1StorageClass + */ +export interface IoK8sApiStorageV1StorageClass { + /** + * allowVolumeExpansion shows whether the storage class allow volume expand. + * @type {boolean} + * @memberof IoK8sApiStorageV1StorageClass + */ + allowVolumeExpansion?: boolean; + /** + * allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. + * @type {Array} + * @memberof IoK8sApiStorageV1StorageClass + */ + allowedTopologies?: Array; + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiStorageV1StorageClass + */ + 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 + * @type {string} + * @memberof IoK8sApiStorageV1StorageClass + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiStorageV1StorageClass + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. + * @type {Array} + * @memberof IoK8sApiStorageV1StorageClass + */ + mountOptions?: string[]; + /** + * parameters holds the parameters for the provisioner that should create volumes of this storage class. + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiStorageV1StorageClass + */ + parameters?: { [key: string]: string; }; + /** + * provisioner indicates the type of the provisioner. + * @type {string} + * @memberof IoK8sApiStorageV1StorageClass + */ + provisioner: string; + /** + * reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete. + * @type {string} + * @memberof IoK8sApiStorageV1StorageClass + */ + reclaimPolicy?: string; + /** + * volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. + * @type {string} + * @memberof IoK8sApiStorageV1StorageClass + */ + volumeBindingMode?: string; +} + +/** + * Check if a given object implements the IoK8sApiStorageV1StorageClass interface. + */ +export function instanceOfIoK8sApiStorageV1StorageClass(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "provisioner" in value; + + return isInstance; +} + +export function IoK8sApiStorageV1StorageClassFromJSON(json: any): IoK8sApiStorageV1StorageClass { + return IoK8sApiStorageV1StorageClassFromJSONTyped(json, false); +} + +export function IoK8sApiStorageV1StorageClassFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiStorageV1StorageClass { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'allowVolumeExpansion': !exists(json, 'allowVolumeExpansion') ? undefined : json['allowVolumeExpansion'], + 'allowedTopologies': !exists(json, 'allowedTopologies') ? undefined : ((json['allowedTopologies'] as Array).map(IoK8sApiCoreV1TopologySelectorTermFromJSON)), + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'mountOptions': !exists(json, 'mountOptions') ? undefined : json['mountOptions'], + 'parameters': !exists(json, 'parameters') ? undefined : json['parameters'], + 'provisioner': json['provisioner'], + 'reclaimPolicy': !exists(json, 'reclaimPolicy') ? undefined : json['reclaimPolicy'], + 'volumeBindingMode': !exists(json, 'volumeBindingMode') ? undefined : json['volumeBindingMode'], + }; +} + +export function IoK8sApiStorageV1StorageClassToJSON(value?: IoK8sApiStorageV1StorageClass | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'allowVolumeExpansion': value.allowVolumeExpansion, + 'allowedTopologies': value.allowedTopologies === undefined ? undefined : ((value.allowedTopologies as Array).map(IoK8sApiCoreV1TopologySelectorTermToJSON)), + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'mountOptions': value.mountOptions, + 'parameters': value.parameters, + 'provisioner': value.provisioner, + 'reclaimPolicy': value.reclaimPolicy, + 'volumeBindingMode': value.volumeBindingMode, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1StorageClassList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1StorageClassList.ts new file mode 100644 index 000000000..c1d67fd4d --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1StorageClassList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiStorageV1StorageClass } from './IoK8sApiStorageV1StorageClass'; +import { + IoK8sApiStorageV1StorageClassFromJSON, + IoK8sApiStorageV1StorageClassFromJSONTyped, + IoK8sApiStorageV1StorageClassToJSON, +} from './IoK8sApiStorageV1StorageClass'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * StorageClassList is a collection of storage classes. + * @export + * @interface IoK8sApiStorageV1StorageClassList + */ +export interface IoK8sApiStorageV1StorageClassList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiStorageV1StorageClassList + */ + apiVersion?: string; + /** + * items is the list of StorageClasses + * @type {Array} + * @memberof IoK8sApiStorageV1StorageClassList + */ + 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 + * @type {string} + * @memberof IoK8sApiStorageV1StorageClassList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiStorageV1StorageClassList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiStorageV1StorageClassList interface. + */ +export function instanceOfIoK8sApiStorageV1StorageClassList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiStorageV1StorageClassListFromJSON(json: any): IoK8sApiStorageV1StorageClassList { + return IoK8sApiStorageV1StorageClassListFromJSONTyped(json, false); +} + +export function IoK8sApiStorageV1StorageClassListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiStorageV1StorageClassList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiStorageV1StorageClassFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiStorageV1StorageClassListToJSON(value?: IoK8sApiStorageV1StorageClassList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiStorageV1StorageClassToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1TokenRequest.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1TokenRequest.ts new file mode 100644 index 000000000..46b71ddb7 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1TokenRequest.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * TokenRequest contains parameters of a service account token. + * @export + * @interface IoK8sApiStorageV1TokenRequest + */ +export interface IoK8sApiStorageV1TokenRequest { + /** + * audience is the intended audience of the token in "TokenRequestSpec". It will default to the audiences of kube apiserver. + * @type {string} + * @memberof IoK8sApiStorageV1TokenRequest + */ + audience: string; + /** + * expirationSeconds is the duration of validity of the token in "TokenRequestSpec". It has the same default value of "ExpirationSeconds" in "TokenRequestSpec". + * @type {number} + * @memberof IoK8sApiStorageV1TokenRequest + */ + expirationSeconds?: number; +} + +/** + * Check if a given object implements the IoK8sApiStorageV1TokenRequest interface. + */ +export function instanceOfIoK8sApiStorageV1TokenRequest(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "audience" in value; + + return isInstance; +} + +export function IoK8sApiStorageV1TokenRequestFromJSON(json: any): IoK8sApiStorageV1TokenRequest { + return IoK8sApiStorageV1TokenRequestFromJSONTyped(json, false); +} + +export function IoK8sApiStorageV1TokenRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiStorageV1TokenRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'audience': json['audience'], + 'expirationSeconds': !exists(json, 'expirationSeconds') ? undefined : json['expirationSeconds'], + }; +} + +export function IoK8sApiStorageV1TokenRequestToJSON(value?: IoK8sApiStorageV1TokenRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'audience': value.audience, + 'expirationSeconds': value.expirationSeconds, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1VolumeAttachment.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1VolumeAttachment.ts new file mode 100644 index 000000000..96534c8ab --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1VolumeAttachment.ts @@ -0,0 +1,119 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiStorageV1VolumeAttachmentSpec } from './IoK8sApiStorageV1VolumeAttachmentSpec'; +import { + IoK8sApiStorageV1VolumeAttachmentSpecFromJSON, + IoK8sApiStorageV1VolumeAttachmentSpecFromJSONTyped, + IoK8sApiStorageV1VolumeAttachmentSpecToJSON, +} from './IoK8sApiStorageV1VolumeAttachmentSpec'; +import type { IoK8sApiStorageV1VolumeAttachmentStatus } from './IoK8sApiStorageV1VolumeAttachmentStatus'; +import { + IoK8sApiStorageV1VolumeAttachmentStatusFromJSON, + IoK8sApiStorageV1VolumeAttachmentStatusFromJSONTyped, + IoK8sApiStorageV1VolumeAttachmentStatusToJSON, +} from './IoK8sApiStorageV1VolumeAttachmentStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. + * + * VolumeAttachment objects are non-namespaced. + * @export + * @interface IoK8sApiStorageV1VolumeAttachment + */ +export interface IoK8sApiStorageV1VolumeAttachment { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiStorageV1VolumeAttachment + */ + 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 + * @type {string} + * @memberof IoK8sApiStorageV1VolumeAttachment + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiStorageV1VolumeAttachment + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiStorageV1VolumeAttachmentSpec} + * @memberof IoK8sApiStorageV1VolumeAttachment + */ + spec: IoK8sApiStorageV1VolumeAttachmentSpec; + /** + * + * @type {IoK8sApiStorageV1VolumeAttachmentStatus} + * @memberof IoK8sApiStorageV1VolumeAttachment + */ + status?: IoK8sApiStorageV1VolumeAttachmentStatus; +} + +/** + * Check if a given object implements the IoK8sApiStorageV1VolumeAttachment interface. + */ +export function instanceOfIoK8sApiStorageV1VolumeAttachment(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function IoK8sApiStorageV1VolumeAttachmentFromJSON(json: any): IoK8sApiStorageV1VolumeAttachment { + return IoK8sApiStorageV1VolumeAttachmentFromJSONTyped(json, false); +} + +export function IoK8sApiStorageV1VolumeAttachmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiStorageV1VolumeAttachment { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': IoK8sApiStorageV1VolumeAttachmentSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiStorageV1VolumeAttachmentStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiStorageV1VolumeAttachmentToJSON(value?: IoK8sApiStorageV1VolumeAttachment | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiStorageV1VolumeAttachmentSpecToJSON(value.spec), + 'status': IoK8sApiStorageV1VolumeAttachmentStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1VolumeAttachmentList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1VolumeAttachmentList.ts new file mode 100644 index 000000000..7284617a3 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1VolumeAttachmentList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiStorageV1VolumeAttachment } from './IoK8sApiStorageV1VolumeAttachment'; +import { + IoK8sApiStorageV1VolumeAttachmentFromJSON, + IoK8sApiStorageV1VolumeAttachmentFromJSONTyped, + IoK8sApiStorageV1VolumeAttachmentToJSON, +} from './IoK8sApiStorageV1VolumeAttachment'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * VolumeAttachmentList is a collection of VolumeAttachment objects. + * @export + * @interface IoK8sApiStorageV1VolumeAttachmentList + */ +export interface IoK8sApiStorageV1VolumeAttachmentList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiStorageV1VolumeAttachmentList + */ + apiVersion?: string; + /** + * items is the list of VolumeAttachments + * @type {Array} + * @memberof IoK8sApiStorageV1VolumeAttachmentList + */ + 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 + * @type {string} + * @memberof IoK8sApiStorageV1VolumeAttachmentList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiStorageV1VolumeAttachmentList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiStorageV1VolumeAttachmentList interface. + */ +export function instanceOfIoK8sApiStorageV1VolumeAttachmentList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiStorageV1VolumeAttachmentListFromJSON(json: any): IoK8sApiStorageV1VolumeAttachmentList { + return IoK8sApiStorageV1VolumeAttachmentListFromJSONTyped(json, false); +} + +export function IoK8sApiStorageV1VolumeAttachmentListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiStorageV1VolumeAttachmentList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiStorageV1VolumeAttachmentFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiStorageV1VolumeAttachmentListToJSON(value?: IoK8sApiStorageV1VolumeAttachmentList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiStorageV1VolumeAttachmentToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1VolumeAttachmentSource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1VolumeAttachmentSource.ts new file mode 100644 index 000000000..3e4239b5c --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1VolumeAttachmentSource.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiCoreV1PersistentVolumeSpec } from './IoK8sApiCoreV1PersistentVolumeSpec'; +import { + IoK8sApiCoreV1PersistentVolumeSpecFromJSON, + IoK8sApiCoreV1PersistentVolumeSpecFromJSONTyped, + IoK8sApiCoreV1PersistentVolumeSpecToJSON, +} from './IoK8sApiCoreV1PersistentVolumeSpec'; + +/** + * VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set. + * @export + * @interface IoK8sApiStorageV1VolumeAttachmentSource + */ +export interface IoK8sApiStorageV1VolumeAttachmentSource { + /** + * + * @type {IoK8sApiCoreV1PersistentVolumeSpec} + * @memberof IoK8sApiStorageV1VolumeAttachmentSource + */ + inlineVolumeSpec?: IoK8sApiCoreV1PersistentVolumeSpec; + /** + * persistentVolumeName represents the name of the persistent volume to attach. + * @type {string} + * @memberof IoK8sApiStorageV1VolumeAttachmentSource + */ + persistentVolumeName?: string; +} + +/** + * Check if a given object implements the IoK8sApiStorageV1VolumeAttachmentSource interface. + */ +export function instanceOfIoK8sApiStorageV1VolumeAttachmentSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiStorageV1VolumeAttachmentSourceFromJSON(json: any): IoK8sApiStorageV1VolumeAttachmentSource { + return IoK8sApiStorageV1VolumeAttachmentSourceFromJSONTyped(json, false); +} + +export function IoK8sApiStorageV1VolumeAttachmentSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiStorageV1VolumeAttachmentSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'inlineVolumeSpec': !exists(json, 'inlineVolumeSpec') ? undefined : IoK8sApiCoreV1PersistentVolumeSpecFromJSON(json['inlineVolumeSpec']), + 'persistentVolumeName': !exists(json, 'persistentVolumeName') ? undefined : json['persistentVolumeName'], + }; +} + +export function IoK8sApiStorageV1VolumeAttachmentSourceToJSON(value?: IoK8sApiStorageV1VolumeAttachmentSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'inlineVolumeSpec': IoK8sApiCoreV1PersistentVolumeSpecToJSON(value.inlineVolumeSpec), + 'persistentVolumeName': value.persistentVolumeName, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1VolumeAttachmentSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1VolumeAttachmentSpec.ts new file mode 100644 index 000000000..df613ef1c --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1VolumeAttachmentSpec.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiStorageV1VolumeAttachmentSource } from './IoK8sApiStorageV1VolumeAttachmentSource'; +import { + IoK8sApiStorageV1VolumeAttachmentSourceFromJSON, + IoK8sApiStorageV1VolumeAttachmentSourceFromJSONTyped, + IoK8sApiStorageV1VolumeAttachmentSourceToJSON, +} from './IoK8sApiStorageV1VolumeAttachmentSource'; + +/** + * VolumeAttachmentSpec is the specification of a VolumeAttachment request. + * @export + * @interface IoK8sApiStorageV1VolumeAttachmentSpec + */ +export interface IoK8sApiStorageV1VolumeAttachmentSpec { + /** + * attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). + * @type {string} + * @memberof IoK8sApiStorageV1VolumeAttachmentSpec + */ + attacher: string; + /** + * nodeName represents the node that the volume should be attached to. + * @type {string} + * @memberof IoK8sApiStorageV1VolumeAttachmentSpec + */ + nodeName: string; + /** + * + * @type {IoK8sApiStorageV1VolumeAttachmentSource} + * @memberof IoK8sApiStorageV1VolumeAttachmentSpec + */ + source: IoK8sApiStorageV1VolumeAttachmentSource; +} + +/** + * Check if a given object implements the IoK8sApiStorageV1VolumeAttachmentSpec interface. + */ +export function instanceOfIoK8sApiStorageV1VolumeAttachmentSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "attacher" in value; + isInstance = isInstance && "nodeName" in value; + isInstance = isInstance && "source" in value; + + return isInstance; +} + +export function IoK8sApiStorageV1VolumeAttachmentSpecFromJSON(json: any): IoK8sApiStorageV1VolumeAttachmentSpec { + return IoK8sApiStorageV1VolumeAttachmentSpecFromJSONTyped(json, false); +} + +export function IoK8sApiStorageV1VolumeAttachmentSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiStorageV1VolumeAttachmentSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'attacher': json['attacher'], + 'nodeName': json['nodeName'], + 'source': IoK8sApiStorageV1VolumeAttachmentSourceFromJSON(json['source']), + }; +} + +export function IoK8sApiStorageV1VolumeAttachmentSpecToJSON(value?: IoK8sApiStorageV1VolumeAttachmentSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'attacher': value.attacher, + 'nodeName': value.nodeName, + 'source': IoK8sApiStorageV1VolumeAttachmentSourceToJSON(value.source), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1VolumeAttachmentStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1VolumeAttachmentStatus.ts new file mode 100644 index 000000000..1f74cb04b --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1VolumeAttachmentStatus.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiStorageV1VolumeError } from './IoK8sApiStorageV1VolumeError'; +import { + IoK8sApiStorageV1VolumeErrorFromJSON, + IoK8sApiStorageV1VolumeErrorFromJSONTyped, + IoK8sApiStorageV1VolumeErrorToJSON, +} from './IoK8sApiStorageV1VolumeError'; + +/** + * VolumeAttachmentStatus is the status of a VolumeAttachment request. + * @export + * @interface IoK8sApiStorageV1VolumeAttachmentStatus + */ +export interface IoK8sApiStorageV1VolumeAttachmentStatus { + /** + * + * @type {IoK8sApiStorageV1VolumeError} + * @memberof IoK8sApiStorageV1VolumeAttachmentStatus + */ + attachError?: IoK8sApiStorageV1VolumeError; + /** + * attached indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * @type {boolean} + * @memberof IoK8sApiStorageV1VolumeAttachmentStatus + */ + attached: boolean; + /** + * attachmentMetadata is populated with any information returned by the attach operation, upon successful attach, that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiStorageV1VolumeAttachmentStatus + */ + attachmentMetadata?: { [key: string]: string; }; + /** + * + * @type {IoK8sApiStorageV1VolumeError} + * @memberof IoK8sApiStorageV1VolumeAttachmentStatus + */ + detachError?: IoK8sApiStorageV1VolumeError; +} + +/** + * Check if a given object implements the IoK8sApiStorageV1VolumeAttachmentStatus interface. + */ +export function instanceOfIoK8sApiStorageV1VolumeAttachmentStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "attached" in value; + + return isInstance; +} + +export function IoK8sApiStorageV1VolumeAttachmentStatusFromJSON(json: any): IoK8sApiStorageV1VolumeAttachmentStatus { + return IoK8sApiStorageV1VolumeAttachmentStatusFromJSONTyped(json, false); +} + +export function IoK8sApiStorageV1VolumeAttachmentStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiStorageV1VolumeAttachmentStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'attachError': !exists(json, 'attachError') ? undefined : IoK8sApiStorageV1VolumeErrorFromJSON(json['attachError']), + 'attached': json['attached'], + 'attachmentMetadata': !exists(json, 'attachmentMetadata') ? undefined : json['attachmentMetadata'], + 'detachError': !exists(json, 'detachError') ? undefined : IoK8sApiStorageV1VolumeErrorFromJSON(json['detachError']), + }; +} + +export function IoK8sApiStorageV1VolumeAttachmentStatusToJSON(value?: IoK8sApiStorageV1VolumeAttachmentStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'attachError': IoK8sApiStorageV1VolumeErrorToJSON(value.attachError), + 'attached': value.attached, + 'attachmentMetadata': value.attachmentMetadata, + 'detachError': IoK8sApiStorageV1VolumeErrorToJSON(value.detachError), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1VolumeError.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1VolumeError.ts new file mode 100644 index 000000000..836d4d272 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1VolumeError.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * VolumeError captures an error encountered during a volume operation. + * @export + * @interface IoK8sApiStorageV1VolumeError + */ +export interface IoK8sApiStorageV1VolumeError { + /** + * message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. + * @type {string} + * @memberof IoK8sApiStorageV1VolumeError + */ + message?: string; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiStorageV1VolumeError + */ + time?: string; +} + +/** + * Check if a given object implements the IoK8sApiStorageV1VolumeError interface. + */ +export function instanceOfIoK8sApiStorageV1VolumeError(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiStorageV1VolumeErrorFromJSON(json: any): IoK8sApiStorageV1VolumeError { + return IoK8sApiStorageV1VolumeErrorFromJSONTyped(json, false); +} + +export function IoK8sApiStorageV1VolumeErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiStorageV1VolumeError { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'message': !exists(json, 'message') ? undefined : json['message'], + 'time': !exists(json, 'time') ? undefined : json['time'], + }; +} + +export function IoK8sApiStorageV1VolumeErrorToJSON(value?: IoK8sApiStorageV1VolumeError | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'message': value.message, + 'time': value.time === undefined ? undefined : (value.time), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1VolumeNodeResources.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1VolumeNodeResources.ts new file mode 100644 index 000000000..b260c98cc --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1VolumeNodeResources.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * VolumeNodeResources is a set of resource limits for scheduling of volumes. + * @export + * @interface IoK8sApiStorageV1VolumeNodeResources + */ +export interface IoK8sApiStorageV1VolumeNodeResources { + /** + * count indicates the maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded. + * @type {number} + * @memberof IoK8sApiStorageV1VolumeNodeResources + */ + count?: number; +} + +/** + * Check if a given object implements the IoK8sApiStorageV1VolumeNodeResources interface. + */ +export function instanceOfIoK8sApiStorageV1VolumeNodeResources(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiStorageV1VolumeNodeResourcesFromJSON(json: any): IoK8sApiStorageV1VolumeNodeResources { + return IoK8sApiStorageV1VolumeNodeResourcesFromJSONTyped(json, false); +} + +export function IoK8sApiStorageV1VolumeNodeResourcesFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiStorageV1VolumeNodeResources { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'count': !exists(json, 'count') ? undefined : json['count'], + }; +} + +export function IoK8sApiStorageV1VolumeNodeResourcesToJSON(value?: IoK8sApiStorageV1VolumeNodeResources | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'count': value.count, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1alpha1VolumeAttributesClass.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1alpha1VolumeAttributesClass.ts new file mode 100644 index 000000000..763e1d8cb --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1alpha1VolumeAttributesClass.ts @@ -0,0 +1,107 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning. + * @export + * @interface IoK8sApiStorageV1alpha1VolumeAttributesClass + */ +export interface IoK8sApiStorageV1alpha1VolumeAttributesClass { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiStorageV1alpha1VolumeAttributesClass + */ + apiVersion?: string; + /** + * Name of the CSI driver This field is immutable. + * @type {string} + * @memberof IoK8sApiStorageV1alpha1VolumeAttributesClass + */ + driverName: 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 + * @type {string} + * @memberof IoK8sApiStorageV1alpha1VolumeAttributesClass + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiStorageV1alpha1VolumeAttributesClass + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass. + * + * This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an "Infeasible" state in the modifyVolumeStatus field. + * @type {{ [key: string]: string; }} + * @memberof IoK8sApiStorageV1alpha1VolumeAttributesClass + */ + parameters?: { [key: string]: string; }; +} + +/** + * Check if a given object implements the IoK8sApiStorageV1alpha1VolumeAttributesClass interface. + */ +export function instanceOfIoK8sApiStorageV1alpha1VolumeAttributesClass(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "driverName" in value; + + return isInstance; +} + +export function IoK8sApiStorageV1alpha1VolumeAttributesClassFromJSON(json: any): IoK8sApiStorageV1alpha1VolumeAttributesClass { + return IoK8sApiStorageV1alpha1VolumeAttributesClassFromJSONTyped(json, false); +} + +export function IoK8sApiStorageV1alpha1VolumeAttributesClassFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiStorageV1alpha1VolumeAttributesClass { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'driverName': json['driverName'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'parameters': !exists(json, 'parameters') ? undefined : json['parameters'], + }; +} + +export function IoK8sApiStorageV1alpha1VolumeAttributesClassToJSON(value?: IoK8sApiStorageV1alpha1VolumeAttributesClass | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'driverName': value.driverName, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'parameters': value.parameters, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1alpha1VolumeAttributesClassList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1alpha1VolumeAttributesClassList.ts new file mode 100644 index 000000000..2d11c2285 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiStorageV1alpha1VolumeAttributesClassList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiStorageV1alpha1VolumeAttributesClass } from './IoK8sApiStorageV1alpha1VolumeAttributesClass'; +import { + IoK8sApiStorageV1alpha1VolumeAttributesClassFromJSON, + IoK8sApiStorageV1alpha1VolumeAttributesClassFromJSONTyped, + IoK8sApiStorageV1alpha1VolumeAttributesClassToJSON, +} from './IoK8sApiStorageV1alpha1VolumeAttributesClass'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * VolumeAttributesClassList is a collection of VolumeAttributesClass objects. + * @export + * @interface IoK8sApiStorageV1alpha1VolumeAttributesClassList + */ +export interface IoK8sApiStorageV1alpha1VolumeAttributesClassList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiStorageV1alpha1VolumeAttributesClassList + */ + apiVersion?: string; + /** + * items is the list of VolumeAttributesClass objects. + * @type {Array} + * @memberof IoK8sApiStorageV1alpha1VolumeAttributesClassList + */ + 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 + * @type {string} + * @memberof IoK8sApiStorageV1alpha1VolumeAttributesClassList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiStorageV1alpha1VolumeAttributesClassList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiStorageV1alpha1VolumeAttributesClassList interface. + */ +export function instanceOfIoK8sApiStorageV1alpha1VolumeAttributesClassList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiStorageV1alpha1VolumeAttributesClassListFromJSON(json: any): IoK8sApiStorageV1alpha1VolumeAttributesClassList { + return IoK8sApiStorageV1alpha1VolumeAttributesClassListFromJSONTyped(json, false); +} + +export function IoK8sApiStorageV1alpha1VolumeAttributesClassListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiStorageV1alpha1VolumeAttributesClassList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiStorageV1alpha1VolumeAttributesClassFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiStorageV1alpha1VolumeAttributesClassListToJSON(value?: IoK8sApiStorageV1alpha1VolumeAttributesClassList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiStorageV1alpha1VolumeAttributesClassToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinition.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinition.ts new file mode 100644 index 000000000..09fc46361 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinition.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * CustomResourceColumnDefinition specifies a column for server side printing. + * @export + * @interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinition + */ +export interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinition { + /** + * description is a human readable description of this column. + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinition + */ + description?: string; + /** + * format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinition + */ + format?: string; + /** + * jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column. + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinition + */ + jsonPath: string; + /** + * name is a human readable name for the column. + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinition + */ + name: string; + /** + * priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0. + * @type {number} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinition + */ + priority?: number; + /** + * type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinition + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinition interface. + */ +export function instanceOfIoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "jsonPath" in value; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinitionFromJSON(json: any): IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinition { + return IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinitionFromJSONTyped(json, false); +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinitionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'description': !exists(json, 'description') ? undefined : json['description'], + 'format': !exists(json, 'format') ? undefined : json['format'], + 'jsonPath': json['jsonPath'], + 'name': json['name'], + 'priority': !exists(json, 'priority') ? undefined : json['priority'], + 'type': json['type'], + }; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinitionToJSON(value?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'description': value.description, + 'format': value.format, + 'jsonPath': value.jsonPath, + 'name': value.name, + 'priority': value.priority, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceConversion.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceConversion.ts new file mode 100644 index 000000000..2ed8fbf9e --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceConversion.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookConversion } from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookConversion'; +import { + IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookConversionFromJSON, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookConversionFromJSONTyped, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookConversionToJSON, +} from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookConversion'; + +/** + * CustomResourceConversion describes how to convert different versions of a CR. + * @export + * @interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceConversion + */ +export interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceConversion { + /** + * strategy specifies how custom resources are converted between versions. Allowed values are: - `"None"`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `"Webhook"`: API Server will call to an external webhook to do the conversion. Additional information + * is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set. + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceConversion + */ + strategy: string; + /** + * + * @type {IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookConversion} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceConversion + */ + webhook?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookConversion; +} + +/** + * Check if a given object implements the IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceConversion interface. + */ +export function instanceOfIoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceConversion(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "strategy" in value; + + return isInstance; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceConversionFromJSON(json: any): IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceConversion { + return IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceConversionFromJSONTyped(json, false); +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceConversionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceConversion { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'strategy': json['strategy'], + 'webhook': !exists(json, 'webhook') ? undefined : IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookConversionFromJSON(json['webhook']), + }; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceConversionToJSON(value?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceConversion | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'strategy': value.strategy, + 'webhook': IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookConversionToJSON(value.webhook), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinition.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinition.ts new file mode 100644 index 000000000..7d2ef4a60 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinition.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpec } from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpec'; +import { + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpecFromJSON, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpecFromJSONTyped, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpecToJSON, +} from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpec'; +import type { IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatus } from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatus'; +import { + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatusFromJSON, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatusFromJSONTyped, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatusToJSON, +} from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. + * @export + * @interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinition + */ +export interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinition { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinition + */ + 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 + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinition + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinition + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpec} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinition + */ + spec: IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpec; + /** + * + * @type {IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatus} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinition + */ + status?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatus; +} + +/** + * Check if a given object implements the IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinition interface. + */ +export function instanceOfIoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionFromJSON(json: any): IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinition { + return IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionFromJSONTyped(json, false); +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatusFromJSON(json['status']), + }; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionToJSON(value?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpecToJSON(value.spec), + 'status': IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionCondition.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionCondition.ts new file mode 100644 index 000000000..993861b55 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionCondition.ts @@ -0,0 +1,99 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * CustomResourceDefinitionCondition contains details for the current condition of this pod. + * @export + * @interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionCondition + */ +export interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionCondition { + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionCondition + */ + lastTransitionTime?: string; + /** + * message is a human-readable message indicating details about last transition. + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionCondition + */ + message?: string; + /** + * reason is a unique, one-word, CamelCase reason for the condition's last transition. + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionCondition + */ + reason?: string; + /** + * status is the status of the condition. Can be True, False, Unknown. + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionCondition + */ + status: string; + /** + * type is the type of the condition. Types include Established, NamesAccepted and Terminating. + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionCondition + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionCondition interface. + */ +export function instanceOfIoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionCondition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "status" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionConditionFromJSON(json: any): IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionCondition { + return IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionConditionFromJSONTyped(json, false); +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'lastTransitionTime': !exists(json, 'lastTransitionTime') ? undefined : json['lastTransitionTime'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'status': json['status'], + 'type': json['type'], + }; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionConditionToJSON(value?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'lastTransitionTime': value.lastTransitionTime === undefined ? undefined : (value.lastTransitionTime), + 'message': value.message, + 'reason': value.reason, + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionList.ts new file mode 100644 index 000000000..6948c79c6 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinition } from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinition'; +import { + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionFromJSON, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionFromJSONTyped, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionToJSON, +} from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinition'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * CustomResourceDefinitionList is a list of CustomResourceDefinition objects. + * @export + * @interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionList + */ +export interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionList + */ + apiVersion?: string; + /** + * items list individual CustomResourceDefinition objects + * @type {Array} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionList + */ + 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 + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionList interface. + */ +export function instanceOfIoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionListFromJSON(json: any): IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionList { + return IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionListFromJSONTyped(json, false); +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionListToJSON(value?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames.ts new file mode 100644 index 000000000..f7a796fba --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames.ts @@ -0,0 +1,107 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition + * @export + * @interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames + */ +export interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames { + /** + * categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. + * @type {Array} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames + */ + categories?: string[]; + /** + * kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames + */ + kind: string; + /** + * listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames + */ + listKind?: string; + /** + * plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase. + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames + */ + plural: string; + /** + * shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase. + * @type {Array} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames + */ + shortNames?: string[]; + /** + * singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames + */ + singular?: string; +} + +/** + * Check if a given object implements the IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames interface. + */ +export function instanceOfIoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "kind" in value; + isInstance = isInstance && "plural" in value; + + return isInstance; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNamesFromJSON(json: any): IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames { + return IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNamesFromJSONTyped(json, false); +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNamesFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'categories': !exists(json, 'categories') ? undefined : json['categories'], + 'kind': json['kind'], + 'listKind': !exists(json, 'listKind') ? undefined : json['listKind'], + 'plural': json['plural'], + 'shortNames': !exists(json, 'shortNames') ? undefined : json['shortNames'], + 'singular': !exists(json, 'singular') ? undefined : json['singular'], + }; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNamesToJSON(value?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'categories': value.categories, + 'kind': value.kind, + 'listKind': value.listKind, + 'plural': value.plural, + 'shortNames': value.shortNames, + 'singular': value.singular, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpec.ts new file mode 100644 index 000000000..dddc41c03 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpec.ts @@ -0,0 +1,128 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceConversion } from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceConversion'; +import { + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceConversionFromJSON, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceConversionFromJSONTyped, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceConversionToJSON, +} from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceConversion'; +import type { IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames } from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames'; +import { + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNamesFromJSON, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNamesFromJSONTyped, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNamesToJSON, +} from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames'; +import type { IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersion } from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersion'; +import { + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersionFromJSON, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersionFromJSONTyped, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersionToJSON, +} from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersion'; + +/** + * CustomResourceDefinitionSpec describes how a user wants their resource to appear + * @export + * @interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpec + */ +export interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpec { + /** + * + * @type {IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceConversion} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpec + */ + conversion?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceConversion; + /** + * group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`). + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpec + */ + group: string; + /** + * + * @type {IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpec + */ + names: IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames; + /** + * preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning for details. + * @type {boolean} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpec + */ + preserveUnknownFields?: boolean; + /** + * scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpec + */ + scope: string; + /** + * versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. + * @type {Array} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpec + */ + versions: Array; +} + +/** + * Check if a given object implements the IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpec interface. + */ +export function instanceOfIoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "group" in value; + isInstance = isInstance && "names" in value; + isInstance = isInstance && "scope" in value; + isInstance = isInstance && "versions" in value; + + return isInstance; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpecFromJSON(json: any): IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpec { + return IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpecFromJSONTyped(json, false); +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'conversion': !exists(json, 'conversion') ? undefined : IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceConversionFromJSON(json['conversion']), + 'group': json['group'], + 'names': IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNamesFromJSON(json['names']), + 'preserveUnknownFields': !exists(json, 'preserveUnknownFields') ? undefined : json['preserveUnknownFields'], + 'scope': json['scope'], + 'versions': ((json['versions'] as Array).map(IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersionFromJSON)), + }; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpecToJSON(value?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'conversion': IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceConversionToJSON(value.conversion), + 'group': value.group, + 'names': IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNamesToJSON(value.names), + 'preserveUnknownFields': value.preserveUnknownFields, + 'scope': value.scope, + 'versions': ((value.versions as Array).map(IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersionToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatus.ts new file mode 100644 index 000000000..9c86b26c2 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatus.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionCondition } from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionCondition'; +import { + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionConditionFromJSON, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionConditionFromJSONTyped, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionConditionToJSON, +} from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionCondition'; +import type { IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames } from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames'; +import { + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNamesFromJSON, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNamesFromJSONTyped, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNamesToJSON, +} from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames'; + +/** + * CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition + * @export + * @interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatus + */ +export interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatus { + /** + * + * @type {IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatus + */ + acceptedNames?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames; + /** + * conditions indicate state for particular aspects of a CustomResourceDefinition + * @type {Array} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatus + */ + conditions?: Array; + /** + * storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list. + * @type {Array} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatus + */ + storedVersions?: string[]; +} + +/** + * Check if a given object implements the IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatus interface. + */ +export function instanceOfIoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatusFromJSON(json: any): IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatus { + return IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatusFromJSONTyped(json, false); +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'acceptedNames': !exists(json, 'acceptedNames') ? undefined : IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNamesFromJSON(json['acceptedNames']), + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionConditionFromJSON)), + 'storedVersions': !exists(json, 'storedVersions') ? undefined : json['storedVersions'], + }; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatusToJSON(value?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'acceptedNames': IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNamesToJSON(value.acceptedNames), + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionConditionToJSON)), + 'storedVersions': value.storedVersions, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersion.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersion.ts new file mode 100644 index 000000000..1a58fbcc5 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersion.ts @@ -0,0 +1,143 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinition } from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinition'; +import { + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinitionFromJSON, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinitionFromJSONTyped, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinitionToJSON, +} from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinition'; +import type { IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresources } from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresources'; +import { + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourcesFromJSON, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourcesFromJSONTyped, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourcesToJSON, +} from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresources'; +import type { IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidation } from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidation'; +import { + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidationFromJSON, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidationFromJSONTyped, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidationToJSON, +} from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidation'; + +/** + * CustomResourceDefinitionVersion describes a version for CRD. + * @export + * @interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersion + */ +export interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersion { + /** + * additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used. + * @type {Array} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersion + */ + additionalPrinterColumns?: Array; + /** + * deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false. + * @type {boolean} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersion + */ + deprecated?: boolean; + /** + * deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists. + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersion + */ + deprecationWarning?: string; + /** + * name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis///...` if `served` is true. + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersion + */ + name: string; + /** + * + * @type {IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidation} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersion + */ + schema?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidation; + /** + * served is a flag enabling/disabling this version from being served via REST APIs + * @type {boolean} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersion + */ + served: boolean; + /** + * storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true. + * @type {boolean} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersion + */ + storage: boolean; + /** + * + * @type {IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresources} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersion + */ + subresources?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresources; +} + +/** + * Check if a given object implements the IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersion interface. + */ +export function instanceOfIoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersion(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "served" in value; + isInstance = isInstance && "storage" in value; + + return isInstance; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersionFromJSON(json: any): IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersion { + return IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersionFromJSONTyped(json, false); +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersion { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'additionalPrinterColumns': !exists(json, 'additionalPrinterColumns') ? undefined : ((json['additionalPrinterColumns'] as Array).map(IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinitionFromJSON)), + 'deprecated': !exists(json, 'deprecated') ? undefined : json['deprecated'], + 'deprecationWarning': !exists(json, 'deprecationWarning') ? undefined : json['deprecationWarning'], + 'name': json['name'], + 'schema': !exists(json, 'schema') ? undefined : IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidationFromJSON(json['schema']), + 'served': json['served'], + 'storage': json['storage'], + 'subresources': !exists(json, 'subresources') ? undefined : IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourcesFromJSON(json['subresources']), + }; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersionToJSON(value?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersion | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'additionalPrinterColumns': value.additionalPrinterColumns === undefined ? undefined : ((value.additionalPrinterColumns as Array).map(IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinitionToJSON)), + 'deprecated': value.deprecated, + 'deprecationWarning': value.deprecationWarning, + 'name': value.name, + 'schema': IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidationToJSON(value.schema), + 'served': value.served, + 'storage': value.storage, + 'subresources': IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourcesToJSON(value.subresources), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScale.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScale.ts new file mode 100644 index 000000000..26bc2137f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScale.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources. + * @export + * @interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScale + */ +export interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScale { + /** + * labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string. + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScale + */ + labelSelectorPath?: string; + /** + * specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET. + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScale + */ + specReplicasPath: string; + /** + * statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0. + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScale + */ + statusReplicasPath: string; +} + +/** + * Check if a given object implements the IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScale interface. + */ +export function instanceOfIoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScale(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "specReplicasPath" in value; + isInstance = isInstance && "statusReplicasPath" in value; + + return isInstance; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScaleFromJSON(json: any): IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScale { + return IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScaleFromJSONTyped(json, false); +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScaleFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScale { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'labelSelectorPath': !exists(json, 'labelSelectorPath') ? undefined : json['labelSelectorPath'], + 'specReplicasPath': json['specReplicasPath'], + 'statusReplicasPath': json['statusReplicasPath'], + }; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScaleToJSON(value?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScale | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'labelSelectorPath': value.labelSelectorPath, + 'specReplicasPath': value.specReplicasPath, + 'statusReplicasPath': value.statusReplicasPath, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresources.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresources.ts new file mode 100644 index 000000000..0cc11984b --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresources.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScale } from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScale'; +import { + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScaleFromJSON, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScaleFromJSONTyped, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScaleToJSON, +} from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScale'; + +/** + * CustomResourceSubresources defines the status and scale subresources for CustomResources. + * @export + * @interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresources + */ +export interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresources { + /** + * + * @type {IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScale} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresources + */ + scale?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScale; + /** + * CustomResourceSubresourceStatus defines how to serve the status subresource for CustomResources. Status is represented by the `.status` JSON path inside of a CustomResource. When set, * exposes a /status subresource for the custom resource * PUT requests to the /status subresource take a custom resource object, and ignore changes to anything except the status stanza * PUT/POST/PATCH requests to the custom resource ignore changes to the status stanza + * @type {object} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresources + */ + status?: object; +} + +/** + * Check if a given object implements the IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresources interface. + */ +export function instanceOfIoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresources(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourcesFromJSON(json: any): IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresources { + return IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourcesFromJSONTyped(json, false); +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourcesFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresources { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'scale': !exists(json, 'scale') ? undefined : IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScaleFromJSON(json['scale']), + 'status': !exists(json, 'status') ? undefined : json['status'], + }; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourcesToJSON(value?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresources | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'scale': IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScaleToJSON(value.scale), + 'status': value.status, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidation.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidation.ts new file mode 100644 index 000000000..2f6c7acdf --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidation.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps } from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps'; +import { + IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaPropsFromJSON, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaPropsFromJSONTyped, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaPropsToJSON, +} from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps'; + +/** + * CustomResourceValidation is a list of validation methods for CustomResources. + * @export + * @interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidation + */ +export interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidation { + /** + * + * @type {IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidation + */ + openAPIV3Schema?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps; +} + +/** + * Check if a given object implements the IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidation interface. + */ +export function instanceOfIoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidation(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidationFromJSON(json: any): IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidation { + return IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidationFromJSONTyped(json, false); +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidationFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidation { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'openAPIV3Schema': !exists(json, 'openAPIV3Schema') ? undefined : IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaPropsFromJSON(json['openAPIV3Schema']), + }; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidationToJSON(value?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidation | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'openAPIV3Schema': IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaPropsToJSON(value.openAPIV3Schema), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1ExternalDocumentation.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1ExternalDocumentation.ts new file mode 100644 index 000000000..60eeaa594 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1ExternalDocumentation.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ExternalDocumentation allows referencing an external resource for extended documentation. + * @export + * @interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1ExternalDocumentation + */ +export interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1ExternalDocumentation { + /** + * + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1ExternalDocumentation + */ + description?: string; + /** + * + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1ExternalDocumentation + */ + url?: string; +} + +/** + * Check if a given object implements the IoK8sApiextensionsApiserverPkgApisApiextensionsV1ExternalDocumentation interface. + */ +export function instanceOfIoK8sApiextensionsApiserverPkgApisApiextensionsV1ExternalDocumentation(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1ExternalDocumentationFromJSON(json: any): IoK8sApiextensionsApiserverPkgApisApiextensionsV1ExternalDocumentation { + return IoK8sApiextensionsApiserverPkgApisApiextensionsV1ExternalDocumentationFromJSONTyped(json, false); +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1ExternalDocumentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiextensionsApiserverPkgApisApiextensionsV1ExternalDocumentation { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'description': !exists(json, 'description') ? undefined : json['description'], + 'url': !exists(json, 'url') ? undefined : json['url'], + }; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1ExternalDocumentationToJSON(value?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1ExternalDocumentation | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'description': value.description, + 'url': value.url, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps.ts new file mode 100644 index 000000000..efdeee7fa --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps.ts @@ -0,0 +1,457 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiextensionsApiserverPkgApisApiextensionsV1ExternalDocumentation } from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1ExternalDocumentation'; +import { + IoK8sApiextensionsApiserverPkgApisApiextensionsV1ExternalDocumentationFromJSON, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1ExternalDocumentationFromJSONTyped, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1ExternalDocumentationToJSON, +} from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1ExternalDocumentation'; +import type { IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRule } from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRule'; +import { + IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRuleFromJSON, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRuleFromJSONTyped, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRuleToJSON, +} from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRule'; + +/** + * JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/). + * @export + * @interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ +export interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps { + /** + * + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + $ref?: string; + /** + * + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + $schema?: string; + /** + * JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. + * @type {object} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + additionalItems?: object; + /** + * JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. + * @type {object} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + additionalProperties?: object; + /** + * + * @type {Array} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + allOf?: Array; + /** + * + * @type {Array} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + anyOf?: Array; + /** + * JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil. + * @type {object} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + _default?: object; + /** + * + * @type {{ [key: string]: IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps; }} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + definitions?: { [key: string]: IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps; }; + /** + * + * @type {{ [key: string]: object; }} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + dependencies?: { [key: string]: object; }; + /** + * + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + description?: string; + /** + * + * @type {Array} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + _enum?: Array; + /** + * JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil. + * @type {object} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + example?: object; + /** + * + * @type {boolean} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + exclusiveMaximum?: boolean; + /** + * + * @type {boolean} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + exclusiveMinimum?: boolean; + /** + * + * @type {IoK8sApiextensionsApiserverPkgApisApiextensionsV1ExternalDocumentation} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + externalDocs?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1ExternalDocumentation; + /** + * format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: + * + * - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\d{3}[- ]?\d{2}[- ]?\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339. + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + format?: string; + /** + * + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + id?: string; + /** + * JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes. + * @type {object} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + items?: object; + /** + * + * @type {number} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + maxItems?: number; + /** + * + * @type {number} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + maxLength?: number; + /** + * + * @type {number} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + maxProperties?: number; + /** + * + * @type {number} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + maximum?: number; + /** + * + * @type {number} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + minItems?: number; + /** + * + * @type {number} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + minLength?: number; + /** + * + * @type {number} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + minProperties?: number; + /** + * + * @type {number} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + minimum?: number; + /** + * + * @type {number} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + multipleOf?: number; + /** + * + * @type {IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + not?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps; + /** + * + * @type {boolean} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + nullable?: boolean; + /** + * + * @type {Array} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + oneOf?: Array; + /** + * + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + pattern?: string; + /** + * + * @type {{ [key: string]: IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps; }} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + patternProperties?: { [key: string]: IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps; }; + /** + * + * @type {{ [key: string]: IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps; }} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + properties?: { [key: string]: IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps; }; + /** + * + * @type {Array} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + required?: string[]; + /** + * + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + title?: string; + /** + * + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + type?: string; + /** + * + * @type {boolean} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + uniqueItems?: boolean; + /** + * x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). + * @type {boolean} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + xKubernetesEmbeddedResource?: boolean; + /** + * x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: + * + * 1) anyOf: + * - type: integer + * - type: string + * 2) allOf: + * - anyOf: + * - type: integer + * - type: string + * - ... zero or more + * @type {boolean} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + xKubernetesIntOrString?: boolean; + /** + * x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map. + * + * This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported). + * + * The properties specified must either be required or have a default value, to ensure those properties are present for all list items. + * @type {Array} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + xKubernetesListMapKeys?: string[]; + /** + * x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values: + * + * 1) `atomic`: the list is treated as a single entity, like a scalar. + * Atomic lists will be entirely replaced when updated. This extension + * may be used on any type of list (struct, scalar, ...). + * 2) `set`: + * Sets are lists that must not have multiple items with the same value. Each + * value must be a scalar, an object with x-kubernetes-map-type `atomic` or an + * array with x-kubernetes-list-type `atomic`. + * 3) `map`: + * These lists are like maps in that their elements have a non-index key + * used to identify them. Order is preserved upon merge. The map tag + * must only be used on a list with elements of type object. + * Defaults to atomic for arrays. + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + xKubernetesListType?: string; + /** + * x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values: + * + * 1) `granular`: + * These maps are actual maps (key-value pairs) and each fields are independent + * from each other (they can each be manipulated by separate actors). This is + * the default behaviour for all maps. + * 2) `atomic`: the list is treated as a single entity, like a scalar. + * Atomic maps will be entirely replaced when updated. + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + xKubernetesMapType?: string; + /** + * x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. + * @type {boolean} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + xKubernetesPreserveUnknownFields?: boolean; + /** + * x-kubernetes-validations describes a list of validation rules written in the CEL expression language. This field is an alpha-level. Using this field requires the feature gate `CustomResourceValidationExpressions` to be enabled. + * @type {Array} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps + */ + xKubernetesValidations?: Array; +} + +/** + * Check if a given object implements the IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps interface. + */ +export function instanceOfIoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaPropsFromJSON(json: any): IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps { + return IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaPropsFromJSONTyped(json, false); +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaPropsFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + '$ref': !exists(json, '$ref') ? undefined : json['$ref'], + '$schema': !exists(json, '$schema') ? undefined : json['$schema'], + 'additionalItems': !exists(json, 'additionalItems') ? undefined : json['additionalItems'], + 'additionalProperties': !exists(json, 'additionalProperties') ? undefined : json['additionalProperties'], + 'allOf': !exists(json, 'allOf') ? undefined : ((json['allOf'] as Array).map(IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaPropsFromJSON)), + 'anyOf': !exists(json, 'anyOf') ? undefined : ((json['anyOf'] as Array).map(IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaPropsFromJSON)), + '_default': !exists(json, 'default') ? undefined : json['default'], + 'definitions': !exists(json, 'definitions') ? undefined : (mapValues(json['definitions'], IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaPropsFromJSON)), + 'dependencies': !exists(json, 'dependencies') ? undefined : json['dependencies'], + 'description': !exists(json, 'description') ? undefined : json['description'], + '_enum': !exists(json, 'enum') ? undefined : json['enum'], + 'example': !exists(json, 'example') ? undefined : json['example'], + 'exclusiveMaximum': !exists(json, 'exclusiveMaximum') ? undefined : json['exclusiveMaximum'], + 'exclusiveMinimum': !exists(json, 'exclusiveMinimum') ? undefined : json['exclusiveMinimum'], + 'externalDocs': !exists(json, 'externalDocs') ? undefined : IoK8sApiextensionsApiserverPkgApisApiextensionsV1ExternalDocumentationFromJSON(json['externalDocs']), + 'format': !exists(json, 'format') ? undefined : json['format'], + 'id': !exists(json, 'id') ? undefined : json['id'], + 'items': !exists(json, 'items') ? undefined : json['items'], + 'maxItems': !exists(json, 'maxItems') ? undefined : json['maxItems'], + 'maxLength': !exists(json, 'maxLength') ? undefined : json['maxLength'], + 'maxProperties': !exists(json, 'maxProperties') ? undefined : json['maxProperties'], + 'maximum': !exists(json, 'maximum') ? undefined : json['maximum'], + 'minItems': !exists(json, 'minItems') ? undefined : json['minItems'], + 'minLength': !exists(json, 'minLength') ? undefined : json['minLength'], + 'minProperties': !exists(json, 'minProperties') ? undefined : json['minProperties'], + 'minimum': !exists(json, 'minimum') ? undefined : json['minimum'], + 'multipleOf': !exists(json, 'multipleOf') ? undefined : json['multipleOf'], + 'not': !exists(json, 'not') ? undefined : IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaPropsFromJSON(json['not']), + 'nullable': !exists(json, 'nullable') ? undefined : json['nullable'], + 'oneOf': !exists(json, 'oneOf') ? undefined : ((json['oneOf'] as Array).map(IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaPropsFromJSON)), + 'pattern': !exists(json, 'pattern') ? undefined : json['pattern'], + 'patternProperties': !exists(json, 'patternProperties') ? undefined : (mapValues(json['patternProperties'], IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaPropsFromJSON)), + 'properties': !exists(json, 'properties') ? undefined : (mapValues(json['properties'], IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaPropsFromJSON)), + 'required': !exists(json, 'required') ? undefined : json['required'], + 'title': !exists(json, 'title') ? undefined : json['title'], + 'type': !exists(json, 'type') ? undefined : json['type'], + 'uniqueItems': !exists(json, 'uniqueItems') ? undefined : json['uniqueItems'], + 'xKubernetesEmbeddedResource': !exists(json, 'x-kubernetes-embedded-resource') ? undefined : json['x-kubernetes-embedded-resource'], + 'xKubernetesIntOrString': !exists(json, 'x-kubernetes-int-or-string') ? undefined : json['x-kubernetes-int-or-string'], + 'xKubernetesListMapKeys': !exists(json, 'x-kubernetes-list-map-keys') ? undefined : json['x-kubernetes-list-map-keys'], + 'xKubernetesListType': !exists(json, 'x-kubernetes-list-type') ? undefined : json['x-kubernetes-list-type'], + 'xKubernetesMapType': !exists(json, 'x-kubernetes-map-type') ? undefined : json['x-kubernetes-map-type'], + 'xKubernetesPreserveUnknownFields': !exists(json, 'x-kubernetes-preserve-unknown-fields') ? undefined : json['x-kubernetes-preserve-unknown-fields'], + 'xKubernetesValidations': !exists(json, 'x-kubernetes-validations') ? undefined : ((json['x-kubernetes-validations'] as Array).map(IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRuleFromJSON)), + }; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaPropsToJSON(value?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + '$ref': value.$ref, + '$schema': value.$schema, + 'additionalItems': value.additionalItems, + 'additionalProperties': value.additionalProperties, + 'allOf': value.allOf === undefined ? undefined : ((value.allOf as Array).map(IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaPropsToJSON)), + 'anyOf': value.anyOf === undefined ? undefined : ((value.anyOf as Array).map(IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaPropsToJSON)), + 'default': value._default, + 'definitions': value.definitions === undefined ? undefined : (mapValues(value.definitions, IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaPropsToJSON)), + 'dependencies': value.dependencies, + 'description': value.description, + 'enum': value._enum, + 'example': value.example, + 'exclusiveMaximum': value.exclusiveMaximum, + 'exclusiveMinimum': value.exclusiveMinimum, + 'externalDocs': IoK8sApiextensionsApiserverPkgApisApiextensionsV1ExternalDocumentationToJSON(value.externalDocs), + 'format': value.format, + 'id': value.id, + 'items': value.items, + 'maxItems': value.maxItems, + 'maxLength': value.maxLength, + 'maxProperties': value.maxProperties, + 'maximum': value.maximum, + 'minItems': value.minItems, + 'minLength': value.minLength, + 'minProperties': value.minProperties, + 'minimum': value.minimum, + 'multipleOf': value.multipleOf, + 'not': IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaPropsToJSON(value.not), + 'nullable': value.nullable, + 'oneOf': value.oneOf === undefined ? undefined : ((value.oneOf as Array).map(IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaPropsToJSON)), + 'pattern': value.pattern, + 'patternProperties': value.patternProperties === undefined ? undefined : (mapValues(value.patternProperties, IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaPropsToJSON)), + 'properties': value.properties === undefined ? undefined : (mapValues(value.properties, IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaPropsToJSON)), + 'required': value.required, + 'title': value.title, + 'type': value.type, + 'uniqueItems': value.uniqueItems, + 'x-kubernetes-embedded-resource': value.xKubernetesEmbeddedResource, + 'x-kubernetes-int-or-string': value.xKubernetesIntOrString, + 'x-kubernetes-list-map-keys': value.xKubernetesListMapKeys, + 'x-kubernetes-list-type': value.xKubernetesListType, + 'x-kubernetes-map-type': value.xKubernetesMapType, + 'x-kubernetes-preserve-unknown-fields': value.xKubernetesPreserveUnknownFields, + 'x-kubernetes-validations': value.xKubernetesValidations === undefined ? undefined : ((value.xKubernetesValidations as Array).map(IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRuleToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReference.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReference.ts new file mode 100644 index 000000000..f4f5c81f1 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReference.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ServiceReference holds a reference to Service.legacy.k8s.io + * @export + * @interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReference + */ +export interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReference { + /** + * name is the name of the service. Required + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReference + */ + name: string; + /** + * namespace is the namespace of the service. Required + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReference + */ + namespace: string; + /** + * path is an optional URL path at which the webhook will be contacted. + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReference + */ + path?: string; + /** + * port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility. + * @type {number} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReference + */ + port?: number; +} + +/** + * Check if a given object implements the IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReference interface. + */ +export function instanceOfIoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReference(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "namespace" in value; + + return isInstance; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReferenceFromJSON(json: any): IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReference { + return IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReferenceFromJSONTyped(json, false); +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReference { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + 'namespace': json['namespace'], + 'path': !exists(json, 'path') ? undefined : json['path'], + 'port': !exists(json, 'port') ? undefined : json['port'], + }; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReferenceToJSON(value?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReference | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'namespace': value.namespace, + 'path': value.path, + 'port': value.port, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRule.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRule.ts new file mode 100644 index 000000000..decdc510d --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRule.ts @@ -0,0 +1,144 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ValidationRule describes a validation rule written in the CEL expression language. + * @export + * @interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRule + */ +export interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRule { + /** + * fieldPath represents the field path returned when the validation fails. It must be a relative JSON path (i.e. with array notation) scoped to the location of this x-kubernetes-validations extension in the schema and refer to an existing field. e.g. when validation checks if a specific attribute `foo` under a map `testMap`, the fieldPath could be set to `.testMap.foo` If the validation checks two lists must have unique attributes, the fieldPath could be set to either of the list: e.g. `.testList` It does not support list numeric index. It supports child operation to refer to an existing field currently. Refer to [JSONPath support in Kubernetes](https://kubernetes.io/docs/reference/kubectl/jsonpath/) for more info. Numeric index of array is not supported. For field name which contains special characters, use `['specialName']` to refer the field name. e.g. for attribute `foo.34$` appears in a list `testList`, the fieldPath could be set to `.testList['foo.34$']` + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRule + */ + fieldPath?: string; + /** + * Message represents the message displayed when validation fails. The message is required if the Rule contains line breaks. The message must not contain line breaks. If unset, the message is "failed rule: {Rule}". e.g. "must be a URL with the host matching spec.host" + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRule + */ + message?: string; + /** + * MessageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a rule, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the rule; the only difference is the return type. Example: "x must be less than max ("+string(self.max)+")" + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRule + */ + messageExpression?: string; + /** + * optionalOldSelf is used to opt a transition rule into evaluation even when the object is first created, or if the old object is missing the value. + * + * When enabled `oldSelf` will be a CEL optional whose value will be `None` if there is no old value, or when the object is initially created. + * + * You may check for presence of oldSelf using `oldSelf.hasValue()` and unwrap it after checking using `oldSelf.value()`. Check the CEL documentation for Optional types for more information: https://pkg.go.dev/github.com/google/cel-go/cel#OptionalTypes + * + * May not be set unless `oldSelf` is used in `rule`. + * @type {boolean} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRule + */ + optionalOldSelf?: boolean; + /** + * reason provides a machine-readable validation failure reason that is returned to the caller when a request fails this validation rule. The HTTP status code returned to the caller will match the reason of the reason of the first failed validation rule. The currently supported reasons are: "FieldValueInvalid", "FieldValueForbidden", "FieldValueRequired", "FieldValueDuplicate". If not set, default to use "FieldValueInvalid". All future added reasons must be accepted by clients when reading this value and unknown reasons should be treated as FieldValueInvalid. + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRule + */ + reason?: string; + /** + * Rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the x-kubernetes-validations extension in the schema. The `self` variable in the CEL expression is bound to the scoped value. Example: - Rule scoped to the root of a resource with a status subresource: {"rule": "self.status.actual <= self.spec.maxDesired"} + * + * If the Rule is scoped to an object with properties, the accessible properties of the object are field selectable via `self.field` and field presence can be checked via `has(self.field)`. Null valued fields are treated as absent fields in CEL expressions. If the Rule is scoped to an object with additionalProperties (i.e. a map) the value of the map are accessible via `self[mapKey]`, map containment can be checked via `mapKey in self` and all entries of the map are accessible via CEL macros and functions such as `self.all(...)`. If the Rule is scoped to an array, the elements of the array are accessible via `self[i]` and also by macros and functions. If the Rule is scoped to a scalar, `self` is bound to the scalar value. Examples: - Rule scoped to a map of objects: {"rule": "self.components['Widget'].priority < 10"} - Rule scoped to a list of integers: {"rule": "self.values.all(value, value >= 0 && value < 100)"} - Rule scoped to a string value: {"rule": "self.startsWith('kube')"} + * + * The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object and from any x-kubernetes-embedded-resource annotated objects. No other metadata properties are accessible. + * + * Unknown data preserved in custom resources via x-kubernetes-preserve-unknown-fields is not accessible in CEL expressions. This includes: - Unknown field values that are preserved by object schemas with x-kubernetes-preserve-unknown-fields. - Object properties where the property schema is of an "unknown type". An "unknown type" is recursively defined as: + * - A schema with no type and x-kubernetes-preserve-unknown-fields set to true + * - An array where the items schema is of an "unknown type" + * - An object where the additionalProperties schema is of an "unknown type" + * + * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: + * "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if", + * "import", "let", "loop", "package", "namespace", "return". + * Examples: + * - Rule accessing a property named "namespace": {"rule": "self.__namespace__ > 0"} + * - Rule accessing a property named "x-prop": {"rule": "self.x__dash__prop > 0"} + * - Rule accessing a property named "redact__d": {"rule": "self.redact__underscores__d > 0"} + * + * Equality on arrays with x-kubernetes-list-type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: + * - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and + * non-intersecting elements in `Y` are appended, retaining their partial order. + * - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values + * are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with + * non-intersecting keys are appended, retaining their partial order. + * + * If `rule` makes use of the `oldSelf` variable it is implicitly a `transition rule`. + * + * By default, the `oldSelf` variable is the same type as `self`. When `optionalOldSelf` is true, the `oldSelf` variable is a CEL optional + * variable whose value() is the same type as `self`. + * See the documentation for the `optionalOldSelf` field for details. + * + * Transition rules by default are applied only on UPDATE requests and are skipped if an old value could not be found. You can opt a transition rule into unconditional evaluation by setting `optionalOldSelf` to true. + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRule + */ + rule: string; +} + +/** + * Check if a given object implements the IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRule interface. + */ +export function instanceOfIoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRule(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "rule" in value; + + return isInstance; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRuleFromJSON(json: any): IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRule { + return IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRuleFromJSONTyped(json, false); +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRule { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'fieldPath': !exists(json, 'fieldPath') ? undefined : json['fieldPath'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'messageExpression': !exists(json, 'messageExpression') ? undefined : json['messageExpression'], + 'optionalOldSelf': !exists(json, 'optionalOldSelf') ? undefined : json['optionalOldSelf'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'rule': json['rule'], + }; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRuleToJSON(value?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRule | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'fieldPath': value.fieldPath, + 'message': value.message, + 'messageExpression': value.messageExpression, + 'optionalOldSelf': value.optionalOldSelf, + 'reason': value.reason, + 'rule': value.rule, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfig.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfig.ts new file mode 100644 index 000000000..6774bb788 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfig.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReference } from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReference'; +import { + IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReferenceFromJSON, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReferenceFromJSONTyped, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReferenceToJSON, +} from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReference'; + +/** + * WebhookClientConfig contains the information to make a TLS connection with the webhook. + * @export + * @interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfig + */ +export interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfig { + /** + * caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfig + */ + caBundle?: string; + /** + * + * @type {IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReference} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfig + */ + service?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReference; + /** + * url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + * + * The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + * + * Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + * + * The scheme must be "https"; the URL must begin with "https://". + * + * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + * + * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * @type {string} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfig + */ + url?: string; +} + +/** + * Check if a given object implements the IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfig interface. + */ +export function instanceOfIoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfig(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfigFromJSON(json: any): IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfig { + return IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfigFromJSONTyped(json, false); +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfig { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'caBundle': !exists(json, 'caBundle') ? undefined : json['caBundle'], + 'service': !exists(json, 'service') ? undefined : IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReferenceFromJSON(json['service']), + 'url': !exists(json, 'url') ? undefined : json['url'], + }; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfigToJSON(value?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfig | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'caBundle': value.caBundle, + 'service': IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReferenceToJSON(value.service), + 'url': value.url, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookConversion.ts b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookConversion.ts new file mode 100644 index 000000000..c923df256 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookConversion.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfig } from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfig'; +import { + IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfigFromJSON, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfigFromJSONTyped, + IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfigToJSON, +} from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfig'; + +/** + * WebhookConversion describes how to call a conversion webhook + * @export + * @interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookConversion + */ +export interface IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookConversion { + /** + * + * @type {IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfig} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookConversion + */ + clientConfig?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfig; + /** + * conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. + * @type {Array} + * @memberof IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookConversion + */ + conversionReviewVersions: string[]; +} + +/** + * Check if a given object implements the IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookConversion interface. + */ +export function instanceOfIoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookConversion(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "conversionReviewVersions" in value; + + return isInstance; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookConversionFromJSON(json: any): IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookConversion { + return IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookConversionFromJSONTyped(json, false); +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookConversionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookConversion { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'clientConfig': !exists(json, 'clientConfig') ? undefined : IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfigFromJSON(json['clientConfig']), + 'conversionReviewVersions': json['conversionReviewVersions'], + }; +} + +export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookConversionToJSON(value?: IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookConversion | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'clientConfig': IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfigToJSON(value.clientConfig), + 'conversionReviewVersions': value.conversionReviewVersions, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1APIGroup.ts b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1APIGroup.ts new file mode 100644 index 000000000..b29f256be --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1APIGroup.ts @@ -0,0 +1,120 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery } from './IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery'; +import { + IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscoveryFromJSON, + IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscoveryFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscoveryToJSON, +} from './IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery'; +import type { IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR } from './IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR'; +import { + IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDRFromJSON, + IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDRFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDRToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR'; + +/** + * APIGroup contains the name, the supported versions, and the preferred version of a group. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1APIGroup + */ +export interface IoK8sApimachineryPkgApisMetaV1APIGroup { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIGroup + */ + 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 + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIGroup + */ + kind?: string; + /** + * name is the name of the group. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIGroup + */ + name: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery} + * @memberof IoK8sApimachineryPkgApisMetaV1APIGroup + */ + preferredVersion?: IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery; + /** + * a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1APIGroup + */ + serverAddressByClientCIDRs?: Array; + /** + * versions are the versions supported in this group. + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1APIGroup + */ + versions: Array; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1APIGroup interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1APIGroup(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "versions" in value; + + return isInstance; +} + +export function IoK8sApimachineryPkgApisMetaV1APIGroupFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1APIGroup { + return IoK8sApimachineryPkgApisMetaV1APIGroupFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1APIGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1APIGroup { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'name': json['name'], + 'preferredVersion': !exists(json, 'preferredVersion') ? undefined : IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscoveryFromJSON(json['preferredVersion']), + 'serverAddressByClientCIDRs': !exists(json, 'serverAddressByClientCIDRs') ? undefined : ((json['serverAddressByClientCIDRs'] as Array).map(IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDRFromJSON)), + 'versions': ((json['versions'] as Array).map(IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscoveryFromJSON)), + }; +} + +export function IoK8sApimachineryPkgApisMetaV1APIGroupToJSON(value?: IoK8sApimachineryPkgApisMetaV1APIGroup | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'name': value.name, + 'preferredVersion': IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscoveryToJSON(value.preferredVersion), + 'serverAddressByClientCIDRs': value.serverAddressByClientCIDRs === undefined ? undefined : ((value.serverAddressByClientCIDRs as Array).map(IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDRToJSON)), + 'versions': ((value.versions as Array).map(IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscoveryToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1APIGroupList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1APIGroupList.ts new file mode 100644 index 000000000..5e8018077 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1APIGroupList.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1APIGroup } from './IoK8sApimachineryPkgApisMetaV1APIGroup'; +import { + IoK8sApimachineryPkgApisMetaV1APIGroupFromJSON, + IoK8sApimachineryPkgApisMetaV1APIGroupFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1APIGroupToJSON, +} from './IoK8sApimachineryPkgApisMetaV1APIGroup'; + +/** + * APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1APIGroupList + */ +export interface IoK8sApimachineryPkgApisMetaV1APIGroupList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIGroupList + */ + apiVersion?: string; + /** + * groups is a list of APIGroup. + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1APIGroupList + */ + groups: 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 + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIGroupList + */ + kind?: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1APIGroupList interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1APIGroupList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "groups" in value; + + return isInstance; +} + +export function IoK8sApimachineryPkgApisMetaV1APIGroupListFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1APIGroupList { + return IoK8sApimachineryPkgApisMetaV1APIGroupListFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1APIGroupListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1APIGroupList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'groups': ((json['groups'] as Array).map(IoK8sApimachineryPkgApisMetaV1APIGroupFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1APIGroupListToJSON(value?: IoK8sApimachineryPkgApisMetaV1APIGroupList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'groups': ((value.groups as Array).map(IoK8sApimachineryPkgApisMetaV1APIGroupToJSON)), + 'kind': value.kind, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1APIResource.ts b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1APIResource.ts new file mode 100644 index 000000000..40e60d866 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1APIResource.ts @@ -0,0 +1,142 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * APIResource specifies the name of a resource and whether it is namespaced. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1APIResource + */ +export interface IoK8sApimachineryPkgApisMetaV1APIResource { + /** + * categories is a list of the grouped resources this resource belongs to (e.g. 'all') + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1APIResource + */ + categories?: string[]; + /** + * group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale". + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIResource + */ + group?: string; + /** + * kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIResource + */ + kind: string; + /** + * name is the plural name of the resource. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIResource + */ + name: string; + /** + * namespaced indicates if a resource is namespaced or not. + * @type {boolean} + * @memberof IoK8sApimachineryPkgApisMetaV1APIResource + */ + namespaced: boolean; + /** + * shortNames is a list of suggested short names of the resource. + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1APIResource + */ + shortNames?: string[]; + /** + * singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIResource + */ + singularName: string; + /** + * The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIResource + */ + storageVersionHash?: string; + /** + * verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1APIResource + */ + verbs: string[]; + /** + * version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)". + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIResource + */ + version?: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1APIResource interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1APIResource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "kind" in value; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "namespaced" in value; + isInstance = isInstance && "singularName" in value; + isInstance = isInstance && "verbs" in value; + + return isInstance; +} + +export function IoK8sApimachineryPkgApisMetaV1APIResourceFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1APIResource { + return IoK8sApimachineryPkgApisMetaV1APIResourceFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1APIResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1APIResource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'categories': !exists(json, 'categories') ? undefined : json['categories'], + 'group': !exists(json, 'group') ? undefined : json['group'], + 'kind': json['kind'], + 'name': json['name'], + 'namespaced': json['namespaced'], + 'shortNames': !exists(json, 'shortNames') ? undefined : json['shortNames'], + 'singularName': json['singularName'], + 'storageVersionHash': !exists(json, 'storageVersionHash') ? undefined : json['storageVersionHash'], + 'verbs': json['verbs'], + 'version': !exists(json, 'version') ? undefined : json['version'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1APIResourceToJSON(value?: IoK8sApimachineryPkgApisMetaV1APIResource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'categories': value.categories, + 'group': value.group, + 'kind': value.kind, + 'name': value.name, + 'namespaced': value.namespaced, + 'shortNames': value.shortNames, + 'singularName': value.singularName, + 'storageVersionHash': value.storageVersionHash, + 'verbs': value.verbs, + 'version': value.version, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1APIResourceList.ts b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1APIResourceList.ts new file mode 100644 index 000000000..21c2b670c --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1APIResourceList.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1APIResource } from './IoK8sApimachineryPkgApisMetaV1APIResource'; +import { + IoK8sApimachineryPkgApisMetaV1APIResourceFromJSON, + IoK8sApimachineryPkgApisMetaV1APIResourceFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1APIResourceToJSON, +} from './IoK8sApimachineryPkgApisMetaV1APIResource'; + +/** + * APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1APIResourceList + */ +export interface IoK8sApimachineryPkgApisMetaV1APIResourceList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIResourceList + */ + apiVersion?: string; + /** + * groupVersion is the group and version this APIResourceList is for. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIResourceList + */ + groupVersion: 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 + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIResourceList + */ + kind?: string; + /** + * resources contains the name of the resources and if they are namespaced. + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1APIResourceList + */ + resources: Array; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1APIResourceList interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1APIResourceList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "groupVersion" in value; + isInstance = isInstance && "resources" in value; + + return isInstance; +} + +export function IoK8sApimachineryPkgApisMetaV1APIResourceListFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1APIResourceList { + return IoK8sApimachineryPkgApisMetaV1APIResourceListFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1APIResourceListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1APIResourceList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'groupVersion': json['groupVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'resources': ((json['resources'] as Array).map(IoK8sApimachineryPkgApisMetaV1APIResourceFromJSON)), + }; +} + +export function IoK8sApimachineryPkgApisMetaV1APIResourceListToJSON(value?: IoK8sApimachineryPkgApisMetaV1APIResourceList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'groupVersion': value.groupVersion, + 'kind': value.kind, + 'resources': ((value.resources as Array).map(IoK8sApimachineryPkgApisMetaV1APIResourceToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1APIVersions.ts b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1APIVersions.ts new file mode 100644 index 000000000..b2e9760eb --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1APIVersions.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR } from './IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR'; +import { + IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDRFromJSON, + IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDRFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDRToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR'; + +/** + * APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1APIVersions + */ +export interface IoK8sApimachineryPkgApisMetaV1APIVersions { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIVersions + */ + 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 + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIVersions + */ + kind?: string; + /** + * a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1APIVersions + */ + serverAddressByClientCIDRs: Array; + /** + * versions are the api versions that are available. + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1APIVersions + */ + versions: string[]; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1APIVersions interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1APIVersions(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "serverAddressByClientCIDRs" in value; + isInstance = isInstance && "versions" in value; + + return isInstance; +} + +export function IoK8sApimachineryPkgApisMetaV1APIVersionsFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1APIVersions { + return IoK8sApimachineryPkgApisMetaV1APIVersionsFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1APIVersionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1APIVersions { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'serverAddressByClientCIDRs': ((json['serverAddressByClientCIDRs'] as Array).map(IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDRFromJSON)), + 'versions': json['versions'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1APIVersionsToJSON(value?: IoK8sApimachineryPkgApisMetaV1APIVersions | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'serverAddressByClientCIDRs': ((value.serverAddressByClientCIDRs as Array).map(IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDRToJSON)), + 'versions': value.versions, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1Condition.ts b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1Condition.ts new file mode 100644 index 000000000..f35117ebd --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1Condition.ts @@ -0,0 +1,110 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Condition contains details for one aspect of the current state of this API Resource. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1Condition + */ +export interface IoK8sApimachineryPkgApisMetaV1Condition { + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApimachineryPkgApisMetaV1Condition + */ + lastTransitionTime: string; + /** + * message is a human readable message indicating details about the transition. This may be an empty string. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1Condition + */ + message: string; + /** + * observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. + * @type {number} + * @memberof IoK8sApimachineryPkgApisMetaV1Condition + */ + observedGeneration?: number; + /** + * reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1Condition + */ + reason: string; + /** + * status of the condition, one of True, False, Unknown. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1Condition + */ + status: string; + /** + * type of condition in CamelCase or in foo.example.com/CamelCase. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1Condition + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1Condition interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1Condition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "lastTransitionTime" in value; + isInstance = isInstance && "message" in value; + isInstance = isInstance && "reason" in value; + isInstance = isInstance && "status" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApimachineryPkgApisMetaV1ConditionFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1Condition { + return IoK8sApimachineryPkgApisMetaV1ConditionFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1ConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1Condition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'lastTransitionTime': json['lastTransitionTime'], + 'message': json['message'], + 'observedGeneration': !exists(json, 'observedGeneration') ? undefined : json['observedGeneration'], + 'reason': json['reason'], + 'status': json['status'], + 'type': json['type'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1ConditionToJSON(value?: IoK8sApimachineryPkgApisMetaV1Condition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'lastTransitionTime': (value.lastTransitionTime), + 'message': value.message, + 'observedGeneration': value.observedGeneration, + 'reason': value.reason, + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1DeleteOptions.ts b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1DeleteOptions.ts new file mode 100644 index 000000000..e19f2326e --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1DeleteOptions.ts @@ -0,0 +1,120 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1Preconditions } from './IoK8sApimachineryPkgApisMetaV1Preconditions'; +import { + IoK8sApimachineryPkgApisMetaV1PreconditionsFromJSON, + IoK8sApimachineryPkgApisMetaV1PreconditionsFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1PreconditionsToJSON, +} from './IoK8sApimachineryPkgApisMetaV1Preconditions'; + +/** + * DeleteOptions may be provided when deleting an API object. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1DeleteOptions + */ +export interface IoK8sApimachineryPkgApisMetaV1DeleteOptions { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1DeleteOptions + */ + apiVersion?: 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 + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1DeleteOptions + */ + dryRun?: string[]; + /** + * The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @type {number} + * @memberof IoK8sApimachineryPkgApisMetaV1DeleteOptions + */ + gracePeriodSeconds?: number; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1DeleteOptions + */ + kind?: string; + /** + * Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @type {boolean} + * @memberof IoK8sApimachineryPkgApisMetaV1DeleteOptions + */ + orphanDependents?: boolean; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1Preconditions} + * @memberof IoK8sApimachineryPkgApisMetaV1DeleteOptions + */ + preconditions?: IoK8sApimachineryPkgApisMetaV1Preconditions; + /** + * Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1DeleteOptions + */ + propagationPolicy?: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1DeleteOptions interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1DeleteOptions(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApimachineryPkgApisMetaV1DeleteOptionsFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1DeleteOptions { + return IoK8sApimachineryPkgApisMetaV1DeleteOptionsFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1DeleteOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1DeleteOptions { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'dryRun': !exists(json, 'dryRun') ? undefined : json['dryRun'], + 'gracePeriodSeconds': !exists(json, 'gracePeriodSeconds') ? undefined : json['gracePeriodSeconds'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'orphanDependents': !exists(json, 'orphanDependents') ? undefined : json['orphanDependents'], + 'preconditions': !exists(json, 'preconditions') ? undefined : IoK8sApimachineryPkgApisMetaV1PreconditionsFromJSON(json['preconditions']), + 'propagationPolicy': !exists(json, 'propagationPolicy') ? undefined : json['propagationPolicy'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1DeleteOptionsToJSON(value?: IoK8sApimachineryPkgApisMetaV1DeleteOptions | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'dryRun': value.dryRun, + 'gracePeriodSeconds': value.gracePeriodSeconds, + 'kind': value.kind, + 'orphanDependents': value.orphanDependents, + 'preconditions': IoK8sApimachineryPkgApisMetaV1PreconditionsToJSON(value.preconditions), + 'propagationPolicy': value.propagationPolicy, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery.ts b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery.ts new file mode 100644 index 000000000..a8f128d3e --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * GroupVersion contains the "group/version" and "version" string of a version. It is made a struct to keep extensibility. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery + */ +export interface IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery { + /** + * groupVersion specifies the API group and version in the form "group/version" + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery + */ + groupVersion: string; + /** + * version specifies the version in the form of "version". This is to save the clients the trouble of splitting the GroupVersion. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery + */ + version: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "groupVersion" in value; + isInstance = isInstance && "version" in value; + + return isInstance; +} + +export function IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscoveryFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery { + return IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscoveryFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscoveryFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'groupVersion': json['groupVersion'], + 'version': json['version'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscoveryToJSON(value?: IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'groupVersion': value.groupVersion, + 'version': value.version, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1LabelSelector.ts b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1LabelSelector.ts new file mode 100644 index 000000000..eff46257f --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1LabelSelector.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement } from './IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement'; +import { + IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirementFromJSON, + IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirementFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirementToJSON, +} from './IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement'; + +/** + * A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1LabelSelector + */ +export interface IoK8sApimachineryPkgApisMetaV1LabelSelector { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1LabelSelector + */ + matchExpressions?: Array; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + * @type {{ [key: string]: string; }} + * @memberof IoK8sApimachineryPkgApisMetaV1LabelSelector + */ + matchLabels?: { [key: string]: string; }; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1LabelSelector interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1LabelSelector(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1LabelSelector { + return IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1LabelSelector { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'matchExpressions': !exists(json, 'matchExpressions') ? undefined : ((json['matchExpressions'] as Array).map(IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirementFromJSON)), + 'matchLabels': !exists(json, 'matchLabels') ? undefined : json['matchLabels'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value?: IoK8sApimachineryPkgApisMetaV1LabelSelector | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'matchExpressions': value.matchExpressions === undefined ? undefined : ((value.matchExpressions as Array).map(IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirementToJSON)), + 'matchLabels': value.matchLabels, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement.ts b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement.ts new file mode 100644 index 000000000..6cfc1de36 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement + */ +export interface IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement { + /** + * key is the label key that the selector applies to. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement + */ + key: string; + /** + * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement + */ + values?: string[]; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "key" in value; + isInstance = isInstance && "operator" in value; + + return isInstance; +} + +export function IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirementFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement { + return IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirementFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirementFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'key': json['key'], + 'operator': json['operator'], + 'values': !exists(json, 'values') ? undefined : json['values'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirementToJSON(value?: IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'key': value.key, + 'operator': value.operator, + 'values': value.values, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1ListMeta.ts b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1ListMeta.ts new file mode 100644 index 000000000..ded0164ac --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1ListMeta.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1ListMeta + */ +export interface IoK8sApimachineryPkgApisMetaV1ListMeta { + /** + * continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ListMeta + */ + _continue?: string; + /** + * remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * @type {number} + * @memberof IoK8sApimachineryPkgApisMetaV1ListMeta + */ + remainingItemCount?: number; + /** + * String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ListMeta + */ + resourceVersion?: string; + /** + * Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ListMeta + */ + selfLink?: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1ListMeta interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1ListMeta(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1ListMeta { + return IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1ListMeta { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + '_continue': !exists(json, 'continue') ? undefined : json['continue'], + 'remainingItemCount': !exists(json, 'remainingItemCount') ? undefined : json['remainingItemCount'], + 'resourceVersion': !exists(json, 'resourceVersion') ? undefined : json['resourceVersion'], + 'selfLink': !exists(json, 'selfLink') ? undefined : json['selfLink'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value?: IoK8sApimachineryPkgApisMetaV1ListMeta | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'continue': value._continue, + 'remainingItemCount': value.remainingItemCount, + 'resourceVersion': value.resourceVersion, + 'selfLink': value.selfLink, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry.ts b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry.ts new file mode 100644 index 000000000..5edcdb642 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry + */ +export interface IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry { + /** + * APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry + */ + apiVersion?: string; + /** + * FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry + */ + fieldsType?: string; + /** + * FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format. + * + * Each key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:', where is the name of a field in a struct, or key in a map 'v:', where is the exact json formatted value of a list item 'i:', where is position of a item in a list 'k:', where is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set. + * + * The exact format is defined in sigs.k8s.io/structured-merge-diff + * @type {object} + * @memberof IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry + */ + fieldsV1?: object; + /** + * Manager is an identifier of the workflow managing these fields. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry + */ + manager?: string; + /** + * Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry + */ + operation?: string; + /** + * Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry + */ + subresource?: string; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry + */ + time?: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntryFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry { + return IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntryFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'fieldsType': !exists(json, 'fieldsType') ? undefined : json['fieldsType'], + 'fieldsV1': !exists(json, 'fieldsV1') ? undefined : json['fieldsV1'], + 'manager': !exists(json, 'manager') ? undefined : json['manager'], + 'operation': !exists(json, 'operation') ? undefined : json['operation'], + 'subresource': !exists(json, 'subresource') ? undefined : json['subresource'], + 'time': !exists(json, 'time') ? undefined : json['time'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntryToJSON(value?: IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'fieldsType': value.fieldsType, + 'fieldsV1': value.fieldsV1, + 'manager': value.manager, + 'operation': value.operation, + 'subresource': value.subresource, + 'time': value.time === undefined ? undefined : (value.time), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1ObjectMeta.ts b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1ObjectMeta.ts new file mode 100644 index 000000000..a2ca242a8 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1ObjectMeta.ts @@ -0,0 +1,200 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry } from './IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry'; +import { + IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntryFromJSON, + IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntryFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntryToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry'; +import type { IoK8sApimachineryPkgApisMetaV1OwnerReference } from './IoK8sApimachineryPkgApisMetaV1OwnerReference'; +import { + IoK8sApimachineryPkgApisMetaV1OwnerReferenceFromJSON, + IoK8sApimachineryPkgApisMetaV1OwnerReferenceFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1OwnerReferenceToJSON, +} from './IoK8sApimachineryPkgApisMetaV1OwnerReference'; + +/** + * ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ +export interface IoK8sApimachineryPkgApisMetaV1ObjectMeta { + /** + * Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations + * @type {{ [key: string]: string; }} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + annotations?: { [key: string]: string; }; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + creationTimestamp?: string; + /** + * Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * @type {number} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + deletionGracePeriodSeconds?: number; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + deletionTimestamp?: string; + /** + * Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + finalizers?: string[]; + /** + * GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + * + * If this field is specified and the generated name exists, the server will return a 409. + * + * Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + generateName?: string; + /** + * A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * @type {number} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + generation?: number; + /** + * Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels + * @type {{ [key: string]: string; }} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + labels?: { [key: string]: string; }; + /** + * ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + managedFields?: Array; + /** + * Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + name?: string; + /** + * Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + * + * Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + namespace?: string; + /** + * List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + ownerReferences?: Array; + /** + * An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + * + * Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + resourceVersion?: string; + /** + * Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + selfLink?: string; + /** + * UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + * + * Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + uid?: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1ObjectMeta interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1ObjectMeta(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1ObjectMeta { + return IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1ObjectMeta { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'annotations': !exists(json, 'annotations') ? undefined : json['annotations'], + 'creationTimestamp': !exists(json, 'creationTimestamp') ? undefined : json['creationTimestamp'], + 'deletionGracePeriodSeconds': !exists(json, 'deletionGracePeriodSeconds') ? undefined : json['deletionGracePeriodSeconds'], + 'deletionTimestamp': !exists(json, 'deletionTimestamp') ? undefined : json['deletionTimestamp'], + 'finalizers': !exists(json, 'finalizers') ? undefined : json['finalizers'], + 'generateName': !exists(json, 'generateName') ? undefined : json['generateName'], + 'generation': !exists(json, 'generation') ? undefined : json['generation'], + 'labels': !exists(json, 'labels') ? undefined : json['labels'], + 'managedFields': !exists(json, 'managedFields') ? undefined : ((json['managedFields'] as Array).map(IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntryFromJSON)), + 'name': !exists(json, 'name') ? undefined : json['name'], + 'namespace': !exists(json, 'namespace') ? undefined : json['namespace'], + 'ownerReferences': !exists(json, 'ownerReferences') ? undefined : ((json['ownerReferences'] as Array).map(IoK8sApimachineryPkgApisMetaV1OwnerReferenceFromJSON)), + 'resourceVersion': !exists(json, 'resourceVersion') ? undefined : json['resourceVersion'], + 'selfLink': !exists(json, 'selfLink') ? undefined : json['selfLink'], + 'uid': !exists(json, 'uid') ? undefined : json['uid'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value?: IoK8sApimachineryPkgApisMetaV1ObjectMeta | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'annotations': value.annotations, + 'creationTimestamp': value.creationTimestamp === undefined ? undefined : (value.creationTimestamp), + 'deletionGracePeriodSeconds': value.deletionGracePeriodSeconds, + 'deletionTimestamp': value.deletionTimestamp === undefined ? undefined : (value.deletionTimestamp), + 'finalizers': value.finalizers, + 'generateName': value.generateName, + 'generation': value.generation, + 'labels': value.labels, + 'managedFields': value.managedFields === undefined ? undefined : ((value.managedFields as Array).map(IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntryToJSON)), + 'name': value.name, + 'namespace': value.namespace, + 'ownerReferences': value.ownerReferences === undefined ? undefined : ((value.ownerReferences as Array).map(IoK8sApimachineryPkgApisMetaV1OwnerReferenceToJSON)), + 'resourceVersion': value.resourceVersion, + 'selfLink': value.selfLink, + 'uid': value.uid, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1OwnerReference.ts b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1OwnerReference.ts new file mode 100644 index 000000000..970d3366a --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1OwnerReference.ts @@ -0,0 +1,109 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1OwnerReference + */ +export interface IoK8sApimachineryPkgApisMetaV1OwnerReference { + /** + * API version of the referent. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1OwnerReference + */ + apiVersion: string; + /** + * If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * @type {boolean} + * @memberof IoK8sApimachineryPkgApisMetaV1OwnerReference + */ + blockOwnerDeletion?: boolean; + /** + * If true, this reference points to the managing controller. + * @type {boolean} + * @memberof IoK8sApimachineryPkgApisMetaV1OwnerReference + */ + controller?: boolean; + /** + * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1OwnerReference + */ + kind: string; + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1OwnerReference + */ + name: string; + /** + * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1OwnerReference + */ + uid: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1OwnerReference interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1OwnerReference(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "apiVersion" in value; + isInstance = isInstance && "kind" in value; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "uid" in value; + + return isInstance; +} + +export function IoK8sApimachineryPkgApisMetaV1OwnerReferenceFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1OwnerReference { + return IoK8sApimachineryPkgApisMetaV1OwnerReferenceFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1OwnerReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1OwnerReference { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': json['apiVersion'], + 'blockOwnerDeletion': !exists(json, 'blockOwnerDeletion') ? undefined : json['blockOwnerDeletion'], + 'controller': !exists(json, 'controller') ? undefined : json['controller'], + 'kind': json['kind'], + 'name': json['name'], + 'uid': json['uid'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1OwnerReferenceToJSON(value?: IoK8sApimachineryPkgApisMetaV1OwnerReference | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'blockOwnerDeletion': value.blockOwnerDeletion, + 'controller': value.controller, + 'kind': value.kind, + 'name': value.name, + 'uid': value.uid, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1Preconditions.ts b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1Preconditions.ts new file mode 100644 index 000000000..29b36f713 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1Preconditions.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1Preconditions + */ +export interface IoK8sApimachineryPkgApisMetaV1Preconditions { + /** + * Specifies the target ResourceVersion + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1Preconditions + */ + resourceVersion?: string; + /** + * Specifies the target UID. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1Preconditions + */ + uid?: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1Preconditions interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1Preconditions(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApimachineryPkgApisMetaV1PreconditionsFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1Preconditions { + return IoK8sApimachineryPkgApisMetaV1PreconditionsFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1PreconditionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1Preconditions { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'resourceVersion': !exists(json, 'resourceVersion') ? undefined : json['resourceVersion'], + 'uid': !exists(json, 'uid') ? undefined : json['uid'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1PreconditionsToJSON(value?: IoK8sApimachineryPkgApisMetaV1Preconditions | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'resourceVersion': value.resourceVersion, + 'uid': value.uid, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR.ts b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR.ts new file mode 100644 index 000000000..5f568fb4a --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR + */ +export interface IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR { + /** + * The CIDR with which clients can match their IP to figure out the server address that they should use. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR + */ + clientCIDR: string; + /** + * Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR + */ + serverAddress: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "clientCIDR" in value; + isInstance = isInstance && "serverAddress" in value; + + return isInstance; +} + +export function IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDRFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR { + return IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDRFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDRFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'clientCIDR': json['clientCIDR'], + 'serverAddress': json['serverAddress'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDRToJSON(value?: IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'clientCIDR': value.clientCIDR, + 'serverAddress': value.serverAddress, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1Status.ts b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1Status.ts new file mode 100644 index 000000000..fb6e0058e --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1Status.ts @@ -0,0 +1,134 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import type { IoK8sApimachineryPkgApisMetaV1StatusDetails } from './IoK8sApimachineryPkgApisMetaV1StatusDetails'; +import { + IoK8sApimachineryPkgApisMetaV1StatusDetailsFromJSON, + IoK8sApimachineryPkgApisMetaV1StatusDetailsFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1StatusDetailsToJSON, +} from './IoK8sApimachineryPkgApisMetaV1StatusDetails'; + +/** + * Status is a return value for calls that don't return other objects. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1Status + */ +export interface IoK8sApimachineryPkgApisMetaV1Status { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1Status + */ + apiVersion?: string; + /** + * Suggested HTTP return code for this status, 0 if not set. + * @type {number} + * @memberof IoK8sApimachineryPkgApisMetaV1Status + */ + code?: number; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1StatusDetails} + * @memberof IoK8sApimachineryPkgApisMetaV1Status + */ + details?: IoK8sApimachineryPkgApisMetaV1StatusDetails; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1Status + */ + kind?: string; + /** + * A human-readable description of the status of this operation. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1Status + */ + message?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApimachineryPkgApisMetaV1Status + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; + /** + * A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1Status + */ + reason?: string; + /** + * Status of the operation. One of: "Success" or "Failure". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1Status + */ + status?: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1Status interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1Status(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApimachineryPkgApisMetaV1StatusFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1Status { + return IoK8sApimachineryPkgApisMetaV1StatusFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1StatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1Status { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'code': !exists(json, 'code') ? undefined : json['code'], + 'details': !exists(json, 'details') ? undefined : IoK8sApimachineryPkgApisMetaV1StatusDetailsFromJSON(json['details']), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'status': !exists(json, 'status') ? undefined : json['status'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1StatusToJSON(value?: IoK8sApimachineryPkgApisMetaV1Status | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'code': value.code, + 'details': IoK8sApimachineryPkgApisMetaV1StatusDetailsToJSON(value.details), + 'kind': value.kind, + 'message': value.message, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + 'reason': value.reason, + 'status': value.status, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1StatusCause.ts b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1StatusCause.ts new file mode 100644 index 000000000..747991e52 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1StatusCause.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1StatusCause + */ +export interface IoK8sApimachineryPkgApisMetaV1StatusCause { + /** + * The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. + * + * Examples: + * "name" - the field "name" on the current resource + * "items[0].name" - the field "name" on the first array entry in "items" + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1StatusCause + */ + field?: string; + /** + * A human-readable description of the cause of the error. This field may be presented as-is to a reader. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1StatusCause + */ + message?: string; + /** + * A machine-readable description of the cause of the error. If this value is empty there is no information available. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1StatusCause + */ + reason?: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1StatusCause interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1StatusCause(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApimachineryPkgApisMetaV1StatusCauseFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1StatusCause { + return IoK8sApimachineryPkgApisMetaV1StatusCauseFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1StatusCauseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1StatusCause { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'field': !exists(json, 'field') ? undefined : json['field'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1StatusCauseToJSON(value?: IoK8sApimachineryPkgApisMetaV1StatusCause | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'field': value.field, + 'message': value.message, + 'reason': value.reason, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1StatusDetails.ts b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1StatusDetails.ts new file mode 100644 index 000000000..c6c17a703 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1StatusDetails.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1StatusCause } from './IoK8sApimachineryPkgApisMetaV1StatusCause'; +import { + IoK8sApimachineryPkgApisMetaV1StatusCauseFromJSON, + IoK8sApimachineryPkgApisMetaV1StatusCauseFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1StatusCauseToJSON, +} from './IoK8sApimachineryPkgApisMetaV1StatusCause'; + +/** + * StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1StatusDetails + */ +export interface IoK8sApimachineryPkgApisMetaV1StatusDetails { + /** + * The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1StatusDetails + */ + causes?: Array; + /** + * The group attribute of the resource associated with the status StatusReason. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1StatusDetails + */ + group?: string; + /** + * The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1StatusDetails + */ + kind?: string; + /** + * The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1StatusDetails + */ + name?: string; + /** + * If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action. + * @type {number} + * @memberof IoK8sApimachineryPkgApisMetaV1StatusDetails + */ + retryAfterSeconds?: number; + /** + * UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1StatusDetails + */ + uid?: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1StatusDetails interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1StatusDetails(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sApimachineryPkgApisMetaV1StatusDetailsFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1StatusDetails { + return IoK8sApimachineryPkgApisMetaV1StatusDetailsFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1StatusDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1StatusDetails { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'causes': !exists(json, 'causes') ? undefined : ((json['causes'] as Array).map(IoK8sApimachineryPkgApisMetaV1StatusCauseFromJSON)), + 'group': !exists(json, 'group') ? undefined : json['group'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'name': !exists(json, 'name') ? undefined : json['name'], + 'retryAfterSeconds': !exists(json, 'retryAfterSeconds') ? undefined : json['retryAfterSeconds'], + 'uid': !exists(json, 'uid') ? undefined : json['uid'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1StatusDetailsToJSON(value?: IoK8sApimachineryPkgApisMetaV1StatusDetails | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'causes': value.causes === undefined ? undefined : ((value.causes as Array).map(IoK8sApimachineryPkgApisMetaV1StatusCauseToJSON)), + 'group': value.group, + 'kind': value.kind, + 'name': value.name, + 'retryAfterSeconds': value.retryAfterSeconds, + 'uid': value.uid, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1WatchEvent.ts b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1WatchEvent.ts new file mode 100644 index 000000000..10ca01d9a --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgApisMetaV1WatchEvent.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Event represents a single event to a watched resource. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1WatchEvent + */ +export interface IoK8sApimachineryPkgApisMetaV1WatchEvent { + /** + * RawExtension is used to hold extensions in external versions. + * + * To use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types. + * + * // Internal package: + * + * type MyAPIObject struct { + * runtime.TypeMeta `json:",inline"` + * MyPlugin runtime.Object `json:"myPlugin"` + * } + * + * type PluginA struct { + * AOption string `json:"aOption"` + * } + * + * // External package: + * + * type MyAPIObject struct { + * runtime.TypeMeta `json:",inline"` + * MyPlugin runtime.RawExtension `json:"myPlugin"` + * } + * + * type PluginA struct { + * AOption string `json:"aOption"` + * } + * + * // On the wire, the JSON will look something like this: + * + * { + * "kind":"MyAPIObject", + * "apiVersion":"v1", + * "myPlugin": { + * "kind":"PluginA", + * "aOption":"foo", + * }, + * } + * + * So what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.) + * @type {object} + * @memberof IoK8sApimachineryPkgApisMetaV1WatchEvent + */ + object: object; + /** + * + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1WatchEvent + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1WatchEvent interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1WatchEvent(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "object" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sApimachineryPkgApisMetaV1WatchEventFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1WatchEvent { + return IoK8sApimachineryPkgApisMetaV1WatchEventFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1WatchEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1WatchEvent { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'object': json['object'], + 'type': json['type'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1WatchEventToJSON(value?: IoK8sApimachineryPkgApisMetaV1WatchEvent | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'object': value.object, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgVersionInfo.ts b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgVersionInfo.ts new file mode 100644 index 000000000..5673bd2fd --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sApimachineryPkgVersionInfo.ts @@ -0,0 +1,138 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Info contains versioning information. how we'll want to distribute that information. + * @export + * @interface IoK8sApimachineryPkgVersionInfo + */ +export interface IoK8sApimachineryPkgVersionInfo { + /** + * + * @type {string} + * @memberof IoK8sApimachineryPkgVersionInfo + */ + buildDate: string; + /** + * + * @type {string} + * @memberof IoK8sApimachineryPkgVersionInfo + */ + compiler: string; + /** + * + * @type {string} + * @memberof IoK8sApimachineryPkgVersionInfo + */ + gitCommit: string; + /** + * + * @type {string} + * @memberof IoK8sApimachineryPkgVersionInfo + */ + gitTreeState: string; + /** + * + * @type {string} + * @memberof IoK8sApimachineryPkgVersionInfo + */ + gitVersion: string; + /** + * + * @type {string} + * @memberof IoK8sApimachineryPkgVersionInfo + */ + goVersion: string; + /** + * + * @type {string} + * @memberof IoK8sApimachineryPkgVersionInfo + */ + major: string; + /** + * + * @type {string} + * @memberof IoK8sApimachineryPkgVersionInfo + */ + minor: string; + /** + * + * @type {string} + * @memberof IoK8sApimachineryPkgVersionInfo + */ + platform: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgVersionInfo interface. + */ +export function instanceOfIoK8sApimachineryPkgVersionInfo(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "buildDate" in value; + isInstance = isInstance && "compiler" in value; + isInstance = isInstance && "gitCommit" in value; + isInstance = isInstance && "gitTreeState" in value; + isInstance = isInstance && "gitVersion" in value; + isInstance = isInstance && "goVersion" in value; + isInstance = isInstance && "major" in value; + isInstance = isInstance && "minor" in value; + isInstance = isInstance && "platform" in value; + + return isInstance; +} + +export function IoK8sApimachineryPkgVersionInfoFromJSON(json: any): IoK8sApimachineryPkgVersionInfo { + return IoK8sApimachineryPkgVersionInfoFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgVersionInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgVersionInfo { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'buildDate': json['buildDate'], + 'compiler': json['compiler'], + 'gitCommit': json['gitCommit'], + 'gitTreeState': json['gitTreeState'], + 'gitVersion': json['gitVersion'], + 'goVersion': json['goVersion'], + 'major': json['major'], + 'minor': json['minor'], + 'platform': json['platform'], + }; +} + +export function IoK8sApimachineryPkgVersionInfoToJSON(value?: IoK8sApimachineryPkgVersionInfo | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'buildDate': value.buildDate, + 'compiler': value.compiler, + 'gitCommit': value.gitCommit, + 'gitTreeState': value.gitTreeState, + 'gitVersion': value.gitVersion, + 'goVersion': value.goVersion, + 'major': value.major, + 'minor': value.minor, + 'platform': value.platform, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sKubeAggregatorPkgApisApiregistrationV1APIService.ts b/packages/types/src/generated/kubernetes/models/IoK8sKubeAggregatorPkgApisApiregistrationV1APIService.ts new file mode 100644 index 000000000..6c0ac534a --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sKubeAggregatorPkgApisApiregistrationV1APIService.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import type { IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpec } from './IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpec'; +import { + IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpecFromJSON, + IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpecFromJSONTyped, + IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpecToJSON, +} from './IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpec'; +import type { IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceStatus } from './IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceStatus'; +import { + IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceStatusFromJSON, + IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceStatusFromJSONTyped, + IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceStatusToJSON, +} from './IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceStatus'; + +/** + * APIService represents a server for a particular GroupVersion. Name must be "version.group". + * @export + * @interface IoK8sKubeAggregatorPkgApisApiregistrationV1APIService + */ +export interface IoK8sKubeAggregatorPkgApisApiregistrationV1APIService { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sKubeAggregatorPkgApisApiregistrationV1APIService + */ + 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 + * @type {string} + * @memberof IoK8sKubeAggregatorPkgApisApiregistrationV1APIService + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoK8sKubeAggregatorPkgApisApiregistrationV1APIService + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpec} + * @memberof IoK8sKubeAggregatorPkgApisApiregistrationV1APIService + */ + spec?: IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpec; + /** + * + * @type {IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceStatus} + * @memberof IoK8sKubeAggregatorPkgApisApiregistrationV1APIService + */ + status?: IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceStatus; +} + +/** + * Check if a given object implements the IoK8sKubeAggregatorPkgApisApiregistrationV1APIService interface. + */ +export function instanceOfIoK8sKubeAggregatorPkgApisApiregistrationV1APIService(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceFromJSON(json: any): IoK8sKubeAggregatorPkgApisApiregistrationV1APIService { + return IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceFromJSONTyped(json, false); +} + +export function IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sKubeAggregatorPkgApisApiregistrationV1APIService { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceStatusFromJSON(json['status']), + }; +} + +export function IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceToJSON(value?: IoK8sKubeAggregatorPkgApisApiregistrationV1APIService | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpecToJSON(value.spec), + 'status': IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceCondition.ts b/packages/types/src/generated/kubernetes/models/IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceCondition.ts new file mode 100644 index 000000000..8f423bc4a --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceCondition.ts @@ -0,0 +1,99 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * APIServiceCondition describes the state of an APIService at a particular point + * @export + * @interface IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceCondition + */ +export interface IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceCondition { + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceCondition + */ + lastTransitionTime?: string; + /** + * Human-readable message indicating details about last transition. + * @type {string} + * @memberof IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceCondition + */ + message?: string; + /** + * Unique, one-word, CamelCase reason for the condition's last transition. + * @type {string} + * @memberof IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceCondition + */ + reason?: string; + /** + * Status is the status of the condition. Can be True, False, Unknown. + * @type {string} + * @memberof IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceCondition + */ + status: string; + /** + * Type is the type of the condition. + * @type {string} + * @memberof IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceCondition + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceCondition interface. + */ +export function instanceOfIoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceCondition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "status" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceConditionFromJSON(json: any): IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceCondition { + return IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceConditionFromJSONTyped(json, false); +} + +export function IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'lastTransitionTime': !exists(json, 'lastTransitionTime') ? undefined : json['lastTransitionTime'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'status': json['status'], + 'type': json['type'], + }; +} + +export function IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceConditionToJSON(value?: IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'lastTransitionTime': value.lastTransitionTime === undefined ? undefined : (value.lastTransitionTime), + 'message': value.message, + 'reason': value.reason, + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceList.ts b/packages/types/src/generated/kubernetes/models/IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceList.ts new file mode 100644 index 000000000..d84877bd7 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import type { IoK8sKubeAggregatorPkgApisApiregistrationV1APIService } from './IoK8sKubeAggregatorPkgApisApiregistrationV1APIService'; +import { + IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceFromJSON, + IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceFromJSONTyped, + IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceToJSON, +} from './IoK8sKubeAggregatorPkgApisApiregistrationV1APIService'; + +/** + * APIServiceList is a list of APIService objects. + * @export + * @interface IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceList + */ +export interface IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceList + */ + apiVersion?: string; + /** + * Items is the list of APIService + * @type {Array} + * @memberof IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceList + */ + 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 + * @type {string} + * @memberof IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceList interface. + */ +export function instanceOfIoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceListFromJSON(json: any): IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceList { + return IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceListFromJSONTyped(json, false); +} + +export function IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceListToJSON(value?: IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceToJSON)), + 'kind': value.kind, + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpec.ts b/packages/types/src/generated/kubernetes/models/IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpec.ts new file mode 100644 index 000000000..54cad0c39 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpec.ts @@ -0,0 +1,122 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReference } from './IoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReference'; +import { + IoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReferenceFromJSON, + IoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReferenceFromJSONTyped, + IoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReferenceToJSON, +} from './IoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReference'; + +/** + * APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification. + * @export + * @interface IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpec + */ +export interface IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpec { + /** + * CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. + * @type {string} + * @memberof IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpec + */ + caBundle?: string; + /** + * Group is the API group name this server hosts + * @type {string} + * @memberof IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpec + */ + group?: string; + /** + * GroupPriorityMinimum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMinimum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s + * @type {number} + * @memberof IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpec + */ + groupPriorityMinimum: number; + /** + * InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. + * @type {boolean} + * @memberof IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpec + */ + insecureSkipTLSVerify?: boolean; + /** + * + * @type {IoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReference} + * @memberof IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpec + */ + service?: IoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReference; + /** + * Version is the API version this server hosts. For example, "v1" + * @type {string} + * @memberof IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpec + */ + version?: string; + /** + * VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. + * @type {number} + * @memberof IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpec + */ + versionPriority: number; +} + +/** + * Check if a given object implements the IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpec interface. + */ +export function instanceOfIoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "groupPriorityMinimum" in value; + isInstance = isInstance && "versionPriority" in value; + + return isInstance; +} + +export function IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpecFromJSON(json: any): IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpec { + return IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpecFromJSONTyped(json, false); +} + +export function IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'caBundle': !exists(json, 'caBundle') ? undefined : json['caBundle'], + 'group': !exists(json, 'group') ? undefined : json['group'], + 'groupPriorityMinimum': json['groupPriorityMinimum'], + 'insecureSkipTLSVerify': !exists(json, 'insecureSkipTLSVerify') ? undefined : json['insecureSkipTLSVerify'], + 'service': !exists(json, 'service') ? undefined : IoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReferenceFromJSON(json['service']), + 'version': !exists(json, 'version') ? undefined : json['version'], + 'versionPriority': json['versionPriority'], + }; +} + +export function IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpecToJSON(value?: IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'caBundle': value.caBundle, + 'group': value.group, + 'groupPriorityMinimum': value.groupPriorityMinimum, + 'insecureSkipTLSVerify': value.insecureSkipTLSVerify, + 'service': IoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReferenceToJSON(value.service), + 'version': value.version, + 'versionPriority': value.versionPriority, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceStatus.ts b/packages/types/src/generated/kubernetes/models/IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceStatus.ts new file mode 100644 index 000000000..aaaf64e5d --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceStatus.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceCondition } from './IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceCondition'; +import { + IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceConditionFromJSON, + IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceConditionFromJSONTyped, + IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceConditionToJSON, +} from './IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceCondition'; + +/** + * APIServiceStatus contains derived information about an API server + * @export + * @interface IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceStatus + */ +export interface IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceStatus { + /** + * Current service state of apiService. + * @type {Array} + * @memberof IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceStatus + */ + conditions?: Array; +} + +/** + * Check if a given object implements the IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceStatus interface. + */ +export function instanceOfIoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceStatusFromJSON(json: any): IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceStatus { + return IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceStatusFromJSONTyped(json, false); +} + +export function IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceConditionFromJSON)), + }; +} + +export function IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceStatusToJSON(value?: IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceConditionToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/IoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReference.ts b/packages/types/src/generated/kubernetes/models/IoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReference.ts new file mode 100644 index 000000000..d7bb377ed --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/IoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReference.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: unversioned + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ServiceReference holds a reference to Service.legacy.k8s.io + * @export + * @interface IoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReference + */ +export interface IoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReference { + /** + * Name is the name of the service + * @type {string} + * @memberof IoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReference + */ + name?: string; + /** + * Namespace is the namespace of the service + * @type {string} + * @memberof IoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReference + */ + namespace?: string; + /** + * If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + * @type {number} + * @memberof IoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReference + */ + port?: number; +} + +/** + * Check if a given object implements the IoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReference interface. + */ +export function instanceOfIoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReference(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function IoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReferenceFromJSON(json: any): IoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReference { + return IoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReferenceFromJSONTyped(json, false); +} + +export function IoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReference { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': !exists(json, 'name') ? undefined : json['name'], + 'namespace': !exists(json, 'namespace') ? undefined : json['namespace'], + 'port': !exists(json, 'port') ? undefined : json['port'], + }; +} + +export function IoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReferenceToJSON(value?: IoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReference | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'namespace': value.namespace, + 'port': value.port, + }; +} + diff --git a/packages/types/src/generated/kubernetes/models/index.ts b/packages/types/src/generated/kubernetes/models/index.ts new file mode 100644 index 000000000..f0100d1b1 --- /dev/null +++ b/packages/types/src/generated/kubernetes/models/index.ts @@ -0,0 +1,566 @@ +/* tslint:disable */ +/* eslint-disable */ +export * from './IoK8sApiAdmissionregistrationV1MatchCondition'; +export * from './IoK8sApiAdmissionregistrationV1MutatingWebhook'; +export * from './IoK8sApiAdmissionregistrationV1MutatingWebhookConfiguration'; +export * from './IoK8sApiAdmissionregistrationV1MutatingWebhookConfigurationList'; +export * from './IoK8sApiAdmissionregistrationV1RuleWithOperations'; +export * from './IoK8sApiAdmissionregistrationV1ServiceReference'; +export * from './IoK8sApiAdmissionregistrationV1ValidatingWebhook'; +export * from './IoK8sApiAdmissionregistrationV1ValidatingWebhookConfiguration'; +export * from './IoK8sApiAdmissionregistrationV1ValidatingWebhookConfigurationList'; +export * from './IoK8sApiAdmissionregistrationV1WebhookClientConfig'; +export * from './IoK8sApiAdmissionregistrationV1alpha1AuditAnnotation'; +export * from './IoK8sApiAdmissionregistrationV1alpha1ExpressionWarning'; +export * from './IoK8sApiAdmissionregistrationV1alpha1MatchCondition'; +export * from './IoK8sApiAdmissionregistrationV1alpha1MatchResources'; +export * from './IoK8sApiAdmissionregistrationV1alpha1NamedRuleWithOperations'; +export * from './IoK8sApiAdmissionregistrationV1alpha1ParamKind'; +export * from './IoK8sApiAdmissionregistrationV1alpha1ParamRef'; +export * from './IoK8sApiAdmissionregistrationV1alpha1TypeChecking'; +export * from './IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicy'; +export * from './IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding'; +export * from './IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingList'; +export * from './IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingSpec'; +export * from './IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyList'; +export * from './IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicySpec'; +export * from './IoK8sApiAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatus'; +export * from './IoK8sApiAdmissionregistrationV1alpha1Validation'; +export * from './IoK8sApiAdmissionregistrationV1alpha1Variable'; +export * from './IoK8sApiAdmissionregistrationV1beta1AuditAnnotation'; +export * from './IoK8sApiAdmissionregistrationV1beta1ExpressionWarning'; +export * from './IoK8sApiAdmissionregistrationV1beta1MatchCondition'; +export * from './IoK8sApiAdmissionregistrationV1beta1MatchResources'; +export * from './IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperations'; +export * from './IoK8sApiAdmissionregistrationV1beta1ParamKind'; +export * from './IoK8sApiAdmissionregistrationV1beta1ParamRef'; +export * from './IoK8sApiAdmissionregistrationV1beta1TypeChecking'; +export * from './IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicy'; +export * from './IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding'; +export * from './IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingList'; +export * from './IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingSpec'; +export * from './IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyList'; +export * from './IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicySpec'; +export * from './IoK8sApiAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatus'; +export * from './IoK8sApiAdmissionregistrationV1beta1Validation'; +export * from './IoK8sApiAdmissionregistrationV1beta1Variable'; +export * from './IoK8sApiApiserverinternalV1alpha1ServerStorageVersion'; +export * from './IoK8sApiApiserverinternalV1alpha1StorageVersion'; +export * from './IoK8sApiApiserverinternalV1alpha1StorageVersionCondition'; +export * from './IoK8sApiApiserverinternalV1alpha1StorageVersionList'; +export * from './IoK8sApiApiserverinternalV1alpha1StorageVersionStatus'; +export * from './IoK8sApiAppsV1ControllerRevision'; +export * from './IoK8sApiAppsV1ControllerRevisionList'; +export * from './IoK8sApiAppsV1DaemonSet'; +export * from './IoK8sApiAppsV1DaemonSetCondition'; +export * from './IoK8sApiAppsV1DaemonSetList'; +export * from './IoK8sApiAppsV1DaemonSetSpec'; +export * from './IoK8sApiAppsV1DaemonSetStatus'; +export * from './IoK8sApiAppsV1DaemonSetUpdateStrategy'; +export * from './IoK8sApiAppsV1Deployment'; +export * from './IoK8sApiAppsV1DeploymentCondition'; +export * from './IoK8sApiAppsV1DeploymentList'; +export * from './IoK8sApiAppsV1DeploymentSpec'; +export * from './IoK8sApiAppsV1DeploymentStatus'; +export * from './IoK8sApiAppsV1DeploymentStrategy'; +export * from './IoK8sApiAppsV1ReplicaSet'; +export * from './IoK8sApiAppsV1ReplicaSetCondition'; +export * from './IoK8sApiAppsV1ReplicaSetList'; +export * from './IoK8sApiAppsV1ReplicaSetSpec'; +export * from './IoK8sApiAppsV1ReplicaSetStatus'; +export * from './IoK8sApiAppsV1RollingUpdateDaemonSet'; +export * from './IoK8sApiAppsV1RollingUpdateDeployment'; +export * from './IoK8sApiAppsV1RollingUpdateStatefulSetStrategy'; +export * from './IoK8sApiAppsV1StatefulSet'; +export * from './IoK8sApiAppsV1StatefulSetCondition'; +export * from './IoK8sApiAppsV1StatefulSetList'; +export * from './IoK8sApiAppsV1StatefulSetOrdinals'; +export * from './IoK8sApiAppsV1StatefulSetPersistentVolumeClaimRetentionPolicy'; +export * from './IoK8sApiAppsV1StatefulSetSpec'; +export * from './IoK8sApiAppsV1StatefulSetStatus'; +export * from './IoK8sApiAppsV1StatefulSetUpdateStrategy'; +export * from './IoK8sApiAuthenticationV1BoundObjectReference'; +export * from './IoK8sApiAuthenticationV1SelfSubjectReview'; +export * from './IoK8sApiAuthenticationV1SelfSubjectReviewStatus'; +export * from './IoK8sApiAuthenticationV1TokenRequest'; +export * from './IoK8sApiAuthenticationV1TokenRequestSpec'; +export * from './IoK8sApiAuthenticationV1TokenRequestStatus'; +export * from './IoK8sApiAuthenticationV1TokenReview'; +export * from './IoK8sApiAuthenticationV1TokenReviewSpec'; +export * from './IoK8sApiAuthenticationV1TokenReviewStatus'; +export * from './IoK8sApiAuthenticationV1UserInfo'; +export * from './IoK8sApiAuthenticationV1alpha1SelfSubjectReview'; +export * from './IoK8sApiAuthenticationV1alpha1SelfSubjectReviewStatus'; +export * from './IoK8sApiAuthenticationV1beta1SelfSubjectReview'; +export * from './IoK8sApiAuthenticationV1beta1SelfSubjectReviewStatus'; +export * from './IoK8sApiAuthorizationV1LocalSubjectAccessReview'; +export * from './IoK8sApiAuthorizationV1NonResourceAttributes'; +export * from './IoK8sApiAuthorizationV1NonResourceRule'; +export * from './IoK8sApiAuthorizationV1ResourceAttributes'; +export * from './IoK8sApiAuthorizationV1ResourceRule'; +export * from './IoK8sApiAuthorizationV1SelfSubjectAccessReview'; +export * from './IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpec'; +export * from './IoK8sApiAuthorizationV1SelfSubjectRulesReview'; +export * from './IoK8sApiAuthorizationV1SelfSubjectRulesReviewSpec'; +export * from './IoK8sApiAuthorizationV1SubjectAccessReview'; +export * from './IoK8sApiAuthorizationV1SubjectAccessReviewSpec'; +export * from './IoK8sApiAuthorizationV1SubjectAccessReviewStatus'; +export * from './IoK8sApiAuthorizationV1SubjectRulesReviewStatus'; +export * from './IoK8sApiAutoscalingV1CrossVersionObjectReference'; +export * from './IoK8sApiAutoscalingV1HorizontalPodAutoscaler'; +export * from './IoK8sApiAutoscalingV1HorizontalPodAutoscalerList'; +export * from './IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec'; +export * from './IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatus'; +export * from './IoK8sApiAutoscalingV1Scale'; +export * from './IoK8sApiAutoscalingV1ScaleSpec'; +export * from './IoK8sApiAutoscalingV1ScaleStatus'; +export * from './IoK8sApiAutoscalingV2ContainerResourceMetricSource'; +export * from './IoK8sApiAutoscalingV2ContainerResourceMetricStatus'; +export * from './IoK8sApiAutoscalingV2CrossVersionObjectReference'; +export * from './IoK8sApiAutoscalingV2ExternalMetricSource'; +export * from './IoK8sApiAutoscalingV2ExternalMetricStatus'; +export * from './IoK8sApiAutoscalingV2HPAScalingPolicy'; +export * from './IoK8sApiAutoscalingV2HPAScalingRules'; +export * from './IoK8sApiAutoscalingV2HorizontalPodAutoscaler'; +export * from './IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehavior'; +export * from './IoK8sApiAutoscalingV2HorizontalPodAutoscalerCondition'; +export * from './IoK8sApiAutoscalingV2HorizontalPodAutoscalerList'; +export * from './IoK8sApiAutoscalingV2HorizontalPodAutoscalerSpec'; +export * from './IoK8sApiAutoscalingV2HorizontalPodAutoscalerStatus'; +export * from './IoK8sApiAutoscalingV2MetricIdentifier'; +export * from './IoK8sApiAutoscalingV2MetricSpec'; +export * from './IoK8sApiAutoscalingV2MetricStatus'; +export * from './IoK8sApiAutoscalingV2MetricTarget'; +export * from './IoK8sApiAutoscalingV2MetricValueStatus'; +export * from './IoK8sApiAutoscalingV2ObjectMetricSource'; +export * from './IoK8sApiAutoscalingV2ObjectMetricStatus'; +export * from './IoK8sApiAutoscalingV2PodsMetricSource'; +export * from './IoK8sApiAutoscalingV2PodsMetricStatus'; +export * from './IoK8sApiAutoscalingV2ResourceMetricSource'; +export * from './IoK8sApiAutoscalingV2ResourceMetricStatus'; +export * from './IoK8sApiBatchV1CronJob'; +export * from './IoK8sApiBatchV1CronJobList'; +export * from './IoK8sApiBatchV1CronJobSpec'; +export * from './IoK8sApiBatchV1CronJobStatus'; +export * from './IoK8sApiBatchV1Job'; +export * from './IoK8sApiBatchV1JobCondition'; +export * from './IoK8sApiBatchV1JobList'; +export * from './IoK8sApiBatchV1JobSpec'; +export * from './IoK8sApiBatchV1JobStatus'; +export * from './IoK8sApiBatchV1JobTemplateSpec'; +export * from './IoK8sApiBatchV1PodFailurePolicy'; +export * from './IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirement'; +export * from './IoK8sApiBatchV1PodFailurePolicyOnPodConditionsPattern'; +export * from './IoK8sApiBatchV1PodFailurePolicyRule'; +export * from './IoK8sApiBatchV1UncountedTerminatedPods'; +export * from './IoK8sApiCertificatesV1CertificateSigningRequest'; +export * from './IoK8sApiCertificatesV1CertificateSigningRequestCondition'; +export * from './IoK8sApiCertificatesV1CertificateSigningRequestList'; +export * from './IoK8sApiCertificatesV1CertificateSigningRequestSpec'; +export * from './IoK8sApiCertificatesV1CertificateSigningRequestStatus'; +export * from './IoK8sApiCertificatesV1alpha1ClusterTrustBundle'; +export * from './IoK8sApiCertificatesV1alpha1ClusterTrustBundleList'; +export * from './IoK8sApiCertificatesV1alpha1ClusterTrustBundleSpec'; +export * from './IoK8sApiCoordinationV1Lease'; +export * from './IoK8sApiCoordinationV1LeaseList'; +export * from './IoK8sApiCoordinationV1LeaseSpec'; +export * from './IoK8sApiCoreV1AWSElasticBlockStoreVolumeSource'; +export * from './IoK8sApiCoreV1Affinity'; +export * from './IoK8sApiCoreV1AttachedVolume'; +export * from './IoK8sApiCoreV1AzureDiskVolumeSource'; +export * from './IoK8sApiCoreV1AzureFilePersistentVolumeSource'; +export * from './IoK8sApiCoreV1AzureFileVolumeSource'; +export * from './IoK8sApiCoreV1Binding'; +export * from './IoK8sApiCoreV1CSIPersistentVolumeSource'; +export * from './IoK8sApiCoreV1CSIVolumeSource'; +export * from './IoK8sApiCoreV1Capabilities'; +export * from './IoK8sApiCoreV1CephFSPersistentVolumeSource'; +export * from './IoK8sApiCoreV1CephFSVolumeSource'; +export * from './IoK8sApiCoreV1CinderPersistentVolumeSource'; +export * from './IoK8sApiCoreV1CinderVolumeSource'; +export * from './IoK8sApiCoreV1ClaimSource'; +export * from './IoK8sApiCoreV1ClientIPConfig'; +export * from './IoK8sApiCoreV1ClusterTrustBundleProjection'; +export * from './IoK8sApiCoreV1ComponentCondition'; +export * from './IoK8sApiCoreV1ComponentStatus'; +export * from './IoK8sApiCoreV1ComponentStatusList'; +export * from './IoK8sApiCoreV1ConfigMap'; +export * from './IoK8sApiCoreV1ConfigMapEnvSource'; +export * from './IoK8sApiCoreV1ConfigMapKeySelector'; +export * from './IoK8sApiCoreV1ConfigMapList'; +export * from './IoK8sApiCoreV1ConfigMapNodeConfigSource'; +export * from './IoK8sApiCoreV1ConfigMapProjection'; +export * from './IoK8sApiCoreV1ConfigMapVolumeSource'; +export * from './IoK8sApiCoreV1Container'; +export * from './IoK8sApiCoreV1ContainerImage'; +export * from './IoK8sApiCoreV1ContainerPort'; +export * from './IoK8sApiCoreV1ContainerResizePolicy'; +export * from './IoK8sApiCoreV1ContainerState'; +export * from './IoK8sApiCoreV1ContainerStateRunning'; +export * from './IoK8sApiCoreV1ContainerStateTerminated'; +export * from './IoK8sApiCoreV1ContainerStateWaiting'; +export * from './IoK8sApiCoreV1ContainerStatus'; +export * from './IoK8sApiCoreV1DaemonEndpoint'; +export * from './IoK8sApiCoreV1DownwardAPIProjection'; +export * from './IoK8sApiCoreV1DownwardAPIVolumeFile'; +export * from './IoK8sApiCoreV1DownwardAPIVolumeSource'; +export * from './IoK8sApiCoreV1EmptyDirVolumeSource'; +export * from './IoK8sApiCoreV1EndpointAddress'; +export * from './IoK8sApiCoreV1EndpointPort'; +export * from './IoK8sApiCoreV1EndpointSubset'; +export * from './IoK8sApiCoreV1Endpoints'; +export * from './IoK8sApiCoreV1EndpointsList'; +export * from './IoK8sApiCoreV1EnvFromSource'; +export * from './IoK8sApiCoreV1EnvVar'; +export * from './IoK8sApiCoreV1EnvVarSource'; +export * from './IoK8sApiCoreV1EphemeralContainer'; +export * from './IoK8sApiCoreV1EphemeralVolumeSource'; +export * from './IoK8sApiCoreV1Event'; +export * from './IoK8sApiCoreV1EventList'; +export * from './IoK8sApiCoreV1EventSeries'; +export * from './IoK8sApiCoreV1EventSource'; +export * from './IoK8sApiCoreV1ExecAction'; +export * from './IoK8sApiCoreV1FCVolumeSource'; +export * from './IoK8sApiCoreV1FlexPersistentVolumeSource'; +export * from './IoK8sApiCoreV1FlexVolumeSource'; +export * from './IoK8sApiCoreV1FlockerVolumeSource'; +export * from './IoK8sApiCoreV1GCEPersistentDiskVolumeSource'; +export * from './IoK8sApiCoreV1GRPCAction'; +export * from './IoK8sApiCoreV1GitRepoVolumeSource'; +export * from './IoK8sApiCoreV1GlusterfsPersistentVolumeSource'; +export * from './IoK8sApiCoreV1GlusterfsVolumeSource'; +export * from './IoK8sApiCoreV1HTTPGetAction'; +export * from './IoK8sApiCoreV1HTTPHeader'; +export * from './IoK8sApiCoreV1HostAlias'; +export * from './IoK8sApiCoreV1HostIP'; +export * from './IoK8sApiCoreV1HostPathVolumeSource'; +export * from './IoK8sApiCoreV1ISCSIPersistentVolumeSource'; +export * from './IoK8sApiCoreV1ISCSIVolumeSource'; +export * from './IoK8sApiCoreV1KeyToPath'; +export * from './IoK8sApiCoreV1Lifecycle'; +export * from './IoK8sApiCoreV1LifecycleHandler'; +export * from './IoK8sApiCoreV1LimitRange'; +export * from './IoK8sApiCoreV1LimitRangeItem'; +export * from './IoK8sApiCoreV1LimitRangeList'; +export * from './IoK8sApiCoreV1LimitRangeSpec'; +export * from './IoK8sApiCoreV1LoadBalancerIngress'; +export * from './IoK8sApiCoreV1LoadBalancerStatus'; +export * from './IoK8sApiCoreV1LocalObjectReference'; +export * from './IoK8sApiCoreV1LocalVolumeSource'; +export * from './IoK8sApiCoreV1ModifyVolumeStatus'; +export * from './IoK8sApiCoreV1NFSVolumeSource'; +export * from './IoK8sApiCoreV1Namespace'; +export * from './IoK8sApiCoreV1NamespaceCondition'; +export * from './IoK8sApiCoreV1NamespaceList'; +export * from './IoK8sApiCoreV1NamespaceSpec'; +export * from './IoK8sApiCoreV1NamespaceStatus'; +export * from './IoK8sApiCoreV1Node'; +export * from './IoK8sApiCoreV1NodeAddress'; +export * from './IoK8sApiCoreV1NodeAffinity'; +export * from './IoK8sApiCoreV1NodeCondition'; +export * from './IoK8sApiCoreV1NodeConfigSource'; +export * from './IoK8sApiCoreV1NodeConfigStatus'; +export * from './IoK8sApiCoreV1NodeDaemonEndpoints'; +export * from './IoK8sApiCoreV1NodeList'; +export * from './IoK8sApiCoreV1NodeSelector'; +export * from './IoK8sApiCoreV1NodeSelectorRequirement'; +export * from './IoK8sApiCoreV1NodeSelectorTerm'; +export * from './IoK8sApiCoreV1NodeSpec'; +export * from './IoK8sApiCoreV1NodeStatus'; +export * from './IoK8sApiCoreV1NodeSystemInfo'; +export * from './IoK8sApiCoreV1ObjectFieldSelector'; +export * from './IoK8sApiCoreV1ObjectReference'; +export * from './IoK8sApiCoreV1PersistentVolume'; +export * from './IoK8sApiCoreV1PersistentVolumeClaim'; +export * from './IoK8sApiCoreV1PersistentVolumeClaimCondition'; +export * from './IoK8sApiCoreV1PersistentVolumeClaimList'; +export * from './IoK8sApiCoreV1PersistentVolumeClaimSpec'; +export * from './IoK8sApiCoreV1PersistentVolumeClaimStatus'; +export * from './IoK8sApiCoreV1PersistentVolumeClaimTemplate'; +export * from './IoK8sApiCoreV1PersistentVolumeClaimVolumeSource'; +export * from './IoK8sApiCoreV1PersistentVolumeList'; +export * from './IoK8sApiCoreV1PersistentVolumeSpec'; +export * from './IoK8sApiCoreV1PersistentVolumeStatus'; +export * from './IoK8sApiCoreV1PhotonPersistentDiskVolumeSource'; +export * from './IoK8sApiCoreV1Pod'; +export * from './IoK8sApiCoreV1PodAffinity'; +export * from './IoK8sApiCoreV1PodAffinityTerm'; +export * from './IoK8sApiCoreV1PodAntiAffinity'; +export * from './IoK8sApiCoreV1PodCondition'; +export * from './IoK8sApiCoreV1PodDNSConfig'; +export * from './IoK8sApiCoreV1PodDNSConfigOption'; +export * from './IoK8sApiCoreV1PodIP'; +export * from './IoK8sApiCoreV1PodList'; +export * from './IoK8sApiCoreV1PodOS'; +export * from './IoK8sApiCoreV1PodReadinessGate'; +export * from './IoK8sApiCoreV1PodResourceClaim'; +export * from './IoK8sApiCoreV1PodResourceClaimStatus'; +export * from './IoK8sApiCoreV1PodSchedulingGate'; +export * from './IoK8sApiCoreV1PodSecurityContext'; +export * from './IoK8sApiCoreV1PodSpec'; +export * from './IoK8sApiCoreV1PodStatus'; +export * from './IoK8sApiCoreV1PodTemplate'; +export * from './IoK8sApiCoreV1PodTemplateList'; +export * from './IoK8sApiCoreV1PodTemplateSpec'; +export * from './IoK8sApiCoreV1PortStatus'; +export * from './IoK8sApiCoreV1PortworxVolumeSource'; +export * from './IoK8sApiCoreV1PreferredSchedulingTerm'; +export * from './IoK8sApiCoreV1Probe'; +export * from './IoK8sApiCoreV1ProjectedVolumeSource'; +export * from './IoK8sApiCoreV1QuobyteVolumeSource'; +export * from './IoK8sApiCoreV1RBDPersistentVolumeSource'; +export * from './IoK8sApiCoreV1RBDVolumeSource'; +export * from './IoK8sApiCoreV1ReplicationController'; +export * from './IoK8sApiCoreV1ReplicationControllerCondition'; +export * from './IoK8sApiCoreV1ReplicationControllerList'; +export * from './IoK8sApiCoreV1ReplicationControllerSpec'; +export * from './IoK8sApiCoreV1ReplicationControllerStatus'; +export * from './IoK8sApiCoreV1ResourceClaim'; +export * from './IoK8sApiCoreV1ResourceFieldSelector'; +export * from './IoK8sApiCoreV1ResourceQuota'; +export * from './IoK8sApiCoreV1ResourceQuotaList'; +export * from './IoK8sApiCoreV1ResourceQuotaSpec'; +export * from './IoK8sApiCoreV1ResourceQuotaStatus'; +export * from './IoK8sApiCoreV1ResourceRequirements'; +export * from './IoK8sApiCoreV1SELinuxOptions'; +export * from './IoK8sApiCoreV1ScaleIOPersistentVolumeSource'; +export * from './IoK8sApiCoreV1ScaleIOVolumeSource'; +export * from './IoK8sApiCoreV1ScopeSelector'; +export * from './IoK8sApiCoreV1ScopedResourceSelectorRequirement'; +export * from './IoK8sApiCoreV1SeccompProfile'; +export * from './IoK8sApiCoreV1Secret'; +export * from './IoK8sApiCoreV1SecretEnvSource'; +export * from './IoK8sApiCoreV1SecretKeySelector'; +export * from './IoK8sApiCoreV1SecretList'; +export * from './IoK8sApiCoreV1SecretProjection'; +export * from './IoK8sApiCoreV1SecretReference'; +export * from './IoK8sApiCoreV1SecretVolumeSource'; +export * from './IoK8sApiCoreV1SecurityContext'; +export * from './IoK8sApiCoreV1Service'; +export * from './IoK8sApiCoreV1ServiceAccount'; +export * from './IoK8sApiCoreV1ServiceAccountList'; +export * from './IoK8sApiCoreV1ServiceAccountTokenProjection'; +export * from './IoK8sApiCoreV1ServiceList'; +export * from './IoK8sApiCoreV1ServicePort'; +export * from './IoK8sApiCoreV1ServiceSpec'; +export * from './IoK8sApiCoreV1ServiceStatus'; +export * from './IoK8sApiCoreV1SessionAffinityConfig'; +export * from './IoK8sApiCoreV1SleepAction'; +export * from './IoK8sApiCoreV1StorageOSPersistentVolumeSource'; +export * from './IoK8sApiCoreV1StorageOSVolumeSource'; +export * from './IoK8sApiCoreV1Sysctl'; +export * from './IoK8sApiCoreV1TCPSocketAction'; +export * from './IoK8sApiCoreV1Taint'; +export * from './IoK8sApiCoreV1Toleration'; +export * from './IoK8sApiCoreV1TopologySelectorLabelRequirement'; +export * from './IoK8sApiCoreV1TopologySelectorTerm'; +export * from './IoK8sApiCoreV1TopologySpreadConstraint'; +export * from './IoK8sApiCoreV1TypedLocalObjectReference'; +export * from './IoK8sApiCoreV1TypedObjectReference'; +export * from './IoK8sApiCoreV1Volume'; +export * from './IoK8sApiCoreV1VolumeDevice'; +export * from './IoK8sApiCoreV1VolumeMount'; +export * from './IoK8sApiCoreV1VolumeNodeAffinity'; +export * from './IoK8sApiCoreV1VolumeProjection'; +export * from './IoK8sApiCoreV1VolumeResourceRequirements'; +export * from './IoK8sApiCoreV1VsphereVirtualDiskVolumeSource'; +export * from './IoK8sApiCoreV1WeightedPodAffinityTerm'; +export * from './IoK8sApiCoreV1WindowsSecurityContextOptions'; +export * from './IoK8sApiDiscoveryV1Endpoint'; +export * from './IoK8sApiDiscoveryV1EndpointConditions'; +export * from './IoK8sApiDiscoveryV1EndpointHints'; +export * from './IoK8sApiDiscoveryV1EndpointPort'; +export * from './IoK8sApiDiscoveryV1EndpointSlice'; +export * from './IoK8sApiDiscoveryV1EndpointSliceList'; +export * from './IoK8sApiDiscoveryV1ForZone'; +export * from './IoK8sApiEventsV1Event'; +export * from './IoK8sApiEventsV1EventList'; +export * from './IoK8sApiEventsV1EventSeries'; +export * from './IoK8sApiFlowcontrolV1ExemptPriorityLevelConfiguration'; +export * from './IoK8sApiFlowcontrolV1FlowDistinguisherMethod'; +export * from './IoK8sApiFlowcontrolV1FlowSchema'; +export * from './IoK8sApiFlowcontrolV1FlowSchemaCondition'; +export * from './IoK8sApiFlowcontrolV1FlowSchemaList'; +export * from './IoK8sApiFlowcontrolV1FlowSchemaSpec'; +export * from './IoK8sApiFlowcontrolV1FlowSchemaStatus'; +export * from './IoK8sApiFlowcontrolV1GroupSubject'; +export * from './IoK8sApiFlowcontrolV1LimitResponse'; +export * from './IoK8sApiFlowcontrolV1LimitedPriorityLevelConfiguration'; +export * from './IoK8sApiFlowcontrolV1NonResourcePolicyRule'; +export * from './IoK8sApiFlowcontrolV1PolicyRulesWithSubjects'; +export * from './IoK8sApiFlowcontrolV1PriorityLevelConfiguration'; +export * from './IoK8sApiFlowcontrolV1PriorityLevelConfigurationCondition'; +export * from './IoK8sApiFlowcontrolV1PriorityLevelConfigurationList'; +export * from './IoK8sApiFlowcontrolV1PriorityLevelConfigurationReference'; +export * from './IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpec'; +export * from './IoK8sApiFlowcontrolV1PriorityLevelConfigurationStatus'; +export * from './IoK8sApiFlowcontrolV1QueuingConfiguration'; +export * from './IoK8sApiFlowcontrolV1ResourcePolicyRule'; +export * from './IoK8sApiFlowcontrolV1ServiceAccountSubject'; +export * from './IoK8sApiFlowcontrolV1Subject'; +export * from './IoK8sApiFlowcontrolV1UserSubject'; +export * from './IoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfiguration'; +export * from './IoK8sApiFlowcontrolV1beta3FlowDistinguisherMethod'; +export * from './IoK8sApiFlowcontrolV1beta3FlowSchema'; +export * from './IoK8sApiFlowcontrolV1beta3FlowSchemaCondition'; +export * from './IoK8sApiFlowcontrolV1beta3FlowSchemaList'; +export * from './IoK8sApiFlowcontrolV1beta3FlowSchemaSpec'; +export * from './IoK8sApiFlowcontrolV1beta3FlowSchemaStatus'; +export * from './IoK8sApiFlowcontrolV1beta3GroupSubject'; +export * from './IoK8sApiFlowcontrolV1beta3LimitResponse'; +export * from './IoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfiguration'; +export * from './IoK8sApiFlowcontrolV1beta3NonResourcePolicyRule'; +export * from './IoK8sApiFlowcontrolV1beta3PolicyRulesWithSubjects'; +export * from './IoK8sApiFlowcontrolV1beta3PriorityLevelConfiguration'; +export * from './IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationCondition'; +export * from './IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationList'; +export * from './IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationReference'; +export * from './IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpec'; +export * from './IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationStatus'; +export * from './IoK8sApiFlowcontrolV1beta3QueuingConfiguration'; +export * from './IoK8sApiFlowcontrolV1beta3ResourcePolicyRule'; +export * from './IoK8sApiFlowcontrolV1beta3ServiceAccountSubject'; +export * from './IoK8sApiFlowcontrolV1beta3Subject'; +export * from './IoK8sApiFlowcontrolV1beta3UserSubject'; +export * from './IoK8sApiNetworkingV1HTTPIngressPath'; +export * from './IoK8sApiNetworkingV1HTTPIngressRuleValue'; +export * from './IoK8sApiNetworkingV1IPBlock'; +export * from './IoK8sApiNetworkingV1Ingress'; +export * from './IoK8sApiNetworkingV1IngressBackend'; +export * from './IoK8sApiNetworkingV1IngressClass'; +export * from './IoK8sApiNetworkingV1IngressClassList'; +export * from './IoK8sApiNetworkingV1IngressClassParametersReference'; +export * from './IoK8sApiNetworkingV1IngressClassSpec'; +export * from './IoK8sApiNetworkingV1IngressList'; +export * from './IoK8sApiNetworkingV1IngressLoadBalancerIngress'; +export * from './IoK8sApiNetworkingV1IngressLoadBalancerStatus'; +export * from './IoK8sApiNetworkingV1IngressPortStatus'; +export * from './IoK8sApiNetworkingV1IngressRule'; +export * from './IoK8sApiNetworkingV1IngressServiceBackend'; +export * from './IoK8sApiNetworkingV1IngressSpec'; +export * from './IoK8sApiNetworkingV1IngressStatus'; +export * from './IoK8sApiNetworkingV1IngressTLS'; +export * from './IoK8sApiNetworkingV1NetworkPolicy'; +export * from './IoK8sApiNetworkingV1NetworkPolicyEgressRule'; +export * from './IoK8sApiNetworkingV1NetworkPolicyIngressRule'; +export * from './IoK8sApiNetworkingV1NetworkPolicyList'; +export * from './IoK8sApiNetworkingV1NetworkPolicyPeer'; +export * from './IoK8sApiNetworkingV1NetworkPolicyPort'; +export * from './IoK8sApiNetworkingV1NetworkPolicySpec'; +export * from './IoK8sApiNetworkingV1ServiceBackendPort'; +export * from './IoK8sApiNetworkingV1alpha1IPAddress'; +export * from './IoK8sApiNetworkingV1alpha1IPAddressList'; +export * from './IoK8sApiNetworkingV1alpha1IPAddressSpec'; +export * from './IoK8sApiNetworkingV1alpha1ParentReference'; +export * from './IoK8sApiNetworkingV1alpha1ServiceCIDR'; +export * from './IoK8sApiNetworkingV1alpha1ServiceCIDRList'; +export * from './IoK8sApiNetworkingV1alpha1ServiceCIDRSpec'; +export * from './IoK8sApiNetworkingV1alpha1ServiceCIDRStatus'; +export * from './IoK8sApiNodeV1Overhead'; +export * from './IoK8sApiNodeV1RuntimeClass'; +export * from './IoK8sApiNodeV1RuntimeClassList'; +export * from './IoK8sApiNodeV1Scheduling'; +export * from './IoK8sApiPolicyV1Eviction'; +export * from './IoK8sApiPolicyV1PodDisruptionBudget'; +export * from './IoK8sApiPolicyV1PodDisruptionBudgetList'; +export * from './IoK8sApiPolicyV1PodDisruptionBudgetSpec'; +export * from './IoK8sApiPolicyV1PodDisruptionBudgetStatus'; +export * from './IoK8sApiRbacV1AggregationRule'; +export * from './IoK8sApiRbacV1ClusterRole'; +export * from './IoK8sApiRbacV1ClusterRoleBinding'; +export * from './IoK8sApiRbacV1ClusterRoleBindingList'; +export * from './IoK8sApiRbacV1ClusterRoleList'; +export * from './IoK8sApiRbacV1PolicyRule'; +export * from './IoK8sApiRbacV1Role'; +export * from './IoK8sApiRbacV1RoleBinding'; +export * from './IoK8sApiRbacV1RoleBindingList'; +export * from './IoK8sApiRbacV1RoleList'; +export * from './IoK8sApiRbacV1RoleRef'; +export * from './IoK8sApiRbacV1Subject'; +export * from './IoK8sApiResourceV1alpha2AllocationResult'; +export * from './IoK8sApiResourceV1alpha2PodSchedulingContext'; +export * from './IoK8sApiResourceV1alpha2PodSchedulingContextList'; +export * from './IoK8sApiResourceV1alpha2PodSchedulingContextSpec'; +export * from './IoK8sApiResourceV1alpha2PodSchedulingContextStatus'; +export * from './IoK8sApiResourceV1alpha2ResourceClaim'; +export * from './IoK8sApiResourceV1alpha2ResourceClaimConsumerReference'; +export * from './IoK8sApiResourceV1alpha2ResourceClaimList'; +export * from './IoK8sApiResourceV1alpha2ResourceClaimParametersReference'; +export * from './IoK8sApiResourceV1alpha2ResourceClaimSchedulingStatus'; +export * from './IoK8sApiResourceV1alpha2ResourceClaimSpec'; +export * from './IoK8sApiResourceV1alpha2ResourceClaimStatus'; +export * from './IoK8sApiResourceV1alpha2ResourceClaimTemplate'; +export * from './IoK8sApiResourceV1alpha2ResourceClaimTemplateList'; +export * from './IoK8sApiResourceV1alpha2ResourceClaimTemplateSpec'; +export * from './IoK8sApiResourceV1alpha2ResourceClass'; +export * from './IoK8sApiResourceV1alpha2ResourceClassList'; +export * from './IoK8sApiResourceV1alpha2ResourceClassParametersReference'; +export * from './IoK8sApiResourceV1alpha2ResourceHandle'; +export * from './IoK8sApiSchedulingV1PriorityClass'; +export * from './IoK8sApiSchedulingV1PriorityClassList'; +export * from './IoK8sApiStorageV1CSIDriver'; +export * from './IoK8sApiStorageV1CSIDriverList'; +export * from './IoK8sApiStorageV1CSIDriverSpec'; +export * from './IoK8sApiStorageV1CSINode'; +export * from './IoK8sApiStorageV1CSINodeDriver'; +export * from './IoK8sApiStorageV1CSINodeList'; +export * from './IoK8sApiStorageV1CSINodeSpec'; +export * from './IoK8sApiStorageV1CSIStorageCapacity'; +export * from './IoK8sApiStorageV1CSIStorageCapacityList'; +export * from './IoK8sApiStorageV1StorageClass'; +export * from './IoK8sApiStorageV1StorageClassList'; +export * from './IoK8sApiStorageV1TokenRequest'; +export * from './IoK8sApiStorageV1VolumeAttachment'; +export * from './IoK8sApiStorageV1VolumeAttachmentList'; +export * from './IoK8sApiStorageV1VolumeAttachmentSource'; +export * from './IoK8sApiStorageV1VolumeAttachmentSpec'; +export * from './IoK8sApiStorageV1VolumeAttachmentStatus'; +export * from './IoK8sApiStorageV1VolumeError'; +export * from './IoK8sApiStorageV1VolumeNodeResources'; +export * from './IoK8sApiStorageV1alpha1VolumeAttributesClass'; +export * from './IoK8sApiStorageV1alpha1VolumeAttributesClassList'; +export * from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceColumnDefinition'; +export * from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceConversion'; +export * from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinition'; +export * from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionCondition'; +export * from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionList'; +export * from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames'; +export * from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionSpec'; +export * from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionStatus'; +export * from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionVersion'; +export * from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresourceScale'; +export * from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceSubresources'; +export * from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidation'; +export * from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1ExternalDocumentation'; +export * from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaProps'; +export * from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1ServiceReference'; +export * from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1ValidationRule'; +export * from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookClientConfig'; +export * from './IoK8sApiextensionsApiserverPkgApisApiextensionsV1WebhookConversion'; +export * from './IoK8sApimachineryPkgApisMetaV1APIGroup'; +export * from './IoK8sApimachineryPkgApisMetaV1APIGroupList'; +export * from './IoK8sApimachineryPkgApisMetaV1APIResource'; +export * from './IoK8sApimachineryPkgApisMetaV1APIResourceList'; +export * from './IoK8sApimachineryPkgApisMetaV1APIVersions'; +export * from './IoK8sApimachineryPkgApisMetaV1Condition'; +export * from './IoK8sApimachineryPkgApisMetaV1DeleteOptions'; +export * from './IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery'; +export * from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; +export * from './IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement'; +export * from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +export * from './IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry'; +export * from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +export * from './IoK8sApimachineryPkgApisMetaV1OwnerReference'; +export * from './IoK8sApimachineryPkgApisMetaV1Preconditions'; +export * from './IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR'; +export * from './IoK8sApimachineryPkgApisMetaV1Status'; +export * from './IoK8sApimachineryPkgApisMetaV1StatusCause'; +export * from './IoK8sApimachineryPkgApisMetaV1StatusDetails'; +export * from './IoK8sApimachineryPkgApisMetaV1WatchEvent'; +export * from './IoK8sApimachineryPkgVersionInfo'; +export * from './IoK8sKubeAggregatorPkgApisApiregistrationV1APIService'; +export * from './IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceCondition'; +export * from './IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceList'; +export * from './IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceSpec'; +export * from './IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceStatus'; +export * from './IoK8sKubeAggregatorPkgApisApiregistrationV1ServiceReference'; diff --git a/packages/types/src/generated/kubernetes/swagger.json b/packages/types/src/generated/kubernetes/swagger.json new file mode 100644 index 000000000..fa2b53ba1 --- /dev/null +++ b/packages/types/src/generated/kubernetes/swagger.json @@ -0,0 +1,76115 @@ +{ + "definitions": { + "io.k8s.api.admissionregistration.v1.MatchCondition": { + "description": "MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", + "type": "string" + }, + "name": { + "description": "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "type": "object" + }, + "io.k8s.api.admissionregistration.v1.MutatingWebhook": { + "description": "MutatingWebhook describes an admission webhook and the resources and operations it applies to.", + "properties": { + "admissionReviewVersions": { + "description": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "clientConfig": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.WebhookClientConfig", + "description": "ClientConfig defines how to communicate with the hook. Required" + }, + "failurePolicy": { + "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.", + "type": "string" + }, + "matchConditions": { + "description": "MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the webhook is called.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the error is ignored and the webhook is skipped\n\nThis is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MatchCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.\n\nDefaults to \"Equivalent\"", + "type": "string" + }, + "name": { + "description": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", + "type": "string" + }, + "namespaceSelector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "reinvocationPolicy": { + "description": "reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\".\n\nNever: the webhook will not be called more than once in a single admission evaluation.\n\nIfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.\n\nDefaults to \"Never\".", + "type": "string" + }, + "rules": { + "description": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.RuleWithOperations" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "sideEffects": { + "description": "SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some.", + "type": "string" + }, + "timeoutSeconds": { + "description": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "name", + "clientConfig", + "sideEffects", + "admissionReviewVersions" + ], + "type": "object" + }, + "io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration": { + "description": "MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "webhooks": { + "description": "Webhooks is a list of webhooks and the affected resources and operations.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhook" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "MutatingWebhookConfiguration", + "version": "v1" + } + ] + }, + "io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList": { + "description": "MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of MutatingWebhookConfiguration.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "MutatingWebhookConfigurationList", + "version": "v1" + } + ] + }, + "io.k8s.api.admissionregistration.v1.RuleWithOperations": { + "description": "RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.", + "properties": { + "apiGroups": { + "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "apiVersions": { + "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "operations": { + "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "scope": { + "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.admissionregistration.v1.ServiceReference": { + "description": "ServiceReference holds a reference to Service.legacy.k8s.io", + "properties": { + "name": { + "description": "`name` is the name of the service. Required", + "type": "string" + }, + "namespace": { + "description": "`namespace` is the namespace of the service. Required", + "type": "string" + }, + "path": { + "description": "`path` is an optional URL path which will be sent in any request to this service.", + "type": "string" + }, + "port": { + "description": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "namespace", + "name" + ], + "type": "object" + }, + "io.k8s.api.admissionregistration.v1.ValidatingWebhook": { + "description": "ValidatingWebhook describes an admission webhook and the resources and operations it applies to.", + "properties": { + "admissionReviewVersions": { + "description": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "clientConfig": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.WebhookClientConfig", + "description": "ClientConfig defines how to communicate with the hook. Required" + }, + "failurePolicy": { + "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.", + "type": "string" + }, + "matchConditions": { + "description": "MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the webhook is called.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the error is ignored and the webhook is skipped\n\nThis is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MatchCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.\n\nDefaults to \"Equivalent\"", + "type": "string" + }, + "name": { + "description": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", + "type": "string" + }, + "namespaceSelector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "rules": { + "description": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.RuleWithOperations" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "sideEffects": { + "description": "SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some.", + "type": "string" + }, + "timeoutSeconds": { + "description": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "name", + "clientConfig", + "sideEffects", + "admissionReviewVersions" + ], + "type": "object" + }, + "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration": { + "description": "ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "webhooks": { + "description": "Webhooks is a list of webhooks and the affected resources and operations.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhook" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingWebhookConfiguration", + "version": "v1" + } + ] + }, + "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList": { + "description": "ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of ValidatingWebhookConfiguration.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingWebhookConfigurationList", + "version": "v1" + } + ] + }, + "io.k8s.api.admissionregistration.v1.WebhookClientConfig": { + "description": "WebhookClientConfig contains the information to make a TLS connection with the webhook", + "properties": { + "caBundle": { + "description": "`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.", + "format": "byte", + "type": "string" + }, + "service": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ServiceReference", + "description": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`." + }, + "url": { + "description": "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.admissionregistration.v1alpha1.AuditAnnotation": { + "description": "AuditAnnotation describes how to produce an audit annotation for an API request.", + "properties": { + "key": { + "description": "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.\n\nThe key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\".\n\nIf an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.\n\nRequired.", + "type": "string" + }, + "valueExpression": { + "description": "valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.\n\nIf multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.\n\nRequired.", + "type": "string" + } + }, + "required": [ + "key", + "valueExpression" + ], + "type": "object" + }, + "io.k8s.api.admissionregistration.v1alpha1.ExpressionWarning": { + "description": "ExpressionWarning is a warning information that targets a specific expression.", + "properties": { + "fieldRef": { + "description": "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"", + "type": "string" + }, + "warning": { + "description": "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.", + "type": "string" + } + }, + "required": [ + "fieldRef", + "warning" + ], + "type": "object" + }, + "io.k8s.api.admissionregistration.v1alpha1.MatchCondition": { + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", + "type": "string" + }, + "name": { + "description": "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "type": "object" + }, + "io.k8s.api.admissionregistration.v1alpha1.MatchResources": { + "description": "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "properties": { + "excludeResourceRules": { + "description": "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.NamedRuleWithOperations" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\n\nDefaults to \"Equivalent\"", + "type": "string" + }, + "namespaceSelector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "resourceRules": { + "description": "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.NamedRuleWithOperations" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1alpha1.NamedRuleWithOperations": { + "description": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", + "properties": { + "apiGroups": { + "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "apiVersions": { + "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "operations": { + "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "scope": { + "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1alpha1.ParamKind": { + "description": "ParamKind is a tuple of Group Kind and Version.", + "properties": { + "apiVersion": { + "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", + "type": "string" + }, + "kind": { + "description": "Kind is the API kind the resources belong to. Required.", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1alpha1.ParamRef": { + "description": "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.", + "properties": { + "name": { + "description": "`name` is the name of the resource being referenced.\n\n`name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.", + "type": "string" + }, + "namespace": { + "description": "namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.\n\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\n\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\n\n- If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error.", + "type": "string" + }, + "parameterNotFoundAction": { + "description": "`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\n\nAllowed values are `Allow` or `Deny` Default to `Deny`", + "type": "string" + }, + "selector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.\n\nIf multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset." + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1alpha1.TypeChecking": { + "description": "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy", + "properties": { + "expressionWarnings": { + "description": "The type checking warnings for each expression.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ExpressionWarning" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy": { + "description": "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicySpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicy." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyStatus", + "description": "The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy behaves in the expected way. Populated by the system. Read-only." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding": { + "description": "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.\n\nFor a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding.\n\nThe CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingSpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicyBinding." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingList": { + "description": "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of PolicyBinding.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBindingList", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingSpec": { + "description": "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.", + "properties": { + "matchResources": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.MatchResources", + "description": "MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required." + }, + "paramRef": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ParamRef", + "description": "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param." + }, + "policyName": { + "description": "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", + "type": "string" + }, + "validationActions": { + "description": "validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\n\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\n\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\n\nThe supported actions values are:\n\n\"Deny\" specifies that a validation failure results in a denied request.\n\n\"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\n\n\"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]\"`\n\nClients should expect to handle additional values by ignoring any values not recognized.\n\n\"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\n\nRequired.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "type": "object" + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyList": { + "description": "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of ValidatingAdmissionPolicy.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyList", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicySpec": { + "description": "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.", + "properties": { + "auditAnnotations": { + "description": "auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.AuditAnnotation" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "failurePolicy": { + "description": "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\n\nA policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.\n\nfailurePolicy does not define how validations that evaluate to false are handled.\n\nWhen failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.\n\nAllowed values are Ignore or Fail. Defaults to Fail.", + "type": "string" + }, + "matchConditions": { + "description": "MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the policy is skipped", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.MatchCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "matchConstraints": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.MatchResources", + "description": "MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required." + }, + "paramKind": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ParamKind", + "description": "ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null." + }, + "validations": { + "description": "Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.Validation" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "variables": { + "description": "Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\n\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.Variable" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyStatus": { + "description": "ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy.", + "properties": { + "conditions": { + "description": "The conditions represent the latest available observations of a policy's current state.", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + }, + "observedGeneration": { + "description": "The generation observed by the controller.", + "format": "int64", + "type": "integer" + }, + "typeChecking": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.TypeChecking", + "description": "The results of type checking for each expression. Presence of this field indicates the completion of the type checking." + } + }, + "type": "object" + }, + "io.k8s.api.admissionregistration.v1alpha1.Validation": { + "description": "Validation specifies the CEL expression which is used to apply the validation.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"}\n - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"}\n\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\nRequired.", + "type": "string" + }, + "message": { + "description": "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".", + "type": "string" + }, + "messageExpression": { + "description": "messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\"", + "type": "string" + }, + "reason": { + "description": "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.", + "type": "string" + } + }, + "required": [ + "expression" + ], + "type": "object" + }, + "io.k8s.api.admissionregistration.v1alpha1.Variable": { + "description": "Variable is the definition of a variable that is used for composition.", + "properties": { + "expression": { + "description": "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.", + "type": "string" + }, + "name": { + "description": "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "type": "object" + }, + "io.k8s.api.admissionregistration.v1beta1.AuditAnnotation": { + "description": "AuditAnnotation describes how to produce an audit annotation for an API request.", + "properties": { + "key": { + "description": "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.\n\nThe key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\".\n\nIf an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.\n\nRequired.", + "type": "string" + }, + "valueExpression": { + "description": "valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.\n\nIf multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.\n\nRequired.", + "type": "string" + } + }, + "required": [ + "key", + "valueExpression" + ], + "type": "object" + }, + "io.k8s.api.admissionregistration.v1beta1.ExpressionWarning": { + "description": "ExpressionWarning is a warning information that targets a specific expression.", + "properties": { + "fieldRef": { + "description": "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"", + "type": "string" + }, + "warning": { + "description": "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.", + "type": "string" + } + }, + "required": [ + "fieldRef", + "warning" + ], + "type": "object" + }, + "io.k8s.api.admissionregistration.v1beta1.MatchCondition": { + "description": "MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", + "type": "string" + }, + "name": { + "description": "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "type": "object" + }, + "io.k8s.api.admissionregistration.v1beta1.MatchResources": { + "description": "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "properties": { + "excludeResourceRules": { + "description": "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.NamedRuleWithOperations" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\n\nDefaults to \"Equivalent\"", + "type": "string" + }, + "namespaceSelector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "resourceRules": { + "description": "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.NamedRuleWithOperations" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1beta1.NamedRuleWithOperations": { + "description": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", + "properties": { + "apiGroups": { + "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "apiVersions": { + "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "operations": { + "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "scope": { + "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1beta1.ParamKind": { + "description": "ParamKind is a tuple of Group Kind and Version.", + "properties": { + "apiVersion": { + "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", + "type": "string" + }, + "kind": { + "description": "Kind is the API kind the resources belong to. Required.", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1beta1.ParamRef": { + "description": "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.", + "properties": { + "name": { + "description": "name is the name of the resource being referenced.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.\n\nA single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped.", + "type": "string" + }, + "namespace": { + "description": "namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.\n\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\n\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\n\n- If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error.", + "type": "string" + }, + "parameterNotFoundAction": { + "description": "`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\n\nAllowed values are `Allow` or `Deny`\n\nRequired", + "type": "string" + }, + "selector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.\n\nIf multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset." + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1beta1.TypeChecking": { + "description": "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy", + "properties": { + "expressionWarnings": { + "description": "The type checking warnings for each expression.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ExpressionWarning" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy": { + "description": "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicySpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicy." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyStatus", + "description": "The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy behaves in the expected way. Populated by the system. Read-only." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1beta1" + } + ] + }, + "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding": { + "description": "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.\n\nFor a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding.\n\nThe CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingSpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicyBinding." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1beta1" + } + ] + }, + "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingList": { + "description": "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of PolicyBinding.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBindingList", + "version": "v1beta1" + } + ] + }, + "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingSpec": { + "description": "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.", + "properties": { + "matchResources": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.MatchResources", + "description": "MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required." + }, + "paramRef": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ParamRef", + "description": "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param." + }, + "policyName": { + "description": "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", + "type": "string" + }, + "validationActions": { + "description": "validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\n\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\n\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\n\nThe supported actions values are:\n\n\"Deny\" specifies that a validation failure results in a denied request.\n\n\"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\n\n\"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]\"`\n\nClients should expect to handle additional values by ignoring any values not recognized.\n\n\"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\n\nRequired.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "type": "object" + }, + "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyList": { + "description": "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of ValidatingAdmissionPolicy.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyList", + "version": "v1beta1" + } + ] + }, + "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicySpec": { + "description": "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.", + "properties": { + "auditAnnotations": { + "description": "auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.AuditAnnotation" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "failurePolicy": { + "description": "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\n\nA policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.\n\nfailurePolicy does not define how validations that evaluate to false are handled.\n\nWhen failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.\n\nAllowed values are Ignore or Fail. Defaults to Fail.", + "type": "string" + }, + "matchConditions": { + "description": "MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the policy is skipped", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.MatchCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "matchConstraints": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.MatchResources", + "description": "MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required." + }, + "paramKind": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ParamKind", + "description": "ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null." + }, + "validations": { + "description": "Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.Validation" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "variables": { + "description": "Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\n\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.Variable" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyStatus": { + "description": "ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.", + "properties": { + "conditions": { + "description": "The conditions represent the latest available observations of a policy's current state.", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + }, + "observedGeneration": { + "description": "The generation observed by the controller.", + "format": "int64", + "type": "integer" + }, + "typeChecking": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.TypeChecking", + "description": "The results of type checking for each expression. Presence of this field indicates the completion of the type checking." + } + }, + "type": "object" + }, + "io.k8s.api.admissionregistration.v1beta1.Validation": { + "description": "Validation specifies the CEL expression which is used to apply the validation.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"}\n - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"}\n\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\nRequired.", + "type": "string" + }, + "message": { + "description": "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".", + "type": "string" + }, + "messageExpression": { + "description": "messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\"", + "type": "string" + }, + "reason": { + "description": "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.", + "type": "string" + } + }, + "required": [ + "expression" + ], + "type": "object" + }, + "io.k8s.api.admissionregistration.v1beta1.Variable": { + "description": "Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.", + "properties": { + "expression": { + "description": "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.", + "type": "string" + }, + "name": { + "description": "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.apiserverinternal.v1alpha1.ServerStorageVersion": { + "description": "An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend.", + "properties": { + "apiServerID": { + "description": "The ID of the reporting API server.", + "type": "string" + }, + "decodableVersions": { + "description": "The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "encodingVersion": { + "description": "The API server encodes the object to this version when persisting it in the backend (e.g., etcd).", + "type": "string" + }, + "servedVersions": { + "description": "The API server can serve these versions. DecodableVersions must include all ServedVersions.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "type": "object" + }, + "io.k8s.api.apiserverinternal.v1alpha1.StorageVersion": { + "description": "Storage version of a specific resource.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "The name is .." + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionSpec", + "description": "Spec is an empty spec. It is here to comply with Kubernetes API style." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionStatus", + "description": "API server instances report the version they can decode and the version they encode objects to when persisting objects in the backend." + } + }, + "required": [ + "spec", + "status" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.apiserverinternal.v1alpha1.StorageVersionCondition": { + "description": "Describes the state of the storageVersion at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": "string" + }, + "observedGeneration": { + "description": "If set, this represents the .metadata.generation that the condition was set based upon.", + "format": "int64", + "type": "integer" + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of the condition.", + "type": "string" + } + }, + "required": [ + "type", + "status", + "reason" + ], + "type": "object" + }, + "io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList": { + "description": "A list of StorageVersions.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items holds a list of StorageVersion", + "items": { + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersionList", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.apiserverinternal.v1alpha1.StorageVersionSpec": { + "description": "StorageVersionSpec is an empty spec.", + "type": "object" + }, + "io.k8s.api.apiserverinternal.v1alpha1.StorageVersionStatus": { + "description": "API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend.", + "properties": { + "commonEncodingVersion": { + "description": "If all API server instances agree on the same encoding storage version, then this field is set to that version. Otherwise this field is left empty. API servers should finish updating its storageVersionStatus entry before serving write operations, so that this field will be in sync with the reality.", + "type": "string" + }, + "conditions": { + "description": "The latest available observations of the storageVersion's state.", + "items": { + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + }, + "storageVersions": { + "description": "The reported versions per API server instance.", + "items": { + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.ServerStorageVersion" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "apiServerID" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": "object" + }, + "io.k8s.api.apps.v1.ControllerRevision": { + "description": "ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "data": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.runtime.RawExtension", + "description": "Data is the serialized representation of the state." + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "revision": { + "description": "Revision indicates the revision of the state represented by Data.", + "format": "int64", + "type": "integer" + } + }, + "required": [ + "revision" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "ControllerRevision", + "version": "v1" + } + ] + }, + "io.k8s.api.apps.v1.ControllerRevisionList": { + "description": "ControllerRevisionList is a resource containing a list of ControllerRevision objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is the list of ControllerRevisions", + "items": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "ControllerRevisionList", + "version": "v1" + } + ] + }, + "io.k8s.api.apps.v1.DaemonSet": { + "description": "DaemonSet represents the configuration of a daemon set.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSetSpec", + "description": "The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSetStatus", + "description": "The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "DaemonSet", + "version": "v1" + } + ] + }, + "io.k8s.api.apps.v1.DaemonSetCondition": { + "description": "DaemonSetCondition describes the state of a DaemonSet at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": "string" + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of DaemonSet condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": "object" + }, + "io.k8s.api.apps.v1.DaemonSetList": { + "description": "DaemonSetList is a collection of daemon sets.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "A list of daemon sets.", + "items": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "DaemonSetList", + "version": "v1" + } + ] + }, + "io.k8s.api.apps.v1.DaemonSetSpec": { + "description": "DaemonSetSpec is the specification of a daemon set.", + "properties": { + "minReadySeconds": { + "description": "The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready).", + "format": "int32", + "type": "integer" + }, + "revisionHistoryLimit": { + "description": "The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.", + "format": "int32", + "type": "integer" + }, + "selector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + }, + "template": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec", + "description": "An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). The only allowed template.spec.restartPolicy value is \"Always\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template" + }, + "updateStrategy": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSetUpdateStrategy", + "description": "An update strategy to replace existing DaemonSet pods with new pods." + } + }, + "required": [ + "selector", + "template" + ], + "type": "object" + }, + "io.k8s.api.apps.v1.DaemonSetStatus": { + "description": "DaemonSetStatus represents the current status of a daemon set.", + "properties": { + "collisionCount": { + "description": "Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.", + "format": "int32", + "type": "integer" + }, + "conditions": { + "description": "Represents the latest available observations of a DaemonSet's current state.", + "items": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSetCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "currentNumberScheduled": { + "description": "The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", + "format": "int32", + "type": "integer" + }, + "desiredNumberScheduled": { + "description": "The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", + "format": "int32", + "type": "integer" + }, + "numberAvailable": { + "description": "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)", + "format": "int32", + "type": "integer" + }, + "numberMisscheduled": { + "description": "The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", + "format": "int32", + "type": "integer" + }, + "numberReady": { + "description": "numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition.", + "format": "int32", + "type": "integer" + }, + "numberUnavailable": { + "description": "The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)", + "format": "int32", + "type": "integer" + }, + "observedGeneration": { + "description": "The most recent generation observed by the daemon set controller.", + "format": "int64", + "type": "integer" + }, + "updatedNumberScheduled": { + "description": "The total number of nodes that are running updated daemon pod", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "currentNumberScheduled", + "numberMisscheduled", + "desiredNumberScheduled", + "numberReady" + ], + "type": "object" + }, + "io.k8s.api.apps.v1.DaemonSetUpdateStrategy": { + "description": "DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.", + "properties": { + "rollingUpdate": { + "$ref": "#/definitions/io.k8s.api.apps.v1.RollingUpdateDaemonSet", + "description": "Rolling update config params. Present only if type = \"RollingUpdate\"." + }, + "type": { + "description": "Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.apps.v1.Deployment": { + "description": "Deployment enables declarative updates for Pods and ReplicaSets.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DeploymentSpec", + "description": "Specification of the desired behavior of the Deployment." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DeploymentStatus", + "description": "Most recently observed status of the Deployment." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "Deployment", + "version": "v1" + } + ] + }, + "io.k8s.api.apps.v1.DeploymentCondition": { + "description": "DeploymentCondition describes the state of a deployment at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "lastUpdateTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The last time this condition was updated." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": "string" + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of deployment condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": "object" + }, + "io.k8s.api.apps.v1.DeploymentList": { + "description": "DeploymentList is a list of Deployments.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is the list of Deployments.", + "items": { + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "DeploymentList", + "version": "v1" + } + ] + }, + "io.k8s.api.apps.v1.DeploymentSpec": { + "description": "DeploymentSpec is the specification of the desired behavior of the Deployment.", + "properties": { + "minReadySeconds": { + "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", + "format": "int32", + "type": "integer" + }, + "paused": { + "description": "Indicates that the deployment is paused.", + "type": "boolean" + }, + "progressDeadlineSeconds": { + "description": "The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.", + "format": "int32", + "type": "integer" + }, + "replicas": { + "description": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", + "format": "int32", + "type": "integer" + }, + "revisionHistoryLimit": { + "description": "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.", + "format": "int32", + "type": "integer" + }, + "selector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels." + }, + "strategy": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DeploymentStrategy", + "description": "The deployment strategy to use to replace existing pods with new ones.", + "x-kubernetes-patch-strategy": "retainKeys" + }, + "template": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec", + "description": "Template describes the pods that will be created. The only allowed template.spec.restartPolicy value is \"Always\"." + } + }, + "required": [ + "selector", + "template" + ], + "type": "object" + }, + "io.k8s.api.apps.v1.DeploymentStatus": { + "description": "DeploymentStatus is the most recently observed status of the Deployment.", + "properties": { + "availableReplicas": { + "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.", + "format": "int32", + "type": "integer" + }, + "collisionCount": { + "description": "Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.", + "format": "int32", + "type": "integer" + }, + "conditions": { + "description": "Represents the latest available observations of a deployment's current state.", + "items": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DeploymentCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "observedGeneration": { + "description": "The generation observed by the deployment controller.", + "format": "int64", + "type": "integer" + }, + "readyReplicas": { + "description": "readyReplicas is the number of pods targeted by this Deployment with a Ready Condition.", + "format": "int32", + "type": "integer" + }, + "replicas": { + "description": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", + "format": "int32", + "type": "integer" + }, + "unavailableReplicas": { + "description": "Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.", + "format": "int32", + "type": "integer" + }, + "updatedReplicas": { + "description": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "io.k8s.api.apps.v1.DeploymentStrategy": { + "description": "DeploymentStrategy describes how to replace existing pods with new ones.", + "properties": { + "rollingUpdate": { + "$ref": "#/definitions/io.k8s.api.apps.v1.RollingUpdateDeployment", + "description": "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate." + }, + "type": { + "description": "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.apps.v1.ReplicaSet": { + "description": "ReplicaSet ensures that a specified number of pod replicas are running at any given time.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSetSpec", + "description": "Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSetStatus", + "description": "Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + } + ] + }, + "io.k8s.api.apps.v1.ReplicaSetCondition": { + "description": "ReplicaSetCondition describes the state of a replica set at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The last time the condition transitioned from one status to another." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": "string" + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of replica set condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": "object" + }, + "io.k8s.api.apps.v1.ReplicaSetList": { + "description": "ReplicaSetList is a collection of ReplicaSets.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", + "items": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "ReplicaSetList", + "version": "v1" + } + ] + }, + "io.k8s.api.apps.v1.ReplicaSetSpec": { + "description": "ReplicaSetSpec is the specification of a ReplicaSet.", + "properties": { + "minReadySeconds": { + "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", + "format": "int32", + "type": "integer" + }, + "replicas": { + "description": "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller", + "format": "int32", + "type": "integer" + }, + "selector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + }, + "template": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec", + "description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template" + } + }, + "required": [ + "selector" + ], + "type": "object" + }, + "io.k8s.api.apps.v1.ReplicaSetStatus": { + "description": "ReplicaSetStatus represents the current status of a ReplicaSet.", + "properties": { + "availableReplicas": { + "description": "The number of available replicas (ready for at least minReadySeconds) for this replica set.", + "format": "int32", + "type": "integer" + }, + "conditions": { + "description": "Represents the latest available observations of a replica set's current state.", + "items": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSetCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "fullyLabeledReplicas": { + "description": "The number of pods that have labels matching the labels of the pod template of the replicaset.", + "format": "int32", + "type": "integer" + }, + "observedGeneration": { + "description": "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.", + "format": "int64", + "type": "integer" + }, + "readyReplicas": { + "description": "readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition.", + "format": "int32", + "type": "integer" + }, + "replicas": { + "description": "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "replicas" + ], + "type": "object" + }, + "io.k8s.api.apps.v1.RollingUpdateDaemonSet": { + "description": "Spec to control the desired behavior of daemon set rolling update.", + "properties": { + "maxSurge": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption." + }, + "maxUnavailable": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update." + } + }, + "type": "object" + }, + "io.k8s.api.apps.v1.RollingUpdateDeployment": { + "description": "Spec to control the desired behavior of rolling update.", + "properties": { + "maxSurge": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods." + }, + "maxUnavailable": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods." + } + }, + "type": "object" + }, + "io.k8s.api.apps.v1.RollingUpdateStatefulSetStrategy": { + "description": "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.", + "properties": { + "maxUnavailable": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0. Defaults to 1. This field is alpha-level and is only honored by servers that enable the MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable." + }, + "partition": { + "description": "Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "io.k8s.api.apps.v1.StatefulSet": { + "description": "StatefulSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\n\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSetSpec", + "description": "Spec defines the desired identities of pods in this set." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSetStatus", + "description": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + ] + }, + "io.k8s.api.apps.v1.StatefulSetCondition": { + "description": "StatefulSetCondition describes the state of a statefulset at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": "string" + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of statefulset condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": "object" + }, + "io.k8s.api.apps.v1.StatefulSetList": { + "description": "StatefulSetList is a collection of StatefulSets.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is the list of stateful sets.", + "items": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "StatefulSetList", + "version": "v1" + } + ] + }, + "io.k8s.api.apps.v1.StatefulSetOrdinals": { + "description": "StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.", + "properties": { + "start": { + "description": "start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range:\n [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).\nIf unset, defaults to 0. Replica indices will be in the range:\n [0, .spec.replicas).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "io.k8s.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy": { + "description": "StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.", + "properties": { + "whenDeleted": { + "description": "WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted.", + "type": "string" + }, + "whenScaled": { + "description": "WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.apps.v1.StatefulSetSpec": { + "description": "A StatefulSetSpec is the specification of a StatefulSet.", + "properties": { + "minReadySeconds": { + "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", + "format": "int32", + "type": "integer" + }, + "ordinals": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSetOrdinals", + "description": "ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a \"0\" index to the first replica and increments the index by one for each additional replica requested. Using the ordinals field requires the StatefulSetStartOrdinal feature gate to be enabled, which is beta." + }, + "persistentVolumeClaimRetentionPolicy": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy", + "description": "persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha. +optional" + }, + "podManagementPolicy": { + "description": "podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.", + "type": "string" + }, + "replicas": { + "description": "replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.", + "format": "int32", + "type": "integer" + }, + "revisionHistoryLimit": { + "description": "revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.", + "format": "int32", + "type": "integer" + }, + "selector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + }, + "serviceName": { + "description": "serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller.", + "type": "string" + }, + "template": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec", + "description": "template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. Each pod will be named with the format -. For example, a pod in a StatefulSet named \"web\" with index number \"3\" would be named \"web-3\". The only allowed template.spec.restartPolicy value is \"Always\"." + }, + "updateStrategy": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSetUpdateStrategy", + "description": "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template." + }, + "volumeClaimTemplates": { + "description": "volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "selector", + "template", + "serviceName" + ], + "type": "object" + }, + "io.k8s.api.apps.v1.StatefulSetStatus": { + "description": "StatefulSetStatus represents the current state of a StatefulSet.", + "properties": { + "availableReplicas": { + "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.", + "format": "int32", + "type": "integer" + }, + "collisionCount": { + "description": "collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.", + "format": "int32", + "type": "integer" + }, + "conditions": { + "description": "Represents the latest available observations of a statefulset's current state.", + "items": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSetCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "currentReplicas": { + "description": "currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.", + "format": "int32", + "type": "integer" + }, + "currentRevision": { + "description": "currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas).", + "type": "string" + }, + "observedGeneration": { + "description": "observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server.", + "format": "int64", + "type": "integer" + }, + "readyReplicas": { + "description": "readyReplicas is the number of pods created for this StatefulSet with a Ready Condition.", + "format": "int32", + "type": "integer" + }, + "replicas": { + "description": "replicas is the number of Pods created by the StatefulSet controller.", + "format": "int32", + "type": "integer" + }, + "updateRevision": { + "description": "updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)", + "type": "string" + }, + "updatedReplicas": { + "description": "updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "replicas" + ], + "type": "object" + }, + "io.k8s.api.apps.v1.StatefulSetUpdateStrategy": { + "description": "StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.", + "properties": { + "rollingUpdate": { + "$ref": "#/definitions/io.k8s.api.apps.v1.RollingUpdateStatefulSetStrategy", + "description": "RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType." + }, + "type": { + "description": "Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.authentication.v1.BoundObjectReference": { + "description": "BoundObjectReference is a reference to an object that a token is bound to.", + "properties": { + "apiVersion": { + "description": "API version of the referent.", + "type": "string" + }, + "kind": { + "description": "Kind of the referent. Valid kinds are 'Pod' and 'Secret'.", + "type": "string" + }, + "name": { + "description": "Name of the referent.", + "type": "string" + }, + "uid": { + "description": "UID of the referent.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.authentication.v1.SelfSubjectReview": { + "description": "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.authentication.v1.SelfSubjectReviewStatus", + "description": "Status is filled in by the server with the user attributes." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", + "version": "v1" + } + ] + }, + "io.k8s.api.authentication.v1.SelfSubjectReviewStatus": { + "description": "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.", + "properties": { + "userInfo": { + "$ref": "#/definitions/io.k8s.api.authentication.v1.UserInfo", + "description": "User attributes of the user making this request." + } + }, + "type": "object" + }, + "io.k8s.api.authentication.v1.TokenRequest": { + "description": "TokenRequest requests a token for a given service account.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenRequestSpec", + "description": "Spec holds information about the request being evaluated" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenRequestStatus", + "description": "Status is filled in by the server and indicates whether the token can be authenticated." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "TokenRequest", + "version": "v1" + } + ] + }, + "io.k8s.api.authentication.v1.TokenRequestSpec": { + "description": "TokenRequestSpec contains client provided parameters of a token request.", + "properties": { + "audiences": { + "description": "Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "boundObjectRef": { + "$ref": "#/definitions/io.k8s.api.authentication.v1.BoundObjectReference", + "description": "BoundObjectRef is a reference to an object that the token will be bound to. The token will only be valid for as long as the bound object exists. NOTE: The API server's TokenReview endpoint will validate the BoundObjectRef, but other audiences may not. Keep ExpirationSeconds small if you want prompt revocation." + }, + "expirationSeconds": { + "description": "ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.", + "format": "int64", + "type": "integer" + } + }, + "required": [ + "audiences" + ], + "type": "object" + }, + "io.k8s.api.authentication.v1.TokenRequestStatus": { + "description": "TokenRequestStatus is the result of a token request.", + "properties": { + "expirationTimestamp": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "ExpirationTimestamp is the time of expiration of the returned token." + }, + "token": { + "description": "Token is the opaque bearer token.", + "type": "string" + } + }, + "required": [ + "token", + "expirationTimestamp" + ], + "type": "object" + }, + "io.k8s.api.authentication.v1.TokenReview": { + "description": "TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenReviewSpec", + "description": "Spec holds information about the request being evaluated" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenReviewStatus", + "description": "Status is filled in by the server and indicates whether the request can be authenticated." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "TokenReview", + "version": "v1" + } + ] + }, + "io.k8s.api.authentication.v1.TokenReviewSpec": { + "description": "TokenReviewSpec is a description of the token authentication request.", + "properties": { + "audiences": { + "description": "Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "token": { + "description": "Token is the opaque bearer token.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.authentication.v1.TokenReviewStatus": { + "description": "TokenReviewStatus is the result of the token authentication request.", + "properties": { + "audiences": { + "description": "Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "authenticated": { + "description": "Authenticated indicates that the token was associated with a known user.", + "type": "boolean" + }, + "error": { + "description": "Error indicates that the token couldn't be checked", + "type": "string" + }, + "user": { + "$ref": "#/definitions/io.k8s.api.authentication.v1.UserInfo", + "description": "User is the UserInfo associated with the provided token." + } + }, + "type": "object" + }, + "io.k8s.api.authentication.v1.UserInfo": { + "description": "UserInfo holds the information about the user needed to implement the user.Info interface.", + "properties": { + "extra": { + "additionalProperties": { + "items": { + "type": "string" + }, + "type": "array" + }, + "description": "Any additional information provided by the authenticator.", + "type": "object" + }, + "groups": { + "description": "The names of groups this user is a part of.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "uid": { + "description": "A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.", + "type": "string" + }, + "username": { + "description": "The name that uniquely identifies this user among all active users.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.authentication.v1alpha1.SelfSubjectReview": { + "description": "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.authentication.v1alpha1.SelfSubjectReviewStatus", + "description": "Status is filled in by the server with the user attributes." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.authentication.v1alpha1.SelfSubjectReviewStatus": { + "description": "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.", + "properties": { + "userInfo": { + "$ref": "#/definitions/io.k8s.api.authentication.v1.UserInfo", + "description": "User attributes of the user making this request." + } + }, + "type": "object" + }, + "io.k8s.api.authentication.v1beta1.SelfSubjectReview": { + "description": "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.authentication.v1beta1.SelfSubjectReviewStatus", + "description": "Status is filled in by the server with the user attributes." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", + "version": "v1beta1" + } + ] + }, + "io.k8s.api.authentication.v1beta1.SelfSubjectReviewStatus": { + "description": "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.", + "properties": { + "userInfo": { + "$ref": "#/definitions/io.k8s.api.authentication.v1.UserInfo", + "description": "User attributes of the user making this request." + } + }, + "type": "object" + }, + "io.k8s.api.authorization.v1.LocalSubjectAccessReview": { + "description": "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReviewSpec", + "description": "Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReviewStatus", + "description": "Status is filled in by the server and indicates whether the request is allowed or not" + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.k8s.io", + "kind": "LocalSubjectAccessReview", + "version": "v1" + } + ] + }, + "io.k8s.api.authorization.v1.NonResourceAttributes": { + "description": "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface", + "properties": { + "path": { + "description": "Path is the URL path of the request", + "type": "string" + }, + "verb": { + "description": "Verb is the standard HTTP verb", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.authorization.v1.NonResourceRule": { + "description": "NonResourceRule holds information that describes a rule for the non-resource", + "properties": { + "nonResourceURLs": { + "description": "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "verbs": { + "description": "Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "verbs" + ], + "type": "object" + }, + "io.k8s.api.authorization.v1.ResourceAttributes": { + "description": "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface", + "properties": { + "group": { + "description": "Group is the API Group of the Resource. \"*\" means all.", + "type": "string" + }, + "name": { + "description": "Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.", + "type": "string" + }, + "namespace": { + "description": "Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview", + "type": "string" + }, + "resource": { + "description": "Resource is one of the existing resource types. \"*\" means all.", + "type": "string" + }, + "subresource": { + "description": "Subresource is one of the existing resource types. \"\" means none.", + "type": "string" + }, + "verb": { + "description": "Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", + "type": "string" + }, + "version": { + "description": "Version is the API Version of the Resource. \"*\" means all.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.authorization.v1.ResourceRule": { + "description": "ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", + "properties": { + "apiGroups": { + "description": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups.\n \"*/foo\" represents the subresource 'foo' for all resources in the specified apiGroups.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "verbs": { + "description": "Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "verbs" + ], + "type": "object" + }, + "io.k8s.api.authorization.v1.SelfSubjectAccessReview": { + "description": "SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec", + "description": "Spec holds information about the request being evaluated. user and groups must be empty" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReviewStatus", + "description": "Status is filled in by the server and indicates whether the request is allowed or not" + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.k8s.io", + "kind": "SelfSubjectAccessReview", + "version": "v1" + } + ] + }, + "io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec": { + "description": "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", + "properties": { + "nonResourceAttributes": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.NonResourceAttributes", + "description": "NonResourceAttributes describes information for a non-resource access request" + }, + "resourceAttributes": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.ResourceAttributes", + "description": "ResourceAuthorizationAttributes describes information for a resource access request" + } + }, + "type": "object" + }, + "io.k8s.api.authorization.v1.SelfSubjectRulesReview": { + "description": "SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectRulesReviewSpec", + "description": "Spec holds information about the request being evaluated." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectRulesReviewStatus", + "description": "Status is filled in by the server and indicates the set of actions a user can perform." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.k8s.io", + "kind": "SelfSubjectRulesReview", + "version": "v1" + } + ] + }, + "io.k8s.api.authorization.v1.SelfSubjectRulesReviewSpec": { + "description": "SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.", + "properties": { + "namespace": { + "description": "Namespace to evaluate rules for. Required.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.authorization.v1.SubjectAccessReview": { + "description": "SubjectAccessReview checks whether or not a user or group can perform an action.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReviewSpec", + "description": "Spec holds information about the request being evaluated" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReviewStatus", + "description": "Status is filled in by the server and indicates whether the request is allowed or not" + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.k8s.io", + "kind": "SubjectAccessReview", + "version": "v1" + } + ] + }, + "io.k8s.api.authorization.v1.SubjectAccessReviewSpec": { + "description": "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", + "properties": { + "extra": { + "additionalProperties": { + "items": { + "type": "string" + }, + "type": "array" + }, + "description": "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.", + "type": "object" + }, + "groups": { + "description": "Groups is the groups you're testing for.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "nonResourceAttributes": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.NonResourceAttributes", + "description": "NonResourceAttributes describes information for a non-resource access request" + }, + "resourceAttributes": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.ResourceAttributes", + "description": "ResourceAuthorizationAttributes describes information for a resource access request" + }, + "uid": { + "description": "UID information about the requesting user.", + "type": "string" + }, + "user": { + "description": "User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.authorization.v1.SubjectAccessReviewStatus": { + "description": "SubjectAccessReviewStatus", + "properties": { + "allowed": { + "description": "Allowed is required. True if the action would be allowed, false otherwise.", + "type": "boolean" + }, + "denied": { + "description": "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.", + "type": "boolean" + }, + "evaluationError": { + "description": "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", + "type": "string" + }, + "reason": { + "description": "Reason is optional. It indicates why a request was allowed or denied.", + "type": "string" + } + }, + "required": [ + "allowed" + ], + "type": "object" + }, + "io.k8s.api.authorization.v1.SubjectRulesReviewStatus": { + "description": "SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete.", + "properties": { + "evaluationError": { + "description": "EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete.", + "type": "string" + }, + "incomplete": { + "description": "Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.", + "type": "boolean" + }, + "nonResourceRules": { + "description": "NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", + "items": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.NonResourceRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resourceRules": { + "description": "ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", + "items": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.ResourceRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "resourceRules", + "nonResourceRules", + "incomplete" + ], + "type": "object" + }, + "io.k8s.api.autoscaling.v1.CrossVersionObjectReference": { + "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", + "properties": { + "apiVersion": { + "description": "apiVersion is the API version of the referent", + "type": "string" + }, + "kind": { + "description": "kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler": { + "description": "configuration of a horizontal pod autoscaler.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec", + "description": "spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerStatus", + "description": "status is the current information about the autoscaler." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" + } + ] + }, + "io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList": { + "description": "list of horizontal pod autoscaler objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is the list of horizontal pod autoscaler objects.", + "items": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "HorizontalPodAutoscalerList", + "version": "v1" + } + ] + }, + "io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec": { + "description": "specification of a horizontal pod autoscaler.", + "properties": { + "maxReplicas": { + "description": "maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.", + "format": "int32", + "type": "integer" + }, + "minReplicas": { + "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.", + "format": "int32", + "type": "integer" + }, + "scaleTargetRef": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.CrossVersionObjectReference", + "description": "reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource." + }, + "targetCPUUtilizationPercentage": { + "description": "targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "scaleTargetRef", + "maxReplicas" + ], + "type": "object" + }, + "io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerStatus": { + "description": "current status of a horizontal pod autoscaler", + "properties": { + "currentCPUUtilizationPercentage": { + "description": "currentCPUUtilizationPercentage is the current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU.", + "format": "int32", + "type": "integer" + }, + "currentReplicas": { + "description": "currentReplicas is the current number of replicas of pods managed by this autoscaler.", + "format": "int32", + "type": "integer" + }, + "desiredReplicas": { + "description": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler.", + "format": "int32", + "type": "integer" + }, + "lastScaleTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed." + }, + "observedGeneration": { + "description": "observedGeneration is the most recent generation observed by this autoscaler.", + "format": "int64", + "type": "integer" + } + }, + "required": [ + "currentReplicas", + "desiredReplicas" + ], + "type": "object" + }, + "io.k8s.api.autoscaling.v1.Scale": { + "description": "Scale represents a scaling request for a resource.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.ScaleSpec", + "description": "spec defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.ScaleStatus", + "description": "status is the current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" + } + ] + }, + "io.k8s.api.autoscaling.v1.ScaleSpec": { + "description": "ScaleSpec describes the attributes of a scale subresource.", + "properties": { + "replicas": { + "description": "replicas is the desired number of instances for the scaled object.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "io.k8s.api.autoscaling.v1.ScaleStatus": { + "description": "ScaleStatus represents the current status of a scale subresource.", + "properties": { + "replicas": { + "description": "replicas is the actual number of observed instances of the scaled object.", + "format": "int32", + "type": "integer" + }, + "selector": { + "description": "selector is the label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/", + "type": "string" + } + }, + "required": [ + "replicas" + ], + "type": "object" + }, + "io.k8s.api.autoscaling.v2.ContainerResourceMetricSource": { + "description": "ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", + "properties": { + "container": { + "description": "container is the name of the container in the pods of the scaling target", + "type": "string" + }, + "name": { + "description": "name is the name of the resource in question.", + "type": "string" + }, + "target": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "name", + "target", + "container" + ], + "type": "object" + }, + "io.k8s.api.autoscaling.v2.ContainerResourceMetricStatus": { + "description": "ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", + "properties": { + "container": { + "description": "container is the name of the container in the pods of the scaling target", + "type": "string" + }, + "current": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.MetricValueStatus", + "description": "current contains the current value for the given metric" + }, + "name": { + "description": "name is the name of the resource in question.", + "type": "string" + } + }, + "required": [ + "name", + "current", + "container" + ], + "type": "object" + }, + "io.k8s.api.autoscaling.v2.CrossVersionObjectReference": { + "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", + "properties": { + "apiVersion": { + "description": "apiVersion is the API version of the referent", + "type": "string" + }, + "kind": { + "description": "kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object" + }, + "io.k8s.api.autoscaling.v2.ExternalMetricSource": { + "description": "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).", + "properties": { + "metric": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + }, + "target": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "metric", + "target" + ], + "type": "object" + }, + "io.k8s.api.autoscaling.v2.ExternalMetricStatus": { + "description": "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.", + "properties": { + "current": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.MetricValueStatus", + "description": "current contains the current value for the given metric" + }, + "metric": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + } + }, + "required": [ + "metric", + "current" + ], + "type": "object" + }, + "io.k8s.api.autoscaling.v2.HPAScalingPolicy": { + "description": "HPAScalingPolicy is a single policy which must hold true for a specified past interval.", + "properties": { + "periodSeconds": { + "description": "periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).", + "format": "int32", + "type": "integer" + }, + "type": { + "description": "type is used to specify the scaling policy.", + "type": "string" + }, + "value": { + "description": "value contains the amount of change which is permitted by the policy. It must be greater than zero", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "type", + "value", + "periodSeconds" + ], + "type": "object" + }, + "io.k8s.api.autoscaling.v2.HPAScalingRules": { + "description": "HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.", + "properties": { + "policies": { + "description": "policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid", + "items": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HPAScalingPolicy" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "selectPolicy": { + "description": "selectPolicy is used to specify which policy should be used. If not set, the default value Max is used.", + "type": "string" + }, + "stabilizationWindowSeconds": { + "description": "stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler": { + "description": "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec", + "description": "spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerStatus", + "description": "status is the current information about the autoscaler." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + } + ] + }, + "io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerBehavior": { + "description": "HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).", + "properties": { + "scaleDown": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HPAScalingRules", + "description": "scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used)." + }, + "scaleUp": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HPAScalingRules", + "description": "scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of:\n * increase no more than 4 pods per 60 seconds\n * double the number of pods per 60 seconds\nNo stabilization is used." + } + }, + "type": "object" + }, + "io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerCondition": { + "description": "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime is the last time the condition transitioned from one status to another" + }, + "message": { + "description": "message is a human-readable explanation containing details about the transition", + "type": "string" + }, + "reason": { + "description": "reason is the reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "status is the status of the condition (True, False, Unknown)", + "type": "string" + }, + "type": { + "description": "type describes the current condition", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": "object" + }, + "io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList": { + "description": "HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is the list of horizontal pod autoscaler objects.", + "items": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "metadata is the standard list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "HorizontalPodAutoscalerList", + "version": "v2" + } + ] + }, + "io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec": { + "description": "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.", + "properties": { + "behavior": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerBehavior", + "description": "behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used." + }, + "maxReplicas": { + "description": "maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.", + "format": "int32", + "type": "integer" + }, + "metrics": { + "description": "metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization.", + "items": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.MetricSpec" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "minReplicas": { + "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.", + "format": "int32", + "type": "integer" + }, + "scaleTargetRef": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.CrossVersionObjectReference", + "description": "scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count." + } + }, + "required": [ + "scaleTargetRef", + "maxReplicas" + ], + "type": "object" + }, + "io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerStatus": { + "description": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.", + "properties": { + "conditions": { + "description": "conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.", + "items": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "currentMetrics": { + "description": "currentMetrics is the last read state of the metrics used by this autoscaler.", + "items": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.MetricStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "currentReplicas": { + "description": "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.", + "format": "int32", + "type": "integer" + }, + "desiredReplicas": { + "description": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.", + "format": "int32", + "type": "integer" + }, + "lastScaleTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed." + }, + "observedGeneration": { + "description": "observedGeneration is the most recent generation observed by this autoscaler.", + "format": "int64", + "type": "integer" + } + }, + "required": [ + "desiredReplicas" + ], + "type": "object" + }, + "io.k8s.api.autoscaling.v2.MetricIdentifier": { + "description": "MetricIdentifier defines the name and optionally selector for a metric", + "properties": { + "name": { + "description": "name is the name of the given metric", + "type": "string" + }, + "selector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics." + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.api.autoscaling.v2.MetricSpec": { + "description": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).", + "properties": { + "containerResource": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.ContainerResourceMetricSource", + "description": "containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag." + }, + "external": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.ExternalMetricSource", + "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." + }, + "object": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.ObjectMetricSource", + "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." + }, + "pods": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.PodsMetricSource", + "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value." + }, + "resource": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.ResourceMetricSource", + "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." + }, + "type": { + "description": "type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object" + }, + "io.k8s.api.autoscaling.v2.MetricStatus": { + "description": "MetricStatus describes the last-read state of a single metric.", + "properties": { + "containerResource": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.ContainerResourceMetricStatus", + "description": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." + }, + "external": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.ExternalMetricStatus", + "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." + }, + "object": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.ObjectMetricStatus", + "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." + }, + "pods": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.PodsMetricStatus", + "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value." + }, + "resource": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.ResourceMetricStatus", + "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." + }, + "type": { + "description": "type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object" + }, + "io.k8s.api.autoscaling.v2.MetricTarget": { + "description": "MetricTarget defines the target value, average value, or average utilization of a specific metric", + "properties": { + "averageUtilization": { + "description": "averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type", + "format": "int32", + "type": "integer" + }, + "averageValue": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "averageValue is the target value of the average of the metric across all relevant pods (as a quantity)" + }, + "type": { + "description": "type represents whether the metric type is Utilization, Value, or AverageValue", + "type": "string" + }, + "value": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "value is the target value of the metric (as a quantity)." + } + }, + "required": [ + "type" + ], + "type": "object" + }, + "io.k8s.api.autoscaling.v2.MetricValueStatus": { + "description": "MetricValueStatus holds the current value for a metric", + "properties": { + "averageUtilization": { + "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", + "format": "int32", + "type": "integer" + }, + "averageValue": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)" + }, + "value": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "value is the current value of the metric (as a quantity)." + } + }, + "type": "object" + }, + "io.k8s.api.autoscaling.v2.ObjectMetricSource": { + "description": "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", + "properties": { + "describedObject": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.CrossVersionObjectReference", + "description": "describedObject specifies the descriptions of a object,such as kind,name apiVersion" + }, + "metric": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + }, + "target": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "describedObject", + "target", + "metric" + ], + "type": "object" + }, + "io.k8s.api.autoscaling.v2.ObjectMetricStatus": { + "description": "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", + "properties": { + "current": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.MetricValueStatus", + "description": "current contains the current value for the given metric" + }, + "describedObject": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.CrossVersionObjectReference", + "description": "DescribedObject specifies the descriptions of a object,such as kind,name apiVersion" + }, + "metric": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + } + }, + "required": [ + "metric", + "current", + "describedObject" + ], + "type": "object" + }, + "io.k8s.api.autoscaling.v2.PodsMetricSource": { + "description": "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", + "properties": { + "metric": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + }, + "target": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "metric", + "target" + ], + "type": "object" + }, + "io.k8s.api.autoscaling.v2.PodsMetricStatus": { + "description": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).", + "properties": { + "current": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.MetricValueStatus", + "description": "current contains the current value for the given metric" + }, + "metric": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + } + }, + "required": [ + "metric", + "current" + ], + "type": "object" + }, + "io.k8s.api.autoscaling.v2.ResourceMetricSource": { + "description": "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", + "properties": { + "name": { + "description": "name is the name of the resource in question.", + "type": "string" + }, + "target": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "name", + "target" + ], + "type": "object" + }, + "io.k8s.api.autoscaling.v2.ResourceMetricStatus": { + "description": "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", + "properties": { + "current": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.MetricValueStatus", + "description": "current contains the current value for the given metric" + }, + "name": { + "description": "name is the name of the resource in question.", + "type": "string" + } + }, + "required": [ + "name", + "current" + ], + "type": "object" + }, + "io.k8s.api.batch.v1.CronJob": { + "description": "CronJob represents the configuration of a single cron job.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.batch.v1.CronJobSpec", + "description": "Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.batch.v1.CronJobStatus", + "description": "Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "batch", + "kind": "CronJob", + "version": "v1" + } + ] + }, + "io.k8s.api.batch.v1.CronJobList": { + "description": "CronJobList is a collection of cron jobs.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is the list of CronJobs.", + "items": { + "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "batch", + "kind": "CronJobList", + "version": "v1" + } + ] + }, + "io.k8s.api.batch.v1.CronJobSpec": { + "description": "CronJobSpec describes how the job execution will look like and when it will actually run.", + "properties": { + "concurrencyPolicy": { + "description": "Specifies how to treat concurrent executions of a Job. Valid values are:\n\n- \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one", + "type": "string" + }, + "failedJobsHistoryLimit": { + "description": "The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1.", + "format": "int32", + "type": "integer" + }, + "jobTemplate": { + "$ref": "#/definitions/io.k8s.api.batch.v1.JobTemplateSpec", + "description": "Specifies the job that will be created when executing a CronJob." + }, + "schedule": { + "description": "The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.", + "type": "string" + }, + "startingDeadlineSeconds": { + "description": "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.", + "format": "int64", + "type": "integer" + }, + "successfulJobsHistoryLimit": { + "description": "The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3.", + "format": "int32", + "type": "integer" + }, + "suspend": { + "description": "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", + "type": "boolean" + }, + "timeZone": { + "description": "The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones", + "type": "string" + } + }, + "required": [ + "schedule", + "jobTemplate" + ], + "type": "object" + }, + "io.k8s.api.batch.v1.CronJobStatus": { + "description": "CronJobStatus represents the current state of a cron job.", + "properties": { + "active": { + "description": "A list of pointers to currently running jobs.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "lastScheduleTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Information when was the last time the job was successfully scheduled." + }, + "lastSuccessfulTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Information when was the last time the job successfully completed." + } + }, + "type": "object" + }, + "io.k8s.api.batch.v1.Job": { + "description": "Job represents the configuration of a single job.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.batch.v1.JobSpec", + "description": "Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.batch.v1.JobStatus", + "description": "Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "batch", + "kind": "Job", + "version": "v1" + } + ] + }, + "io.k8s.api.batch.v1.JobCondition": { + "description": "JobCondition describes current state of a job.", + "properties": { + "lastProbeTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition was checked." + }, + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transit from one status to another." + }, + "message": { + "description": "Human readable message indicating details about last transition.", + "type": "string" + }, + "reason": { + "description": "(brief) reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of job condition, Complete or Failed.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": "object" + }, + "io.k8s.api.batch.v1.JobList": { + "description": "JobList is a collection of jobs.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is the list of Jobs.", + "items": { + "$ref": "#/definitions/io.k8s.api.batch.v1.Job" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "batch", + "kind": "JobList", + "version": "v1" + } + ] + }, + "io.k8s.api.batch.v1.JobSpec": { + "description": "JobSpec describes how the job execution will look like.", + "properties": { + "activeDeadlineSeconds": { + "description": "Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again.", + "format": "int64", + "type": "integer" + }, + "backoffLimit": { + "description": "Specifies the number of retries before marking this job failed. Defaults to 6", + "format": "int32", + "type": "integer" + }, + "backoffLimitPerIndex": { + "description": "Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).", + "format": "int32", + "type": "integer" + }, + "completionMode": { + "description": "completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`.\n\n`NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other.\n\n`Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`.\n\nMore completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.", + "type": "string" + }, + "completions": { + "description": "Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", + "format": "int32", + "type": "integer" + }, + "manualSelector": { + "description": "manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector", + "type": "boolean" + }, + "maxFailedIndexes": { + "description": "Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).", + "format": "int32", + "type": "integer" + }, + "parallelism": { + "description": "Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", + "format": "int32", + "type": "integer" + }, + "podFailurePolicy": { + "$ref": "#/definitions/io.k8s.api.batch.v1.PodFailurePolicy", + "description": "Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.\n\nThis field is beta-level. It can be used when the `JobPodFailurePolicy` feature gate is enabled (enabled by default)." + }, + "podReplacementPolicy": { + "description": "podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods\n when they are terminating (has a metadata.deletionTimestamp) or failed.\n- Failed means to wait until a previously created Pod is fully terminated (has phase\n Failed or Succeeded) before creating a replacement Pod.\n\nWhen using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default.", + "type": "string" + }, + "selector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + }, + "suspend": { + "description": "suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.", + "type": "boolean" + }, + "template": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec", + "description": "Describes the pod that will be created when executing a job. The only allowed template.spec.restartPolicy values are \"Never\" or \"OnFailure\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/" + }, + "ttlSecondsAfterFinished": { + "description": "ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "template" + ], + "type": "object" + }, + "io.k8s.api.batch.v1.JobStatus": { + "description": "JobStatus represents the current state of a Job.", + "properties": { + "active": { + "description": "The number of pending and running pods.", + "format": "int32", + "type": "integer" + }, + "completedIndexes": { + "description": "completedIndexes holds the completed indexes when .spec.completionMode = \"Indexed\" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\".", + "type": "string" + }, + "completionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is only set when the job finishes successfully." + }, + "conditions": { + "description": "The latest available observations of an object's current state. When a Job fails, one of the conditions will have type \"Failed\" and status true. When a Job is suspended, one of the conditions will have type \"Suspended\" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type \"Complete\" and status true. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", + "items": { + "$ref": "#/definitions/io.k8s.api.batch.v1.JobCondition" + }, + "type": "array", + "x-kubernetes-list-type": "atomic", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "failed": { + "description": "The number of pods which reached phase Failed.", + "format": "int32", + "type": "integer" + }, + "failedIndexes": { + "description": "FailedIndexes holds the failed indexes when backoffLimitPerIndex=true. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).", + "type": "string" + }, + "ready": { + "description": "The number of pods which have a Ready condition.", + "format": "int32", + "type": "integer" + }, + "startTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC." + }, + "succeeded": { + "description": "The number of pods which reached phase Succeeded.", + "format": "int32", + "type": "integer" + }, + "terminating": { + "description": "The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).\n\nThis field is beta-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (enabled by default).", + "format": "int32", + "type": "integer" + }, + "uncountedTerminatedPods": { + "$ref": "#/definitions/io.k8s.api.batch.v1.UncountedTerminatedPods", + "description": "uncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters.\n\nThe job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status:\n\n1. Add the pod UID to the arrays in this field. 2. Remove the pod finalizer. 3. Remove the pod UID from the arrays while increasing the corresponding\n counter.\n\nOld jobs might not be tracked using this field, in which case the field remains null." + } + }, + "type": "object" + }, + "io.k8s.api.batch.v1.JobTemplateSpec": { + "description": "JobTemplateSpec describes the data a Job should have when created from a template", + "properties": { + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.batch.v1.JobSpec", + "description": "Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object" + }, + "io.k8s.api.batch.v1.PodFailurePolicy": { + "description": "PodFailurePolicy describes how failed pods influence the backoffLimit.", + "properties": { + "rules": { + "description": "A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.", + "items": { + "$ref": "#/definitions/io.k8s.api.batch.v1.PodFailurePolicyRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "rules" + ], + "type": "object" + }, + "io.k8s.api.batch.v1.PodFailurePolicyOnExitCodesRequirement": { + "description": "PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check.", + "properties": { + "containerName": { + "description": "Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template.", + "type": "string" + }, + "operator": { + "description": "Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are:\n\n- In: the requirement is satisfied if at least one container exit code\n (might be multiple if there are multiple containers not restricted\n by the 'containerName' field) is in the set of specified values.\n- NotIn: the requirement is satisfied if at least one container exit code\n (might be multiple if there are multiple containers not restricted\n by the 'containerName' field) is not in the set of specified values.\nAdditional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied.", + "type": "string" + }, + "values": { + "description": "Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed.", + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "operator", + "values" + ], + "type": "object" + }, + "io.k8s.api.batch.v1.PodFailurePolicyOnPodConditionsPattern": { + "description": "PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.", + "properties": { + "status": { + "description": "Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.", + "type": "string" + }, + "type": { + "description": "Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": "object" + }, + "io.k8s.api.batch.v1.PodFailurePolicyRule": { + "description": "PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule.", + "properties": { + "action": { + "description": "Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are:\n\n- FailJob: indicates that the pod's job is marked as Failed and all\n running pods are terminated.\n- FailIndex: indicates that the pod's index is marked as Failed and will\n not be restarted.\n This value is beta-level. It can be used when the\n `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).\n- Ignore: indicates that the counter towards the .backoffLimit is not\n incremented and a replacement pod is created.\n- Count: indicates that the pod is handled in the default way - the\n counter towards the .backoffLimit is incremented.\nAdditional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule.", + "type": "string" + }, + "onExitCodes": { + "$ref": "#/definitions/io.k8s.api.batch.v1.PodFailurePolicyOnExitCodesRequirement", + "description": "Represents the requirement on the container exit codes." + }, + "onPodConditions": { + "description": "Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed.", + "items": { + "$ref": "#/definitions/io.k8s.api.batch.v1.PodFailurePolicyOnPodConditionsPattern" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "action" + ], + "type": "object" + }, + "io.k8s.api.batch.v1.UncountedTerminatedPods": { + "description": "UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.", + "properties": { + "failed": { + "description": "failed holds UIDs of failed Pods.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "succeeded": { + "description": "succeeded holds UIDs of succeeded Pods.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "type": "object" + }, + "io.k8s.api.certificates.v1.CertificateSigningRequest": { + "description": "CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued.\n\nKubelets use this API to obtain:\n 1. client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client-kubelet\" signerName).\n 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the \"kubernetes.io/kubelet-serving\" signerName).\n\nThis API can be used to request client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client\" signerName), or to obtain certificates from custom non-Kubernetes signers.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequestSpec", + "description": "spec contains the certificate request, and is immutable after creation. Only the request, signerName, expirationSeconds, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequestStatus", + "description": "status contains information about whether the request is approved or denied, and the certificate issued by the signer, or the failure condition indicating signer failure." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" + } + ] + }, + "io.k8s.api.certificates.v1.CertificateSigningRequestCondition": { + "description": "CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object", + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time." + }, + "lastUpdateTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastUpdateTime is the time of the last update to this condition" + }, + "message": { + "description": "message contains a human readable message with details about the request state", + "type": "string" + }, + "reason": { + "description": "reason indicates a brief reason for the request state", + "type": "string" + }, + "status": { + "description": "status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be \"False\" or \"Unknown\".", + "type": "string" + }, + "type": { + "description": "type of the condition. Known conditions are \"Approved\", \"Denied\", and \"Failed\".\n\nAn \"Approved\" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer.\n\nA \"Denied\" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer.\n\nA \"Failed\" condition is added via the /status subresource, indicating the signer failed to issue the certificate.\n\nApproved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added.\n\nOnly one condition of a given type is allowed.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": "object" + }, + "io.k8s.api.certificates.v1.CertificateSigningRequestList": { + "description": "CertificateSigningRequestList is a collection of CertificateSigningRequest objects", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is a collection of CertificateSigningRequest objects", + "items": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequestList", + "version": "v1" + } + ] + }, + "io.k8s.api.certificates.v1.CertificateSigningRequestSpec": { + "description": "CertificateSigningRequestSpec contains the certificate request.", + "properties": { + "expirationSeconds": { + "description": "expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the issued certificate to determine the actual duration.\n\nThe v1.22+ in-tree implementations of the well-known Kubernetes signers will honor this field as long as the requested duration is not greater than the maximum duration they will honor per the --cluster-signing-duration CLI flag to the Kubernetes controller manager.\n\nCertificate signers may not honor this field for various reasons:\n\n 1. Old signer that is unaware of the field (such as the in-tree\n implementations prior to v1.22)\n 2. Signer whose configured maximum is shorter than the requested duration\n 3. Signer whose configured minimum is longer than the requested duration\n\nThe minimum valid value for expirationSeconds is 600, i.e. 10 minutes.", + "format": "int32", + "type": "integer" + }, + "extra": { + "additionalProperties": { + "items": { + "type": "string" + }, + "type": "array" + }, + "description": "extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "type": "object" + }, + "groups": { + "description": "groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "request": { + "description": "request contains an x509 certificate signing request encoded in a \"CERTIFICATE REQUEST\" PEM block. When serialized as JSON or YAML, the data is additionally base64-encoded.", + "format": "byte", + "type": "string", + "x-kubernetes-list-type": "atomic" + }, + "signerName": { + "description": "signerName indicates the requested signer, and is a qualified name.\n\nList/watch requests for CertificateSigningRequests can filter on this field using a \"spec.signerName=NAME\" fieldSelector.\n\nWell-known Kubernetes signers are:\n 1. \"kubernetes.io/kube-apiserver-client\": issues client certificates that can be used to authenticate to kube-apiserver.\n Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the \"csrsigning\" controller in kube-controller-manager.\n 2. \"kubernetes.io/kube-apiserver-client-kubelet\": issues client certificates that kubelets use to authenticate to kube-apiserver.\n Requests for this signer can be auto-approved by the \"csrapproving\" controller in kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager.\n 3. \"kubernetes.io/kubelet-serving\" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely.\n Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager.\n\nMore details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers\n\nCustom signerNames can also be specified. The signer defines:\n 1. Trust distribution: how trust (CA bundles) are distributed.\n 2. Permitted subjects: and behavior when a disallowed subject is requested.\n 3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested.\n 4. Required, permitted, or forbidden key usages / extended key usages.\n 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin.\n 6. Whether or not requests for CA certificates are allowed.", + "type": "string" + }, + "uid": { + "description": "uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "type": "string" + }, + "usages": { + "description": "usages specifies a set of key usages requested in the issued certificate.\n\nRequests for TLS client certificates typically request: \"digital signature\", \"key encipherment\", \"client auth\".\n\nRequests for TLS serving certificates typically request: \"key encipherment\", \"digital signature\", \"server auth\".\n\nValid values are:\n \"signing\", \"digital signature\", \"content commitment\",\n \"key encipherment\", \"key agreement\", \"data encipherment\",\n \"cert sign\", \"crl sign\", \"encipher only\", \"decipher only\", \"any\",\n \"server auth\", \"client auth\",\n \"code signing\", \"email protection\", \"s/mime\",\n \"ipsec end system\", \"ipsec tunnel\", \"ipsec user\",\n \"timestamping\", \"ocsp signing\", \"microsoft sgc\", \"netscape sgc\"", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "username": { + "description": "username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "type": "string" + } + }, + "required": [ + "request", + "signerName" + ], + "type": "object" + }, + "io.k8s.api.certificates.v1.CertificateSigningRequestStatus": { + "description": "CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate.", + "properties": { + "certificate": { + "description": "certificate is populated with an issued certificate by the signer after an Approved condition is present. This field is set via the /status subresource. Once populated, this field is immutable.\n\nIf the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty.\n\nValidation requirements:\n 1. certificate must contain one or more PEM blocks.\n 2. All PEM blocks must have the \"CERTIFICATE\" label, contain no headers, and the encoded data\n must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280.\n 3. Non-PEM content may appear before or after the \"CERTIFICATE\" PEM blocks and is unvalidated,\n to allow for explanatory text as described in section 5.2 of RFC7468.\n\nIf more than one PEM block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes.\n\nThe certificate is encoded in PEM format.\n\nWhen serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of:\n\n base64(\n -----BEGIN CERTIFICATE-----\n ...\n -----END CERTIFICATE-----\n )", + "format": "byte", + "type": "string", + "x-kubernetes-list-type": "atomic" + }, + "conditions": { + "description": "conditions applied to the request. Known conditions are \"Approved\", \"Denied\", and \"Failed\".", + "items": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequestCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": "object" + }, + "io.k8s.api.certificates.v1alpha1.ClusterTrustBundle": { + "description": "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\n\nClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to.\n\nIt can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "metadata contains the object metadata." + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundleSpec", + "description": "spec contains the signer (if any) and trust anchors." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.certificates.v1alpha1.ClusterTrustBundleList": { + "description": "ClusterTrustBundleList is a collection of ClusterTrustBundle objects", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is a collection of ClusterTrustBundle objects", + "items": { + "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "metadata contains the list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundleList", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.certificates.v1alpha1.ClusterTrustBundleSpec": { + "description": "ClusterTrustBundleSpec contains the signer and trust anchors.", + "properties": { + "signerName": { + "description": "signerName indicates the associated signer, if any.\n\nIn order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName= verb=attest.\n\nIf signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`.\n\nIf signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.\n\nList/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.", + "type": "string" + }, + "trustBundle": { + "description": "trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.\n\nThe data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers.\n\nUsers of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data.", + "type": "string" + } + }, + "required": [ + "trustBundle" + ], + "type": "object" + }, + "io.k8s.api.coordination.v1.Lease": { + "description": "Lease defines a lease concept.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.coordination.v1.LeaseSpec", + "description": "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "coordination.k8s.io", + "kind": "Lease", + "version": "v1" + } + ] + }, + "io.k8s.api.coordination.v1.LeaseList": { + "description": "LeaseList is a list of Lease objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is a list of schema objects.", + "items": { + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "coordination.k8s.io", + "kind": "LeaseList", + "version": "v1" + } + ] + }, + "io.k8s.api.coordination.v1.LeaseSpec": { + "description": "LeaseSpec is a specification of a Lease.", + "properties": { + "acquireTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "acquireTime is a time when the current lease was acquired." + }, + "holderIdentity": { + "description": "holderIdentity contains the identity of the holder of a current lease.", + "type": "string" + }, + "leaseDurationSeconds": { + "description": "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime.", + "format": "int32", + "type": "integer" + }, + "leaseTransitions": { + "description": "leaseTransitions is the number of transitions of a lease between holders.", + "format": "int32", + "type": "integer" + }, + "renewTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "renewTime is a time when the current holder of a lease has last updated the lease." + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource": { + "description": "Represents a Persistent Disk resource in AWS.\n\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + "type": "string" + }, + "partition": { + "description": "partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).", + "format": "int32", + "type": "integer" + }, + "readOnly": { + "description": "readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + "type": "boolean" + }, + "volumeID": { + "description": "volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + "type": "string" + } + }, + "required": [ + "volumeID" + ], + "type": "object" + }, + "io.k8s.api.core.v1.Affinity": { + "description": "Affinity is a group of affinity scheduling rules.", + "properties": { + "nodeAffinity": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeAffinity", + "description": "Describes node affinity scheduling rules for the pod." + }, + "podAffinity": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodAffinity", + "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s))." + }, + "podAntiAffinity": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodAntiAffinity", + "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s))." + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.AttachedVolume": { + "description": "AttachedVolume describes a volume attached to a node", + "properties": { + "devicePath": { + "description": "DevicePath represents the device path where the volume should be available", + "type": "string" + }, + "name": { + "description": "Name of the attached volume", + "type": "string" + } + }, + "required": [ + "name", + "devicePath" + ], + "type": "object" + }, + "io.k8s.api.core.v1.AzureDiskVolumeSource": { + "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + "properties": { + "cachingMode": { + "description": "cachingMode is the Host Caching mode: None, Read Only, Read Write.", + "type": "string" + }, + "diskName": { + "description": "diskName is the Name of the data disk in the blob storage", + "type": "string" + }, + "diskURI": { + "description": "diskURI is the URI of data disk in the blob storage", + "type": "string" + }, + "fsType": { + "description": "fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": "string" + }, + "kind": { + "description": "kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared", + "type": "string" + }, + "readOnly": { + "description": "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + } + }, + "required": [ + "diskName", + "diskURI" + ], + "type": "object" + }, + "io.k8s.api.core.v1.AzureFilePersistentVolumeSource": { + "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", + "properties": { + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretName": { + "description": "secretName is the name of secret that contains Azure Storage Account Name and Key", + "type": "string" + }, + "secretNamespace": { + "description": "secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod", + "type": "string" + }, + "shareName": { + "description": "shareName is the azure Share Name", + "type": "string" + } + }, + "required": [ + "secretName", + "shareName" + ], + "type": "object" + }, + "io.k8s.api.core.v1.AzureFileVolumeSource": { + "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", + "properties": { + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretName": { + "description": "secretName is the name of secret that contains Azure Storage Account Name and Key", + "type": "string" + }, + "shareName": { + "description": "shareName is the azure share Name", + "type": "string" + } + }, + "required": [ + "secretName", + "shareName" + ], + "type": "object" + }, + "io.k8s.api.core.v1.Binding": { + "description": "Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "target": { + "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", + "description": "The target object that you want to bind to the standard object." + } + }, + "required": [ + "target" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Binding", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.CSIPersistentVolumeSource": { + "description": "Represents storage that is managed by an external CSI volume driver (Beta feature)", + "properties": { + "controllerExpandSecretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", + "description": "controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, + "controllerPublishSecretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", + "description": "controllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, + "driver": { + "description": "driver is the name of the driver to use for this volume. Required.", + "type": "string" + }, + "fsType": { + "description": "fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".", + "type": "string" + }, + "nodeExpandSecretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", + "description": "nodeExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeExpandVolume call. This field is optional, may be omitted if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, + "nodePublishSecretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", + "description": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, + "nodeStageSecretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", + "description": "nodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, + "readOnly": { + "description": "readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).", + "type": "boolean" + }, + "volumeAttributes": { + "additionalProperties": { + "type": "string" + }, + "description": "volumeAttributes of the volume to publish.", + "type": "object" + }, + "volumeHandle": { + "description": "volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required.", + "type": "string" + } + }, + "required": [ + "driver", + "volumeHandle" + ], + "type": "object" + }, + "io.k8s.api.core.v1.CSIVolumeSource": { + "description": "Represents a source location of a volume to mount, managed by an external CSI driver", + "properties": { + "driver": { + "description": "driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.", + "type": "string" + }, + "fsType": { + "description": "fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.", + "type": "string" + }, + "nodePublishSecretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference", + "description": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed." + }, + "readOnly": { + "description": "readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).", + "type": "boolean" + }, + "volumeAttributes": { + "additionalProperties": { + "type": "string" + }, + "description": "volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.", + "type": "object" + } + }, + "required": [ + "driver" + ], + "type": "object" + }, + "io.k8s.api.core.v1.Capabilities": { + "description": "Adds and removes POSIX capabilities from running containers.", + "properties": { + "add": { + "description": "Added capabilities", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "drop": { + "description": "Removed capabilities", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.CephFSPersistentVolumeSource": { + "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", + "properties": { + "monitors": { + "description": "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "path": { + "description": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", + "type": "string" + }, + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": "boolean" + }, + "secretFile": { + "description": "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": "string" + }, + "secretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it" + }, + "user": { + "description": "user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": "string" + } + }, + "required": [ + "monitors" + ], + "type": "object" + }, + "io.k8s.api.core.v1.CephFSVolumeSource": { + "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", + "properties": { + "monitors": { + "description": "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "path": { + "description": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", + "type": "string" + }, + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": "boolean" + }, + "secretFile": { + "description": "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": "string" + }, + "secretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it" + }, + "user": { + "description": "user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": "string" + } + }, + "required": [ + "monitors" + ], + "type": "object" + }, + "io.k8s.api.core.v1.CinderPersistentVolumeSource": { + "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": "string" + }, + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack." + }, + "volumeID": { + "description": "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": "string" + } + }, + "required": [ + "volumeID" + ], + "type": "object" + }, + "io.k8s.api.core.v1.CinderVolumeSource": { + "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": "string" + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is optional: points to a secret object containing parameters used to connect to OpenStack." + }, + "volumeID": { + "description": "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": "string" + } + }, + "required": [ + "volumeID" + ], + "type": "object" + }, + "io.k8s.api.core.v1.ClaimSource": { + "description": "ClaimSource describes a reference to a ResourceClaim.\n\nExactly one of these fields should be set. Consumers of this type must treat an empty object as if it has an unknown value.", + "properties": { + "resourceClaimName": { + "description": "ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod.", + "type": "string" + }, + "resourceClaimTemplateName": { + "description": "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.ClientIPConfig": { + "description": "ClientIPConfig represents the configurations of Client IP based session affinity.", + "properties": { + "timeoutSeconds": { + "description": "timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.ClusterTrustBundleProjection": { + "description": "ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem.", + "properties": { + "labelSelector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "Select all ClusterTrustBundles that match this label selector. Only has effect if signerName is set. Mutually-exclusive with name. If unset, interpreted as \"match nothing\". If set but empty, interpreted as \"match everything\"." + }, + "name": { + "description": "Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector.", + "type": "string" + }, + "optional": { + "description": "If true, don't block pod startup if the referenced ClusterTrustBundle(s) aren't available. If using name, then the named ClusterTrustBundle is allowed not to exist. If using signerName, then the combination of signerName and labelSelector is allowed to match zero ClusterTrustBundles.", + "type": "boolean" + }, + "path": { + "description": "Relative path from the volume root to write the bundle.", + "type": "string" + }, + "signerName": { + "description": "Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated.", + "type": "string" + } + }, + "required": [ + "path" + ], + "type": "object" + }, + "io.k8s.api.core.v1.ComponentCondition": { + "description": "Information about the condition of a component.", + "properties": { + "error": { + "description": "Condition error code for a component. For example, a health check error code.", + "type": "string" + }, + "message": { + "description": "Message about the condition for a component. For example, information about a health check.", + "type": "string" + }, + "status": { + "description": "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".", + "type": "string" + }, + "type": { + "description": "Type of condition for a component. Valid value: \"Healthy\"", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": "object" + }, + "io.k8s.api.core.v1.ComponentStatus": { + "description": "ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "conditions": { + "description": "List of component conditions observed", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.ComponentCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ComponentStatus", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.ComponentStatusList": { + "description": "Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of ComponentStatus objects.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.ComponentStatus" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ComponentStatusList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.ConfigMap": { + "description": "ConfigMap holds configuration data for pods to consume.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "binaryData": { + "additionalProperties": { + "format": "byte", + "type": "string" + }, + "description": "BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.", + "type": "object" + }, + "data": { + "additionalProperties": { + "type": "string" + }, + "description": "Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.", + "type": "object" + }, + "immutable": { + "description": "Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.", + "type": "boolean" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ConfigMap", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.ConfigMapEnvSource": { + "description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.", + "properties": { + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the ConfigMap must be defined", + "type": "boolean" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.ConfigMapKeySelector": { + "description": "Selects a key from a ConfigMap.", + "properties": { + "key": { + "description": "The key to select.", + "type": "string" + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the ConfigMap or its key must be defined", + "type": "boolean" + } + }, + "required": [ + "key" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.ConfigMapList": { + "description": "ConfigMapList is a resource containing a list of ConfigMap objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is the list of ConfigMaps.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ConfigMapList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.ConfigMapNodeConfigSource": { + "description": "ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration", + "properties": { + "kubeletConfigKey": { + "description": "KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.", + "type": "string" + }, + "name": { + "description": "Name is the metadata.name of the referenced ConfigMap. This field is required in all cases.", + "type": "string" + }, + "namespace": { + "description": "Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.", + "type": "string" + }, + "resourceVersion": { + "description": "ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", + "type": "string" + }, + "uid": { + "description": "UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", + "type": "string" + } + }, + "required": [ + "namespace", + "name", + "kubeletConfigKey" + ], + "type": "object" + }, + "io.k8s.api.core.v1.ConfigMapProjection": { + "description": "Adapts a ConfigMap into a projected volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.", + "properties": { + "items": { + "description": "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.KeyToPath" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "optional specify whether the ConfigMap or its keys must be defined", + "type": "boolean" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.ConfigMapVolumeSource": { + "description": "Adapts a ConfigMap into a volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.", + "properties": { + "defaultMode": { + "description": "defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" + }, + "items": { + "description": "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.KeyToPath" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "optional specify whether the ConfigMap or its keys must be defined", + "type": "boolean" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.Container": { + "description": "A single application container that you want to run within a pod.", + "properties": { + "args": { + "description": "Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "command": { + "description": "Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "env": { + "description": "List of environment variables to set in the container. Cannot be updated.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.EnvVar" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "envFrom": { + "description": "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.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.EnvFromSource" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "image": { + "description": "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.", + "type": "string" + }, + "imagePullPolicy": { + "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images", + "type": "string" + }, + "lifecycle": { + "$ref": "#/definitions/io.k8s.api.core.v1.Lifecycle", + "description": "Actions that the management system should take in response to container lifecycle events. Cannot be updated." + }, + "livenessProbe": { + "$ref": "#/definitions/io.k8s.api.core.v1.Probe", + "description": "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + }, + "name": { + "description": "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.", + "type": "string" + }, + "ports": { + "description": "List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.ContainerPort" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "containerPort", + "protocol" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "containerPort", + "x-kubernetes-patch-strategy": "merge" + }, + "readinessProbe": { + "$ref": "#/definitions/io.k8s.api.core.v1.Probe", + "description": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + }, + "resizePolicy": { + "description": "Resources resize policy for the container.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.ContainerResizePolicy" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceRequirements", + "description": "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" + }, + "restartPolicy": { + "description": "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.", + "type": "string" + }, + "securityContext": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecurityContext", + "description": "SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/" + }, + "startupProbe": { + "$ref": "#/definitions/io.k8s.api.core.v1.Probe", + "description": "StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + }, + "stdin": { + "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", + "type": "boolean" + }, + "stdinOnce": { + "description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", + "type": "boolean" + }, + "terminationMessagePath": { + "description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.", + "type": "string" + }, + "terminationMessagePolicy": { + "description": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.", + "type": "string" + }, + "tty": { + "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", + "type": "boolean" + }, + "volumeDevices": { + "description": "volumeDevices is the list of block devices to be used by the container.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.VolumeDevice" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "devicePath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "devicePath", + "x-kubernetes-patch-strategy": "merge" + }, + "volumeMounts": { + "description": "Pod volumes to mount into the container's filesystem. Cannot be updated.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.VolumeMount" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "mountPath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "mountPath", + "x-kubernetes-patch-strategy": "merge" + }, + "workingDir": { + "description": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.api.core.v1.ContainerImage": { + "description": "Describe a container image", + "properties": { + "names": { + "description": "Names by which this image is known. e.g. [\"kubernetes.example/hyperkube:v1.0.7\", \"cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7\"]", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "sizeBytes": { + "description": "The size of the image in bytes.", + "format": "int64", + "type": "integer" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.ContainerPort": { + "description": "ContainerPort represents a network port in a single container.", + "properties": { + "containerPort": { + "description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.", + "format": "int32", + "type": "integer" + }, + "hostIP": { + "description": "What host IP to bind the external port to.", + "type": "string" + }, + "hostPort": { + "description": "Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.", + "format": "int32", + "type": "integer" + }, + "name": { + "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.", + "type": "string" + }, + "protocol": { + "description": "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".", + "type": "string" + } + }, + "required": [ + "containerPort" + ], + "type": "object" + }, + "io.k8s.api.core.v1.ContainerResizePolicy": { + "description": "ContainerResizePolicy represents resource resize policy for the container.", + "properties": { + "resourceName": { + "description": "Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.", + "type": "string" + }, + "restartPolicy": { + "description": "Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired.", + "type": "string" + } + }, + "required": [ + "resourceName", + "restartPolicy" + ], + "type": "object" + }, + "io.k8s.api.core.v1.ContainerState": { + "description": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.", + "properties": { + "running": { + "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStateRunning", + "description": "Details about a running container" + }, + "terminated": { + "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStateTerminated", + "description": "Details about a terminated container" + }, + "waiting": { + "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStateWaiting", + "description": "Details about a waiting container" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.ContainerStateRunning": { + "description": "ContainerStateRunning is a running state of a container.", + "properties": { + "startedAt": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Time at which the container was last (re-)started" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.ContainerStateTerminated": { + "description": "ContainerStateTerminated is a terminated state of a container.", + "properties": { + "containerID": { + "description": "Container's ID in the format '://'", + "type": "string" + }, + "exitCode": { + "description": "Exit status from the last termination of the container", + "format": "int32", + "type": "integer" + }, + "finishedAt": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Time at which the container last terminated" + }, + "message": { + "description": "Message regarding the last termination of the container", + "type": "string" + }, + "reason": { + "description": "(brief) reason from the last termination of the container", + "type": "string" + }, + "signal": { + "description": "Signal from the last termination of the container", + "format": "int32", + "type": "integer" + }, + "startedAt": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Time at which previous execution of the container started" + } + }, + "required": [ + "exitCode" + ], + "type": "object" + }, + "io.k8s.api.core.v1.ContainerStateWaiting": { + "description": "ContainerStateWaiting is a waiting state of a container.", + "properties": { + "message": { + "description": "Message regarding why the container is not yet running.", + "type": "string" + }, + "reason": { + "description": "(brief) reason the container is not yet running.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.ContainerStatus": { + "description": "ContainerStatus contains details for the current status of this container.", + "properties": { + "allocatedResources": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.", + "type": "object" + }, + "containerID": { + "description": "ContainerID is the ID of the container in the format '://'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\").", + "type": "string" + }, + "image": { + "description": "Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images.", + "type": "string" + }, + "imageID": { + "description": "ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime.", + "type": "string" + }, + "lastState": { + "$ref": "#/definitions/io.k8s.api.core.v1.ContainerState", + "description": "LastTerminationState holds the last termination state of the container to help debug container crashes and restarts. This field is not populated if the container is still running and RestartCount is 0." + }, + "name": { + "description": "Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated.", + "type": "string" + }, + "ready": { + "description": "Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field).\n\nThe value is typically used to determine whether a container is ready to accept traffic.", + "type": "boolean" + }, + "resources": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceRequirements", + "description": "Resources represents the compute resource requests and limits that have been successfully enacted on the running container after it has been started or has been successfully resized." + }, + "restartCount": { + "description": "RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative.", + "format": "int32", + "type": "integer" + }, + "started": { + "description": "Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false.", + "type": "boolean" + }, + "state": { + "$ref": "#/definitions/io.k8s.api.core.v1.ContainerState", + "description": "State holds details about the container's current condition." + } + }, + "required": [ + "name", + "ready", + "restartCount", + "image", + "imageID" + ], + "type": "object" + }, + "io.k8s.api.core.v1.DaemonEndpoint": { + "description": "DaemonEndpoint contains information about a single Daemon endpoint.", + "properties": { + "Port": { + "description": "Port number of the given endpoint.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "Port" + ], + "type": "object" + }, + "io.k8s.api.core.v1.DownwardAPIProjection": { + "description": "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.", + "properties": { + "items": { + "description": "Items is a list of DownwardAPIVolume file", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.DownwardAPIVolumeFile" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.DownwardAPIVolumeFile": { + "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", + "properties": { + "fieldRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.ObjectFieldSelector", + "description": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported." + }, + "mode": { + "description": "Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" + }, + "path": { + "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", + "type": "string" + }, + "resourceFieldRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceFieldSelector", + "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported." + } + }, + "required": [ + "path" + ], + "type": "object" + }, + "io.k8s.api.core.v1.DownwardAPIVolumeSource": { + "description": "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.", + "properties": { + "defaultMode": { + "description": "Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" + }, + "items": { + "description": "Items is a list of downward API volume file", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.DownwardAPIVolumeFile" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.EmptyDirVolumeSource": { + "description": "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", + "properties": { + "medium": { + "description": "medium represents what type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", + "type": "string" + }, + "sizeLimit": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.EndpointAddress": { + "description": "EndpointAddress is a tuple that describes single IP address.", + "properties": { + "hostname": { + "description": "The Hostname of this endpoint", + "type": "string" + }, + "ip": { + "description": "The IP of this endpoint. May not be loopback (127.0.0.0/8 or ::1), link-local (169.254.0.0/16 or fe80::/10), or link-local multicast (224.0.0.0/24 or ff02::/16).", + "type": "string" + }, + "nodeName": { + "description": "Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.", + "type": "string" + }, + "targetRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", + "description": "Reference to object providing the endpoint." + } + }, + "required": [ + "ip" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.EndpointPort": { + "description": "EndpointPort is a tuple that describes a single port.", + "properties": { + "appProtocol": { + "description": "The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:\n\n* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).\n\n* Kubernetes-defined prefixed names:\n * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-\n * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455\n * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455\n\n* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.", + "type": "string" + }, + "name": { + "description": "The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined.", + "type": "string" + }, + "port": { + "description": "The port number of the endpoint.", + "format": "int32", + "type": "integer" + }, + "protocol": { + "description": "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.", + "type": "string" + } + }, + "required": [ + "port" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.EndpointSubset": { + "description": "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:\n\n\t{\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t}\n\nThe resulting set of endpoints can be viewed as:\n\n\ta: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n\tb: [ 10.10.1.1:309, 10.10.2.2:309 ]", + "properties": { + "addresses": { + "description": "IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.EndpointAddress" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "notReadyAddresses": { + "description": "IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.EndpointAddress" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "ports": { + "description": "Port numbers available on the related IP addresses.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.EndpointPort" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.Endpoints": { + "description": "Endpoints is a collection of endpoints that implement the actual service. Example:\n\n\t Name: \"mysvc\",\n\t Subsets: [\n\t {\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t },\n\t {\n\t Addresses: [{\"ip\": \"10.10.3.3\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n\t },\n\t]", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "subsets": { + "description": "The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.EndpointSubset" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Endpoints", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.EndpointsList": { + "description": "EndpointsList is a list of endpoints.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of endpoints.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "EndpointsList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.EnvFromSource": { + "description": "EnvFromSource represents the source of a set of ConfigMaps", + "properties": { + "configMapRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapEnvSource", + "description": "The ConfigMap to select from" + }, + "prefix": { + "description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", + "type": "string" + }, + "secretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretEnvSource", + "description": "The Secret to select from" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.EnvVar": { + "description": "EnvVar represents an environment variable present in a Container.", + "properties": { + "name": { + "description": "Name of the environment variable. Must be a C_IDENTIFIER.", + "type": "string" + }, + "value": { + "description": "Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".", + "type": "string" + }, + "valueFrom": { + "$ref": "#/definitions/io.k8s.api.core.v1.EnvVarSource", + "description": "Source for the environment variable's value. Cannot be used if value is not empty." + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.api.core.v1.EnvVarSource": { + "description": "EnvVarSource represents a source for the value of an EnvVar.", + "properties": { + "configMapKeyRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapKeySelector", + "description": "Selects a key of a ConfigMap." + }, + "fieldRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.ObjectFieldSelector", + "description": "Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs." + }, + "resourceFieldRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceFieldSelector", + "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported." + }, + "secretKeyRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "Selects a key of a secret in the pod's namespace" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.EphemeralContainer": { + "description": "An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation.\n\nTo add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted.", + "properties": { + "args": { + "description": "Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "command": { + "description": "Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "env": { + "description": "List of environment variables to set in the container. Cannot be updated.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.EnvVar" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "envFrom": { + "description": "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.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.EnvFromSource" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "image": { + "description": "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images", + "type": "string" + }, + "imagePullPolicy": { + "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images", + "type": "string" + }, + "lifecycle": { + "$ref": "#/definitions/io.k8s.api.core.v1.Lifecycle", + "description": "Lifecycle is not allowed for ephemeral containers." + }, + "livenessProbe": { + "$ref": "#/definitions/io.k8s.api.core.v1.Probe", + "description": "Probes are not allowed for ephemeral containers." + }, + "name": { + "description": "Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.", + "type": "string" + }, + "ports": { + "description": "Ports are not allowed for ephemeral containers.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.ContainerPort" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "containerPort", + "protocol" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "containerPort", + "x-kubernetes-patch-strategy": "merge" + }, + "readinessProbe": { + "$ref": "#/definitions/io.k8s.api.core.v1.Probe", + "description": "Probes are not allowed for ephemeral containers." + }, + "resizePolicy": { + "description": "Resources resize policy for the container.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.ContainerResizePolicy" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceRequirements", + "description": "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod." + }, + "restartPolicy": { + "description": "Restart policy for the container to manage the restart behavior of each container within a pod. This may only be set for init containers. You cannot set this field on ephemeral containers.", + "type": "string" + }, + "securityContext": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecurityContext", + "description": "Optional: SecurityContext defines the security options the ephemeral container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext." + }, + "startupProbe": { + "$ref": "#/definitions/io.k8s.api.core.v1.Probe", + "description": "Probes are not allowed for ephemeral containers." + }, + "stdin": { + "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", + "type": "boolean" + }, + "stdinOnce": { + "description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", + "type": "boolean" + }, + "targetContainerName": { + "description": "If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec.\n\nThe container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined.", + "type": "string" + }, + "terminationMessagePath": { + "description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.", + "type": "string" + }, + "terminationMessagePolicy": { + "description": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.", + "type": "string" + }, + "tty": { + "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", + "type": "boolean" + }, + "volumeDevices": { + "description": "volumeDevices is the list of block devices to be used by the container.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.VolumeDevice" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "devicePath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "devicePath", + "x-kubernetes-patch-strategy": "merge" + }, + "volumeMounts": { + "description": "Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.VolumeMount" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "mountPath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "mountPath", + "x-kubernetes-patch-strategy": "merge" + }, + "workingDir": { + "description": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.api.core.v1.EphemeralVolumeSource": { + "description": "Represents an ephemeral volume that is handled by a normal storage driver.", + "properties": { + "volumeClaimTemplate": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaimTemplate", + "description": "Will be used to create a stand-alone PVC to provision the volume. The pod in which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. the PVC will be deleted together with the pod. The name of the PVC will be `-` where `` is the name from the `PodSpec.Volumes` array entry. Pod validation will reject the pod if the concatenated name is not valid for a PVC (for example, too long).\n\nAn existing PVC with that name that is not owned by the pod will *not* be used for the pod to avoid using an unrelated volume by mistake. Starting the pod is then blocked until the unrelated PVC is removed. If such a pre-created PVC is meant to be used by the pod, the PVC has to updated with an owner reference to the pod once the pod exists. Normally this should not be necessary, but it may be useful when manually reconstructing a broken cluster.\n\nThis field is read-only and no changes will be made by Kubernetes to the PVC after it has been created.\n\nRequired, must not be nil." + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.Event": { + "description": "Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.", + "properties": { + "action": { + "description": "What action was taken/failed regarding to the Regarding object.", + "type": "string" + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "count": { + "description": "The number of times this event has occurred.", + "format": "int32", + "type": "integer" + }, + "eventTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "Time when this Event was first observed." + }, + "firstTimestamp": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)" + }, + "involvedObject": { + "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", + "description": "The object that this event is about." + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "lastTimestamp": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The time at which the most recent occurrence of this event was recorded." + }, + "message": { + "description": "A human-readable description of the status of this operation.", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "reason": { + "description": "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.", + "type": "string" + }, + "related": { + "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", + "description": "Optional secondary object for more complex actions." + }, + "reportingComponent": { + "description": "Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.", + "type": "string" + }, + "reportingInstance": { + "description": "ID of the controller instance, e.g. `kubelet-xyzf`.", + "type": "string" + }, + "series": { + "$ref": "#/definitions/io.k8s.api.core.v1.EventSeries", + "description": "Data about the Event series this event represents or nil if it's a singleton Event." + }, + "source": { + "$ref": "#/definitions/io.k8s.api.core.v1.EventSource", + "description": "The component reporting this event. Should be a short machine understandable string." + }, + "type": { + "description": "Type of this event (Normal, Warning), new types could be added in the future", + "type": "string" + } + }, + "required": [ + "metadata", + "involvedObject" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Event", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.EventList": { + "description": "EventList is a list of events.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of events", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.Event" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "EventList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.EventSeries": { + "description": "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.", + "properties": { + "count": { + "description": "Number of occurrences in this series up to the last heartbeat time", + "format": "int32", + "type": "integer" + }, + "lastObservedTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "Time of the last occurrence observed" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.EventSource": { + "description": "EventSource contains information for an event.", + "properties": { + "component": { + "description": "Component from which the event is generated.", + "type": "string" + }, + "host": { + "description": "Node name on which the event is generated.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.ExecAction": { + "description": "ExecAction describes a \"run in container\" action.", + "properties": { + "command": { + "description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.FCVolumeSource": { + "description": "Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": "string" + }, + "lun": { + "description": "lun is Optional: FC target lun number", + "format": "int32", + "type": "integer" + }, + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "targetWWNs": { + "description": "targetWWNs is Optional: FC target worldwide names (WWNs)", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "wwids": { + "description": "wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.FlexPersistentVolumeSource": { + "description": "FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.", + "properties": { + "driver": { + "description": "driver is the name of the driver to use for this volume.", + "type": "string" + }, + "fsType": { + "description": "fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", + "type": "string" + }, + "options": { + "additionalProperties": { + "type": "string" + }, + "description": "options is Optional: this field holds extra command options if any.", + "type": "object" + }, + "readOnly": { + "description": "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts." + } + }, + "required": [ + "driver" + ], + "type": "object" + }, + "io.k8s.api.core.v1.FlexVolumeSource": { + "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", + "properties": { + "driver": { + "description": "driver is the name of the driver to use for this volume.", + "type": "string" + }, + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", + "type": "string" + }, + "options": { + "additionalProperties": { + "type": "string" + }, + "description": "options is Optional: this field holds extra command options if any.", + "type": "object" + }, + "readOnly": { + "description": "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is Optional: secretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts." + } + }, + "required": [ + "driver" + ], + "type": "object" + }, + "io.k8s.api.core.v1.FlockerVolumeSource": { + "description": "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.", + "properties": { + "datasetName": { + "description": "datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated", + "type": "string" + }, + "datasetUUID": { + "description": "datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.GCEPersistentDiskVolumeSource": { + "description": "Represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "type": "string" + }, + "partition": { + "description": "partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "format": "int32", + "type": "integer" + }, + "pdName": { + "description": "pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "type": "string" + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "type": "boolean" + } + }, + "required": [ + "pdName" + ], + "type": "object" + }, + "io.k8s.api.core.v1.GRPCAction": { + "properties": { + "port": { + "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", + "format": "int32", + "type": "integer" + }, + "service": { + "description": "Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", + "type": "string" + } + }, + "required": [ + "port" + ], + "type": "object" + }, + "io.k8s.api.core.v1.GitRepoVolumeSource": { + "description": "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.\n\nDEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", + "properties": { + "directory": { + "description": "directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.", + "type": "string" + }, + "repository": { + "description": "repository is the URL", + "type": "string" + }, + "revision": { + "description": "revision is the commit hash for the specified revision.", + "type": "string" + } + }, + "required": [ + "repository" + ], + "type": "object" + }, + "io.k8s.api.core.v1.GlusterfsPersistentVolumeSource": { + "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", + "properties": { + "endpoints": { + "description": "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "string" + }, + "endpointsNamespace": { + "description": "endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "string" + }, + "path": { + "description": "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "string" + }, + "readOnly": { + "description": "readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "boolean" + } + }, + "required": [ + "endpoints", + "path" + ], + "type": "object" + }, + "io.k8s.api.core.v1.GlusterfsVolumeSource": { + "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", + "properties": { + "endpoints": { + "description": "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "string" + }, + "path": { + "description": "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "string" + }, + "readOnly": { + "description": "readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "boolean" + } + }, + "required": [ + "endpoints", + "path" + ], + "type": "object" + }, + "io.k8s.api.core.v1.HTTPGetAction": { + "description": "HTTPGetAction describes an action based on HTTP Get requests.", + "properties": { + "host": { + "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", + "type": "string" + }, + "httpHeaders": { + "description": "Custom headers to set in the request. HTTP allows repeated headers.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.HTTPHeader" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "path": { + "description": "Path to access on the HTTP server.", + "type": "string" + }, + "port": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME." + }, + "scheme": { + "description": "Scheme to use for connecting to the host. Defaults to HTTP.", + "type": "string" + } + }, + "required": [ + "port" + ], + "type": "object" + }, + "io.k8s.api.core.v1.HTTPHeader": { + "description": "HTTPHeader describes a custom header to be used in HTTP probes", + "properties": { + "name": { + "description": "The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header.", + "type": "string" + }, + "value": { + "description": "The header field value", + "type": "string" + } + }, + "required": [ + "name", + "value" + ], + "type": "object" + }, + "io.k8s.api.core.v1.HostAlias": { + "description": "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.", + "properties": { + "hostnames": { + "description": "Hostnames for the above IP address.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "ip": { + "description": "IP address of the host file entry.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.HostIP": { + "description": "HostIP represents a single IP address allocated to the host.", + "properties": { + "ip": { + "description": "IP is the IP address assigned to the host", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.HostPathVolumeSource": { + "description": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", + "properties": { + "path": { + "description": "path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", + "type": "string" + }, + "type": { + "description": "type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", + "type": "string" + } + }, + "required": [ + "path" + ], + "type": "object" + }, + "io.k8s.api.core.v1.ISCSIPersistentVolumeSource": { + "description": "ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", + "properties": { + "chapAuthDiscovery": { + "description": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", + "type": "boolean" + }, + "chapAuthSession": { + "description": "chapAuthSession defines whether support iSCSI Session CHAP authentication", + "type": "boolean" + }, + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", + "type": "string" + }, + "initiatorName": { + "description": "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.", + "type": "string" + }, + "iqn": { + "description": "iqn is Target iSCSI Qualified Name.", + "type": "string" + }, + "iscsiInterface": { + "description": "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", + "type": "string" + }, + "lun": { + "description": "lun is iSCSI Target Lun number.", + "format": "int32", + "type": "integer" + }, + "portals": { + "description": "portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is the CHAP Secret for iSCSI target and initiator authentication" + }, + "targetPortal": { + "description": "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "type": "string" + } + }, + "required": [ + "targetPortal", + "iqn", + "lun" + ], + "type": "object" + }, + "io.k8s.api.core.v1.ISCSIVolumeSource": { + "description": "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", + "properties": { + "chapAuthDiscovery": { + "description": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", + "type": "boolean" + }, + "chapAuthSession": { + "description": "chapAuthSession defines whether support iSCSI Session CHAP authentication", + "type": "boolean" + }, + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", + "type": "string" + }, + "initiatorName": { + "description": "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.", + "type": "string" + }, + "iqn": { + "description": "iqn is the target iSCSI Qualified Name.", + "type": "string" + }, + "iscsiInterface": { + "description": "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", + "type": "string" + }, + "lun": { + "description": "lun represents iSCSI Target Lun number.", + "format": "int32", + "type": "integer" + }, + "portals": { + "description": "portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is the CHAP Secret for iSCSI target and initiator authentication" + }, + "targetPortal": { + "description": "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "type": "string" + } + }, + "required": [ + "targetPortal", + "iqn", + "lun" + ], + "type": "object" + }, + "io.k8s.api.core.v1.KeyToPath": { + "description": "Maps a string key to a path within a volume.", + "properties": { + "key": { + "description": "key is the key to project.", + "type": "string" + }, + "mode": { + "description": "mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" + }, + "path": { + "description": "path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.", + "type": "string" + } + }, + "required": [ + "key", + "path" + ], + "type": "object" + }, + "io.k8s.api.core.v1.Lifecycle": { + "description": "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.", + "properties": { + "postStart": { + "$ref": "#/definitions/io.k8s.api.core.v1.LifecycleHandler", + "description": "PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks" + }, + "preStop": { + "$ref": "#/definitions/io.k8s.api.core.v1.LifecycleHandler", + "description": "PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.LifecycleHandler": { + "description": "LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.", + "properties": { + "exec": { + "$ref": "#/definitions/io.k8s.api.core.v1.ExecAction", + "description": "Exec specifies the action to take." + }, + "httpGet": { + "$ref": "#/definitions/io.k8s.api.core.v1.HTTPGetAction", + "description": "HTTPGet specifies the http request to perform." + }, + "sleep": { + "$ref": "#/definitions/io.k8s.api.core.v1.SleepAction", + "description": "Sleep represents the duration that the container should sleep before being terminated." + }, + "tcpSocket": { + "$ref": "#/definitions/io.k8s.api.core.v1.TCPSocketAction", + "description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified." + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.LimitRange": { + "description": "LimitRange sets resource usage limits for each kind of resource in a Namespace.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.core.v1.LimitRangeSpec", + "description": "Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "LimitRange", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.LimitRangeItem": { + "description": "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.", + "properties": { + "default": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Default resource requirement limit value by resource name if resource limit is omitted.", + "type": "object" + }, + "defaultRequest": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.", + "type": "object" + }, + "max": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Max usage constraints on this kind by resource name.", + "type": "object" + }, + "maxLimitRequestRatio": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.", + "type": "object" + }, + "min": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Min usage constraints on this kind by resource name.", + "type": "object" + }, + "type": { + "description": "Type of resource that this limit applies to.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object" + }, + "io.k8s.api.core.v1.LimitRangeList": { + "description": "LimitRangeList is a list of LimitRange items.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "LimitRangeList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.LimitRangeSpec": { + "description": "LimitRangeSpec defines a min/max usage limit for resources that match on kind.", + "properties": { + "limits": { + "description": "Limits is the list of LimitRangeItem objects that are enforced.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.LimitRangeItem" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "limits" + ], + "type": "object" + }, + "io.k8s.api.core.v1.LoadBalancerIngress": { + "description": "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.", + "properties": { + "hostname": { + "description": "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)", + "type": "string" + }, + "ip": { + "description": "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)", + "type": "string" + }, + "ipMode": { + "description": "IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified. Setting this to \"VIP\" indicates that traffic is delivered to the node with the destination set to the load-balancer's IP and port. Setting this to \"Proxy\" indicates that traffic is delivered to the node or pod with the destination set to the node's IP and node port or the pod's IP and port. Service implementations may use this information to adjust traffic routing.", + "type": "string" + }, + "ports": { + "description": "Ports is a list of records of service ports If used, every port defined in the service should have an entry in it", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.PortStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.LoadBalancerStatus": { + "description": "LoadBalancerStatus represents the status of a load-balancer.", + "properties": { + "ingress": { + "description": "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.LoadBalancerIngress" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.LocalObjectReference": { + "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", + "properties": { + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.LocalVolumeSource": { + "description": "Local represents directly-attached storage with node affinity (Beta feature)", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a filesystem if unspecified.", + "type": "string" + }, + "path": { + "description": "path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...).", + "type": "string" + } + }, + "required": [ + "path" + ], + "type": "object" + }, + "io.k8s.api.core.v1.ModifyVolumeStatus": { + "description": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation", + "properties": { + "status": { + "description": "status is the status of the ControllerModifyVolume operation. It can be in any of following states:\n - Pending\n Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as\n the specified VolumeAttributesClass not existing.\n - InProgress\n InProgress indicates that the volume is being modified.\n - Infeasible\n Infeasible indicates that the request has been rejected as invalid by the CSI driver. To\n\t resolve the error, a valid VolumeAttributesClass needs to be specified.\nNote: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately.", + "type": "string" + }, + "targetVolumeAttributesClassName": { + "description": "targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled", + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "io.k8s.api.core.v1.NFSVolumeSource": { + "description": "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.", + "properties": { + "path": { + "description": "path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", + "type": "string" + }, + "readOnly": { + "description": "readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", + "type": "boolean" + }, + "server": { + "description": "server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", + "type": "string" + } + }, + "required": [ + "server", + "path" + ], + "type": "object" + }, + "io.k8s.api.core.v1.Namespace": { + "description": "Namespace provides a scope for Names. Use of multiple namespaces is optional.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.core.v1.NamespaceSpec", + "description": "Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.core.v1.NamespaceStatus", + "description": "Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Namespace", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.NamespaceCondition": { + "description": "NamespaceCondition contains details about state of namespace.", + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "message": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of namespace controller condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": "object" + }, + "io.k8s.api.core.v1.NamespaceList": { + "description": "NamespaceList is a list of Namespaces.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "NamespaceList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.NamespaceSpec": { + "description": "NamespaceSpec describes the attributes on a Namespace.", + "properties": { + "finalizers": { + "description": "Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.NamespaceStatus": { + "description": "NamespaceStatus is information about the current status of a Namespace.", + "properties": { + "conditions": { + "description": "Represents the latest available observations of a namespace's current state.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.NamespaceCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "phase": { + "description": "Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.Node": { + "description": "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeSpec", + "description": "Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeStatus", + "description": "Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Node", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.NodeAddress": { + "description": "NodeAddress contains information for the node's address.", + "properties": { + "address": { + "description": "The node address.", + "type": "string" + }, + "type": { + "description": "Node address type, one of Hostname, ExternalIP or InternalIP.", + "type": "string" + } + }, + "required": [ + "type", + "address" + ], + "type": "object" + }, + "io.k8s.api.core.v1.NodeAffinity": { + "description": "Node affinity is a group of node affinity scheduling rules.", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.PreferredSchedulingTerm" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelector", + "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node." + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.NodeCondition": { + "description": "NodeCondition contains condition information for a node.", + "properties": { + "lastHeartbeatTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time we got an update on a given condition." + }, + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transit from one status to another." + }, + "message": { + "description": "Human readable message indicating details about last transition.", + "type": "string" + }, + "reason": { + "description": "(brief) reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of node condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": "object" + }, + "io.k8s.api.core.v1.NodeConfigSource": { + "description": "NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22", + "properties": { + "configMap": { + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapNodeConfigSource", + "description": "ConfigMap is a reference to a Node's ConfigMap" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.NodeConfigStatus": { + "description": "NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.", + "properties": { + "active": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeConfigSource", + "description": "Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error." + }, + "assigned": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeConfigSource", + "description": "Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned." + }, + "error": { + "description": "Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions.", + "type": "string" + }, + "lastKnownGood": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeConfigSource", + "description": "LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future." + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.NodeDaemonEndpoints": { + "description": "NodeDaemonEndpoints lists ports opened by daemons running on the Node.", + "properties": { + "kubeletEndpoint": { + "$ref": "#/definitions/io.k8s.api.core.v1.DaemonEndpoint", + "description": "Endpoint on which Kubelet is listening." + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.NodeList": { + "description": "NodeList is the whole list of all Nodes which have been registered with master.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of nodes", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.Node" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "NodeList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.NodeSelector": { + "description": "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.", + "properties": { + "nodeSelectorTerms": { + "description": "Required. A list of node selector terms. The terms are ORed.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelectorTerm" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "nodeSelectorTerms" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.NodeSelectorRequirement": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "key", + "operator" + ], + "type": "object" + }, + "io.k8s.api.core.v1.NodeSelectorTerm": { + "description": "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.", + "properties": { + "matchExpressions": { + "description": "A list of node selector requirements by node's labels.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelectorRequirement" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "matchFields": { + "description": "A list of node selector requirements by node's fields.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelectorRequirement" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.NodeSpec": { + "description": "NodeSpec describes the attributes that a node is created with.", + "properties": { + "configSource": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeConfigSource", + "description": "Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed." + }, + "externalID": { + "description": "Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966", + "type": "string" + }, + "podCIDR": { + "description": "PodCIDR represents the pod IP range assigned to the node.", + "type": "string" + }, + "podCIDRs": { + "description": "podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set", + "x-kubernetes-patch-strategy": "merge" + }, + "providerID": { + "description": "ID of the node assigned by the cloud provider in the format: ://", + "type": "string" + }, + "taints": { + "description": "If specified, the node's taints.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.Taint" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "unschedulable": { + "description": "Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration", + "type": "boolean" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.NodeStatus": { + "description": "NodeStatus is information about the current status of a node.", + "properties": { + "addresses": { + "description": "List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP).", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeAddress" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "allocatable": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.", + "type": "object" + }, + "capacity": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity", + "type": "object" + }, + "conditions": { + "description": "Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "config": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeConfigStatus", + "description": "Status of the config assigned to the node via the dynamic Kubelet config feature." + }, + "daemonEndpoints": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeDaemonEndpoints", + "description": "Endpoints of daemons running on the Node." + }, + "images": { + "description": "List of container images on this node", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.ContainerImage" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "nodeInfo": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeSystemInfo", + "description": "Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info" + }, + "phase": { + "description": "NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated.", + "type": "string" + }, + "volumesAttached": { + "description": "List of volumes that are attached to the node.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.AttachedVolume" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "volumesInUse": { + "description": "List of attachable volumes in use (mounted) by the node.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.NodeSystemInfo": { + "description": "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.", + "properties": { + "architecture": { + "description": "The Architecture reported by the node", + "type": "string" + }, + "bootID": { + "description": "Boot ID reported by the node.", + "type": "string" + }, + "containerRuntimeVersion": { + "description": "ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2).", + "type": "string" + }, + "kernelVersion": { + "description": "Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).", + "type": "string" + }, + "kubeProxyVersion": { + "description": "KubeProxy Version reported by the node.", + "type": "string" + }, + "kubeletVersion": { + "description": "Kubelet Version reported by the node.", + "type": "string" + }, + "machineID": { + "description": "MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html", + "type": "string" + }, + "operatingSystem": { + "description": "The Operating System reported by the node", + "type": "string" + }, + "osImage": { + "description": "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).", + "type": "string" + }, + "systemUUID": { + "description": "SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid", + "type": "string" + } + }, + "required": [ + "machineID", + "systemUUID", + "bootID", + "kernelVersion", + "osImage", + "containerRuntimeVersion", + "kubeletVersion", + "kubeProxyVersion", + "operatingSystem", + "architecture" + ], + "type": "object" + }, + "io.k8s.api.core.v1.ObjectFieldSelector": { + "description": "ObjectFieldSelector selects an APIVersioned field of an object.", + "properties": { + "apiVersion": { + "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", + "type": "string" + }, + "fieldPath": { + "description": "Path of the field to select in the specified API version.", + "type": "string" + } + }, + "required": [ + "fieldPath" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.ObjectReference": { + "description": "ObjectReference contains enough information to let you inspect or modify the referred object.", + "properties": { + "apiVersion": { + "description": "API version of the referent.", + "type": "string" + }, + "fieldPath": { + "description": "If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.", + "type": "string" + }, + "kind": { + "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "namespace": { + "description": "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", + "type": "string" + }, + "resourceVersion": { + "description": "Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": "string" + }, + "uid": { + "description": "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.PersistentVolume": { + "description": "PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeSpec", + "description": "spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeStatus", + "description": "status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PersistentVolume", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.PersistentVolumeClaim": { + "description": "PersistentVolumeClaim is a user's request for and claim to a persistent volume", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaimSpec", + "description": "spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaimStatus", + "description": "status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PersistentVolumeClaim", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.PersistentVolumeClaimCondition": { + "description": "PersistentVolumeClaimCondition contains details about state of pvc", + "properties": { + "lastProbeTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastProbeTime is the time we probed the condition." + }, + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime is the time the condition transitioned from one status to another." + }, + "message": { + "description": "message is the human-readable message indicating details about last transition.", + "type": "string" + }, + "reason": { + "description": "reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"Resizing\" that means the underlying persistent volume is being resized.", + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": "object" + }, + "io.k8s.api.core.v1.PersistentVolumeClaimList": { + "description": "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PersistentVolumeClaimList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.PersistentVolumeClaimSpec": { + "description": "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes", + "properties": { + "accessModes": { + "description": "accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "dataSource": { + "$ref": "#/definitions/io.k8s.api.core.v1.TypedLocalObjectReference", + "description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource." + }, + "dataSourceRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.TypedObjectReference", + "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled." + }, + "resources": { + "$ref": "#/definitions/io.k8s.api.core.v1.VolumeResourceRequirements", + "description": "resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources" + }, + "selector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector is a label query over volumes to consider for binding." + }, + "storageClassName": { + "description": "storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", + "type": "string" + }, + "volumeAttributesClassName": { + "description": "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#volumeattributesclass (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled.", + "type": "string" + }, + "volumeMode": { + "description": "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.", + "type": "string" + }, + "volumeName": { + "description": "volumeName is the binding reference to the PersistentVolume backing this claim.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.PersistentVolumeClaimStatus": { + "description": "PersistentVolumeClaimStatus is the current status of a persistent volume claim.", + "properties": { + "accessModes": { + "description": "accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "allocatedResourceStatuses": { + "additionalProperties": { + "type": "string" + }, + "description": "allocatedResourceStatuses stores status of resource being resized for the given PVC. Key names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used.\n\nClaimResourceStatus can be in any of following states:\n\t- ControllerResizeInProgress:\n\t\tState set when resize controller starts resizing the volume in control-plane.\n\t- ControllerResizeFailed:\n\t\tState set when resize has failed in resize controller with a terminal error.\n\t- NodeResizePending:\n\t\tState set when resize controller has finished resizing the volume but further resizing of\n\t\tvolume is needed on the node.\n\t- NodeResizeInProgress:\n\t\tState set when kubelet starts resizing the volume.\n\t- NodeResizeFailed:\n\t\tState set when resizing has failed in kubelet with a terminal error. Transient errors don't set\n\t\tNodeResizeFailed.\nFor example: if expanding a PVC for more capacity - this field can be one of the following states:\n\t- pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\"\nWhen this field is not set, it means that no resize operation is in progress for the given PVC.\n\nA controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.", + "type": "object", + "x-kubernetes-map-type": "granular" + }, + "allocatedResources": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "allocatedResources tracks the resources allocated to a PVC including its capacity. Key names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used.\n\nCapacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity.\n\nA controller that receives PVC update with previously unknown resourceName should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.", + "type": "object" + }, + "capacity": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "capacity represents the actual resources of the underlying volume.", + "type": "object" + }, + "conditions": { + "description": "conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaimCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "currentVolumeAttributesClassName": { + "description": "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is an alpha field and requires enabling VolumeAttributesClass feature.", + "type": "string" + }, + "modifyVolumeStatus": { + "$ref": "#/definitions/io.k8s.api.core.v1.ModifyVolumeStatus", + "description": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted. This is an alpha field and requires enabling VolumeAttributesClass feature." + }, + "phase": { + "description": "phase represents the current phase of PersistentVolumeClaim.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.PersistentVolumeClaimTemplate": { + "description": "PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.", + "properties": { + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation." + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaimSpec", + "description": "The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here." + } + }, + "required": [ + "spec" + ], + "type": "object" + }, + "io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource": { + "description": "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).", + "properties": { + "claimName": { + "description": "claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", + "type": "string" + }, + "readOnly": { + "description": "readOnly Will force the ReadOnly setting in VolumeMounts. Default false.", + "type": "boolean" + } + }, + "required": [ + "claimName" + ], + "type": "object" + }, + "io.k8s.api.core.v1.PersistentVolumeList": { + "description": "PersistentVolumeList is a list of PersistentVolume items.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PersistentVolumeList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.PersistentVolumeSpec": { + "description": "PersistentVolumeSpec is the specification of a persistent volume.", + "properties": { + "accessModes": { + "description": "accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "awsElasticBlockStore": { + "$ref": "#/definitions/io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource", + "description": "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore" + }, + "azureDisk": { + "$ref": "#/definitions/io.k8s.api.core.v1.AzureDiskVolumeSource", + "description": "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod." + }, + "azureFile": { + "$ref": "#/definitions/io.k8s.api.core.v1.AzureFilePersistentVolumeSource", + "description": "azureFile represents an Azure File Service mount on the host and bind mount to the pod." + }, + "capacity": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity", + "type": "object" + }, + "cephfs": { + "$ref": "#/definitions/io.k8s.api.core.v1.CephFSPersistentVolumeSource", + "description": "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime" + }, + "cinder": { + "$ref": "#/definitions/io.k8s.api.core.v1.CinderPersistentVolumeSource", + "description": "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md" + }, + "claimRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", + "description": "claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding", + "x-kubernetes-map-type": "granular" + }, + "csi": { + "$ref": "#/definitions/io.k8s.api.core.v1.CSIPersistentVolumeSource", + "description": "csi represents storage that is handled by an external CSI driver (Beta feature)." + }, + "fc": { + "$ref": "#/definitions/io.k8s.api.core.v1.FCVolumeSource", + "description": "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod." + }, + "flexVolume": { + "$ref": "#/definitions/io.k8s.api.core.v1.FlexPersistentVolumeSource", + "description": "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin." + }, + "flocker": { + "$ref": "#/definitions/io.k8s.api.core.v1.FlockerVolumeSource", + "description": "flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running" + }, + "gcePersistentDisk": { + "$ref": "#/definitions/io.k8s.api.core.v1.GCEPersistentDiskVolumeSource", + "description": "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk" + }, + "glusterfs": { + "$ref": "#/definitions/io.k8s.api.core.v1.GlusterfsPersistentVolumeSource", + "description": "glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md" + }, + "hostPath": { + "$ref": "#/definitions/io.k8s.api.core.v1.HostPathVolumeSource", + "description": "hostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath" + }, + "iscsi": { + "$ref": "#/definitions/io.k8s.api.core.v1.ISCSIPersistentVolumeSource", + "description": "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin." + }, + "local": { + "$ref": "#/definitions/io.k8s.api.core.v1.LocalVolumeSource", + "description": "local represents directly-attached storage with node affinity" + }, + "mountOptions": { + "description": "mountOptions is the list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "nfs": { + "$ref": "#/definitions/io.k8s.api.core.v1.NFSVolumeSource", + "description": "nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs" + }, + "nodeAffinity": { + "$ref": "#/definitions/io.k8s.api.core.v1.VolumeNodeAffinity", + "description": "nodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume." + }, + "persistentVolumeReclaimPolicy": { + "description": "persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming", + "type": "string" + }, + "photonPersistentDisk": { + "$ref": "#/definitions/io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource", + "description": "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine" + }, + "portworxVolume": { + "$ref": "#/definitions/io.k8s.api.core.v1.PortworxVolumeSource", + "description": "portworxVolume represents a portworx volume attached and mounted on kubelets host machine" + }, + "quobyte": { + "$ref": "#/definitions/io.k8s.api.core.v1.QuobyteVolumeSource", + "description": "quobyte represents a Quobyte mount on the host that shares a pod's lifetime" + }, + "rbd": { + "$ref": "#/definitions/io.k8s.api.core.v1.RBDPersistentVolumeSource", + "description": "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md" + }, + "scaleIO": { + "$ref": "#/definitions/io.k8s.api.core.v1.ScaleIOPersistentVolumeSource", + "description": "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes." + }, + "storageClassName": { + "description": "storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.", + "type": "string" + }, + "storageos": { + "$ref": "#/definitions/io.k8s.api.core.v1.StorageOSPersistentVolumeSource", + "description": "storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md" + }, + "volumeAttributesClassName": { + "description": "Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is an alpha field and requires enabling VolumeAttributesClass feature.", + "type": "string" + }, + "volumeMode": { + "description": "volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec.", + "type": "string" + }, + "vsphereVolume": { + "$ref": "#/definitions/io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource", + "description": "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.PersistentVolumeStatus": { + "description": "PersistentVolumeStatus is the current status of a persistent volume.", + "properties": { + "lastPhaseTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions. This is a beta field and requires the PersistentVolumeLastPhaseTransitionTime feature to be enabled (enabled by default)." + }, + "message": { + "description": "message is a human-readable message indicating details about why the volume is in this state.", + "type": "string" + }, + "phase": { + "description": "phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase", + "type": "string" + }, + "reason": { + "description": "reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource": { + "description": "Represents a Photon Controller persistent disk resource.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": "string" + }, + "pdID": { + "description": "pdID is the ID that identifies Photon Controller persistent disk", + "type": "string" + } + }, + "required": [ + "pdID" + ], + "type": "object" + }, + "io.k8s.api.core.v1.Pod": { + "description": "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodSpec", + "description": "Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodStatus", + "description": "Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Pod", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.PodAffinity": { + "description": "Pod affinity is a group of inter pod affinity scheduling rules.", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.WeightedPodAffinityTerm" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodAffinityTerm" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.PodAffinityTerm": { + "description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running", + "properties": { + "labelSelector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods." + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces." + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.", + "type": "string" + } + }, + "required": [ + "topologyKey" + ], + "type": "object" + }, + "io.k8s.api.core.v1.PodAntiAffinity": { + "description": "Pod anti affinity is a group of inter pod anti affinity scheduling rules.", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.WeightedPodAffinityTerm" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodAffinityTerm" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.PodCondition": { + "description": "PodCondition contains details for the current condition of this pod.", + "properties": { + "lastProbeTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time we probed the condition." + }, + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "message": { + "description": "Human-readable message indicating details about last transition.", + "type": "string" + }, + "reason": { + "description": "Unique, one-word, CamelCase reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", + "type": "string" + }, + "type": { + "description": "Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": "object" + }, + "io.k8s.api.core.v1.PodDNSConfig": { + "description": "PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.", + "properties": { + "nameservers": { + "description": "A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "options": { + "description": "A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodDNSConfigOption" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "searches": { + "description": "A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.PodDNSConfigOption": { + "description": "PodDNSConfigOption defines DNS resolver options of a pod.", + "properties": { + "name": { + "description": "Required.", + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.PodIP": { + "description": "PodIP represents a single IP address allocated to the pod.", + "properties": { + "ip": { + "description": "IP is the IP address assigned to the pod", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.PodList": { + "description": "PodList is a list of Pods.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.Pod" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PodList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.PodOS": { + "description": "PodOS defines the OS parameters of a pod.", + "properties": { + "name": { + "description": "Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.api.core.v1.PodReadinessGate": { + "description": "PodReadinessGate contains the reference to a pod condition", + "properties": { + "conditionType": { + "description": "ConditionType refers to a condition in the pod's condition list with matching type.", + "type": "string" + } + }, + "required": [ + "conditionType" + ], + "type": "object" + }, + "io.k8s.api.core.v1.PodResourceClaim": { + "description": "PodResourceClaim references exactly one ResourceClaim through a ClaimSource. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.", + "properties": { + "name": { + "description": "Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL.", + "type": "string" + }, + "source": { + "$ref": "#/definitions/io.k8s.api.core.v1.ClaimSource", + "description": "Source describes where to find the ResourceClaim." + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.api.core.v1.PodResourceClaimStatus": { + "description": "PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim.", + "properties": { + "name": { + "description": "Name uniquely identifies this resource claim inside the pod. This must match the name of an entry in pod.spec.resourceClaims, which implies that the string must be a DNS_LABEL.", + "type": "string" + }, + "resourceClaimName": { + "description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. It this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.api.core.v1.PodSchedulingGate": { + "description": "PodSchedulingGate is associated to a Pod to guard its scheduling.", + "properties": { + "name": { + "description": "Name of the scheduling gate. Each scheduling gate must have a unique name field.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.api.core.v1.PodSecurityContext": { + "description": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.", + "properties": { + "fsGroup": { + "description": "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": "integer" + }, + "fsGroupChangePolicy": { + "description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used. Note that this field cannot be set when spec.os.name is windows.", + "type": "string" + }, + "runAsGroup": { + "description": "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": "integer" + }, + "runAsNonRoot": { + "description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": "boolean" + }, + "runAsUser": { + "description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": "integer" + }, + "seLinuxOptions": { + "$ref": "#/definitions/io.k8s.api.core.v1.SELinuxOptions", + "description": "The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows." + }, + "seccompProfile": { + "$ref": "#/definitions/io.k8s.api.core.v1.SeccompProfile", + "description": "The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows." + }, + "supplementalGroups": { + "description": "A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.", + "items": { + "format": "int64", + "type": "integer" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "sysctls": { + "description": "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.Sysctl" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "windowsOptions": { + "$ref": "#/definitions/io.k8s.api.core.v1.WindowsSecurityContextOptions", + "description": "The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux." + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.PodSpec": { + "description": "PodSpec is a description of a pod.", + "properties": { + "activeDeadlineSeconds": { + "description": "Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer.", + "format": "int64", + "type": "integer" + }, + "affinity": { + "$ref": "#/definitions/io.k8s.api.core.v1.Affinity", + "description": "If specified, the pod's scheduling constraints" + }, + "automountServiceAccountToken": { + "description": "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.", + "type": "boolean" + }, + "containers": { + "description": "List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.Container" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "dnsConfig": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodDNSConfig", + "description": "Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy." + }, + "dnsPolicy": { + "description": "Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.", + "type": "string" + }, + "enableServiceLinks": { + "description": "EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.", + "type": "boolean" + }, + "ephemeralContainers": { + "description": "List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.EphemeralContainer" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "hostAliases": { + "description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.HostAlias" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "ip" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "ip", + "x-kubernetes-patch-strategy": "merge" + }, + "hostIPC": { + "description": "Use the host's ipc namespace. Optional: Default to false.", + "type": "boolean" + }, + "hostNetwork": { + "description": "Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.", + "type": "boolean" + }, + "hostPID": { + "description": "Use the host's pid namespace. Optional: Default to false.", + "type": "boolean" + }, + "hostUsers": { + "description": "Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.", + "type": "boolean" + }, + "hostname": { + "description": "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.", + "type": "string" + }, + "imagePullSecrets": { + "description": "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "initContainers": { + "description": "List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.Container" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "nodeName": { + "description": "NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements.", + "type": "string" + }, + "nodeSelector": { + "additionalProperties": { + "type": "string" + }, + "description": "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/", + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "os": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodOS", + "description": "Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set.\n\nIf the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions\n\nIf the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup" + }, + "overhead": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md", + "type": "object" + }, + "preemptionPolicy": { + "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.", + "type": "string" + }, + "priority": { + "description": "The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority.", + "format": "int32", + "type": "integer" + }, + "priorityClassName": { + "description": "If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.", + "type": "string" + }, + "readinessGates": { + "description": "If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodReadinessGate" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resourceClaims": { + "description": "ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodResourceClaim" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge,retainKeys" + }, + "restartPolicy": { + "description": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy", + "type": "string" + }, + "runtimeClassName": { + "description": "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class", + "type": "string" + }, + "schedulerName": { + "description": "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.", + "type": "string" + }, + "schedulingGates": { + "description": "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\n\nSchedulingGates can only be set at pod creation time, and be removed only afterwards.\n\nThis is a beta feature enabled by the PodSchedulingReadiness feature gate.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodSchedulingGate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "securityContext": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodSecurityContext", + "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field." + }, + "serviceAccount": { + "description": "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.", + "type": "string" + }, + "serviceAccountName": { + "description": "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", + "type": "string" + }, + "setHostnameAsFQDN": { + "description": "If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.", + "type": "boolean" + }, + "shareProcessNamespace": { + "description": "Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false.", + "type": "boolean" + }, + "subdomain": { + "description": "If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all.", + "type": "string" + }, + "terminationGracePeriodSeconds": { + "description": "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.", + "format": "int64", + "type": "integer" + }, + "tolerations": { + "description": "If specified, the pod's tolerations.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.Toleration" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "topologySpreadConstraints": { + "description": "TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.TopologySpreadConstraint" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "topologyKey", + "whenUnsatisfiable" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "topologyKey", + "x-kubernetes-patch-strategy": "merge" + }, + "volumes": { + "description": "List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.Volume" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge,retainKeys" + } + }, + "required": [ + "containers" + ], + "type": "object" + }, + "io.k8s.api.core.v1.PodStatus": { + "description": "PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane.", + "properties": { + "conditions": { + "description": "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "containerStatuses": { + "description": "The list has one entry per container in the manifest. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "ephemeralContainerStatuses": { + "description": "Status for any ephemeral containers that have run in this pod.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "hostIP": { + "description": "hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod", + "type": "string" + }, + "hostIPs": { + "description": "hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.HostIP" + }, + "type": "array", + "x-kubernetes-list-type": "atomic", + "x-kubernetes-patch-merge-key": "ip", + "x-kubernetes-patch-strategy": "merge" + }, + "initContainerStatuses": { + "description": "The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "message": { + "description": "A human readable message indicating details about why the pod is in this condition.", + "type": "string" + }, + "nominatedNodeName": { + "description": "nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled.", + "type": "string" + }, + "phase": { + "description": "The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values:\n\nPending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod.\n\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase", + "type": "string" + }, + "podIP": { + "description": "podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.", + "type": "string" + }, + "podIPs": { + "description": "podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodIP" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "ip" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "ip", + "x-kubernetes-patch-strategy": "merge" + }, + "qosClass": { + "description": "The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes", + "type": "string" + }, + "reason": { + "description": "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'", + "type": "string" + }, + "resize": { + "description": "Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\"", + "type": "string" + }, + "resourceClaimStatuses": { + "description": "Status of resource claims.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodResourceClaimStatus" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge,retainKeys" + }, + "startTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod." + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.PodTemplate": { + "description": "PodTemplate describes a template for creating copies of a predefined pod.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "template": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec", + "description": "Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PodTemplate", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.PodTemplateList": { + "description": "PodTemplateList is a list of PodTemplates.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of pod templates", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PodTemplateList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.PodTemplateSpec": { + "description": "PodTemplateSpec describes the data a pod should have when created from a template", + "properties": { + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodSpec", + "description": "Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.PortStatus": { + "properties": { + "error": { + "description": "Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.", + "type": "string" + }, + "port": { + "description": "Port is the port number of the service port of which status is recorded here", + "format": "int32", + "type": "integer" + }, + "protocol": { + "description": "Protocol is the protocol of the service port of which status is recorded here The supported values are: \"TCP\", \"UDP\", \"SCTP\"", + "type": "string" + } + }, + "required": [ + "port", + "protocol" + ], + "type": "object" + }, + "io.k8s.api.core.v1.PortworxVolumeSource": { + "description": "PortworxVolumeSource represents a Portworx volume resource.", + "properties": { + "fsType": { + "description": "fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": "string" + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "volumeID": { + "description": "volumeID uniquely identifies a Portworx volume", + "type": "string" + } + }, + "required": [ + "volumeID" + ], + "type": "object" + }, + "io.k8s.api.core.v1.PreferredSchedulingTerm": { + "description": "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).", + "properties": { + "preference": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelectorTerm", + "description": "A node selector term, associated with the corresponding weight." + }, + "weight": { + "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "weight", + "preference" + ], + "type": "object" + }, + "io.k8s.api.core.v1.Probe": { + "description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.", + "properties": { + "exec": { + "$ref": "#/definitions/io.k8s.api.core.v1.ExecAction", + "description": "Exec specifies the action to take." + }, + "failureThreshold": { + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", + "format": "int32", + "type": "integer" + }, + "grpc": { + "$ref": "#/definitions/io.k8s.api.core.v1.GRPCAction", + "description": "GRPC specifies an action involving a GRPC port." + }, + "httpGet": { + "$ref": "#/definitions/io.k8s.api.core.v1.HTTPGetAction", + "description": "HTTPGet specifies the http request to perform." + }, + "initialDelaySeconds": { + "description": "Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "format": "int32", + "type": "integer" + }, + "periodSeconds": { + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", + "format": "int32", + "type": "integer" + }, + "successThreshold": { + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", + "format": "int32", + "type": "integer" + }, + "tcpSocket": { + "$ref": "#/definitions/io.k8s.api.core.v1.TCPSocketAction", + "description": "TCPSocket specifies an action involving a TCP port." + }, + "terminationGracePeriodSeconds": { + "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", + "format": "int64", + "type": "integer" + }, + "timeoutSeconds": { + "description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.ProjectedVolumeSource": { + "description": "Represents a projected volume source", + "properties": { + "defaultMode": { + "description": "defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" + }, + "sources": { + "description": "sources is the list of volume projections", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.VolumeProjection" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.QuobyteVolumeSource": { + "description": "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.", + "properties": { + "group": { + "description": "group to map volume access to Default is no group", + "type": "string" + }, + "readOnly": { + "description": "readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.", + "type": "boolean" + }, + "registry": { + "description": "registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes", + "type": "string" + }, + "tenant": { + "description": "tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin", + "type": "string" + }, + "user": { + "description": "user to map volume access to Defaults to serivceaccount user", + "type": "string" + }, + "volume": { + "description": "volume is a string that references an already created Quobyte volume by name.", + "type": "string" + } + }, + "required": [ + "registry", + "volume" + ], + "type": "object" + }, + "io.k8s.api.core.v1.RBDPersistentVolumeSource": { + "description": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd", + "type": "string" + }, + "image": { + "description": "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": "string" + }, + "keyring": { + "description": "keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": "string" + }, + "monitors": { + "description": "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "pool": { + "description": "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": "string" + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" + }, + "user": { + "description": "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": "string" + } + }, + "required": [ + "monitors", + "image" + ], + "type": "object" + }, + "io.k8s.api.core.v1.RBDVolumeSource": { + "description": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd", + "type": "string" + }, + "image": { + "description": "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": "string" + }, + "keyring": { + "description": "keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": "string" + }, + "monitors": { + "description": "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "pool": { + "description": "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": "string" + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" + }, + "user": { + "description": "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": "string" + } + }, + "required": [ + "monitors", + "image" + ], + "type": "object" + }, + "io.k8s.api.core.v1.ReplicationController": { + "description": "ReplicationController represents the configuration of a replication controller.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationControllerSpec", + "description": "Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationControllerStatus", + "description": "Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ReplicationController", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.ReplicationControllerCondition": { + "description": "ReplicationControllerCondition describes the state of a replication controller at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The last time the condition transitioned from one status to another." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": "string" + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of replication controller condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": "object" + }, + "io.k8s.api.core.v1.ReplicationControllerList": { + "description": "ReplicationControllerList is a collection of replication controllers.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ReplicationControllerList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.ReplicationControllerSpec": { + "description": "ReplicationControllerSpec is the specification of a replication controller.", + "properties": { + "minReadySeconds": { + "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", + "format": "int32", + "type": "integer" + }, + "replicas": { + "description": "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller", + "format": "int32", + "type": "integer" + }, + "selector": { + "additionalProperties": { + "type": "string" + }, + "description": "Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "template": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec", + "description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. The only allowed template.spec.restartPolicy value is \"Always\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.ReplicationControllerStatus": { + "description": "ReplicationControllerStatus represents the current status of a replication controller.", + "properties": { + "availableReplicas": { + "description": "The number of available replicas (ready for at least minReadySeconds) for this replication controller.", + "format": "int32", + "type": "integer" + }, + "conditions": { + "description": "Represents the latest available observations of a replication controller's current state.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationControllerCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "fullyLabeledReplicas": { + "description": "The number of pods that have labels matching the labels of the pod template of the replication controller.", + "format": "int32", + "type": "integer" + }, + "observedGeneration": { + "description": "ObservedGeneration reflects the generation of the most recently observed replication controller.", + "format": "int64", + "type": "integer" + }, + "readyReplicas": { + "description": "The number of ready replicas for this replication controller.", + "format": "int32", + "type": "integer" + }, + "replicas": { + "description": "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "replicas" + ], + "type": "object" + }, + "io.k8s.api.core.v1.ResourceClaim": { + "description": "ResourceClaim references one entry in PodSpec.ResourceClaims.", + "properties": { + "name": { + "description": "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.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.api.core.v1.ResourceFieldSelector": { + "description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format", + "properties": { + "containerName": { + "description": "Container name: required for volumes, optional for env vars", + "type": "string" + }, + "divisor": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "Specifies the output format of the exposed resources, defaults to \"1\"" + }, + "resource": { + "description": "Required: resource to select", + "type": "string" + } + }, + "required": [ + "resource" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.ResourceQuota": { + "description": "ResourceQuota sets aggregate quota restrictions enforced per namespace", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuotaSpec", + "description": "Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuotaStatus", + "description": "Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ResourceQuota", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.ResourceQuotaList": { + "description": "ResourceQuotaList is a list of ResourceQuota items.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ResourceQuotaList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.ResourceQuotaSpec": { + "description": "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.", + "properties": { + "hard": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", + "type": "object" + }, + "scopeSelector": { + "$ref": "#/definitions/io.k8s.api.core.v1.ScopeSelector", + "description": "scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched." + }, + "scopes": { + "description": "A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.ResourceQuotaStatus": { + "description": "ResourceQuotaStatus defines the enforced hard limits and observed use.", + "properties": { + "hard": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", + "type": "object" + }, + "used": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Used is the current observed total usage of the resource in the namespace.", + "type": "object" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.ResourceRequirements": { + "description": "ResourceRequirements describes the compute resource requirements.", + "properties": { + "claims": { + "description": "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceClaim" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, + "limits": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "type": "object" + }, + "requests": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "type": "object" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.SELinuxOptions": { + "description": "SELinuxOptions are the labels to be applied to the container", + "properties": { + "level": { + "description": "Level is SELinux level label that applies to the container.", + "type": "string" + }, + "role": { + "description": "Role is a SELinux role label that applies to the container.", + "type": "string" + }, + "type": { + "description": "Type is a SELinux type label that applies to the container.", + "type": "string" + }, + "user": { + "description": "User is a SELinux user label that applies to the container.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.ScaleIOPersistentVolumeSource": { + "description": "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\"", + "type": "string" + }, + "gateway": { + "description": "gateway is the host address of the ScaleIO API Gateway.", + "type": "string" + }, + "protectionDomain": { + "description": "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", + "type": "string" + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", + "description": "secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail." + }, + "sslEnabled": { + "description": "sslEnabled is the flag to enable/disable SSL communication with Gateway, default false", + "type": "boolean" + }, + "storageMode": { + "description": "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", + "type": "string" + }, + "storagePool": { + "description": "storagePool is the ScaleIO Storage Pool associated with the protection domain.", + "type": "string" + }, + "system": { + "description": "system is the name of the storage system as configured in ScaleIO.", + "type": "string" + }, + "volumeName": { + "description": "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.", + "type": "string" + } + }, + "required": [ + "gateway", + "system", + "secretRef" + ], + "type": "object" + }, + "io.k8s.api.core.v1.ScaleIOVolumeSource": { + "description": "ScaleIOVolumeSource represents a persistent ScaleIO volume", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\".", + "type": "string" + }, + "gateway": { + "description": "gateway is the host address of the ScaleIO API Gateway.", + "type": "string" + }, + "protectionDomain": { + "description": "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", + "type": "string" + }, + "readOnly": { + "description": "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail." + }, + "sslEnabled": { + "description": "sslEnabled Flag enable/disable SSL communication with Gateway, default false", + "type": "boolean" + }, + "storageMode": { + "description": "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", + "type": "string" + }, + "storagePool": { + "description": "storagePool is the ScaleIO Storage Pool associated with the protection domain.", + "type": "string" + }, + "system": { + "description": "system is the name of the storage system as configured in ScaleIO.", + "type": "string" + }, + "volumeName": { + "description": "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.", + "type": "string" + } + }, + "required": [ + "gateway", + "system", + "secretRef" + ], + "type": "object" + }, + "io.k8s.api.core.v1.ScopeSelector": { + "description": "A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.", + "properties": { + "matchExpressions": { + "description": "A list of scope selector requirements by scope of the resources.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.ScopedResourceSelectorRequirement" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.ScopedResourceSelectorRequirement": { + "description": "A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.", + "properties": { + "operator": { + "description": "Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.", + "type": "string" + }, + "scopeName": { + "description": "The name of the scope that the selector applies to.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "scopeName", + "operator" + ], + "type": "object" + }, + "io.k8s.api.core.v1.SeccompProfile": { + "description": "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.", + "properties": { + "localhostProfile": { + "description": "localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \"Localhost\". Must NOT be set for any other type.", + "type": "string" + }, + "type": { + "description": "type indicates which kind of seccomp profile will be applied. Valid options are:\n\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "localhostProfile": "LocalhostProfile" + } + } + ] + }, + "io.k8s.api.core.v1.Secret": { + "description": "Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "data": { + "additionalProperties": { + "format": "byte", + "type": "string" + }, + "description": "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", + "type": "object" + }, + "immutable": { + "description": "Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.", + "type": "boolean" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "stringData": { + "additionalProperties": { + "type": "string" + }, + "description": "stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API.", + "type": "object" + }, + "type": { + "description": "Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Secret", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.SecretEnvSource": { + "description": "SecretEnvSource selects a Secret to populate the environment variables with.\n\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.", + "properties": { + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the Secret must be defined", + "type": "boolean" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.SecretKeySelector": { + "description": "SecretKeySelector selects a key of a Secret.", + "properties": { + "key": { + "description": "The key of the secret to select from. Must be a valid secret key.", + "type": "string" + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the Secret or its key must be defined", + "type": "boolean" + } + }, + "required": [ + "key" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.SecretList": { + "description": "SecretList is a list of Secret.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.Secret" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "SecretList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.SecretProjection": { + "description": "Adapts a secret into a projected volume.\n\nThe contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode.", + "properties": { + "items": { + "description": "items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.KeyToPath" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "optional field specify whether the Secret or its key must be defined", + "type": "boolean" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.SecretReference": { + "description": "SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace", + "properties": { + "name": { + "description": "name is unique within a namespace to reference a secret resource.", + "type": "string" + }, + "namespace": { + "description": "namespace defines the space within which the secret name must be unique.", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.SecretVolumeSource": { + "description": "Adapts a Secret into a volume.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.", + "properties": { + "defaultMode": { + "description": "defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" + }, + "items": { + "description": "items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.KeyToPath" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "optional": { + "description": "optional field specify whether the Secret or its keys must be defined", + "type": "boolean" + }, + "secretName": { + "description": "secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.SecurityContext": { + "description": "SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.", + "properties": { + "allowPrivilegeEscalation": { + "description": "AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows.", + "type": "boolean" + }, + "capabilities": { + "$ref": "#/definitions/io.k8s.api.core.v1.Capabilities", + "description": "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows." + }, + "privileged": { + "description": "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows.", + "type": "boolean" + }, + "procMount": { + "description": "procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows.", + "type": "string" + }, + "readOnlyRootFilesystem": { + "description": "Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows.", + "type": "boolean" + }, + "runAsGroup": { + "description": "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": "integer" + }, + "runAsNonRoot": { + "description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": "boolean" + }, + "runAsUser": { + "description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": "integer" + }, + "seLinuxOptions": { + "$ref": "#/definitions/io.k8s.api.core.v1.SELinuxOptions", + "description": "The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows." + }, + "seccompProfile": { + "$ref": "#/definitions/io.k8s.api.core.v1.SeccompProfile", + "description": "The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows." + }, + "windowsOptions": { + "$ref": "#/definitions/io.k8s.api.core.v1.WindowsSecurityContextOptions", + "description": "The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux." + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.Service": { + "description": "Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.core.v1.ServiceSpec", + "description": "Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.core.v1.ServiceStatus", + "description": "Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Service", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.ServiceAccount": { + "description": "ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "automountServiceAccountToken": { + "description": "AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level.", + "type": "boolean" + }, + "imagePullSecrets": { + "description": "ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "secrets": { + "description": "Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a \"kubernetes.io/enforce-mountable-secrets\" annotation set to \"true\". This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ServiceAccount", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.ServiceAccountList": { + "description": "ServiceAccountList is a list of ServiceAccount objects", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ServiceAccountList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.ServiceAccountTokenProjection": { + "description": "ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise).", + "properties": { + "audience": { + "description": "audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver.", + "type": "string" + }, + "expirationSeconds": { + "description": "expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes.", + "format": "int64", + "type": "integer" + }, + "path": { + "description": "path is the path relative to the mount point of the file to project the token into.", + "type": "string" + } + }, + "required": [ + "path" + ], + "type": "object" + }, + "io.k8s.api.core.v1.ServiceList": { + "description": "ServiceList holds a list of services.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of services", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.Service" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ServiceList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.ServicePort": { + "description": "ServicePort contains information on service's port.", + "properties": { + "appProtocol": { + "description": "The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:\n\n* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).\n\n* Kubernetes-defined prefixed names:\n * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-\n * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455\n * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455\n\n* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.", + "type": "string" + }, + "name": { + "description": "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service.", + "type": "string" + }, + "nodePort": { + "description": "The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport", + "format": "int32", + "type": "integer" + }, + "port": { + "description": "The port that will be exposed by this service.", + "format": "int32", + "type": "integer" + }, + "protocol": { + "description": "The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.", + "type": "string" + }, + "targetPort": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service" + } + }, + "required": [ + "port" + ], + "type": "object" + }, + "io.k8s.api.core.v1.ServiceSpec": { + "description": "ServiceSpec describes the attributes that a user creates on a service.", + "properties": { + "allocateLoadBalancerNodePorts": { + "description": "allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is \"true\". It may be set to \"false\" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type.", + "type": "boolean" + }, + "clusterIP": { + "description": "clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", + "type": "string" + }, + "clusterIPs": { + "description": "ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value.\n\nThis field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "externalIPs": { + "description": "externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "externalName": { + "description": "externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be \"ExternalName\".", + "type": "string" + }, + "externalTrafficPolicy": { + "description": "externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's \"externally-facing\" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to \"Local\", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get \"Cluster\" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node.", + "type": "string" + }, + "healthCheckNodePort": { + "description": "healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set.", + "format": "int32", + "type": "integer" + }, + "internalTrafficPolicy": { + "description": "InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to \"Local\", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features).", + "type": "string" + }, + "ipFamilies": { + "description": "IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are \"IPv4\" and \"IPv6\". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \"headless\" services. This field will be wiped when updating a Service to type ExternalName.\n\nThis field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "ipFamilyPolicy": { + "description": "IPFamilyPolicy represents the dual-stack-ness requested or required by this Service. If there is no value provided, then this field will be set to SingleStack. Services can be \"SingleStack\" (a single IP family), \"PreferDualStack\" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or \"RequireDualStack\" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName.", + "type": "string" + }, + "loadBalancerClass": { + "description": "loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. \"internal-vip\" or \"example.com/internal-vip\". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.", + "type": "string" + }, + "loadBalancerIP": { + "description": "Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations. Using it is non-portable and it may not support dual-stack. Users are encouraged to use implementation-specific annotations when available.", + "type": "string" + }, + "loadBalancerSourceRanges": { + "description": "If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "ports": { + "description": "The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.ServicePort" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "port", + "protocol" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "port", + "x-kubernetes-patch-strategy": "merge" + }, + "publishNotReadyAddresses": { + "description": "publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered \"ready\" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior.", + "type": "boolean" + }, + "selector": { + "additionalProperties": { + "type": "string" + }, + "description": "Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/", + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "sessionAffinity": { + "description": "Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", + "type": "string" + }, + "sessionAffinityConfig": { + "$ref": "#/definitions/io.k8s.api.core.v1.SessionAffinityConfig", + "description": "sessionAffinityConfig contains the configurations of session affinity." + }, + "type": { + "description": "type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. \"ExternalName\" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.ServiceStatus": { + "description": "ServiceStatus represents the current status of a service.", + "properties": { + "conditions": { + "description": "Current service state", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "loadBalancer": { + "$ref": "#/definitions/io.k8s.api.core.v1.LoadBalancerStatus", + "description": "LoadBalancer contains the current status of the load-balancer, if one is present." + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.SessionAffinityConfig": { + "description": "SessionAffinityConfig represents the configurations of session affinity.", + "properties": { + "clientIP": { + "$ref": "#/definitions/io.k8s.api.core.v1.ClientIPConfig", + "description": "clientIP contains the configurations of Client IP based session affinity." + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.SleepAction": { + "description": "SleepAction describes a \"sleep\" action.", + "properties": { + "seconds": { + "description": "Seconds is the number of seconds to sleep.", + "format": "int64", + "type": "integer" + } + }, + "required": [ + "seconds" + ], + "type": "object" + }, + "io.k8s.api.core.v1.StorageOSPersistentVolumeSource": { + "description": "Represents a StorageOS persistent volume resource.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": "string" + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", + "description": "secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted." + }, + "volumeName": { + "description": "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", + "type": "string" + }, + "volumeNamespace": { + "description": "volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.StorageOSVolumeSource": { + "description": "Represents a StorageOS persistent volume resource.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": "string" + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted." + }, + "volumeName": { + "description": "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", + "type": "string" + }, + "volumeNamespace": { + "description": "volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.Sysctl": { + "description": "Sysctl defines a kernel parameter to be set", + "properties": { + "name": { + "description": "Name of a property to set", + "type": "string" + }, + "value": { + "description": "Value of a property to set", + "type": "string" + } + }, + "required": [ + "name", + "value" + ], + "type": "object" + }, + "io.k8s.api.core.v1.TCPSocketAction": { + "description": "TCPSocketAction describes an action based on opening a socket", + "properties": { + "host": { + "description": "Optional: Host name to connect to, defaults to the pod IP.", + "type": "string" + }, + "port": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME." + } + }, + "required": [ + "port" + ], + "type": "object" + }, + "io.k8s.api.core.v1.Taint": { + "description": "The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.", + "properties": { + "effect": { + "description": "Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.", + "type": "string" + }, + "key": { + "description": "Required. The taint key to be applied to a node.", + "type": "string" + }, + "timeAdded": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints." + }, + "value": { + "description": "The taint value corresponding to the taint key.", + "type": "string" + } + }, + "required": [ + "key", + "effect" + ], + "type": "object" + }, + "io.k8s.api.core.v1.Toleration": { + "description": "The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator .", + "properties": { + "effect": { + "description": "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.", + "type": "string" + }, + "key": { + "description": "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.", + "type": "string" + }, + "operator": { + "description": "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 pod can tolerate all taints of a particular category.", + "type": "string" + }, + "tolerationSeconds": { + "description": "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.", + "format": "int64", + "type": "integer" + }, + "value": { + "description": "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.TopologySelectorLabelRequirement": { + "description": "A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.", + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "values": { + "description": "An array of string values. One value must match the label to be selected. Each entry in Values is ORed.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "key", + "values" + ], + "type": "object" + }, + "io.k8s.api.core.v1.TopologySelectorTerm": { + "description": "A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future.", + "properties": { + "matchLabelExpressions": { + "description": "A list of topology selector requirements by labels.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.TopologySelectorLabelRequirement" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.TopologySpreadConstraint": { + "description": "TopologySpreadConstraint specifies how to spread matching pods among the given topology.", + "properties": { + "labelSelector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain." + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector.\n\nThis is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "maxSkew": { + "description": "MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed.", + "format": "int32", + "type": "integer" + }, + "minDomains": { + "description": "MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule.\n\nFor example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew.\n\nThis is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default).", + "format": "int32", + "type": "integer" + }, + "nodeAffinityPolicy": { + "description": "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.\n\nIf this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", + "type": "string" + }, + "nodeTaintsPolicy": { + "description": "NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included.\n\nIf this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", + "type": "string" + }, + "topologyKey": { + "description": "TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field.", + "type": "string" + }, + "whenUnsatisfiable": { + "description": "WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location,\n but giving higher precedence to topologies that would help reduce the\n skew.\nA constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field.", + "type": "string" + } + }, + "required": [ + "maxSkew", + "topologyKey", + "whenUnsatisfiable" + ], + "type": "object" + }, + "io.k8s.api.core.v1.TypedLocalObjectReference": { + "description": "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + "type": "string" + }, + "kind": { + "description": "Kind is the type of resource being referenced", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.TypedObjectReference": { + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + "type": "string" + }, + "kind": { + "description": "Kind is the type of resource being referenced", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced", + "type": "string" + }, + "namespace": { + "description": "Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object" + }, + "io.k8s.api.core.v1.Volume": { + "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", + "properties": { + "awsElasticBlockStore": { + "$ref": "#/definitions/io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource", + "description": "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore" + }, + "azureDisk": { + "$ref": "#/definitions/io.k8s.api.core.v1.AzureDiskVolumeSource", + "description": "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod." + }, + "azureFile": { + "$ref": "#/definitions/io.k8s.api.core.v1.AzureFileVolumeSource", + "description": "azureFile represents an Azure File Service mount on the host and bind mount to the pod." + }, + "cephfs": { + "$ref": "#/definitions/io.k8s.api.core.v1.CephFSVolumeSource", + "description": "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime" + }, + "cinder": { + "$ref": "#/definitions/io.k8s.api.core.v1.CinderVolumeSource", + "description": "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md" + }, + "configMap": { + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapVolumeSource", + "description": "configMap represents a configMap that should populate this volume" + }, + "csi": { + "$ref": "#/definitions/io.k8s.api.core.v1.CSIVolumeSource", + "description": "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature)." + }, + "downwardAPI": { + "$ref": "#/definitions/io.k8s.api.core.v1.DownwardAPIVolumeSource", + "description": "downwardAPI represents downward API about the pod that should populate this volume" + }, + "emptyDir": { + "$ref": "#/definitions/io.k8s.api.core.v1.EmptyDirVolumeSource", + "description": "emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir" + }, + "ephemeral": { + "$ref": "#/definitions/io.k8s.api.core.v1.EphemeralVolumeSource", + "description": "ephemeral represents a volume that is handled by a cluster storage driver. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed.\n\nUse this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity\n tracking are needed,\nc) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through\n a PersistentVolumeClaim (see EphemeralVolumeSource for more\n information on the connection between this volume type\n and PersistentVolumeClaim).\n\nUse PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod.\n\nUse CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information.\n\nA pod can use both types of ephemeral volumes and persistent volumes at the same time." + }, + "fc": { + "$ref": "#/definitions/io.k8s.api.core.v1.FCVolumeSource", + "description": "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod." + }, + "flexVolume": { + "$ref": "#/definitions/io.k8s.api.core.v1.FlexVolumeSource", + "description": "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin." + }, + "flocker": { + "$ref": "#/definitions/io.k8s.api.core.v1.FlockerVolumeSource", + "description": "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running" + }, + "gcePersistentDisk": { + "$ref": "#/definitions/io.k8s.api.core.v1.GCEPersistentDiskVolumeSource", + "description": "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk" + }, + "gitRepo": { + "$ref": "#/definitions/io.k8s.api.core.v1.GitRepoVolumeSource", + "description": "gitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container." + }, + "glusterfs": { + "$ref": "#/definitions/io.k8s.api.core.v1.GlusterfsVolumeSource", + "description": "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md" + }, + "hostPath": { + "$ref": "#/definitions/io.k8s.api.core.v1.HostPathVolumeSource", + "description": "hostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath" + }, + "iscsi": { + "$ref": "#/definitions/io.k8s.api.core.v1.ISCSIVolumeSource", + "description": "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md" + }, + "name": { + "description": "name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "nfs": { + "$ref": "#/definitions/io.k8s.api.core.v1.NFSVolumeSource", + "description": "nfs represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs" + }, + "persistentVolumeClaim": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource", + "description": "persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims" + }, + "photonPersistentDisk": { + "$ref": "#/definitions/io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource", + "description": "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine" + }, + "portworxVolume": { + "$ref": "#/definitions/io.k8s.api.core.v1.PortworxVolumeSource", + "description": "portworxVolume represents a portworx volume attached and mounted on kubelets host machine" + }, + "projected": { + "$ref": "#/definitions/io.k8s.api.core.v1.ProjectedVolumeSource", + "description": "projected items for all in one resources secrets, configmaps, and downward API" + }, + "quobyte": { + "$ref": "#/definitions/io.k8s.api.core.v1.QuobyteVolumeSource", + "description": "quobyte represents a Quobyte mount on the host that shares a pod's lifetime" + }, + "rbd": { + "$ref": "#/definitions/io.k8s.api.core.v1.RBDVolumeSource", + "description": "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md" + }, + "scaleIO": { + "$ref": "#/definitions/io.k8s.api.core.v1.ScaleIOVolumeSource", + "description": "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes." + }, + "secret": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretVolumeSource", + "description": "secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret" + }, + "storageos": { + "$ref": "#/definitions/io.k8s.api.core.v1.StorageOSVolumeSource", + "description": "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes." + }, + "vsphereVolume": { + "$ref": "#/definitions/io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource", + "description": "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.api.core.v1.VolumeDevice": { + "description": "volumeDevice describes a mapping of a raw block device within a container.", + "properties": { + "devicePath": { + "description": "devicePath is the path inside of the container that the device will be mapped to.", + "type": "string" + }, + "name": { + "description": "name must match the name of a persistentVolumeClaim in the pod", + "type": "string" + } + }, + "required": [ + "name", + "devicePath" + ], + "type": "object" + }, + "io.k8s.api.core.v1.VolumeMount": { + "description": "VolumeMount describes a mounting of a Volume within a container.", + "properties": { + "mountPath": { + "description": "Path within the container at which the volume should be mounted. Must not contain ':'.", + "type": "string" + }, + "mountPropagation": { + "description": "mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10.", + "type": "string" + }, + "name": { + "description": "This must match the Name of a Volume.", + "type": "string" + }, + "readOnly": { + "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.", + "type": "boolean" + }, + "subPath": { + "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).", + "type": "string" + }, + "subPathExpr": { + "description": "Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive.", + "type": "string" + } + }, + "required": [ + "name", + "mountPath" + ], + "type": "object" + }, + "io.k8s.api.core.v1.VolumeNodeAffinity": { + "description": "VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.", + "properties": { + "required": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelector", + "description": "required specifies hard node constraints that must be met." + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.VolumeProjection": { + "description": "Projection that may be projected along with other supported volume types", + "properties": { + "clusterTrustBundle": { + "$ref": "#/definitions/io.k8s.api.core.v1.ClusterTrustBundleProjection", + "description": "ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field of ClusterTrustBundle objects in an auto-updating file.\n\nAlpha, gated by the ClusterTrustBundleProjection feature gate.\n\nClusterTrustBundle objects can either be selected by name, or by the combination of signer name and a label selector.\n\nKubelet performs aggressive normalization of the PEM contents written into the pod filesystem. Esoteric PEM features such as inter-block comments and block headers are stripped. Certificates are deduplicated. The ordering of certificates within the file is arbitrary, and Kubelet may change the order over time." + }, + "configMap": { + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapProjection", + "description": "configMap information about the configMap data to project" + }, + "downwardAPI": { + "$ref": "#/definitions/io.k8s.api.core.v1.DownwardAPIProjection", + "description": "downwardAPI information about the downwardAPI data to project" + }, + "secret": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretProjection", + "description": "secret information about the secret data to project" + }, + "serviceAccountToken": { + "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccountTokenProjection", + "description": "serviceAccountToken is information about the serviceAccountToken data to project" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.VolumeResourceRequirements": { + "description": "VolumeResourceRequirements describes the storage resource requirements for a volume.", + "properties": { + "limits": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "type": "object" + }, + "requests": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "type": "object" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource": { + "description": "Represents a vSphere volume resource.", + "properties": { + "fsType": { + "description": "fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": "string" + }, + "storagePolicyID": { + "description": "storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.", + "type": "string" + }, + "storagePolicyName": { + "description": "storagePolicyName is the storage Policy Based Management (SPBM) profile name.", + "type": "string" + }, + "volumePath": { + "description": "volumePath is the path that identifies vSphere volume vmdk", + "type": "string" + } + }, + "required": [ + "volumePath" + ], + "type": "object" + }, + "io.k8s.api.core.v1.WeightedPodAffinityTerm": { + "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", + "properties": { + "podAffinityTerm": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodAffinityTerm", + "description": "Required. A pod affinity term, associated with the corresponding weight." + }, + "weight": { + "description": "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "weight", + "podAffinityTerm" + ], + "type": "object" + }, + "io.k8s.api.core.v1.WindowsSecurityContextOptions": { + "description": "WindowsSecurityContextOptions contain Windows-specific options and credentials.", + "properties": { + "gmsaCredentialSpec": { + "description": "GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field.", + "type": "string" + }, + "gmsaCredentialSpecName": { + "description": "GMSACredentialSpecName is the name of the GMSA credential spec to use.", + "type": "string" + }, + "hostProcess": { + "description": "HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.", + "type": "boolean" + }, + "runAsUserName": { + "description": "The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.discovery.v1.Endpoint": { + "description": "Endpoint represents a single logical \"backend\" implementing a service.", + "properties": { + "addresses": { + "description": "addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. These are all assumed to be fungible and clients may choose to only use the first element. Refer to: https://issue.k8s.io/106267", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "conditions": { + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointConditions", + "description": "conditions contains information about the current status of the endpoint." + }, + "deprecatedTopology": { + "additionalProperties": { + "type": "string" + }, + "description": "deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead.", + "type": "object" + }, + "hints": { + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointHints", + "description": "hints contains information associated with how an endpoint should be consumed." + }, + "hostname": { + "description": "hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation.", + "type": "string" + }, + "nodeName": { + "description": "nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node.", + "type": "string" + }, + "targetRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", + "description": "targetRef is a reference to a Kubernetes object that represents this endpoint." + }, + "zone": { + "description": "zone is the name of the Zone this endpoint exists in.", + "type": "string" + } + }, + "required": [ + "addresses" + ], + "type": "object" + }, + "io.k8s.api.discovery.v1.EndpointConditions": { + "description": "EndpointConditions represents the current condition of an endpoint.", + "properties": { + "ready": { + "description": "ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be \"true\" for terminating endpoints, except when the normal readiness behavior is being explicitly overridden, for example when the associated Service has set the publishNotReadyAddresses flag.", + "type": "boolean" + }, + "serving": { + "description": "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.", + "type": "boolean" + }, + "terminating": { + "description": "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating.", + "type": "boolean" + } + }, + "type": "object" + }, + "io.k8s.api.discovery.v1.EndpointHints": { + "description": "EndpointHints provides hints describing how an endpoint should be consumed.", + "properties": { + "forZones": { + "description": "forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing.", + "items": { + "$ref": "#/definitions/io.k8s.api.discovery.v1.ForZone" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.discovery.v1.EndpointPort": { + "description": "EndpointPort represents a Port used by an EndpointSlice", + "properties": { + "appProtocol": { + "description": "The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:\n\n* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).\n\n* Kubernetes-defined prefixed names:\n * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-\n * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455\n * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455\n\n* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.", + "type": "string" + }, + "name": { + "description": "name represents the name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is derived from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string.", + "type": "string" + }, + "port": { + "description": "port represents the port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer.", + "format": "int32", + "type": "integer" + }, + "protocol": { + "description": "protocol represents the IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.discovery.v1.EndpointSlice": { + "description": "EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints.", + "properties": { + "addressType": { + "description": "addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name.", + "type": "string" + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "endpoints": { + "description": "endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints.", + "items": { + "$ref": "#/definitions/io.k8s.api.discovery.v1.Endpoint" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata." + }, + "ports": { + "description": "ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates \"all ports\". Each slice may include a maximum of 100 ports.", + "items": { + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointPort" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "addressType", + "endpoints" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "discovery.k8s.io", + "kind": "EndpointSlice", + "version": "v1" + } + ] + }, + "io.k8s.api.discovery.v1.EndpointSliceList": { + "description": "EndpointSliceList represents a list of endpoint slices", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is the list of endpoint slices", + "items": { + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "discovery.k8s.io", + "kind": "EndpointSliceList", + "version": "v1" + } + ] + }, + "io.k8s.api.discovery.v1.ForZone": { + "description": "ForZone provides information about which zones should consume this endpoint.", + "properties": { + "name": { + "description": "name represents the name of the zone.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.api.events.v1.Event": { + "description": "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.", + "properties": { + "action": { + "description": "action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters.", + "type": "string" + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "deprecatedCount": { + "description": "deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.", + "format": "int32", + "type": "integer" + }, + "deprecatedFirstTimestamp": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type." + }, + "deprecatedLastTimestamp": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type." + }, + "deprecatedSource": { + "$ref": "#/definitions/io.k8s.api.core.v1.EventSource", + "description": "deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type." + }, + "eventTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "eventTime is the time when this Event was first observed. It is required." + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "note": { + "description": "note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB.", + "type": "string" + }, + "reason": { + "description": "reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters.", + "type": "string" + }, + "regarding": { + "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", + "description": "regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object." + }, + "related": { + "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", + "description": "related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object." + }, + "reportingController": { + "description": "reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events.", + "type": "string" + }, + "reportingInstance": { + "description": "reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters.", + "type": "string" + }, + "series": { + "$ref": "#/definitions/io.k8s.api.events.v1.EventSeries", + "description": "series is data about the Event series this event represents or nil if it's a singleton Event." + }, + "type": { + "description": "type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events.", + "type": "string" + } + }, + "required": [ + "eventTime" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "events.k8s.io", + "kind": "Event", + "version": "v1" + } + ] + }, + "io.k8s.api.events.v1.EventList": { + "description": "EventList is a list of Event objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is a list of schema objects.", + "items": { + "$ref": "#/definitions/io.k8s.api.events.v1.Event" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "events.k8s.io", + "kind": "EventList", + "version": "v1" + } + ] + }, + "io.k8s.api.events.v1.EventSeries": { + "description": "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in \"k8s.io/client-go/tools/events/event_broadcaster.go\" shows how this struct is updated on heartbeats and can guide customized reporter implementations.", + "properties": { + "count": { + "description": "count is the number of occurrences in this series up to the last heartbeat time.", + "format": "int32", + "type": "integer" + }, + "lastObservedTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "lastObservedTime is the time when last Event from the series was seen before last heartbeat." + } + }, + "required": [ + "count", + "lastObservedTime" + ], + "type": "object" + }, + "io.k8s.api.flowcontrol.v1.ExemptPriorityLevelConfiguration": { + "description": "ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.", + "properties": { + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": "integer" + }, + "nominalConcurrencyShares": { + "description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "io.k8s.api.flowcontrol.v1.FlowDistinguisherMethod": { + "description": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", + "properties": { + "type": { + "description": "`type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object" + }, + "io.k8s.api.flowcontrol.v1.FlowSchema": { + "description": "FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\".", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchemaSpec", + "description": "`spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchemaStatus", + "description": "`status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" + } + ] + }, + "io.k8s.api.flowcontrol.v1.FlowSchemaCondition": { + "description": "FlowSchemaCondition describes conditions for a FlowSchema.", + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another." + }, + "message": { + "description": "`message` is a human-readable message indicating details about last transition.", + "type": "string" + }, + "reason": { + "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "type": "string" + }, + "type": { + "description": "`type` is the type of the condition. Required.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.flowcontrol.v1.FlowSchemaList": { + "description": "FlowSchemaList is a list of FlowSchema objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "`items` is a list of FlowSchemas.", + "items": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "`metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchemaList", + "version": "v1" + } + ] + }, + "io.k8s.api.flowcontrol.v1.FlowSchemaSpec": { + "description": "FlowSchemaSpec describes how the FlowSchema's specification looks like.", + "properties": { + "distinguisherMethod": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowDistinguisherMethod", + "description": "`distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string." + }, + "matchingPrecedence": { + "description": "`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.", + "format": "int32", + "type": "integer" + }, + "priorityLevelConfiguration": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationReference", + "description": "`priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required." + }, + "rules": { + "description": "`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.", + "items": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PolicyRulesWithSubjects" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "priorityLevelConfiguration" + ], + "type": "object" + }, + "io.k8s.api.flowcontrol.v1.FlowSchemaStatus": { + "description": "FlowSchemaStatus represents the current state of a FlowSchema.", + "properties": { + "conditions": { + "description": "`conditions` is a list of the current states of FlowSchema.", + "items": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchemaCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "io.k8s.api.flowcontrol.v1.GroupSubject": { + "description": "GroupSubject holds detailed information for group-kind subject.", + "properties": { + "name": { + "description": "name is the user group that matches, or \"*\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.api.flowcontrol.v1.LimitResponse": { + "description": "LimitResponse defines how to handle requests that can not be executed right now.", + "properties": { + "queuing": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.QueuingConfiguration", + "description": "`queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `\"Queue\"`." + }, + "type": { + "description": "`type` is \"Queue\" or \"Reject\". \"Queue\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \"Reject\" means that requests that can not be executed upon arrival are rejected. Required.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "queuing": "Queuing" + } + } + ] + }, + "io.k8s.api.flowcontrol.v1.LimitedPriorityLevelConfiguration": { + "description": "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\n - How are requests for this priority level limited?\n - What should be done with requests that exceed the limit?", + "properties": { + "borrowingLimitPercent": { + "description": "`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.\n\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\n\nThe value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.", + "format": "int32", + "type": "integer" + }, + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": "integer" + }, + "limitResponse": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.LimitResponse", + "description": "`limitResponse` indicates what to do with requests that can not be executed right now" + }, + "nominalConcurrencyShares": { + "description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level.\n\nIf not specified, this field defaults to a value of 30.\n\nSetting this field to zero supports the construction of a \"jail\" for this priority level that is used to hold some request(s)", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "io.k8s.api.flowcontrol.v1.NonResourcePolicyRule": { + "description": "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.", + "properties": { + "nonResourceURLs": { + "description": "`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:\n - \"/healthz\" is legal\n - \"/hea*\" is illegal\n - \"/hea\" is legal but matches nothing\n - \"/hea/*\" also matches nothing\n - \"/healthz/*\" matches all per-component health checks.\n\"*\" matches all non-resource urls. if it is present, it must be the only entry. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "verbs": { + "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "verbs", + "nonResourceURLs" + ], + "type": "object" + }, + "io.k8s.api.flowcontrol.v1.PolicyRulesWithSubjects": { + "description": "PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.", + "properties": { + "nonResourceRules": { + "description": "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.", + "items": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.NonResourcePolicyRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resourceRules": { + "description": "`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.", + "items": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.ResourcePolicyRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "subjects": { + "description": "subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.", + "items": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.Subject" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "subjects" + ], + "type": "object" + }, + "io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration": { + "description": "PriorityLevelConfiguration represents the configuration of a priority level.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationSpec", + "description": "`spec` is the specification of the desired behavior of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationStatus", + "description": "`status` is the current status of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1" + } + ] + }, + "io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationCondition": { + "description": "PriorityLevelConfigurationCondition defines the condition of priority level.", + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another." + }, + "message": { + "description": "`message` is a human-readable message indicating details about last transition.", + "type": "string" + }, + "reason": { + "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "type": "string" + }, + "type": { + "description": "`type` is the type of the condition. Required.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationList": { + "description": "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "`items` is a list of request-priorities.", + "items": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfigurationList", + "version": "v1" + } + ] + }, + "io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationReference": { + "description": "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.", + "properties": { + "name": { + "description": "`name` is the name of the priority level configuration being referenced Required.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationSpec": { + "description": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.", + "properties": { + "exempt": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.ExemptPriorityLevelConfiguration", + "description": "`exempt` specifies how requests are handled for an exempt priority level. This field MUST be empty if `type` is `\"Limited\"`. This field MAY be non-empty if `type` is `\"Exempt\"`. If empty and `type` is `\"Exempt\"` then the default values for `ExemptPriorityLevelConfiguration` apply." + }, + "limited": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.LimitedPriorityLevelConfiguration", + "description": "`limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `\"Limited\"`." + }, + "type": { + "description": "`type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "exempt": "Exempt", + "limited": "Limited" + } + } + ] + }, + "io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationStatus": { + "description": "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".", + "properties": { + "conditions": { + "description": "`conditions` is the current state of \"request-priority\".", + "items": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "io.k8s.api.flowcontrol.v1.QueuingConfiguration": { + "description": "QueuingConfiguration holds the configuration parameters for queuing", + "properties": { + "handSize": { + "description": "`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.", + "format": "int32", + "type": "integer" + }, + "queueLengthLimit": { + "description": "`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50.", + "format": "int32", + "type": "integer" + }, + "queues": { + "description": "`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "io.k8s.api.flowcontrol.v1.ResourcePolicyRule": { + "description": "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.", + "properties": { + "apiGroups": { + "description": "`apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "clusterScope": { + "description": "`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.", + "type": "boolean" + }, + "namespaces": { + "description": "`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "resources": { + "description": "`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "verbs": { + "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "verbs", + "apiGroups", + "resources" + ], + "type": "object" + }, + "io.k8s.api.flowcontrol.v1.ServiceAccountSubject": { + "description": "ServiceAccountSubject holds detailed information for service-account-kind subject.", + "properties": { + "name": { + "description": "`name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required.", + "type": "string" + }, + "namespace": { + "description": "`namespace` is the namespace of matching ServiceAccount objects. Required.", + "type": "string" + } + }, + "required": [ + "namespace", + "name" + ], + "type": "object" + }, + "io.k8s.api.flowcontrol.v1.Subject": { + "description": "Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.", + "properties": { + "group": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.GroupSubject", + "description": "`group` matches based on user group name." + }, + "kind": { + "description": "`kind` indicates which one of the other fields is non-empty. Required", + "type": "string" + }, + "serviceAccount": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.ServiceAccountSubject", + "description": "`serviceAccount` matches ServiceAccounts." + }, + "user": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.UserSubject", + "description": "`user` matches based on username." + } + }, + "required": [ + "kind" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "kind", + "fields-to-discriminateBy": { + "group": "Group", + "serviceAccount": "ServiceAccount", + "user": "User" + } + } + ] + }, + "io.k8s.api.flowcontrol.v1.UserSubject": { + "description": "UserSubject holds detailed information for user-kind subject.", + "properties": { + "name": { + "description": "`name` is the username that matches, or \"*\" to match all usernames. Required.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.ExemptPriorityLevelConfiguration": { + "description": "ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.", + "properties": { + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": "integer" + }, + "nominalConcurrencyShares": { + "description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.FlowDistinguisherMethod": { + "description": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", + "properties": { + "type": { + "description": "`type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.FlowSchema": { + "description": "FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\".", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchemaSpec", + "description": "`spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchemaStatus", + "description": "`status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + ] + }, + "io.k8s.api.flowcontrol.v1beta3.FlowSchemaCondition": { + "description": "FlowSchemaCondition describes conditions for a FlowSchema.", + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another." + }, + "message": { + "description": "`message` is a human-readable message indicating details about last transition.", + "type": "string" + }, + "reason": { + "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "type": "string" + }, + "type": { + "description": "`type` is the type of the condition. Required.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.FlowSchemaList": { + "description": "FlowSchemaList is a list of FlowSchema objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "`items` is a list of FlowSchemas.", + "items": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "`metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchemaList", + "version": "v1beta3" + } + ] + }, + "io.k8s.api.flowcontrol.v1beta3.FlowSchemaSpec": { + "description": "FlowSchemaSpec describes how the FlowSchema's specification looks like.", + "properties": { + "distinguisherMethod": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowDistinguisherMethod", + "description": "`distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string." + }, + "matchingPrecedence": { + "description": "`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.", + "format": "int32", + "type": "integer" + }, + "priorityLevelConfiguration": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationReference", + "description": "`priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required." + }, + "rules": { + "description": "`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.", + "items": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PolicyRulesWithSubjects" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "priorityLevelConfiguration" + ], + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.FlowSchemaStatus": { + "description": "FlowSchemaStatus represents the current state of a FlowSchema.", + "properties": { + "conditions": { + "description": "`conditions` is a list of the current states of FlowSchema.", + "items": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchemaCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.GroupSubject": { + "description": "GroupSubject holds detailed information for group-kind subject.", + "properties": { + "name": { + "description": "name is the user group that matches, or \"*\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.LimitResponse": { + "description": "LimitResponse defines how to handle requests that can not be executed right now.", + "properties": { + "queuing": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.QueuingConfiguration", + "description": "`queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `\"Queue\"`." + }, + "type": { + "description": "`type` is \"Queue\" or \"Reject\". \"Queue\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \"Reject\" means that requests that can not be executed upon arrival are rejected. Required.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "queuing": "Queuing" + } + } + ] + }, + "io.k8s.api.flowcontrol.v1beta3.LimitedPriorityLevelConfiguration": { + "description": "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\n - How are requests for this priority level limited?\n - What should be done with requests that exceed the limit?", + "properties": { + "borrowingLimitPercent": { + "description": "`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.\n\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\n\nThe value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.", + "format": "int32", + "type": "integer" + }, + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": "integer" + }, + "limitResponse": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.LimitResponse", + "description": "`limitResponse` indicates what to do with requests that can not be executed right now" + }, + "nominalConcurrencyShares": { + "description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of 30.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.NonResourcePolicyRule": { + "description": "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.", + "properties": { + "nonResourceURLs": { + "description": "`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:\n - \"/healthz\" is legal\n - \"/hea*\" is illegal\n - \"/hea\" is legal but matches nothing\n - \"/hea/*\" also matches nothing\n - \"/healthz/*\" matches all per-component health checks.\n\"*\" matches all non-resource urls. if it is present, it must be the only entry. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "verbs": { + "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "verbs", + "nonResourceURLs" + ], + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.PolicyRulesWithSubjects": { + "description": "PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.", + "properties": { + "nonResourceRules": { + "description": "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.", + "items": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.NonResourcePolicyRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resourceRules": { + "description": "`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.", + "items": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.ResourcePolicyRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "subjects": { + "description": "subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.", + "items": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.Subject" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "subjects" + ], + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration": { + "description": "PriorityLevelConfiguration represents the configuration of a priority level.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationSpec", + "description": "`spec` is the specification of the desired behavior of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationStatus", + "description": "`status` is the current status of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + ] + }, + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationCondition": { + "description": "PriorityLevelConfigurationCondition defines the condition of priority level.", + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another." + }, + "message": { + "description": "`message` is a human-readable message indicating details about last transition.", + "type": "string" + }, + "reason": { + "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "type": "string" + }, + "type": { + "description": "`type` is the type of the condition. Required.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationList": { + "description": "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "`items` is a list of request-priorities.", + "items": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfigurationList", + "version": "v1beta3" + } + ] + }, + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationReference": { + "description": "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.", + "properties": { + "name": { + "description": "`name` is the name of the priority level configuration being referenced Required.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationSpec": { + "description": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.", + "properties": { + "exempt": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.ExemptPriorityLevelConfiguration", + "description": "`exempt` specifies how requests are handled for an exempt priority level. This field MUST be empty if `type` is `\"Limited\"`. This field MAY be non-empty if `type` is `\"Exempt\"`. If empty and `type` is `\"Exempt\"` then the default values for `ExemptPriorityLevelConfiguration` apply." + }, + "limited": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.LimitedPriorityLevelConfiguration", + "description": "`limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `\"Limited\"`." + }, + "type": { + "description": "`type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "exempt": "Exempt", + "limited": "Limited" + } + } + ] + }, + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationStatus": { + "description": "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".", + "properties": { + "conditions": { + "description": "`conditions` is the current state of \"request-priority\".", + "items": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.QueuingConfiguration": { + "description": "QueuingConfiguration holds the configuration parameters for queuing", + "properties": { + "handSize": { + "description": "`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.", + "format": "int32", + "type": "integer" + }, + "queueLengthLimit": { + "description": "`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50.", + "format": "int32", + "type": "integer" + }, + "queues": { + "description": "`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.ResourcePolicyRule": { + "description": "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.", + "properties": { + "apiGroups": { + "description": "`apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "clusterScope": { + "description": "`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.", + "type": "boolean" + }, + "namespaces": { + "description": "`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "resources": { + "description": "`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "verbs": { + "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "verbs", + "apiGroups", + "resources" + ], + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.ServiceAccountSubject": { + "description": "ServiceAccountSubject holds detailed information for service-account-kind subject.", + "properties": { + "name": { + "description": "`name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required.", + "type": "string" + }, + "namespace": { + "description": "`namespace` is the namespace of matching ServiceAccount objects. Required.", + "type": "string" + } + }, + "required": [ + "namespace", + "name" + ], + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.Subject": { + "description": "Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.", + "properties": { + "group": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.GroupSubject", + "description": "`group` matches based on user group name." + }, + "kind": { + "description": "`kind` indicates which one of the other fields is non-empty. Required", + "type": "string" + }, + "serviceAccount": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.ServiceAccountSubject", + "description": "`serviceAccount` matches ServiceAccounts." + }, + "user": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.UserSubject", + "description": "`user` matches based on username." + } + }, + "required": [ + "kind" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "kind", + "fields-to-discriminateBy": { + "group": "Group", + "serviceAccount": "ServiceAccount", + "user": "User" + } + } + ] + }, + "io.k8s.api.flowcontrol.v1beta3.UserSubject": { + "description": "UserSubject holds detailed information for user-kind subject.", + "properties": { + "name": { + "description": "`name` is the username that matches, or \"*\" to match all usernames. Required.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.api.networking.v1.HTTPIngressPath": { + "description": "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.", + "properties": { + "backend": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressBackend", + "description": "backend defines the referenced service endpoint to which the traffic will be forwarded to." + }, + "path": { + "description": "path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/' and must be present when using PathType with value \"Exact\" or \"Prefix\".", + "type": "string" + }, + "pathType": { + "description": "pathType determines the interpretation of the path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is\n done on a path element by element basis. A path element refers is the\n list of labels in the path split by the '/' separator. A request is a\n match for path p if every p is an element-wise prefix of p of the\n request path. Note that if the last element of the path is a substring\n of the last element in request path, it is not a match (e.g. /foo/bar\n matches /foo/bar/baz, but does not match /foo/barbaz).\n* ImplementationSpecific: Interpretation of the Path matching is up to\n the IngressClass. Implementations can treat this as a separate PathType\n or treat it identically to Prefix or Exact path types.\nImplementations are required to support all path types.", + "type": "string" + } + }, + "required": [ + "pathType", + "backend" + ], + "type": "object" + }, + "io.k8s.api.networking.v1.HTTPIngressRuleValue": { + "description": "HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.", + "properties": { + "paths": { + "description": "paths is a collection of paths that map requests to backends.", + "items": { + "$ref": "#/definitions/io.k8s.api.networking.v1.HTTPIngressPath" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "paths" + ], + "type": "object" + }, + "io.k8s.api.networking.v1.IPBlock": { + "description": "IPBlock describes a particular CIDR (Ex. \"192.168.1.0/24\",\"2001:db8::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.", + "properties": { + "cidr": { + "description": "cidr is a string representing the IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\"", + "type": "string" + }, + "except": { + "description": "except is a slice of CIDRs that should not be included within an IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" Except values will be rejected if they are outside the cidr range", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "cidr" + ], + "type": "object" + }, + "io.k8s.api.networking.v1.Ingress": { + "description": "Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressSpec", + "description": "spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressStatus", + "description": "status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } + ] + }, + "io.k8s.api.networking.v1.IngressBackend": { + "description": "IngressBackend describes all endpoints for a given service and port.", + "properties": { + "resource": { + "$ref": "#/definitions/io.k8s.api.core.v1.TypedLocalObjectReference", + "description": "resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with \"Service\"." + }, + "service": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressServiceBackend", + "description": "service references a service as a backend. This is a mutually exclusive setting with \"Resource\"." + } + }, + "type": "object" + }, + "io.k8s.api.networking.v1.IngressClass": { + "description": "IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClassSpec", + "description": "spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" + } + ] + }, + "io.k8s.api.networking.v1.IngressClassList": { + "description": "IngressClassList is a collection of IngressClasses.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is the list of IngressClasses.", + "items": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IngressClassList", + "version": "v1" + } + ] + }, + "io.k8s.api.networking.v1.IngressClassParametersReference": { + "description": "IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource.", + "properties": { + "apiGroup": { + "description": "apiGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + "type": "string" + }, + "kind": { + "description": "kind is the type of resource being referenced.", + "type": "string" + }, + "name": { + "description": "name is the name of resource being referenced.", + "type": "string" + }, + "namespace": { + "description": "namespace is the namespace of the resource being referenced. This field is required when scope is set to \"Namespace\" and must be unset when scope is set to \"Cluster\".", + "type": "string" + }, + "scope": { + "description": "scope represents if this refers to a cluster or namespace scoped resource. This may be set to \"Cluster\" (default) or \"Namespace\".", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object" + }, + "io.k8s.api.networking.v1.IngressClassSpec": { + "description": "IngressClassSpec provides information about the class of an Ingress.", + "properties": { + "controller": { + "description": "controller refers to the name of the controller that should handle this class. This allows for different \"flavors\" that are controlled by the same controller. For example, you may have different parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. \"acme.io/ingress-controller\". This field is immutable.", + "type": "string" + }, + "parameters": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClassParametersReference", + "description": "parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters." + } + }, + "type": "object" + }, + "io.k8s.api.networking.v1.IngressList": { + "description": "IngressList is a collection of Ingress.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is the list of Ingress.", + "items": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IngressList", + "version": "v1" + } + ] + }, + "io.k8s.api.networking.v1.IngressLoadBalancerIngress": { + "description": "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.", + "properties": { + "hostname": { + "description": "hostname is set for load-balancer ingress points that are DNS based.", + "type": "string" + }, + "ip": { + "description": "ip is set for load-balancer ingress points that are IP based.", + "type": "string" + }, + "ports": { + "description": "ports provides information about the ports exposed by this LoadBalancer.", + "items": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressPortStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.networking.v1.IngressLoadBalancerStatus": { + "description": "IngressLoadBalancerStatus represents the status of a load-balancer.", + "properties": { + "ingress": { + "description": "ingress is a list containing ingress points for the load-balancer.", + "items": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressLoadBalancerIngress" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.networking.v1.IngressPortStatus": { + "description": "IngressPortStatus represents the error condition of a service port", + "properties": { + "error": { + "description": "error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.", + "type": "string" + }, + "port": { + "description": "port is the port number of the ingress port.", + "format": "int32", + "type": "integer" + }, + "protocol": { + "description": "protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\"", + "type": "string" + } + }, + "required": [ + "port", + "protocol" + ], + "type": "object" + }, + "io.k8s.api.networking.v1.IngressRule": { + "description": "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.", + "properties": { + "host": { + "description": "host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to\n the IP in the Spec of the parent Ingress.\n2. The `:` delimiter is not respected because ports are not allowed.\n\t Currently the port of an Ingress is implicitly :80 for http and\n\t :443 for https.\nBoth these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.\n\nhost can be \"precise\" which is a domain name without the terminating dot of a network host (e.g. \"foo.bar.com\") or \"wildcard\", which is a domain name prefixed with a single wildcard label (e.g. \"*.foo.com\"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == \"*\"). Requests will be matched against the Host field in the following way: 1. If host is precise, the request matches this rule if the http host header is equal to Host. 2. If host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule.", + "type": "string" + }, + "http": { + "$ref": "#/definitions/io.k8s.api.networking.v1.HTTPIngressRuleValue" + } + }, + "type": "object" + }, + "io.k8s.api.networking.v1.IngressServiceBackend": { + "description": "IngressServiceBackend references a Kubernetes Service as a Backend.", + "properties": { + "name": { + "description": "name is the referenced service. The service must exist in the same namespace as the Ingress object.", + "type": "string" + }, + "port": { + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceBackendPort", + "description": "port of the referenced service. A port name or port number is required for a IngressServiceBackend." + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.api.networking.v1.IngressSpec": { + "description": "IngressSpec describes the Ingress the user wishes to exist.", + "properties": { + "defaultBackend": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressBackend", + "description": "defaultBackend is the backend that should handle requests that don't match any rule. If Rules are not specified, DefaultBackend must be specified. If DefaultBackend is not set, the handling of requests that do not match any of the rules will be up to the Ingress controller." + }, + "ingressClassName": { + "description": "ingressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present.", + "type": "string" + }, + "rules": { + "description": "rules is a list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.", + "items": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "tls": { + "description": "tls represents the TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI.", + "items": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressTLS" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.networking.v1.IngressStatus": { + "description": "IngressStatus describe the current state of the Ingress.", + "properties": { + "loadBalancer": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressLoadBalancerStatus", + "description": "loadBalancer contains the current status of the load-balancer." + } + }, + "type": "object" + }, + "io.k8s.api.networking.v1.IngressTLS": { + "description": "IngressTLS describes the transport layer security associated with an ingress.", + "properties": { + "hosts": { + "description": "hosts is a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "secretName": { + "description": "secretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the \"Host\" header is used for routing.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.networking.v1.NetworkPolicy": { + "description": "NetworkPolicy describes what network traffic is allowed for a set of Pods", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicySpec", + "description": "spec represents the specification of the desired behavior for this NetworkPolicy." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + } + ] + }, + "io.k8s.api.networking.v1.NetworkPolicyEgressRule": { + "description": "NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8", + "properties": { + "ports": { + "description": "ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.", + "items": { + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyPort" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "to": { + "description": "to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list.", + "items": { + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyPeer" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.networking.v1.NetworkPolicyIngressRule": { + "description": "NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.", + "properties": { + "from": { + "description": "from is a list of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list.", + "items": { + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyPeer" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "ports": { + "description": "ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.", + "items": { + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyPort" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.networking.v1.NetworkPolicyList": { + "description": "NetworkPolicyList is a list of NetworkPolicy objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is a list of schema objects.", + "items": { + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "NetworkPolicyList", + "version": "v1" + } + ] + }, + "io.k8s.api.networking.v1.NetworkPolicyPeer": { + "description": "NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed", + "properties": { + "ipBlock": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IPBlock", + "description": "ipBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be." + }, + "namespaceSelector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "namespaceSelector selects namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces.\n\nIf podSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the namespaces selected by namespaceSelector. Otherwise it selects all pods in the namespaces selected by namespaceSelector." + }, + "podSelector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "podSelector is a label selector which selects pods. This field follows standard label selector semantics; if present but empty, it selects all pods.\n\nIf namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the pods matching podSelector in the policy's own namespace." + } + }, + "type": "object" + }, + "io.k8s.api.networking.v1.NetworkPolicyPort": { + "description": "NetworkPolicyPort describes a port to allow traffic on", + "properties": { + "endPort": { + "description": "endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port.", + "format": "int32", + "type": "integer" + }, + "port": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "port represents the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched." + }, + "protocol": { + "description": "protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.networking.v1.NetworkPolicySpec": { + "description": "NetworkPolicySpec provides the specification of a NetworkPolicy", + "properties": { + "egress": { + "description": "egress is a list of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8", + "items": { + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyEgressRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "ingress": { + "description": "ingress is a list of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default)", + "items": { + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyIngressRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "podSelector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "podSelector selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace." + }, + "policyTypes": { + "description": "policyTypes is a list of rule types that the NetworkPolicy relates to. Valid options are [\"Ingress\"], [\"Egress\"], or [\"Ingress\", \"Egress\"]. If this field is not specified, it will default based on the existence of ingress or egress rules; policies that contain an egress section are assumed to affect egress, and all policies (whether or not they contain an ingress section) are assumed to affect ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "podSelector" + ], + "type": "object" + }, + "io.k8s.api.networking.v1.ServiceBackendPort": { + "description": "ServiceBackendPort is the service port being referenced.", + "properties": { + "name": { + "description": "name is the name of the port on the Service. This is a mutually exclusive setting with \"Number\".", + "type": "string" + }, + "number": { + "description": "number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with \"Name\".", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "io.k8s.api.networking.v1alpha1.IPAddress": { + "description": "IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.IPAddressSpec", + "description": "spec is the desired state of the IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IPAddress", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.networking.v1alpha1.IPAddressList": { + "description": "IPAddressList contains a list of IPAddress.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is the list of IPAddresses.", + "items": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.IPAddress" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IPAddressList", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.networking.v1alpha1.IPAddressSpec": { + "description": "IPAddressSpec describe the attributes in an IP Address.", + "properties": { + "parentRef": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ParentReference", + "description": "ParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object." + } + }, + "type": "object" + }, + "io.k8s.api.networking.v1alpha1.ParentReference": { + "description": "ParentReference describes a reference to a parent object.", + "properties": { + "group": { + "description": "Group is the group of the object being referenced.", + "type": "string" + }, + "name": { + "description": "Name is the name of the object being referenced.", + "type": "string" + }, + "namespace": { + "description": "Namespace is the namespace of the object being referenced.", + "type": "string" + }, + "resource": { + "description": "Resource is the resource of the object being referenced.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.networking.v1alpha1.ServiceCIDR": { + "description": "ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDRSpec", + "description": "spec is the desired state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDRStatus", + "description": "status represents the current state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.networking.v1alpha1.ServiceCIDRList": { + "description": "ServiceCIDRList contains a list of ServiceCIDR objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is the list of ServiceCIDRs.", + "items": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDR" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "ServiceCIDRList", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.networking.v1alpha1.ServiceCIDRSpec": { + "description": "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.", + "properties": { + "cidrs": { + "description": "CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.networking.v1alpha1.ServiceCIDRStatus": { + "description": "ServiceCIDRStatus describes the current state of the ServiceCIDR.", + "properties": { + "conditions": { + "description": "conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "io.k8s.api.node.v1.Overhead": { + "description": "Overhead structure represents the resource overhead associated with running a pod.", + "properties": { + "podFixed": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "podFixed represents the fixed resource overhead associated with running a pod.", + "type": "object" + } + }, + "type": "object" + }, + "io.k8s.api.node.v1.RuntimeClass": { + "description": "RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "handler": { + "description": "handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "overhead": { + "$ref": "#/definitions/io.k8s.api.node.v1.Overhead", + "description": "overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see\n https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/" + }, + "scheduling": { + "$ref": "#/definitions/io.k8s.api.node.v1.Scheduling", + "description": "scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes." + } + }, + "required": [ + "handler" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + ] + }, + "io.k8s.api.node.v1.RuntimeClassList": { + "description": "RuntimeClassList is a list of RuntimeClass objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is a list of schema objects.", + "items": { + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "node.k8s.io", + "kind": "RuntimeClassList", + "version": "v1" + } + ] + }, + "io.k8s.api.node.v1.Scheduling": { + "description": "Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.", + "properties": { + "nodeSelector": { + "additionalProperties": { + "type": "string" + }, + "description": "nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.", + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "tolerations": { + "description": "tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.Toleration" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.policy.v1.Eviction": { + "description": "Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "deleteOptions": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions", + "description": "DeleteOptions may be provided" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "ObjectMeta describes the pod that is being evicted." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "policy", + "kind": "Eviction", + "version": "v1" + } + ] + }, + "io.k8s.api.policy.v1.PodDisruptionBudget": { + "description": "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudgetSpec", + "description": "Specification of the desired behavior of the PodDisruptionBudget." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudgetStatus", + "description": "Most recently observed status of the PodDisruptionBudget." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + ] + }, + "io.k8s.api.policy.v1.PodDisruptionBudgetList": { + "description": "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is a list of PodDisruptionBudgets", + "items": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "policy", + "kind": "PodDisruptionBudgetList", + "version": "v1" + } + ] + }, + "io.k8s.api.policy.v1.PodDisruptionBudgetSpec": { + "description": "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.", + "properties": { + "maxUnavailable": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\"." + }, + "minAvailable": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\"." + }, + "selector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace.", + "x-kubernetes-patch-strategy": "replace" + }, + "unhealthyPodEvictionPolicy": { + "description": "UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\".\n\nValid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.\n\nIfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.\n\nAlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\n\nAdditional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.\n\nThis field is beta-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default).", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.policy.v1.PodDisruptionBudgetStatus": { + "description": "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.", + "properties": { + "conditions": { + "description": "Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute\n the number of allowed disruptions. Therefore no disruptions are\n allowed and the status of the condition will be False.\n- InsufficientPods: The number of pods are either at or below the number\n required by the PodDisruptionBudget. No disruptions are\n allowed and the status of the condition will be False.\n- SufficientPods: There are more pods than required by the PodDisruptionBudget.\n The condition will be True, and the number of allowed\n disruptions are provided by the disruptionsAllowed property.", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "currentHealthy": { + "description": "current number of healthy pods", + "format": "int32", + "type": "integer" + }, + "desiredHealthy": { + "description": "minimum desired number of healthy pods", + "format": "int32", + "type": "integer" + }, + "disruptedPods": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "description": "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.", + "type": "object" + }, + "disruptionsAllowed": { + "description": "Number of pod disruptions that are currently allowed.", + "format": "int32", + "type": "integer" + }, + "expectedPods": { + "description": "total number of pods counted by this disruption budget", + "format": "int32", + "type": "integer" + }, + "observedGeneration": { + "description": "Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation.", + "format": "int64", + "type": "integer" + } + }, + "required": [ + "disruptionsAllowed", + "currentHealthy", + "desiredHealthy", + "expectedPods" + ], + "type": "object" + }, + "io.k8s.api.rbac.v1.AggregationRule": { + "description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole", + "properties": { + "clusterRoleSelectors": { + "description": "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.rbac.v1.ClusterRole": { + "description": "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.", + "properties": { + "aggregationRule": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.AggregationRule", + "description": "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller." + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata." + }, + "rules": { + "description": "Rules holds all the PolicyRules for this ClusterRole", + "items": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.PolicyRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + } + ] + }, + "io.k8s.api.rbac.v1.ClusterRoleBinding": { + "description": "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata." + }, + "roleRef": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleRef", + "description": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable." + }, + "subjects": { + "description": "Subjects holds references to the objects the role applies to.", + "items": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.Subject" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "roleRef" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } + ] + }, + "io.k8s.api.rbac.v1.ClusterRoleBindingList": { + "description": "ClusterRoleBindingList is a collection of ClusterRoleBindings", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is a list of ClusterRoleBindings", + "items": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBindingList", + "version": "v1" + } + ] + }, + "io.k8s.api.rbac.v1.ClusterRoleList": { + "description": "ClusterRoleList is a collection of ClusterRoles", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is a list of ClusterRoles", + "items": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleList", + "version": "v1" + } + ] + }, + "io.k8s.api.rbac.v1.PolicyRule": { + "description": "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.", + "properties": { + "apiGroups": { + "description": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"\" represents the core API group and \"*\" represents all API groups.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "nonResourceURLs": { + "description": "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to. '*' represents all resources.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "verbs": { + "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "verbs" + ], + "type": "object" + }, + "io.k8s.api.rbac.v1.Role": { + "description": "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata." + }, + "rules": { + "description": "Rules holds all the PolicyRules for this Role", + "items": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.PolicyRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + } + ] + }, + "io.k8s.api.rbac.v1.RoleBinding": { + "description": "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata." + }, + "roleRef": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleRef", + "description": "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable." + }, + "subjects": { + "description": "Subjects holds references to the objects the role applies to.", + "items": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.Subject" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "roleRef" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + } + ] + }, + "io.k8s.api.rbac.v1.RoleBindingList": { + "description": "RoleBindingList is a collection of RoleBindings", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is a list of RoleBindings", + "items": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBindingList", + "version": "v1" + } + ] + }, + "io.k8s.api.rbac.v1.RoleList": { + "description": "RoleList is a collection of Roles", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is a list of Roles", + "items": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "RoleList", + "version": "v1" + } + ] + }, + "io.k8s.api.rbac.v1.RoleRef": { + "description": "RoleRef contains information that points to the role being used", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced", + "type": "string" + }, + "kind": { + "description": "Kind is the type of resource being referenced", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced", + "type": "string" + } + }, + "required": [ + "apiGroup", + "kind", + "name" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.rbac.v1.Subject": { + "description": "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.", + "properties": { + "apiGroup": { + "description": "APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.", + "type": "string" + }, + "kind": { + "description": "Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error.", + "type": "string" + }, + "name": { + "description": "Name of the object being referenced.", + "type": "string" + }, + "namespace": { + "description": "Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.resource.v1alpha2.AllocationResult": { + "description": "AllocationResult contains attributes of an allocated resource.", + "properties": { + "availableOnNodes": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelector", + "description": "This field will get set by the resource driver after it has allocated the resource to inform the scheduler where it can schedule Pods using the ResourceClaim.\n\nSetting this field is optional. If null, the resource is available everywhere." + }, + "resourceHandles": { + "description": "ResourceHandles contain the state associated with an allocation that should be maintained throughout the lifetime of a claim. Each ResourceHandle contains data that should be passed to a specific kubelet plugin once it lands on a node. This data is returned by the driver after a successful allocation and is opaque to Kubernetes. Driver documentation may explain to users how to interpret this data if needed.\n\nSetting this field is optional. It has a maximum size of 32 entries. If null (or empty), it is assumed this allocation will be processed by a single kubelet plugin with no ResourceHandle data attached. The name of the kubelet plugin invoked will match the DriverName set in the ResourceClaimStatus this AllocationResult is embedded in.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceHandle" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "shareable": { + "description": "Shareable determines whether the resource supports more than one consumer at a time.", + "type": "boolean" + } + }, + "type": "object" + }, + "io.k8s.api.resource.v1alpha2.PodSchedulingContext": { + "description": "PodSchedulingContext objects hold information that is needed to schedule a Pod with ResourceClaims that use \"WaitForFirstConsumer\" allocation mode.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.PodSchedulingContextSpec", + "description": "Spec describes where resources for the Pod are needed." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.PodSchedulingContextStatus", + "description": "Status describes where resources for the Pod can be allocated." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "PodSchedulingContext", + "version": "v1alpha2" + } + ] + }, + "io.k8s.api.resource.v1alpha2.PodSchedulingContextList": { + "description": "PodSchedulingContextList is a collection of Pod scheduling objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is the list of PodSchedulingContext objects.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.PodSchedulingContext" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "PodSchedulingContextList", + "version": "v1alpha2" + } + ] + }, + "io.k8s.api.resource.v1alpha2.PodSchedulingContextSpec": { + "description": "PodSchedulingContextSpec describes where resources for the Pod are needed.", + "properties": { + "potentialNodes": { + "description": "PotentialNodes lists nodes where the Pod might be able to run.\n\nThe size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "selectedNode": { + "description": "SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use \"WaitForFirstConsumer\" allocation is to be attempted.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.resource.v1alpha2.PodSchedulingContextStatus": { + "description": "PodSchedulingContextStatus describes where resources for the Pod can be allocated.", + "properties": { + "resourceClaims": { + "description": "ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses \"WaitForFirstConsumer\" allocation mode.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaimSchedulingStatus" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": "object" + }, + "io.k8s.api.resource.v1alpha2.ResourceClaim": { + "description": "ResourceClaim describes which resources are needed by a resource consumer. Its status tracks whether the resource has been allocated and what the resulting attributes are.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaimSpec", + "description": "Spec describes the desired attributes of a resource that then needs to be allocated. It can only be set once when creating the ResourceClaim." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaimStatus", + "description": "Status describes whether the resource is available and with which attributes." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha2" + } + ] + }, + "io.k8s.api.resource.v1alpha2.ResourceClaimConsumerReference": { + "description": "ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced.", + "type": "string" + }, + "resource": { + "description": "Resource is the type of resource being referenced, for example \"pods\".", + "type": "string" + }, + "uid": { + "description": "UID identifies exactly one incarnation of the resource.", + "type": "string" + } + }, + "required": [ + "resource", + "name", + "uid" + ], + "type": "object" + }, + "io.k8s.api.resource.v1alpha2.ResourceClaimList": { + "description": "ResourceClaimList is a collection of claims.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is the list of resource claims.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaim" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClaimList", + "version": "v1alpha2" + } + ] + }, + "io.k8s.api.resource.v1alpha2.ResourceClaimParametersReference": { + "description": "ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim.", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.", + "type": "string" + }, + "kind": { + "description": "Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example \"ConfigMap\".", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced.", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object" + }, + "io.k8s.api.resource.v1alpha2.ResourceClaimSchedulingStatus": { + "description": "ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with \"WaitForFirstConsumer\" allocation mode.", + "properties": { + "name": { + "description": "Name matches the pod.spec.resourceClaims[*].Name field.", + "type": "string" + }, + "unsuitableNodes": { + "description": "UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.\n\nThe size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.resource.v1alpha2.ResourceClaimSpec": { + "description": "ResourceClaimSpec defines how a resource is to be allocated.", + "properties": { + "allocationMode": { + "description": "Allocation can start immediately or when a Pod wants to use the resource. \"WaitForFirstConsumer\" is the default.", + "type": "string" + }, + "parametersRef": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaimParametersReference", + "description": "ParametersRef references a separate object with arbitrary parameters that will be used by the driver when allocating a resource for the claim.\n\nThe object must be in the same namespace as the ResourceClaim." + }, + "resourceClassName": { + "description": "ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.", + "type": "string" + } + }, + "required": [ + "resourceClassName" + ], + "type": "object" + }, + "io.k8s.api.resource.v1alpha2.ResourceClaimStatus": { + "description": "ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are.", + "properties": { + "allocation": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.AllocationResult", + "description": "Allocation is set by the resource driver once a resource or set of resources has been allocated successfully. If this is not specified, the resources have not been allocated yet." + }, + "deallocationRequested": { + "description": "DeallocationRequested indicates that a ResourceClaim is to be deallocated.\n\nThe driver then must deallocate this claim and reset the field together with clearing the Allocation field.\n\nWhile DeallocationRequested is set, no new consumers may be added to ReservedFor.", + "type": "boolean" + }, + "driverName": { + "description": "DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.", + "type": "string" + }, + "reservedFor": { + "description": "ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started.\n\nThere can be at most 32 such reservations. This may get increased in the future, but not reduced.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaimConsumerReference" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "uid" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "uid", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "io.k8s.api.resource.v1alpha2.ResourceClaimTemplate": { + "description": "ResourceClaimTemplate is used to produce ResourceClaim objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaimTemplateSpec", + "description": "Describes the ResourceClaim that is to be generated.\n\nThis field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha2" + } + ] + }, + "io.k8s.api.resource.v1alpha2.ResourceClaimTemplateList": { + "description": "ResourceClaimTemplateList is a collection of claim templates.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is the list of resource claim templates.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaimTemplate" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplateList", + "version": "v1alpha2" + } + ] + }, + "io.k8s.api.resource.v1alpha2.ResourceClaimTemplateSpec": { + "description": "ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.", + "properties": { + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation." + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaimSpec", + "description": "Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here." + } + }, + "required": [ + "spec" + ], + "type": "object" + }, + "io.k8s.api.resource.v1alpha2.ResourceClass": { + "description": "ResourceClass is used by administrators to influence how resources are allocated.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "driverName": { + "description": "DriverName defines the name of the dynamic resource driver that is used for allocation of a ResourceClaim that uses this class.\n\nResource drivers have a unique name in forward domain order (acme.example.com).", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "parametersRef": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClassParametersReference", + "description": "ParametersRef references an arbitrary separate object that may hold parameters that will be used by the driver when allocating a resource that uses this class. A dynamic resource driver can distinguish between parameters stored here and and those stored in ResourceClaimSpec." + }, + "suitableNodes": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelector", + "description": "Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a ResourceClaim that has not been allocated yet.\n\nSetting this field is optional. If null, all nodes are candidates." + } + }, + "required": [ + "driverName" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha2" + } + ] + }, + "io.k8s.api.resource.v1alpha2.ResourceClassList": { + "description": "ResourceClassList is a collection of classes.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is the list of resource classes.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClass" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClassList", + "version": "v1alpha2" + } + ] + }, + "io.k8s.api.resource.v1alpha2.ResourceClassParametersReference": { + "description": "ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass.", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.", + "type": "string" + }, + "kind": { + "description": "Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata.", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced.", + "type": "string" + }, + "namespace": { + "description": "Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources.", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object" + }, + "io.k8s.api.resource.v1alpha2.ResourceHandle": { + "description": "ResourceHandle holds opaque resource data for processing by a specific kubelet plugin.", + "properties": { + "data": { + "description": "Data contains the opaque data associated with this ResourceHandle. It is set by the controller component of the resource driver whose name matches the DriverName set in the ResourceClaimStatus this ResourceHandle is embedded in. It is set at allocation time and is intended for processing by the kubelet plugin whose name matches the DriverName set in this ResourceHandle.\n\nThe maximum size of this field is 16KiB. This may get increased in the future, but not reduced.", + "type": "string" + }, + "driverName": { + "description": "DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.scheduling.v1.PriorityClass": { + "description": "PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "description": { + "description": "description is an arbitrary string that usually provides guidelines on when this priority class should be used.", + "type": "string" + }, + "globalDefault": { + "description": "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.", + "type": "boolean" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.", + "type": "string" + }, + "value": { + "description": "value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "value" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + ] + }, + "io.k8s.api.scheduling.v1.PriorityClassList": { + "description": "PriorityClassList is a collection of priority classes.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is the list of PriorityClasses", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "scheduling.k8s.io", + "kind": "PriorityClassList", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.CSIDriver": { + "description": "CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriverSpec", + "description": "spec represents the specification of the CSI Driver." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIDriver", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.CSIDriverList": { + "description": "CSIDriverList is a collection of CSIDriver objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is the list of CSIDriver", + "items": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIDriverList", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.CSIDriverSpec": { + "description": "CSIDriverSpec is the specification of a CSIDriver.", + "properties": { + "attachRequired": { + "description": "attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the 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.\n\nThis field is immutable.", + "type": "boolean" + }, + "fsGroupPolicy": { + "description": "fsGroupPolicy defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details.\n\nThis field was immutable in Kubernetes < 1.29 and now is mutable.\n\nDefaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce.", + "type": "string" + }, + "podInfoOnMount": { + "description": "podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false.\n\nThe CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext.\n\nThe following VolumeContext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \"csi.storage.k8s.io/pod.name\": pod.Name \"csi.storage.k8s.io/pod.namespace\": pod.Namespace \"csi.storage.k8s.io/pod.uid\": string(pod.UID) \"csi.storage.k8s.io/ephemeral\": \"true\" if the volume is an ephemeral inline volume\n defined by a CSIVolumeSource, otherwise \"false\"\n\n\"csi.storage.k8s.io/ephemeral\" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the \"Persistent\" and \"Ephemeral\" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver.\n\nThis field was immutable in Kubernetes < 1.29 and now is mutable.", + "type": "boolean" + }, + "requiresRepublish": { + "description": "requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false.\n\nNote: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container.", + "type": "boolean" + }, + "seLinuxMount": { + "description": "seLinuxMount specifies if the CSI driver supports \"-o context\" mount option.\n\nWhen \"true\", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with \"-o context=xyz\" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context.\n\nWhen \"false\", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem.\n\nDefault is \"false\".", + "type": "boolean" + }, + "storageCapacity": { + "description": "storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information, if set to true.\n\nThe check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object.\n\nAlternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published.\n\nThis field was immutable in Kubernetes <= 1.22 and now is mutable.", + "type": "boolean" + }, + "tokenRequests": { + "description": "tokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: \"csi.storage.k8s.io/serviceAccount.tokens\": {\n \"\": {\n \"token\": ,\n \"expirationTimestamp\": ,\n },\n ...\n}\n\nNote: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically.", + "items": { + "$ref": "#/definitions/io.k8s.api.storage.v1.TokenRequest" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "volumeLifecycleModes": { + "description": "volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is \"Persistent\", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism.\n\nThe other mode is \"Ephemeral\". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume.\n\nFor more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future.\n\nThis field is beta. This field is immutable.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "type": "object" + }, + "io.k8s.api.storage.v1.CSINode": { + "description": "CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. metadata.name must be the Kubernetes node name." + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINodeSpec", + "description": "spec is the specification of CSINode" + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSINode", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.CSINodeDriver": { + "description": "CSINodeDriver holds information about the specification of one CSI driver installed on a node", + "properties": { + "allocatable": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeNodeResources", + "description": "allocatable represents the volume resources of a node that are available for scheduling. This field is beta." + }, + "name": { + "description": "name represents the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver.", + "type": "string" + }, + "nodeID": { + "description": "nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as \"node1\", but the storage system may refer to the same node as \"nodeA\". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. \"nodeA\" instead of \"node1\". This field is required.", + "type": "string" + }, + "topologyKeys": { + "description": "topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. \"company.com/zone\", \"company.com/region\"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "name", + "nodeID" + ], + "type": "object" + }, + "io.k8s.api.storage.v1.CSINodeList": { + "description": "CSINodeList is a collection of CSINode objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is the list of CSINode", + "items": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSINodeList", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.CSINodeSpec": { + "description": "CSINodeSpec holds information about the specification of all CSI drivers installed on a node", + "properties": { + "drivers": { + "description": "drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.", + "items": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINodeDriver" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "required": [ + "drivers" + ], + "type": "object" + }, + "io.k8s.api.storage.v1.CSIStorageCapacity": { + "description": "CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes.\n\nFor example this can express things like: - StorageClass \"standard\" has \"1234 GiB\" available in \"topology.kubernetes.io/zone=us-east1\" - StorageClass \"localssd\" has \"10 GiB\" available in \"kubernetes.io/hostname=knode-abc123\"\n\nThe following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero\n\nThe producer of these objects can decide which approach is more suitable.\n\nThey are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "capacity": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThe semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable." + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "maximumVolumeSize": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThis is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim." + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. The name has no particular meaning. It must be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name.\n\nObjects are namespaced.\n\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "nodeTopology": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "nodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable." + }, + "storageClassName": { + "description": "storageClassName represents the name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable.", + "type": "string" + } + }, + "required": [ + "storageClassName" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIStorageCapacity", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.CSIStorageCapacityList": { + "description": "CSIStorageCapacityList is a collection of CSIStorageCapacity objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is the list of CSIStorageCapacity objects.", + "items": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIStorageCapacity" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIStorageCapacityList", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.StorageClass": { + "description": "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.\n\nStorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.", + "properties": { + "allowVolumeExpansion": { + "description": "allowVolumeExpansion shows whether the storage class allow volume expand.", + "type": "boolean" + }, + "allowedTopologies": { + "description": "allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.TopologySelectorTerm" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "mountOptions": { + "description": "mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "parameters": { + "additionalProperties": { + "type": "string" + }, + "description": "parameters holds the parameters for the provisioner that should create volumes of this storage class.", + "type": "object" + }, + "provisioner": { + "description": "provisioner indicates the type of the provisioner.", + "type": "string" + }, + "reclaimPolicy": { + "description": "reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.", + "type": "string" + }, + "volumeBindingMode": { + "description": "volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.", + "type": "string" + } + }, + "required": [ + "provisioner" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "StorageClass", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.StorageClassList": { + "description": "StorageClassList is a collection of storage classes.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is the list of StorageClasses", + "items": { + "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "StorageClassList", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.TokenRequest": { + "description": "TokenRequest contains parameters of a service account token.", + "properties": { + "audience": { + "description": "audience is the intended audience of the token in \"TokenRequestSpec\". It will default to the audiences of kube apiserver.", + "type": "string" + }, + "expirationSeconds": { + "description": "expirationSeconds is the duration of validity of the token in \"TokenRequestSpec\". It has the same default value of \"ExpirationSeconds\" in \"TokenRequestSpec\".", + "format": "int64", + "type": "integer" + } + }, + "required": [ + "audience" + ], + "type": "object" + }, + "io.k8s.api.storage.v1.VolumeAttachment": { + "description": "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node.\n\nVolumeAttachment objects are non-namespaced.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachmentSpec", + "description": "spec represents specification of the desired attach/detach volume behavior. Populated by the Kubernetes system." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachmentStatus", + "description": "status represents status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttachment", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.VolumeAttachmentList": { + "description": "VolumeAttachmentList is a collection of VolumeAttachment objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is the list of VolumeAttachments", + "items": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttachmentList", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.VolumeAttachmentSource": { + "description": "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.", + "properties": { + "inlineVolumeSpec": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeSpec", + "description": "inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature." + }, + "persistentVolumeName": { + "description": "persistentVolumeName represents the name of the persistent volume to attach.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.storage.v1.VolumeAttachmentSpec": { + "description": "VolumeAttachmentSpec is the specification of a VolumeAttachment request.", + "properties": { + "attacher": { + "description": "attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().", + "type": "string" + }, + "nodeName": { + "description": "nodeName represents the node that the volume should be attached to.", + "type": "string" + }, + "source": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachmentSource", + "description": "source represents the volume that should be attached." + } + }, + "required": [ + "attacher", + "source", + "nodeName" + ], + "type": "object" + }, + "io.k8s.api.storage.v1.VolumeAttachmentStatus": { + "description": "VolumeAttachmentStatus is the status of a VolumeAttachment request.", + "properties": { + "attachError": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeError", + "description": "attachError represents the last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher." + }, + "attached": { + "description": "attached indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", + "type": "boolean" + }, + "attachmentMetadata": { + "additionalProperties": { + "type": "string" + }, + "description": "attachmentMetadata is populated with any information returned by the attach operation, upon successful attach, that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", + "type": "object" + }, + "detachError": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeError", + "description": "detachError represents the last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher." + } + }, + "required": [ + "attached" + ], + "type": "object" + }, + "io.k8s.api.storage.v1.VolumeError": { + "description": "VolumeError captures an error encountered during a volume operation.", + "properties": { + "message": { + "description": "message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information.", + "type": "string" + }, + "time": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "time represents the time the error was encountered." + } + }, + "type": "object" + }, + "io.k8s.api.storage.v1.VolumeNodeResources": { + "description": "VolumeNodeResources is a set of resource limits for scheduling of volumes.", + "properties": { + "count": { + "description": "count indicates the maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "io.k8s.api.storage.v1alpha1.VolumeAttributesClass": { + "description": "VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "driverName": { + "description": "Name of the CSI driver This field is immutable.", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "parameters": { + "additionalProperties": { + "type": "string" + }, + "description": "parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.\n\nThis field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field.", + "type": "object" + } + }, + "required": [ + "driverName" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClass", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.storage.v1alpha1.VolumeAttributesClassList": { + "description": "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is the list of VolumeAttributesClass objects.", + "items": { + "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttributesClass" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClassList", + "version": "v1alpha1" + } + ] + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition": { + "description": "CustomResourceColumnDefinition specifies a column for server side printing.", + "properties": { + "description": { + "description": "description is a human readable description of this column.", + "type": "string" + }, + "format": { + "description": "format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.", + "type": "string" + }, + "jsonPath": { + "description": "jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column.", + "type": "string" + }, + "name": { + "description": "name is a human readable name for the column.", + "type": "string" + }, + "priority": { + "description": "priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0.", + "format": "int32", + "type": "integer" + }, + "type": { + "description": "type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.", + "type": "string" + } + }, + "required": [ + "name", + "type", + "jsonPath" + ], + "type": "object" + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceConversion": { + "description": "CustomResourceConversion describes how to convert different versions of a CR.", + "properties": { + "strategy": { + "description": "strategy specifies how custom resources are converted between versions. Allowed values are: - `\"None\"`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `\"Webhook\"`: API Server will call to an external webhook to do the conversion. Additional information\n is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set.", + "type": "string" + }, + "webhook": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookConversion", + "description": "webhook describes how to call the conversion webhook. Required when `strategy` is set to `\"Webhook\"`." + } + }, + "required": [ + "strategy" + ], + "type": "object" + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition": { + "description": "CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec", + "description": "spec describes how the user wants the resources to appear" + }, + "status": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionStatus", + "description": "status indicates the actual state of the CustomResourceDefinition" + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", + "version": "v1" + } + ] + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionCondition": { + "description": "CustomResourceDefinitionCondition contains details for the current condition of this pod.", + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime last time the condition transitioned from one status to another." + }, + "message": { + "description": "message is a human-readable message indicating details about last transition.", + "type": "string" + }, + "reason": { + "description": "reason is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "status is the status of the condition. Can be True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "type is the type of the condition. Types include Established, NamesAccepted and Terminating.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": "object" + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList": { + "description": "CustomResourceDefinitionList is a list of CustomResourceDefinition objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items list individual CustomResourceDefinition objects", + "items": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinitionList", + "version": "v1" + } + ] + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames": { + "description": "CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition", + "properties": { + "categories": { + "description": "categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls.", + "type": "string" + }, + "listKind": { + "description": "listKind is the serialized kind of the list for this resource. Defaults to \"`kind`List\".", + "type": "string" + }, + "plural": { + "description": "plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase.", + "type": "string" + }, + "shortNames": { + "description": "shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "singular": { + "description": "singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.", + "type": "string" + } + }, + "required": [ + "plural", + "kind" + ], + "type": "object" + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec": { + "description": "CustomResourceDefinitionSpec describes how a user wants their resource to appear", + "properties": { + "conversion": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceConversion", + "description": "conversion defines conversion settings for the CRD." + }, + "group": { + "description": "group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`).", + "type": "string" + }, + "names": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames", + "description": "names specify the resource and kind names for the custom resource." + }, + "preserveUnknownFields": { + "description": "preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning for details.", + "type": "boolean" + }, + "scope": { + "description": "scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`.", + "type": "string" + }, + "versions": { + "description": "versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.", + "items": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "group", + "names", + "scope", + "versions" + ], + "type": "object" + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionStatus": { + "description": "CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition", + "properties": { + "acceptedNames": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames", + "description": "acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec." + }, + "conditions": { + "description": "conditions indicate state for particular aspects of a CustomResourceDefinition", + "items": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + }, + "storedVersions": { + "description": "storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion": { + "description": "CustomResourceDefinitionVersion describes a version for CRD.", + "properties": { + "additionalPrinterColumns": { + "description": "additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used.", + "items": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "deprecated": { + "description": "deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false.", + "type": "boolean" + }, + "deprecationWarning": { + "description": "deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists.", + "type": "string" + }, + "name": { + "description": "name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis///...` if `served` is true.", + "type": "string" + }, + "schema": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceValidation", + "description": "schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource." + }, + "served": { + "description": "served is a flag enabling/disabling this version from being served via REST APIs", + "type": "boolean" + }, + "storage": { + "description": "storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true.", + "type": "boolean" + }, + "subresources": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresources", + "description": "subresources specify what subresources this version of the defined custom resource have." + } + }, + "required": [ + "name", + "served", + "storage" + ], + "type": "object" + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceScale": { + "description": "CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.", + "properties": { + "labelSelectorPath": { + "description": "labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string.", + "type": "string" + }, + "specReplicasPath": { + "description": "specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET.", + "type": "string" + }, + "statusReplicasPath": { + "description": "statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0.", + "type": "string" + } + }, + "required": [ + "specReplicasPath", + "statusReplicasPath" + ], + "type": "object" + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceStatus": { + "description": "CustomResourceSubresourceStatus defines how to serve the status subresource for CustomResources. Status is represented by the `.status` JSON path inside of a CustomResource. When set, * exposes a /status subresource for the custom resource * PUT requests to the /status subresource take a custom resource object, and ignore changes to anything except the status stanza * PUT/POST/PATCH requests to the custom resource ignore changes to the status stanza", + "type": "object" + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresources": { + "description": "CustomResourceSubresources defines the status and scale subresources for CustomResources.", + "properties": { + "scale": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceScale", + "description": "scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object." + }, + "status": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceStatus", + "description": "status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object." + } + }, + "type": "object" + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceValidation": { + "description": "CustomResourceValidation is a list of validation methods for CustomResources.", + "properties": { + "openAPIV3Schema": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps", + "description": "openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning." + } + }, + "type": "object" + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ExternalDocumentation": { + "description": "ExternalDocumentation allows referencing an external resource for extended documentation.", + "properties": { + "description": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSON": { + "description": "JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil." + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps": { + "description": "JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).", + "properties": { + "$ref": { + "type": "string" + }, + "$schema": { + "type": "string" + }, + "additionalItems": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrBool" + }, + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrBool" + }, + "allOf": { + "items": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "anyOf": { + "items": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "default": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSON", + "description": "default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false." + }, + "definitions": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": "object" + }, + "dependencies": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrStringArray" + }, + "type": "object" + }, + "description": { + "type": "string" + }, + "enum": { + "items": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSON" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "example": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSON" + }, + "exclusiveMaximum": { + "type": "boolean" + }, + "exclusiveMinimum": { + "type": "boolean" + }, + "externalDocs": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ExternalDocumentation" + }, + "format": { + "description": "format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:\n\n- bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like \"0321751043\" or \"978-0321751041\" - isbn10: an ISBN10 number string like \"0321751043\" - isbn13: an ISBN13 number string like \"978-0321751041\" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\\d{3}[- ]?\\d{2}[- ]?\\d{4}$ - hexcolor: an hexadecimal color code like \"#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like \"rgb(255,255,2559\" - byte: base64 encoded binary data - password: any kind of string - date: a date string like \"2006-01-02\" as defined by full-date in RFC3339 - duration: a duration string like \"22 ns\" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like \"2014-12-15T19:30:20.000Z\" as defined by date-time in RFC3339.", + "type": "string" + }, + "id": { + "type": "string" + }, + "items": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrArray" + }, + "maxItems": { + "format": "int64", + "type": "integer" + }, + "maxLength": { + "format": "int64", + "type": "integer" + }, + "maxProperties": { + "format": "int64", + "type": "integer" + }, + "maximum": { + "format": "double", + "type": "number" + }, + "minItems": { + "format": "int64", + "type": "integer" + }, + "minLength": { + "format": "int64", + "type": "integer" + }, + "minProperties": { + "format": "int64", + "type": "integer" + }, + "minimum": { + "format": "double", + "type": "number" + }, + "multipleOf": { + "format": "double", + "type": "number" + }, + "not": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "nullable": { + "type": "boolean" + }, + "oneOf": { + "items": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "pattern": { + "type": "string" + }, + "patternProperties": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": "object" + }, + "properties": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": "object" + }, + "required": { + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "title": { + "type": "string" + }, + "type": { + "type": "string" + }, + "uniqueItems": { + "type": "boolean" + }, + "x-kubernetes-embedded-resource": { + "description": "x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata).", + "type": "boolean" + }, + "x-kubernetes-int-or-string": { + "description": "x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns:\n\n1) anyOf:\n - type: integer\n - type: string\n2) allOf:\n - anyOf:\n - type: integer\n - type: string\n - ... zero or more", + "type": "boolean" + }, + "x-kubernetes-list-map-keys": { + "description": "x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map.\n\nThis tag MUST only be used on lists that have the \"x-kubernetes-list-type\" extension set to \"map\". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported).\n\nThe properties specified must either be required or have a default value, to ensure those properties are present for all list items.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "x-kubernetes-list-type": { + "description": "x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values:\n\n1) `atomic`: the list is treated as a single entity, like a scalar.\n Atomic lists will be entirely replaced when updated. This extension\n may be used on any type of list (struct, scalar, ...).\n2) `set`:\n Sets are lists that must not have multiple items with the same value. Each\n value must be a scalar, an object with x-kubernetes-map-type `atomic` or an\n array with x-kubernetes-list-type `atomic`.\n3) `map`:\n These lists are like maps in that their elements have a non-index key\n used to identify them. Order is preserved upon merge. The map tag\n must only be used on a list with elements of type object.\nDefaults to atomic for arrays.", + "type": "string" + }, + "x-kubernetes-map-type": { + "description": "x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values:\n\n1) `granular`:\n These maps are actual maps (key-value pairs) and each fields are independent\n from each other (they can each be manipulated by separate actors). This is\n the default behaviour for all maps.\n2) `atomic`: the list is treated as a single entity, like a scalar.\n Atomic maps will be entirely replaced when updated.", + "type": "string" + }, + "x-kubernetes-preserve-unknown-fields": { + "description": "x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden.", + "type": "boolean" + }, + "x-kubernetes-validations": { + "description": "x-kubernetes-validations describes a list of validation rules written in the CEL expression language. This field is an alpha-level. Using this field requires the feature gate `CustomResourceValidationExpressions` to be enabled.", + "items": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ValidationRule" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "rule" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "rule", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrArray": { + "description": "JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes." + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrBool": { + "description": "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property." + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrStringArray": { + "description": "JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string array." + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ServiceReference": { + "description": "ServiceReference holds a reference to Service.legacy.k8s.io", + "properties": { + "name": { + "description": "name is the name of the service. Required", + "type": "string" + }, + "namespace": { + "description": "namespace is the namespace of the service. Required", + "type": "string" + }, + "path": { + "description": "path is an optional URL path at which the webhook will be contacted.", + "type": "string" + }, + "port": { + "description": "port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "namespace", + "name" + ], + "type": "object" + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ValidationRule": { + "description": "ValidationRule describes a validation rule written in the CEL expression language.", + "properties": { + "fieldPath": { + "description": "fieldPath represents the field path returned when the validation fails. It must be a relative JSON path (i.e. with array notation) scoped to the location of this x-kubernetes-validations extension in the schema and refer to an existing field. e.g. when validation checks if a specific attribute `foo` under a map `testMap`, the fieldPath could be set to `.testMap.foo` If the validation checks two lists must have unique attributes, the fieldPath could be set to either of the list: e.g. `.testList` It does not support list numeric index. It supports child operation to refer to an existing field currently. Refer to [JSONPath support in Kubernetes](https://kubernetes.io/docs/reference/kubectl/jsonpath/) for more info. Numeric index of array is not supported. For field name which contains special characters, use `['specialName']` to refer the field name. e.g. for attribute `foo.34$` appears in a list `testList`, the fieldPath could be set to `.testList['foo.34$']`", + "type": "string" + }, + "message": { + "description": "Message represents the message displayed when validation fails. The message is required if the Rule contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\"", + "type": "string" + }, + "messageExpression": { + "description": "MessageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a rule, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the rule; the only difference is the return type. Example: \"x must be less than max (\"+string(self.max)+\")\"", + "type": "string" + }, + "optionalOldSelf": { + "description": "optionalOldSelf is used to opt a transition rule into evaluation even when the object is first created, or if the old object is missing the value.\n\nWhen enabled `oldSelf` will be a CEL optional whose value will be `None` if there is no old value, or when the object is initially created.\n\nYou may check for presence of oldSelf using `oldSelf.hasValue()` and unwrap it after checking using `oldSelf.value()`. Check the CEL documentation for Optional types for more information: https://pkg.go.dev/github.com/google/cel-go/cel#OptionalTypes\n\nMay not be set unless `oldSelf` is used in `rule`.", + "type": "boolean" + }, + "reason": { + "description": "reason provides a machine-readable validation failure reason that is returned to the caller when a request fails this validation rule. The HTTP status code returned to the caller will match the reason of the reason of the first failed validation rule. The currently supported reasons are: \"FieldValueInvalid\", \"FieldValueForbidden\", \"FieldValueRequired\", \"FieldValueDuplicate\". If not set, default to use \"FieldValueInvalid\". All future added reasons must be accepted by clients when reading this value and unknown reasons should be treated as FieldValueInvalid.", + "type": "string" + }, + "rule": { + "description": "Rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the x-kubernetes-validations extension in the schema. The `self` variable in the CEL expression is bound to the scoped value. Example: - Rule scoped to the root of a resource with a status subresource: {\"rule\": \"self.status.actual <= self.spec.maxDesired\"}\n\nIf the Rule is scoped to an object with properties, the accessible properties of the object are field selectable via `self.field` and field presence can be checked via `has(self.field)`. Null valued fields are treated as absent fields in CEL expressions. If the Rule is scoped to an object with additionalProperties (i.e. a map) the value of the map are accessible via `self[mapKey]`, map containment can be checked via `mapKey in self` and all entries of the map are accessible via CEL macros and functions such as `self.all(...)`. If the Rule is scoped to an array, the elements of the array are accessible via `self[i]` and also by macros and functions. If the Rule is scoped to a scalar, `self` is bound to the scalar value. Examples: - Rule scoped to a map of objects: {\"rule\": \"self.components['Widget'].priority < 10\"} - Rule scoped to a list of integers: {\"rule\": \"self.values.all(value, value >= 0 && value < 100)\"} - Rule scoped to a string value: {\"rule\": \"self.startsWith('kube')\"}\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object and from any x-kubernetes-embedded-resource annotated objects. No other metadata properties are accessible.\n\nUnknown data preserved in custom resources via x-kubernetes-preserve-unknown-fields is not accessible in CEL expressions. This includes: - Unknown field values that are preserved by object schemas with x-kubernetes-preserve-unknown-fields. - Object properties where the property schema is of an \"unknown type\". An \"unknown type\" is recursively defined as:\n - A schema with no type and x-kubernetes-preserve-unknown-fields set to true\n - An array where the items schema is of an \"unknown type\"\n - An object where the additionalProperties schema is of an \"unknown type\"\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Rule accessing a property named \"namespace\": {\"rule\": \"self.__namespace__ > 0\"}\n - Rule accessing a property named \"x-prop\": {\"rule\": \"self.x__dash__prop > 0\"}\n - Rule accessing a property named \"redact__d\": {\"rule\": \"self.redact__underscores__d > 0\"}\n\nEquality on arrays with x-kubernetes-list-type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\n\nIf `rule` makes use of the `oldSelf` variable it is implicitly a `transition rule`.\n\nBy default, the `oldSelf` variable is the same type as `self`. When `optionalOldSelf` is true, the `oldSelf` variable is a CEL optional\n variable whose value() is the same type as `self`.\nSee the documentation for the `optionalOldSelf` field for details.\n\nTransition rules by default are applied only on UPDATE requests and are skipped if an old value could not be found. You can opt a transition rule into unconditional evaluation by setting `optionalOldSelf` to true.", + "type": "string" + } + }, + "required": [ + "rule" + ], + "type": "object" + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookClientConfig": { + "description": "WebhookClientConfig contains the information to make a TLS connection with the webhook.", + "properties": { + "caBundle": { + "description": "caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.", + "format": "byte", + "type": "string" + }, + "service": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ServiceReference", + "description": "service is a reference to the service for this webhook. Either service or url must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`." + }, + "url": { + "description": "url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookConversion": { + "description": "WebhookConversion describes how to call a conversion webhook", + "properties": { + "clientConfig": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookClientConfig", + "description": "clientConfig is the instructions for how to call the webhook if strategy is `Webhook`." + }, + "conversionReviewVersions": { + "description": "conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "conversionReviewVersions" + ], + "type": "object" + }, + "io.k8s.apimachinery.pkg.api.resource.Quantity": { + "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n``` ::= \n\n\t(Note that may be empty, from the \"\" case in .)\n\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n ::= \"e\" | \"E\" ```\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\n\nThe sign will be omitted unless the number is negative.\n\nExamples:\n\n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + "type": "string" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup": { + "description": "APIGroup contains the name, the supported versions, and the preferred version of a group.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "name is the name of the group.", + "type": "string" + }, + "preferredVersion": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery", + "description": "preferredVersion is the version preferred by the API server, which probably is the storage version." + }, + "serverAddressByClientCIDRs": { + "description": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "versions": { + "description": "versions are the versions supported in this group.", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "name", + "versions" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIGroup", + "version": "v1" + } + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.APIGroupList": { + "description": "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "groups": { + "description": "groups is a list of APIGroup.", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + } + }, + "required": [ + "groups" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIGroupList", + "version": "v1" + } + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.APIResource": { + "description": "APIResource specifies the name of a resource and whether it is namespaced.", + "properties": { + "categories": { + "description": "categories is a list of the grouped resources this resource belongs to (e.g. 'all')", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "group": { + "description": "group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\".", + "type": "string" + }, + "kind": { + "description": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", + "type": "string" + }, + "name": { + "description": "name is the plural name of the resource.", + "type": "string" + }, + "namespaced": { + "description": "namespaced indicates if a resource is namespaced or not.", + "type": "boolean" + }, + "shortNames": { + "description": "shortNames is a list of suggested short names of the resource.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "singularName": { + "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.", + "type": "string" + }, + "storageVersionHash": { + "description": "The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.", + "type": "string" + }, + "verbs": { + "description": "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", + "items": { + "type": "string" + }, + "type": "array" + }, + "version": { + "description": "version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\".", + "type": "string" + } + }, + "required": [ + "name", + "singularName", + "namespaced", + "kind", + "verbs" + ], + "type": "object" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList": { + "description": "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "groupVersion": { + "description": "groupVersion is the group and version this APIResourceList is for.", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "resources": { + "description": "resources contains the name of the resources and if they are namespaced.", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResource" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "groupVersion", + "resources" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIResourceList", + "version": "v1" + } + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.APIVersions": { + "description": "APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "serverAddressByClientCIDRs": { + "description": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "versions": { + "description": "versions are the api versions that are available.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "versions", + "serverAddressByClientCIDRs" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIVersions", + "version": "v1" + } + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.Condition": { + "description": "Condition contains details for one aspect of the current state of this API Resource.", + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable." + }, + "message": { + "description": "message is a human readable message indicating details about the transition. This may be an empty string.", + "type": "string" + }, + "observedGeneration": { + "description": "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.", + "format": "int64", + "type": "integer" + }, + "reason": { + "description": "reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.", + "type": "string" + }, + "status": { + "description": "status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "type of condition in CamelCase or in foo.example.com/CamelCase.", + "type": "string" + } + }, + "required": [ + "type", + "status", + "lastTransitionTime", + "reason", + "message" + ], + "type": "object" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions": { + "description": "DeleteOptions may be provided when deleting an API object.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "dryRun": { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "gracePeriodSeconds": { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "format": "int64", + "type": "integer" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "orphanDependents": { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "type": "boolean" + }, + "preconditions": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions", + "description": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned." + }, + "propagationPolicy": { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "admission.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "admission.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "apiextensions.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "apiextensions.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "apiregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "apiregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "apps", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "apps", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "apps", + "kind": "DeleteOptions", + "version": "v1beta2" + }, + { + "group": "authentication.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "authentication.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "authentication.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "authorization.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "authorization.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "autoscaling", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "autoscaling", + "kind": "DeleteOptions", + "version": "v2" + }, + { + "group": "autoscaling", + "kind": "DeleteOptions", + "version": "v2beta1" + }, + { + "group": "autoscaling", + "kind": "DeleteOptions", + "version": "v2beta2" + }, + { + "group": "batch", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "batch", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "certificates.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "certificates.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "certificates.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "coordination.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "coordination.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "discovery.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "discovery.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "events.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "events.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "extensions", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta2" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta3" + }, + { + "group": "imagepolicy.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "internal.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "networking.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "networking.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "networking.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "node.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "node.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "node.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "policy", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "policy", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "resource.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha2" + }, + { + "group": "scheduling.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "scheduling.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "scheduling.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "storage.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "storage.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "storage.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + } + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.FieldsV1": { + "description": "FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\n\nEach key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:', where is the name of a field in a struct, or key in a map 'v:', where is the exact json formatted value of a list item 'i:', where is position of a item in a list 'k:', where is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.\n\nThe exact format is defined in sigs.k8s.io/structured-merge-diff", + "type": "object" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery": { + "description": "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", + "properties": { + "groupVersion": { + "description": "groupVersion specifies the API group and version in the form \"group/version\"", + "type": "string" + }, + "version": { + "description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", + "type": "string" + } + }, + "required": [ + "groupVersion", + "version" + ], + "type": "object" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector": { + "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "key", + "operator" + ], + "type": "object" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta": { + "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", + "properties": { + "continue": { + "description": "continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.", + "type": "string" + }, + "remainingItemCount": { + "description": "remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.", + "format": "int64", + "type": "integer" + }, + "resourceVersion": { + "description": "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": "string" + }, + "selfLink": { + "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry": { + "description": "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.", + "type": "string" + }, + "fieldsType": { + "description": "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"", + "type": "string" + }, + "fieldsV1": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.FieldsV1", + "description": "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type." + }, + "manager": { + "description": "Manager is an identifier of the workflow managing these fields.", + "type": "string" + }, + "operation": { + "description": "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.", + "type": "string" + }, + "subresource": { + "description": "Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource.", + "type": "string" + }, + "time": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over." + } + }, + "type": "object" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime": { + "description": "MicroTime is version of Time with microsecond level precision.", + "format": "date-time", + "type": "string" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta": { + "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", + "properties": { + "annotations": { + "additionalProperties": { + "type": "string" + }, + "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations", + "type": "object" + }, + "creationTimestamp": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "deletionGracePeriodSeconds": { + "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", + "format": "int64", + "type": "integer" + }, + "deletionTimestamp": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "finalizers": { + "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set", + "x-kubernetes-patch-strategy": "merge" + }, + "generateName": { + "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", + "type": "string" + }, + "generation": { + "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", + "format": "int64", + "type": "integer" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels", + "type": "object" + }, + "managedFields": { + "description": "ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object.", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names", + "type": "string" + }, + "namespace": { + "description": "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces", + "type": "string" + }, + "ownerReferences": { + "description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "uid" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "uid", + "x-kubernetes-patch-strategy": "merge" + }, + "resourceVersion": { + "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": "string" + }, + "selfLink": { + "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", + "type": "string" + }, + "uid": { + "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference": { + "description": "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.", + "properties": { + "apiVersion": { + "description": "API version of the referent.", + "type": "string" + }, + "blockOwnerDeletion": { + "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", + "type": "boolean" + }, + "controller": { + "description": "If true, this reference points to the managing controller.", + "type": "boolean" + }, + "kind": { + "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names", + "type": "string" + }, + "uid": { + "description": "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", + "type": "string" + } + }, + "required": [ + "apiVersion", + "kind", + "name", + "uid" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.Patch": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions": { + "description": "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", + "properties": { + "resourceVersion": { + "description": "Specifies the target ResourceVersion", + "type": "string" + }, + "uid": { + "description": "Specifies the target UID.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR": { + "description": "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", + "properties": { + "clientCIDR": { + "description": "The CIDR with which clients can match their IP to figure out the server address that they should use.", + "type": "string" + }, + "serverAddress": { + "description": "Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.", + "type": "string" + } + }, + "required": [ + "clientCIDR", + "serverAddress" + ], + "type": "object" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.Status": { + "description": "Status is a return value for calls that don't return other objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "code": { + "description": "Suggested HTTP return code for this status, 0 if not set.", + "format": "int32", + "type": "integer" + }, + "details": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails", + "description": "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type.", + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "message": { + "description": "A human-readable description of the status of this operation.", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + }, + "reason": { + "description": "A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.", + "type": "string" + }, + "status": { + "description": "Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Status", + "version": "v1" + }, + { + "group": "resource.k8s.io", + "kind": "Status", + "version": "v1alpha2" + } + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause": { + "description": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", + "properties": { + "field": { + "description": "The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"", + "type": "string" + }, + "message": { + "description": "A human-readable description of the cause of the error. This field may be presented as-is to a reader.", + "type": "string" + }, + "reason": { + "description": "A machine-readable description of the cause of the error. If this value is empty there is no information available.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails": { + "description": "StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.", + "properties": { + "causes": { + "description": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "group": { + "description": "The group attribute of the resource associated with the status StatusReason.", + "type": "string" + }, + "kind": { + "description": "The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).", + "type": "string" + }, + "retryAfterSeconds": { + "description": "If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.", + "format": "int32", + "type": "integer" + }, + "uid": { + "description": "UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.Time": { + "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", + "format": "date-time", + "type": "string" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent": { + "description": "Event represents a single event to a watched resource.", + "properties": { + "object": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.runtime.RawExtension", + "description": "Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *Status is recommended; other types may make sense\n depending on context." + }, + "type": { + "type": "string" + } + }, + "required": [ + "type", + "object" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "admission.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "admission.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "apiextensions.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "apiextensions.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "apiregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "apiregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "apps", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "apps", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "apps", + "kind": "WatchEvent", + "version": "v1beta2" + }, + { + "group": "authentication.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "authentication.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "authentication.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "autoscaling", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "autoscaling", + "kind": "WatchEvent", + "version": "v2" + }, + { + "group": "autoscaling", + "kind": "WatchEvent", + "version": "v2beta1" + }, + { + "group": "autoscaling", + "kind": "WatchEvent", + "version": "v2beta2" + }, + { + "group": "batch", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "batch", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "certificates.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "certificates.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "certificates.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "coordination.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "coordination.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "discovery.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "discovery.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "events.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "events.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "extensions", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1beta2" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1beta3" + }, + { + "group": "imagepolicy.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "internal.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "networking.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "networking.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "networking.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "node.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "node.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "node.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "policy", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "policy", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "resource.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha2" + }, + { + "group": "scheduling.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "scheduling.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "scheduling.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "storage.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "storage.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "storage.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + } + ] + }, + "io.k8s.apimachinery.pkg.runtime.RawExtension": { + "description": "RawExtension is used to hold extensions in external versions.\n\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\n\n// Internal package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.Object `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// External package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.RawExtension `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// On the wire, the JSON will look something like this:\n\n\t{\n\t\t\"kind\":\"MyAPIObject\",\n\t\t\"apiVersion\":\"v1\",\n\t\t\"myPlugin\": {\n\t\t\t\"kind\":\"PluginA\",\n\t\t\t\"aOption\":\"foo\",\n\t\t},\n\t}\n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)", + "type": "object" + }, + "io.k8s.apimachinery.pkg.util.intstr.IntOrString": { + "description": "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.", + "format": "int-or-string", + "type": "string" + }, + "io.k8s.apimachinery.pkg.version.Info": { + "description": "Info contains versioning information. how we'll want to distribute that information.", + "properties": { + "buildDate": { + "type": "string" + }, + "compiler": { + "type": "string" + }, + "gitCommit": { + "type": "string" + }, + "gitTreeState": { + "type": "string" + }, + "gitVersion": { + "type": "string" + }, + "goVersion": { + "type": "string" + }, + "major": { + "type": "string" + }, + "minor": { + "type": "string" + }, + "platform": { + "type": "string" + } + }, + "required": [ + "major", + "minor", + "gitVersion", + "gitCommit", + "gitTreeState", + "buildDate", + "goVersion", + "compiler", + "platform" + ], + "type": "object" + }, + "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService": { + "description": "APIService represents a server for a particular GroupVersion. Name must be \"version.group\".", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec", + "description": "Spec contains information for locating and communicating with a server" + }, + "status": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceStatus", + "description": "Status contains derived information about an API server" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apiregistration.k8s.io", + "kind": "APIService", + "version": "v1" + } + ] + }, + "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceCondition": { + "description": "APIServiceCondition describes the state of an APIService at a particular point", + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "message": { + "description": "Human-readable message indicating details about last transition.", + "type": "string" + }, + "reason": { + "description": "Unique, one-word, CamelCase reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "Status is the status of the condition. Can be True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type is the type of the condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": "object" + }, + "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList": { + "description": "APIServiceList is a list of APIService objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is the list of APIService", + "items": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apiregistration.k8s.io", + "kind": "APIServiceList", + "version": "v1" + } + ] + }, + "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec": { + "description": "APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification.", + "properties": { + "caBundle": { + "description": "CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used.", + "format": "byte", + "type": "string", + "x-kubernetes-list-type": "atomic" + }, + "group": { + "description": "Group is the API group name this server hosts", + "type": "string" + }, + "groupPriorityMinimum": { + "description": "GroupPriorityMinimum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMinimum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s", + "format": "int32", + "type": "integer" + }, + "insecureSkipTLSVerify": { + "description": "InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead.", + "type": "boolean" + }, + "service": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.ServiceReference", + "description": "Service is a reference to the service for this API server. It must communicate on port 443. If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled." + }, + "version": { + "description": "Version is the API version this server hosts. For example, \"v1\"", + "type": "string" + }, + "versionPriority": { + "description": "VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "groupPriorityMinimum", + "versionPriority" + ], + "type": "object" + }, + "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceStatus": { + "description": "APIServiceStatus contains derived information about an API server", + "properties": { + "conditions": { + "description": "Current service state of apiService.", + "items": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.ServiceReference": { + "description": "ServiceReference holds a reference to Service.legacy.k8s.io", + "properties": { + "name": { + "description": "Name is the name of the service", + "type": "string" + }, + "namespace": { + "description": "Namespace is the namespace of the service", + "type": "string" + }, + "port": { + "description": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + } + }, + "info": { + "title": "Kubernetes", + "version": "unversioned" + }, + "parameters": { + "allowWatchBookmarks-HC2hJt-J": { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + "body-2Y1dVQaQ": { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + "body-78PwaGsr": { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + "command-Py3eQybp": { + "description": "Command is the remote command to execute. argv array. Not executed within a shell.", + "in": "query", + "name": "command", + "type": "string", + "uniqueItems": true + }, + "container-1GeXxFDC": { + "description": "The container for which to stream logs. Defaults to only container if there is one container in the pod.", + "in": "query", + "name": "container", + "type": "string", + "uniqueItems": true + }, + "container-_Q-EJ3nR": { + "description": "The container in which to execute the command. Defaults to only container if there is only one container in the pod.", + "in": "query", + "name": "container", + "type": "string", + "uniqueItems": true + }, + "container-i5dOmRiM": { + "description": "Container in which to execute the command. Defaults to only container if there is only one container in the pod.", + "in": "query", + "name": "container", + "type": "string", + "uniqueItems": true + }, + "continue-QfD61s0i": { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + "fieldManager-7c6nTn1T": { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + "fieldManager-Qy4HdaTW": { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + "fieldSelector-xIcQKXFG": { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + "follow-9OIXh_2R": { + "description": "Follow the log stream of the pod. Defaults to false.", + "in": "query", + "name": "follow", + "type": "boolean", + "uniqueItems": true + }, + "force-tOGGb0Yi": { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + }, + "gracePeriodSeconds--K5HaBOS": { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + "insecureSkipTLSVerifyBackend-gM00jVbe": { + "description": "insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet).", + "in": "query", + "name": "insecureSkipTLSVerifyBackend", + "type": "boolean", + "uniqueItems": true + }, + "labelSelector-5Zw57w4C": { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + "limit-1NfNmdNH": { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + "limitBytes-zwd1RXuc": { + "description": "If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.", + "in": "query", + "name": "limitBytes", + "type": "integer", + "uniqueItems": true + }, + "logpath-Noq7euwC": { + "description": "path to the log", + "in": "path", + "name": "logpath", + "required": true, + "type": "string", + "uniqueItems": true + }, + "namespace-vgWSWtn3": { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + "orphanDependents-uRB25kX5": { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + "path-QCf0eosM": { + "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", + "in": "query", + "name": "path", + "type": "string", + "uniqueItems": true + }, + "path-oPbzgLUj": { + "description": "Path is the URL path to use for the current proxy request to pod.", + "in": "query", + "name": "path", + "type": "string", + "uniqueItems": true + }, + "path-rFDtV0x9": { + "description": "Path is the URL path to use for the current proxy request to node.", + "in": "query", + "name": "path", + "type": "string", + "uniqueItems": true + }, + "path-z6Ciiujn": { + "description": "path to the resource", + "in": "path", + "name": "path", + "required": true, + "type": "string", + "uniqueItems": true + }, + "ports-91KROJmm": { + "description": "List of ports to forward Required when using WebSockets", + "in": "query", + "name": "ports", + "type": "integer", + "uniqueItems": true + }, + "pretty-tJGM1-ng": { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + "previous-1jxDPu3y": { + "description": "Return previous terminated container logs. Defaults to false.", + "in": "query", + "name": "previous", + "type": "boolean", + "uniqueItems": true + }, + "propagationPolicy-6jk3prlO": { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + "resourceVersion-5WAnf1kx": { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + "resourceVersionMatch-t8XhRHeC": { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + "sendInitialEvents-rLXlEK_k": { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + "sinceSeconds-vE2NLdnP": { + "description": "A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", + "in": "query", + "name": "sinceSeconds", + "type": "integer", + "uniqueItems": true + }, + "stderr-26jJhFUR": { + "description": "Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true.", + "in": "query", + "name": "stderr", + "type": "boolean", + "uniqueItems": true + }, + "stderr-W_1TNlWc": { + "description": "Redirect the standard error stream of the pod for this call.", + "in": "query", + "name": "stderr", + "type": "boolean", + "uniqueItems": true + }, + "stdin-PSzNhyUC": { + "description": "Redirect the standard input stream of the pod for this call. Defaults to false.", + "in": "query", + "name": "stdin", + "type": "boolean", + "uniqueItems": true + }, + "stdin-sEFnN3IS": { + "description": "Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false.", + "in": "query", + "name": "stdin", + "type": "boolean", + "uniqueItems": true + }, + "stdout--EZLRwV1": { + "description": "Redirect the standard output stream of the pod for this call.", + "in": "query", + "name": "stdout", + "type": "boolean", + "uniqueItems": true + }, + "stdout-005YMKE6": { + "description": "Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true.", + "in": "query", + "name": "stdout", + "type": "boolean", + "uniqueItems": true + }, + "tailLines-2fRTNzbP": { + "description": "If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime", + "in": "query", + "name": "tailLines", + "type": "integer", + "uniqueItems": true + }, + "timeoutSeconds-yvYezaOC": { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + "timestamps-c17fW1w_": { + "description": "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", + "in": "query", + "name": "timestamps", + "type": "boolean", + "uniqueItems": true + }, + "tty-g7MlET_l": { + "description": "TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false.", + "in": "query", + "name": "tty", + "type": "boolean", + "uniqueItems": true + }, + "tty-s0flW37O": { + "description": "TTY if true indicates that a tty will be allocated for the exec call. Defaults to false.", + "in": "query", + "name": "tty", + "type": "boolean", + "uniqueItems": true + }, + "watch-XNNPZGbK": { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + }, + "paths": { + "/.well-known/openid-configuration/": { + "get": { + "description": "get service account issuer OpenID configuration, also known as the 'OIDC discovery doc'", + "operationId": "getServiceAccountIssuerOpenIDConfiguration", + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "WellKnown" + ] + } + }, + "/api/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available API versions", + "operationId": "getCoreAPIVersions", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIVersions" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core" + ] + } + }, + "/api/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getCoreV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ] + } + }, + "/api/v1/componentstatuses": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list objects of kind ComponentStatus", + "operationId": "listCoreV1ComponentStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ComponentStatusList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ComponentStatus", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/componentstatuses/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ComponentStatus", + "operationId": "readCoreV1ComponentStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ComponentStatus" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ComponentStatus", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ComponentStatus", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ] + }, + "/api/v1/configmaps": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ConfigMap", + "operationId": "listCoreV1ConfigMapForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ConfigMap", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/endpoints": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Endpoints", + "operationId": "listCoreV1EndpointsForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.EndpointsList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Endpoints", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/events": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Event", + "operationId": "listCoreV1EventForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.EventList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Event", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/limitranges": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind LimitRange", + "operationId": "listCoreV1LimitRangeForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.LimitRangeList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "LimitRange", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/namespaces": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Namespace", + "operationId": "listCoreV1Namespace", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.NamespaceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Namespace", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a Namespace", + "operationId": "createCoreV1Namespace", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Namespace", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/bindings": { + "parameters": [ + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a Binding", + "operationId": "createCoreV1NamespacedBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Binding" + } + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Binding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Binding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Binding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Binding", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/configmaps": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ConfigMap", + "operationId": "deleteCoreV1CollectionNamespacedConfigMap", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ConfigMap", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ConfigMap", + "operationId": "listCoreV1NamespacedConfigMap", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ConfigMap", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ConfigMap", + "operationId": "createCoreV1NamespacedConfigMap", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ConfigMap", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/configmaps/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ConfigMap", + "operationId": "deleteCoreV1NamespacedConfigMap", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ConfigMap", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ConfigMap", + "operationId": "readCoreV1NamespacedConfigMap", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ConfigMap", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ConfigMap", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ConfigMap", + "operationId": "patchCoreV1NamespacedConfigMap", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ConfigMap", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ConfigMap", + "operationId": "replaceCoreV1NamespacedConfigMap", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ConfigMap", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/endpoints": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of Endpoints", + "operationId": "deleteCoreV1CollectionNamespacedEndpoints", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Endpoints", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Endpoints", + "operationId": "listCoreV1NamespacedEndpoints", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.EndpointsList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Endpoints", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create Endpoints", + "operationId": "createCoreV1NamespacedEndpoints", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Endpoints", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/endpoints/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete Endpoints", + "operationId": "deleteCoreV1NamespacedEndpoints", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Endpoints", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified Endpoints", + "operationId": "readCoreV1NamespacedEndpoints", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Endpoints", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Endpoints", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified Endpoints", + "operationId": "patchCoreV1NamespacedEndpoints", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Endpoints", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified Endpoints", + "operationId": "replaceCoreV1NamespacedEndpoints", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Endpoints", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/events": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of Event", + "operationId": "deleteCoreV1CollectionNamespacedEvent", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Event", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Event", + "operationId": "listCoreV1NamespacedEvent", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.EventList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Event", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create an Event", + "operationId": "createCoreV1NamespacedEvent", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Event" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Event" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Event" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Event" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Event", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/events/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete an Event", + "operationId": "deleteCoreV1NamespacedEvent", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Event", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified Event", + "operationId": "readCoreV1NamespacedEvent", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Event" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Event", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Event", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified Event", + "operationId": "patchCoreV1NamespacedEvent", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Event" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Event" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Event", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified Event", + "operationId": "replaceCoreV1NamespacedEvent", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Event" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Event" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Event" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Event", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/limitranges": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of LimitRange", + "operationId": "deleteCoreV1CollectionNamespacedLimitRange", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "LimitRange", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind LimitRange", + "operationId": "listCoreV1NamespacedLimitRange", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.LimitRangeList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "LimitRange", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a LimitRange", + "operationId": "createCoreV1NamespacedLimitRange", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "LimitRange", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/limitranges/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a LimitRange", + "operationId": "deleteCoreV1NamespacedLimitRange", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "LimitRange", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified LimitRange", + "operationId": "readCoreV1NamespacedLimitRange", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "LimitRange", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the LimitRange", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified LimitRange", + "operationId": "patchCoreV1NamespacedLimitRange", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "LimitRange", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified LimitRange", + "operationId": "replaceCoreV1NamespacedLimitRange", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "LimitRange", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/persistentvolumeclaims": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of PersistentVolumeClaim", + "operationId": "deleteCoreV1CollectionNamespacedPersistentVolumeClaim", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PersistentVolumeClaim", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PersistentVolumeClaim", + "operationId": "listCoreV1NamespacedPersistentVolumeClaim", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaimList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PersistentVolumeClaim", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a PersistentVolumeClaim", + "operationId": "createCoreV1NamespacedPersistentVolumeClaim", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PersistentVolumeClaim", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a PersistentVolumeClaim", + "operationId": "deleteCoreV1NamespacedPersistentVolumeClaim", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PersistentVolumeClaim", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified PersistentVolumeClaim", + "operationId": "readCoreV1NamespacedPersistentVolumeClaim", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PersistentVolumeClaim", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the PersistentVolumeClaim", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified PersistentVolumeClaim", + "operationId": "patchCoreV1NamespacedPersistentVolumeClaim", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PersistentVolumeClaim", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified PersistentVolumeClaim", + "operationId": "replaceCoreV1NamespacedPersistentVolumeClaim", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PersistentVolumeClaim", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified PersistentVolumeClaim", + "operationId": "readCoreV1NamespacedPersistentVolumeClaimStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PersistentVolumeClaim", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the PersistentVolumeClaim", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified PersistentVolumeClaim", + "operationId": "patchCoreV1NamespacedPersistentVolumeClaimStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PersistentVolumeClaim", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified PersistentVolumeClaim", + "operationId": "replaceCoreV1NamespacedPersistentVolumeClaimStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PersistentVolumeClaim", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/pods": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of Pod", + "operationId": "deleteCoreV1CollectionNamespacedPod", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Pod", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Pod", + "operationId": "listCoreV1NamespacedPod", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Pod", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a Pod", + "operationId": "createCoreV1NamespacedPod", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Pod" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Pod" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Pod" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Pod" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Pod", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/pods/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a Pod", + "operationId": "deleteCoreV1NamespacedPod", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Pod" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Pod" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Pod", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified Pod", + "operationId": "readCoreV1NamespacedPod", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Pod" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Pod", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Pod", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified Pod", + "operationId": "patchCoreV1NamespacedPod", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Pod" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Pod" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Pod", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified Pod", + "operationId": "replaceCoreV1NamespacedPod", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Pod" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Pod" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Pod" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Pod", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/pods/{name}/attach": { + "get": { + "consumes": [ + "*/*" + ], + "description": "connect GET requests to attach of Pod", + "operationId": "connectCoreV1GetNamespacedPodAttach", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodAttachOptions", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/container-_Q-EJ3nR" + }, + { + "description": "name of the PodAttachOptions", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/stderr-26jJhFUR" + }, + { + "$ref": "#/parameters/stdin-sEFnN3IS" + }, + { + "$ref": "#/parameters/stdout-005YMKE6" + }, + { + "$ref": "#/parameters/tty-g7MlET_l" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "connect POST requests to attach of Pod", + "operationId": "connectCoreV1PostNamespacedPodAttach", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodAttachOptions", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/pods/{name}/binding": { + "parameters": [ + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "name of the Binding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create binding of a Pod", + "operationId": "createCoreV1NamespacedPodBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Binding" + } + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Binding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Binding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Binding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Binding", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read ephemeralcontainers of the specified Pod", + "operationId": "readCoreV1NamespacedPodEphemeralcontainers", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Pod" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Pod", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Pod", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update ephemeralcontainers of the specified Pod", + "operationId": "patchCoreV1NamespacedPodEphemeralcontainers", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Pod" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Pod" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Pod", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace ephemeralcontainers of the specified Pod", + "operationId": "replaceCoreV1NamespacedPodEphemeralcontainers", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Pod" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Pod" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Pod" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Pod", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/pods/{name}/eviction": { + "parameters": [ + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "name of the Eviction", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create eviction of a Pod", + "operationId": "createCoreV1NamespacedPodEviction", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.Eviction" + } + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.Eviction" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.Eviction" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.Eviction" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "Eviction", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/pods/{name}/exec": { + "get": { + "consumes": [ + "*/*" + ], + "description": "connect GET requests to exec of Pod", + "operationId": "connectCoreV1GetNamespacedPodExec", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodExecOptions", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/command-Py3eQybp" + }, + { + "$ref": "#/parameters/container-i5dOmRiM" + }, + { + "description": "name of the PodExecOptions", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/stderr-W_1TNlWc" + }, + { + "$ref": "#/parameters/stdin-PSzNhyUC" + }, + { + "$ref": "#/parameters/stdout--EZLRwV1" + }, + { + "$ref": "#/parameters/tty-s0flW37O" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "connect POST requests to exec of Pod", + "operationId": "connectCoreV1PostNamespacedPodExec", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodExecOptions", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/pods/{name}/log": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read log of the specified Pod", + "operationId": "readCoreV1NamespacedPodLog", + "produces": [ + "text/plain", + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Pod", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/container-1GeXxFDC" + }, + { + "$ref": "#/parameters/follow-9OIXh_2R" + }, + { + "$ref": "#/parameters/insecureSkipTLSVerifyBackend-gM00jVbe" + }, + { + "$ref": "#/parameters/limitBytes-zwd1RXuc" + }, + { + "description": "name of the Pod", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/previous-1jxDPu3y" + }, + { + "$ref": "#/parameters/sinceSeconds-vE2NLdnP" + }, + { + "$ref": "#/parameters/tailLines-2fRTNzbP" + }, + { + "$ref": "#/parameters/timestamps-c17fW1w_" + } + ] + }, + "/api/v1/namespaces/{namespace}/pods/{name}/portforward": { + "get": { + "consumes": [ + "*/*" + ], + "description": "connect GET requests to portforward of Pod", + "operationId": "connectCoreV1GetNamespacedPodPortforward", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodPortForwardOptions", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the PodPortForwardOptions", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/ports-91KROJmm" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "connect POST requests to portforward of Pod", + "operationId": "connectCoreV1PostNamespacedPodPortforward", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodPortForwardOptions", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/pods/{name}/proxy": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "connect DELETE requests to proxy of Pod", + "operationId": "connectCoreV1DeleteNamespacedPodProxy", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "connect GET requests to proxy of Pod", + "operationId": "connectCoreV1GetNamespacedPodProxy", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + }, + "head": { + "consumes": [ + "*/*" + ], + "description": "connect HEAD requests to proxy of Pod", + "operationId": "connectCoreV1HeadNamespacedPodProxy", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + }, + "options": { + "consumes": [ + "*/*" + ], + "description": "connect OPTIONS requests to proxy of Pod", + "operationId": "connectCoreV1OptionsNamespacedPodProxy", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the PodProxyOptions", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/path-oPbzgLUj" + } + ], + "patch": { + "consumes": [ + "*/*" + ], + "description": "connect PATCH requests to proxy of Pod", + "operationId": "connectCoreV1PatchNamespacedPodProxy", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + }, + "post": { + "consumes": [ + "*/*" + ], + "description": "connect POST requests to proxy of Pod", + "operationId": "connectCoreV1PostNamespacedPodProxy", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "connect PUT requests to proxy of Pod", + "operationId": "connectCoreV1PutNamespacedPodProxy", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "connect DELETE requests to proxy of Pod", + "operationId": "connectCoreV1DeleteNamespacedPodProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "connect GET requests to proxy of Pod", + "operationId": "connectCoreV1GetNamespacedPodProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + }, + "head": { + "consumes": [ + "*/*" + ], + "description": "connect HEAD requests to proxy of Pod", + "operationId": "connectCoreV1HeadNamespacedPodProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + }, + "options": { + "consumes": [ + "*/*" + ], + "description": "connect OPTIONS requests to proxy of Pod", + "operationId": "connectCoreV1OptionsNamespacedPodProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the PodProxyOptions", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/path-z6Ciiujn" + }, + { + "$ref": "#/parameters/path-oPbzgLUj" + } + ], + "patch": { + "consumes": [ + "*/*" + ], + "description": "connect PATCH requests to proxy of Pod", + "operationId": "connectCoreV1PatchNamespacedPodProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + }, + "post": { + "consumes": [ + "*/*" + ], + "description": "connect POST requests to proxy of Pod", + "operationId": "connectCoreV1PostNamespacedPodProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "connect PUT requests to proxy of Pod", + "operationId": "connectCoreV1PutNamespacedPodProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/pods/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified Pod", + "operationId": "readCoreV1NamespacedPodStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Pod" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Pod", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Pod", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified Pod", + "operationId": "patchCoreV1NamespacedPodStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Pod" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Pod" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Pod", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified Pod", + "operationId": "replaceCoreV1NamespacedPodStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Pod" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Pod" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Pod" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Pod", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/podtemplates": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of PodTemplate", + "operationId": "deleteCoreV1CollectionNamespacedPodTemplate", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodTemplate", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PodTemplate", + "operationId": "listCoreV1NamespacedPodTemplate", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodTemplate", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a PodTemplate", + "operationId": "createCoreV1NamespacedPodTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodTemplate", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/podtemplates/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a PodTemplate", + "operationId": "deleteCoreV1NamespacedPodTemplate", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodTemplate", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified PodTemplate", + "operationId": "readCoreV1NamespacedPodTemplate", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodTemplate", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the PodTemplate", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified PodTemplate", + "operationId": "patchCoreV1NamespacedPodTemplate", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodTemplate", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified PodTemplate", + "operationId": "replaceCoreV1NamespacedPodTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodTemplate", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/replicationcontrollers": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ReplicationController", + "operationId": "deleteCoreV1CollectionNamespacedReplicationController", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ReplicationController", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ReplicationController", + "operationId": "listCoreV1NamespacedReplicationController", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationControllerList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ReplicationController", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ReplicationController", + "operationId": "createCoreV1NamespacedReplicationController", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ReplicationController", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ReplicationController", + "operationId": "deleteCoreV1NamespacedReplicationController", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ReplicationController", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ReplicationController", + "operationId": "readCoreV1NamespacedReplicationController", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ReplicationController", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ReplicationController", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ReplicationController", + "operationId": "patchCoreV1NamespacedReplicationController", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ReplicationController", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ReplicationController", + "operationId": "replaceCoreV1NamespacedReplicationController", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ReplicationController", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read scale of the specified ReplicationController", + "operationId": "readCoreV1NamespacedReplicationControllerScale", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Scale", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update scale of the specified ReplicationController", + "operationId": "patchCoreV1NamespacedReplicationControllerScale", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace scale of the specified ReplicationController", + "operationId": "replaceCoreV1NamespacedReplicationControllerScale", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified ReplicationController", + "operationId": "readCoreV1NamespacedReplicationControllerStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ReplicationController", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ReplicationController", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified ReplicationController", + "operationId": "patchCoreV1NamespacedReplicationControllerStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ReplicationController", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified ReplicationController", + "operationId": "replaceCoreV1NamespacedReplicationControllerStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ReplicationController", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/resourcequotas": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ResourceQuota", + "operationId": "deleteCoreV1CollectionNamespacedResourceQuota", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ResourceQuota", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceQuota", + "operationId": "listCoreV1NamespacedResourceQuota", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuotaList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ResourceQuota", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ResourceQuota", + "operationId": "createCoreV1NamespacedResourceQuota", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ResourceQuota", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/resourcequotas/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ResourceQuota", + "operationId": "deleteCoreV1NamespacedResourceQuota", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ResourceQuota", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ResourceQuota", + "operationId": "readCoreV1NamespacedResourceQuota", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ResourceQuota", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ResourceQuota", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ResourceQuota", + "operationId": "patchCoreV1NamespacedResourceQuota", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ResourceQuota", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ResourceQuota", + "operationId": "replaceCoreV1NamespacedResourceQuota", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ResourceQuota", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/resourcequotas/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified ResourceQuota", + "operationId": "readCoreV1NamespacedResourceQuotaStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ResourceQuota", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ResourceQuota", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified ResourceQuota", + "operationId": "patchCoreV1NamespacedResourceQuotaStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ResourceQuota", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified ResourceQuota", + "operationId": "replaceCoreV1NamespacedResourceQuotaStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ResourceQuota", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/secrets": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of Secret", + "operationId": "deleteCoreV1CollectionNamespacedSecret", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Secret", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Secret", + "operationId": "listCoreV1NamespacedSecret", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Secret", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a Secret", + "operationId": "createCoreV1NamespacedSecret", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Secret" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Secret" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Secret" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Secret" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Secret", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/secrets/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a Secret", + "operationId": "deleteCoreV1NamespacedSecret", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Secret", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified Secret", + "operationId": "readCoreV1NamespacedSecret", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Secret" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Secret", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Secret", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified Secret", + "operationId": "patchCoreV1NamespacedSecret", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Secret" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Secret" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Secret", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified Secret", + "operationId": "replaceCoreV1NamespacedSecret", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Secret" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Secret" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Secret" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Secret", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/serviceaccounts": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ServiceAccount", + "operationId": "deleteCoreV1CollectionNamespacedServiceAccount", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ServiceAccount", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ServiceAccount", + "operationId": "listCoreV1NamespacedServiceAccount", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccountList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ServiceAccount", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ServiceAccount", + "operationId": "createCoreV1NamespacedServiceAccount", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ServiceAccount", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/serviceaccounts/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ServiceAccount", + "operationId": "deleteCoreV1NamespacedServiceAccount", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ServiceAccount", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ServiceAccount", + "operationId": "readCoreV1NamespacedServiceAccount", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ServiceAccount", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ServiceAccount", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ServiceAccount", + "operationId": "patchCoreV1NamespacedServiceAccount", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ServiceAccount", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ServiceAccount", + "operationId": "replaceCoreV1NamespacedServiceAccount", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ServiceAccount", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/serviceaccounts/{name}/token": { + "parameters": [ + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "name of the TokenRequest", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create token of a ServiceAccount", + "operationId": "createCoreV1NamespacedServiceAccountToken", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenRequest" + } + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenRequest" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenRequest" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authentication.k8s.io", + "kind": "TokenRequest", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/services": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of Service", + "operationId": "deleteCoreV1CollectionNamespacedService", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Service", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Service", + "operationId": "listCoreV1NamespacedService", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ServiceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Service", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a Service", + "operationId": "createCoreV1NamespacedService", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Service" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Service" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Service" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Service" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Service", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/services/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a Service", + "operationId": "deleteCoreV1NamespacedService", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Service" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Service" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Service", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified Service", + "operationId": "readCoreV1NamespacedService", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Service" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Service", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Service", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified Service", + "operationId": "patchCoreV1NamespacedService", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Service" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Service" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Service", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified Service", + "operationId": "replaceCoreV1NamespacedService", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Service" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Service" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Service" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Service", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/services/{name}/proxy": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "connect DELETE requests to proxy of Service", + "operationId": "connectCoreV1DeleteNamespacedServiceProxy", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ServiceProxyOptions", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "connect GET requests to proxy of Service", + "operationId": "connectCoreV1GetNamespacedServiceProxy", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ServiceProxyOptions", + "version": "v1" + } + }, + "head": { + "consumes": [ + "*/*" + ], + "description": "connect HEAD requests to proxy of Service", + "operationId": "connectCoreV1HeadNamespacedServiceProxy", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ServiceProxyOptions", + "version": "v1" + } + }, + "options": { + "consumes": [ + "*/*" + ], + "description": "connect OPTIONS requests to proxy of Service", + "operationId": "connectCoreV1OptionsNamespacedServiceProxy", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ServiceProxyOptions", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ServiceProxyOptions", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/path-QCf0eosM" + } + ], + "patch": { + "consumes": [ + "*/*" + ], + "description": "connect PATCH requests to proxy of Service", + "operationId": "connectCoreV1PatchNamespacedServiceProxy", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ServiceProxyOptions", + "version": "v1" + } + }, + "post": { + "consumes": [ + "*/*" + ], + "description": "connect POST requests to proxy of Service", + "operationId": "connectCoreV1PostNamespacedServiceProxy", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ServiceProxyOptions", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "connect PUT requests to proxy of Service", + "operationId": "connectCoreV1PutNamespacedServiceProxy", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ServiceProxyOptions", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "connect DELETE requests to proxy of Service", + "operationId": "connectCoreV1DeleteNamespacedServiceProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ServiceProxyOptions", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "connect GET requests to proxy of Service", + "operationId": "connectCoreV1GetNamespacedServiceProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ServiceProxyOptions", + "version": "v1" + } + }, + "head": { + "consumes": [ + "*/*" + ], + "description": "connect HEAD requests to proxy of Service", + "operationId": "connectCoreV1HeadNamespacedServiceProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ServiceProxyOptions", + "version": "v1" + } + }, + "options": { + "consumes": [ + "*/*" + ], + "description": "connect OPTIONS requests to proxy of Service", + "operationId": "connectCoreV1OptionsNamespacedServiceProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ServiceProxyOptions", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ServiceProxyOptions", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/path-z6Ciiujn" + }, + { + "$ref": "#/parameters/path-QCf0eosM" + } + ], + "patch": { + "consumes": [ + "*/*" + ], + "description": "connect PATCH requests to proxy of Service", + "operationId": "connectCoreV1PatchNamespacedServiceProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ServiceProxyOptions", + "version": "v1" + } + }, + "post": { + "consumes": [ + "*/*" + ], + "description": "connect POST requests to proxy of Service", + "operationId": "connectCoreV1PostNamespacedServiceProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ServiceProxyOptions", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "connect PUT requests to proxy of Service", + "operationId": "connectCoreV1PutNamespacedServiceProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ServiceProxyOptions", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/services/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified Service", + "operationId": "readCoreV1NamespacedServiceStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Service" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Service", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Service", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified Service", + "operationId": "patchCoreV1NamespacedServiceStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Service" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Service" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Service", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified Service", + "operationId": "replaceCoreV1NamespacedServiceStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Service" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Service" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Service" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Service", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a Namespace", + "operationId": "deleteCoreV1Namespace", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Namespace", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified Namespace", + "operationId": "readCoreV1Namespace", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Namespace", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Namespace", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified Namespace", + "operationId": "patchCoreV1Namespace", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Namespace", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified Namespace", + "operationId": "replaceCoreV1Namespace", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Namespace", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{name}/finalize": { + "parameters": [ + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "name of the Namespace", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "put": { + "consumes": [ + "*/*" + ], + "description": "replace finalize of the specified Namespace", + "operationId": "replaceCoreV1NamespaceFinalize", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" + } + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Namespace", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified Namespace", + "operationId": "readCoreV1NamespaceStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Namespace", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Namespace", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified Namespace", + "operationId": "patchCoreV1NamespaceStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Namespace", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified Namespace", + "operationId": "replaceCoreV1NamespaceStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Namespace", + "version": "v1" + } + } + }, + "/api/v1/nodes": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of Node", + "operationId": "deleteCoreV1CollectionNode", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Node", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Node", + "operationId": "listCoreV1Node", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Node", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a Node", + "operationId": "createCoreV1Node", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Node" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Node" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Node" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Node" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Node", + "version": "v1" + } + } + }, + "/api/v1/nodes/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a Node", + "operationId": "deleteCoreV1Node", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Node", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified Node", + "operationId": "readCoreV1Node", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Node" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Node", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Node", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified Node", + "operationId": "patchCoreV1Node", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Node" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Node" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Node", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified Node", + "operationId": "replaceCoreV1Node", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Node" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Node" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Node" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Node", + "version": "v1" + } + } + }, + "/api/v1/nodes/{name}/proxy": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "connect DELETE requests to proxy of Node", + "operationId": "connectCoreV1DeleteNodeProxy", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "NodeProxyOptions", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "connect GET requests to proxy of Node", + "operationId": "connectCoreV1GetNodeProxy", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "NodeProxyOptions", + "version": "v1" + } + }, + "head": { + "consumes": [ + "*/*" + ], + "description": "connect HEAD requests to proxy of Node", + "operationId": "connectCoreV1HeadNodeProxy", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "NodeProxyOptions", + "version": "v1" + } + }, + "options": { + "consumes": [ + "*/*" + ], + "description": "connect OPTIONS requests to proxy of Node", + "operationId": "connectCoreV1OptionsNodeProxy", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "NodeProxyOptions", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the NodeProxyOptions", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/path-rFDtV0x9" + } + ], + "patch": { + "consumes": [ + "*/*" + ], + "description": "connect PATCH requests to proxy of Node", + "operationId": "connectCoreV1PatchNodeProxy", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "NodeProxyOptions", + "version": "v1" + } + }, + "post": { + "consumes": [ + "*/*" + ], + "description": "connect POST requests to proxy of Node", + "operationId": "connectCoreV1PostNodeProxy", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "NodeProxyOptions", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "connect PUT requests to proxy of Node", + "operationId": "connectCoreV1PutNodeProxy", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "NodeProxyOptions", + "version": "v1" + } + } + }, + "/api/v1/nodes/{name}/proxy/{path}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "connect DELETE requests to proxy of Node", + "operationId": "connectCoreV1DeleteNodeProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "NodeProxyOptions", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "connect GET requests to proxy of Node", + "operationId": "connectCoreV1GetNodeProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "NodeProxyOptions", + "version": "v1" + } + }, + "head": { + "consumes": [ + "*/*" + ], + "description": "connect HEAD requests to proxy of Node", + "operationId": "connectCoreV1HeadNodeProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "NodeProxyOptions", + "version": "v1" + } + }, + "options": { + "consumes": [ + "*/*" + ], + "description": "connect OPTIONS requests to proxy of Node", + "operationId": "connectCoreV1OptionsNodeProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "NodeProxyOptions", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the NodeProxyOptions", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/path-z6Ciiujn" + }, + { + "$ref": "#/parameters/path-rFDtV0x9" + } + ], + "patch": { + "consumes": [ + "*/*" + ], + "description": "connect PATCH requests to proxy of Node", + "operationId": "connectCoreV1PatchNodeProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "NodeProxyOptions", + "version": "v1" + } + }, + "post": { + "consumes": [ + "*/*" + ], + "description": "connect POST requests to proxy of Node", + "operationId": "connectCoreV1PostNodeProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "NodeProxyOptions", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "connect PUT requests to proxy of Node", + "operationId": "connectCoreV1PutNodeProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "NodeProxyOptions", + "version": "v1" + } + } + }, + "/api/v1/nodes/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified Node", + "operationId": "readCoreV1NodeStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Node" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Node", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Node", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified Node", + "operationId": "patchCoreV1NodeStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Node" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Node" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Node", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified Node", + "operationId": "replaceCoreV1NodeStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Node" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Node" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Node" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Node", + "version": "v1" + } + } + }, + "/api/v1/persistentvolumeclaims": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PersistentVolumeClaim", + "operationId": "listCoreV1PersistentVolumeClaimForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaimList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PersistentVolumeClaim", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/persistentvolumes": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of PersistentVolume", + "operationId": "deleteCoreV1CollectionPersistentVolume", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PersistentVolume", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PersistentVolume", + "operationId": "listCoreV1PersistentVolume", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PersistentVolume", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a PersistentVolume", + "operationId": "createCoreV1PersistentVolume", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PersistentVolume", + "version": "v1" + } + } + }, + "/api/v1/persistentvolumes/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a PersistentVolume", + "operationId": "deleteCoreV1PersistentVolume", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PersistentVolume", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified PersistentVolume", + "operationId": "readCoreV1PersistentVolume", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PersistentVolume", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the PersistentVolume", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified PersistentVolume", + "operationId": "patchCoreV1PersistentVolume", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PersistentVolume", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified PersistentVolume", + "operationId": "replaceCoreV1PersistentVolume", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PersistentVolume", + "version": "v1" + } + } + }, + "/api/v1/persistentvolumes/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified PersistentVolume", + "operationId": "readCoreV1PersistentVolumeStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PersistentVolume", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the PersistentVolume", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified PersistentVolume", + "operationId": "patchCoreV1PersistentVolumeStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PersistentVolume", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified PersistentVolume", + "operationId": "replaceCoreV1PersistentVolumeStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PersistentVolume", + "version": "v1" + } + } + }, + "/api/v1/pods": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Pod", + "operationId": "listCoreV1PodForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Pod", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/podtemplates": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PodTemplate", + "operationId": "listCoreV1PodTemplateForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodTemplate", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/replicationcontrollers": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ReplicationController", + "operationId": "listCoreV1ReplicationControllerForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationControllerList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ReplicationController", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/resourcequotas": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceQuota", + "operationId": "listCoreV1ResourceQuotaForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuotaList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ResourceQuota", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/secrets": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Secret", + "operationId": "listCoreV1SecretForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Secret", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/serviceaccounts": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ServiceAccount", + "operationId": "listCoreV1ServiceAccountForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccountList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ServiceAccount", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/services": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Service", + "operationId": "listCoreV1ServiceForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ServiceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Service", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/configmaps": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ConfigMap. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoreV1ConfigMapListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ConfigMap", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/endpoints": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of Endpoints. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoreV1EndpointsListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Endpoints", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/events": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoreV1EventListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Event", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/limitranges": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of LimitRange. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoreV1LimitRangeListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "LimitRange", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/namespaces": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of Namespace. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoreV1NamespaceList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Namespace", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/namespaces/{namespace}/configmaps": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ConfigMap. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoreV1NamespacedConfigMapList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ConfigMap", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/namespaces/{namespace}/configmaps/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ConfigMap. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCoreV1NamespacedConfigMap", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ConfigMap", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ConfigMap", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/namespaces/{namespace}/endpoints": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of Endpoints. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoreV1NamespacedEndpointsList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Endpoints", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/namespaces/{namespace}/endpoints/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind Endpoints. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCoreV1NamespacedEndpoints", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Endpoints", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the Endpoints", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/namespaces/{namespace}/events": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoreV1NamespacedEventList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Event", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/namespaces/{namespace}/events/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind Event. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCoreV1NamespacedEvent", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Event", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the Event", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/namespaces/{namespace}/limitranges": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of LimitRange. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoreV1NamespacedLimitRangeList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "LimitRange", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/namespaces/{namespace}/limitranges/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind LimitRange. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCoreV1NamespacedLimitRange", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "LimitRange", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the LimitRange", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of PersistentVolumeClaim. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoreV1NamespacedPersistentVolumeClaimList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PersistentVolumeClaim", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind PersistentVolumeClaim. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCoreV1NamespacedPersistentVolumeClaim", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PersistentVolumeClaim", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the PersistentVolumeClaim", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/namespaces/{namespace}/pods": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of Pod. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoreV1NamespacedPodList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Pod", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/namespaces/{namespace}/pods/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind Pod. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCoreV1NamespacedPod", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Pod", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the Pod", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/namespaces/{namespace}/podtemplates": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of PodTemplate. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoreV1NamespacedPodTemplateList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodTemplate", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/namespaces/{namespace}/podtemplates/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind PodTemplate. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCoreV1NamespacedPodTemplate", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodTemplate", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the PodTemplate", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/namespaces/{namespace}/replicationcontrollers": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ReplicationController. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoreV1NamespacedReplicationControllerList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ReplicationController", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/namespaces/{namespace}/replicationcontrollers/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ReplicationController. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCoreV1NamespacedReplicationController", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ReplicationController", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ReplicationController", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/namespaces/{namespace}/resourcequotas": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ResourceQuota. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoreV1NamespacedResourceQuotaList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ResourceQuota", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/namespaces/{namespace}/resourcequotas/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ResourceQuota. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCoreV1NamespacedResourceQuota", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ResourceQuota", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ResourceQuota", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/namespaces/{namespace}/secrets": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of Secret. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoreV1NamespacedSecretList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Secret", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/namespaces/{namespace}/secrets/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind Secret. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCoreV1NamespacedSecret", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Secret", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the Secret", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/namespaces/{namespace}/serviceaccounts": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ServiceAccount. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoreV1NamespacedServiceAccountList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ServiceAccount", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/namespaces/{namespace}/serviceaccounts/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ServiceAccount. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCoreV1NamespacedServiceAccount", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ServiceAccount", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ServiceAccount", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/namespaces/{namespace}/services": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of Service. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoreV1NamespacedServiceList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Service", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/namespaces/{namespace}/services/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind Service. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCoreV1NamespacedService", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Service", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the Service", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/namespaces/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind Namespace. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCoreV1Namespace", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Namespace", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the Namespace", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/nodes": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of Node. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoreV1NodeList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Node", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/nodes/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind Node. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCoreV1Node", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Node", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the Node", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/persistentvolumeclaims": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of PersistentVolumeClaim. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoreV1PersistentVolumeClaimListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PersistentVolumeClaim", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/persistentvolumes": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of PersistentVolume. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoreV1PersistentVolumeList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PersistentVolume", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/persistentvolumes/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind PersistentVolume. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCoreV1PersistentVolume", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PersistentVolume", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the PersistentVolume", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/pods": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of Pod. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoreV1PodListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Pod", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/podtemplates": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of PodTemplate. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoreV1PodTemplateListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodTemplate", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/replicationcontrollers": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ReplicationController. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoreV1ReplicationControllerListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ReplicationController", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/resourcequotas": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ResourceQuota. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoreV1ResourceQuotaListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ResourceQuota", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/secrets": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of Secret. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoreV1SecretListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Secret", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/serviceaccounts": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ServiceAccount. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoreV1ServiceAccountListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ServiceAccount", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/api/v1/watch/services": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of Service. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoreV1ServiceListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Service", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available API versions", + "operationId": "getAPIVersions", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroupList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apis" + ] + } + }, + "/apis/admissionregistration.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getAdmissionregistrationAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration" + ] + } + }, + "/apis/admissionregistration.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAdmissionregistrationV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1" + ] + } + }, + "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of MutatingWebhookConfiguration", + "operationId": "deleteAdmissionregistrationV1CollectionMutatingWebhookConfiguration", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "MutatingWebhookConfiguration", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind MutatingWebhookConfiguration", + "operationId": "listAdmissionregistrationV1MutatingWebhookConfiguration", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "MutatingWebhookConfiguration", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a MutatingWebhookConfiguration", + "operationId": "createAdmissionregistrationV1MutatingWebhookConfiguration", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "MutatingWebhookConfiguration", + "version": "v1" + } + } + }, + "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a MutatingWebhookConfiguration", + "operationId": "deleteAdmissionregistrationV1MutatingWebhookConfiguration", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "MutatingWebhookConfiguration", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified MutatingWebhookConfiguration", + "operationId": "readAdmissionregistrationV1MutatingWebhookConfiguration", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "MutatingWebhookConfiguration", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the MutatingWebhookConfiguration", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified MutatingWebhookConfiguration", + "operationId": "patchAdmissionregistrationV1MutatingWebhookConfiguration", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "MutatingWebhookConfiguration", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified MutatingWebhookConfiguration", + "operationId": "replaceAdmissionregistrationV1MutatingWebhookConfiguration", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "MutatingWebhookConfiguration", + "version": "v1" + } + } + }, + "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ValidatingWebhookConfiguration", + "operationId": "deleteAdmissionregistrationV1CollectionValidatingWebhookConfiguration", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingWebhookConfiguration", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ValidatingWebhookConfiguration", + "operationId": "listAdmissionregistrationV1ValidatingWebhookConfiguration", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingWebhookConfiguration", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ValidatingWebhookConfiguration", + "operationId": "createAdmissionregistrationV1ValidatingWebhookConfiguration", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingWebhookConfiguration", + "version": "v1" + } + } + }, + "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ValidatingWebhookConfiguration", + "operationId": "deleteAdmissionregistrationV1ValidatingWebhookConfiguration", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingWebhookConfiguration", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ValidatingWebhookConfiguration", + "operationId": "readAdmissionregistrationV1ValidatingWebhookConfiguration", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingWebhookConfiguration", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ValidatingWebhookConfiguration", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ValidatingWebhookConfiguration", + "operationId": "patchAdmissionregistrationV1ValidatingWebhookConfiguration", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingWebhookConfiguration", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ValidatingWebhookConfiguration", + "operationId": "replaceAdmissionregistrationV1ValidatingWebhookConfiguration", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingWebhookConfiguration", + "version": "v1" + } + } + }, + "/apis/admissionregistration.k8s.io/v1/watch/mutatingwebhookconfigurations": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of MutatingWebhookConfiguration. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAdmissionregistrationV1MutatingWebhookConfigurationList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "MutatingWebhookConfiguration", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/admissionregistration.k8s.io/v1/watch/mutatingwebhookconfigurations/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind MutatingWebhookConfiguration. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchAdmissionregistrationV1MutatingWebhookConfiguration", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "MutatingWebhookConfiguration", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the MutatingWebhookConfiguration", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/admissionregistration.k8s.io/v1/watch/validatingwebhookconfigurations": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ValidatingWebhookConfiguration. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAdmissionregistrationV1ValidatingWebhookConfigurationList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingWebhookConfiguration", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/admissionregistration.k8s.io/v1/watch/validatingwebhookconfigurations/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ValidatingWebhookConfiguration. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchAdmissionregistrationV1ValidatingWebhookConfiguration", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingWebhookConfiguration", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ValidatingWebhookConfiguration", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/admissionregistration.k8s.io/v1alpha1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAdmissionregistrationV1alpha1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ] + } + }, + "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ValidatingAdmissionPolicy", + "operationId": "deleteAdmissionregistrationV1alpha1CollectionValidatingAdmissionPolicy", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ValidatingAdmissionPolicy", + "operationId": "listAdmissionregistrationV1alpha1ValidatingAdmissionPolicy", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ValidatingAdmissionPolicy", + "operationId": "createAdmissionregistrationV1alpha1ValidatingAdmissionPolicy", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + } + }, + "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ValidatingAdmissionPolicy", + "operationId": "deleteAdmissionregistrationV1alpha1ValidatingAdmissionPolicy", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ValidatingAdmissionPolicy", + "operationId": "readAdmissionregistrationV1alpha1ValidatingAdmissionPolicy", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the ValidatingAdmissionPolicy", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ValidatingAdmissionPolicy", + "operationId": "patchAdmissionregistrationV1alpha1ValidatingAdmissionPolicy", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ValidatingAdmissionPolicy", + "operationId": "replaceAdmissionregistrationV1alpha1ValidatingAdmissionPolicy", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + } + }, + "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified ValidatingAdmissionPolicy", + "operationId": "readAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the ValidatingAdmissionPolicy", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified ValidatingAdmissionPolicy", + "operationId": "patchAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified ValidatingAdmissionPolicy", + "operationId": "replaceAdmissionregistrationV1alpha1ValidatingAdmissionPolicyStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + } + }, + "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ValidatingAdmissionPolicyBinding", + "operationId": "deleteAdmissionregistrationV1alpha1CollectionValidatingAdmissionPolicyBinding", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ValidatingAdmissionPolicyBinding", + "operationId": "listAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ValidatingAdmissionPolicyBinding", + "operationId": "createAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + } + }, + "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ValidatingAdmissionPolicyBinding", + "operationId": "deleteAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ValidatingAdmissionPolicyBinding", + "operationId": "readAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the ValidatingAdmissionPolicyBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ValidatingAdmissionPolicyBinding", + "operationId": "patchAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ValidatingAdmissionPolicyBinding", + "operationId": "replaceAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + } + }, + "/apis/admissionregistration.k8s.io/v1alpha1/watch/validatingadmissionpolicies": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ValidatingAdmissionPolicy. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAdmissionregistrationV1alpha1ValidatingAdmissionPolicyList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/admissionregistration.k8s.io/v1alpha1/watch/validatingadmissionpolicies/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ValidatingAdmissionPolicy. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchAdmissionregistrationV1alpha1ValidatingAdmissionPolicy", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ValidatingAdmissionPolicy", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/admissionregistration.k8s.io/v1alpha1/watch/validatingadmissionpolicybindings": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ValidatingAdmissionPolicyBinding. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/admissionregistration.k8s.io/v1alpha1/watch/validatingadmissionpolicybindings/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ValidatingAdmissionPolicyBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ValidatingAdmissionPolicyBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/admissionregistration.k8s.io/v1beta1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAdmissionregistrationV1beta1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1beta1" + ] + } + }, + "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ValidatingAdmissionPolicy", + "operationId": "deleteAdmissionregistrationV1beta1CollectionValidatingAdmissionPolicy", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1beta1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1beta1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ValidatingAdmissionPolicy", + "operationId": "listAdmissionregistrationV1beta1ValidatingAdmissionPolicy", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1beta1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1beta1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ValidatingAdmissionPolicy", + "operationId": "createAdmissionregistrationV1beta1ValidatingAdmissionPolicy", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1beta1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1beta1" + } + } + }, + "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ValidatingAdmissionPolicy", + "operationId": "deleteAdmissionregistrationV1beta1ValidatingAdmissionPolicy", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1beta1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1beta1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ValidatingAdmissionPolicy", + "operationId": "readAdmissionregistrationV1beta1ValidatingAdmissionPolicy", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1beta1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1beta1" + } + }, + "parameters": [ + { + "description": "name of the ValidatingAdmissionPolicy", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ValidatingAdmissionPolicy", + "operationId": "patchAdmissionregistrationV1beta1ValidatingAdmissionPolicy", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1beta1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1beta1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ValidatingAdmissionPolicy", + "operationId": "replaceAdmissionregistrationV1beta1ValidatingAdmissionPolicy", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1beta1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1beta1" + } + } + }, + "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified ValidatingAdmissionPolicy", + "operationId": "readAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1beta1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1beta1" + } + }, + "parameters": [ + { + "description": "name of the ValidatingAdmissionPolicy", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified ValidatingAdmissionPolicy", + "operationId": "patchAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1beta1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1beta1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified ValidatingAdmissionPolicy", + "operationId": "replaceAdmissionregistrationV1beta1ValidatingAdmissionPolicyStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1beta1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1beta1" + } + } + }, + "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ValidatingAdmissionPolicyBinding", + "operationId": "deleteAdmissionregistrationV1beta1CollectionValidatingAdmissionPolicyBinding", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1beta1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1beta1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ValidatingAdmissionPolicyBinding", + "operationId": "listAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1beta1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1beta1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ValidatingAdmissionPolicyBinding", + "operationId": "createAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1beta1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1beta1" + } + } + }, + "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ValidatingAdmissionPolicyBinding", + "operationId": "deleteAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1beta1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1beta1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ValidatingAdmissionPolicyBinding", + "operationId": "readAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1beta1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1beta1" + } + }, + "parameters": [ + { + "description": "name of the ValidatingAdmissionPolicyBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ValidatingAdmissionPolicyBinding", + "operationId": "patchAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1beta1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1beta1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ValidatingAdmissionPolicyBinding", + "operationId": "replaceAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1beta1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1beta1" + } + } + }, + "/apis/admissionregistration.k8s.io/v1beta1/watch/validatingadmissionpolicies": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ValidatingAdmissionPolicy. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAdmissionregistrationV1beta1ValidatingAdmissionPolicyList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1beta1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1beta1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/admissionregistration.k8s.io/v1beta1/watch/validatingadmissionpolicies/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ValidatingAdmissionPolicy. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchAdmissionregistrationV1beta1ValidatingAdmissionPolicy", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1beta1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1beta1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ValidatingAdmissionPolicy", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/admissionregistration.k8s.io/v1beta1/watch/validatingadmissionpolicybindings": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ValidatingAdmissionPolicyBinding. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1beta1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1beta1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/admissionregistration.k8s.io/v1beta1/watch/validatingadmissionpolicybindings/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ValidatingAdmissionPolicyBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1beta1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1beta1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ValidatingAdmissionPolicyBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/apiextensions.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getApiextensionsAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiextensions" + ] + } + }, + "/apis/apiextensions.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getApiextensionsV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiextensions_v1" + ] + } + }, + "/apis/apiextensions.k8s.io/v1/customresourcedefinitions": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of CustomResourceDefinition", + "operationId": "deleteApiextensionsV1CollectionCustomResourceDefinition", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiextensions_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind CustomResourceDefinition", + "operationId": "listApiextensionsV1CustomResourceDefinition", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiextensions_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a CustomResourceDefinition", + "operationId": "createApiextensionsV1CustomResourceDefinition", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiextensions_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", + "version": "v1" + } + } + }, + "/apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a CustomResourceDefinition", + "operationId": "deleteApiextensionsV1CustomResourceDefinition", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiextensions_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified CustomResourceDefinition", + "operationId": "readApiextensionsV1CustomResourceDefinition", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiextensions_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the CustomResourceDefinition", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified CustomResourceDefinition", + "operationId": "patchApiextensionsV1CustomResourceDefinition", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiextensions_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified CustomResourceDefinition", + "operationId": "replaceApiextensionsV1CustomResourceDefinition", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiextensions_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", + "version": "v1" + } + } + }, + "/apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified CustomResourceDefinition", + "operationId": "readApiextensionsV1CustomResourceDefinitionStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiextensions_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the CustomResourceDefinition", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified CustomResourceDefinition", + "operationId": "patchApiextensionsV1CustomResourceDefinitionStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiextensions_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified CustomResourceDefinition", + "operationId": "replaceApiextensionsV1CustomResourceDefinitionStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiextensions_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", + "version": "v1" + } + } + }, + "/apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of CustomResourceDefinition. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchApiextensionsV1CustomResourceDefinitionList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiextensions_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind CustomResourceDefinition. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchApiextensionsV1CustomResourceDefinition", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiextensions_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the CustomResourceDefinition", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/apiregistration.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getApiregistrationAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiregistration" + ] + } + }, + "/apis/apiregistration.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getApiregistrationV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiregistration_v1" + ] + } + }, + "/apis/apiregistration.k8s.io/v1/apiservices": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of APIService", + "operationId": "deleteApiregistrationV1CollectionAPIService", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiregistration_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "apiregistration.k8s.io", + "kind": "APIService", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind APIService", + "operationId": "listApiregistrationV1APIService", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiregistration_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "apiregistration.k8s.io", + "kind": "APIService", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create an APIService", + "operationId": "createApiregistrationV1APIService", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiregistration_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "apiregistration.k8s.io", + "kind": "APIService", + "version": "v1" + } + } + }, + "/apis/apiregistration.k8s.io/v1/apiservices/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete an APIService", + "operationId": "deleteApiregistrationV1APIService", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiregistration_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "apiregistration.k8s.io", + "kind": "APIService", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified APIService", + "operationId": "readApiregistrationV1APIService", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiregistration_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "apiregistration.k8s.io", + "kind": "APIService", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the APIService", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified APIService", + "operationId": "patchApiregistrationV1APIService", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiregistration_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "apiregistration.k8s.io", + "kind": "APIService", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified APIService", + "operationId": "replaceApiregistrationV1APIService", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiregistration_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "apiregistration.k8s.io", + "kind": "APIService", + "version": "v1" + } + } + }, + "/apis/apiregistration.k8s.io/v1/apiservices/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified APIService", + "operationId": "readApiregistrationV1APIServiceStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiregistration_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "apiregistration.k8s.io", + "kind": "APIService", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the APIService", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified APIService", + "operationId": "patchApiregistrationV1APIServiceStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiregistration_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "apiregistration.k8s.io", + "kind": "APIService", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified APIService", + "operationId": "replaceApiregistrationV1APIServiceStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiregistration_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "apiregistration.k8s.io", + "kind": "APIService", + "version": "v1" + } + } + }, + "/apis/apiregistration.k8s.io/v1/watch/apiservices": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of APIService. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchApiregistrationV1APIServiceList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiregistration_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "apiregistration.k8s.io", + "kind": "APIService", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/apiregistration.k8s.io/v1/watch/apiservices/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind APIService. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchApiregistrationV1APIService", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiregistration_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "apiregistration.k8s.io", + "kind": "APIService", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the APIService", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/apps/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getAppsAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps" + ] + } + }, + "/apis/apps/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAppsV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ] + } + }, + "/apis/apps/v1/controllerrevisions": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ControllerRevision", + "operationId": "listAppsV1ControllerRevisionForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevisionList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ControllerRevision", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/apps/v1/daemonsets": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind DaemonSet", + "operationId": "listAppsV1DaemonSetForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSetList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "DaemonSet", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/apps/v1/deployments": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Deployment", + "operationId": "listAppsV1DeploymentForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DeploymentList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "Deployment", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/apps/v1/namespaces/{namespace}/controllerrevisions": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ControllerRevision", + "operationId": "deleteAppsV1CollectionNamespacedControllerRevision", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ControllerRevision", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ControllerRevision", + "operationId": "listAppsV1NamespacedControllerRevision", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevisionList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ControllerRevision", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ControllerRevision", + "operationId": "createAppsV1NamespacedControllerRevision", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ControllerRevision", + "version": "v1" + } + } + }, + "/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ControllerRevision", + "operationId": "deleteAppsV1NamespacedControllerRevision", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ControllerRevision", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ControllerRevision", + "operationId": "readAppsV1NamespacedControllerRevision", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ControllerRevision", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ControllerRevision", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ControllerRevision", + "operationId": "patchAppsV1NamespacedControllerRevision", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ControllerRevision", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ControllerRevision", + "operationId": "replaceAppsV1NamespacedControllerRevision", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ControllerRevision", + "version": "v1" + } + } + }, + "/apis/apps/v1/namespaces/{namespace}/daemonsets": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of DaemonSet", + "operationId": "deleteAppsV1CollectionNamespacedDaemonSet", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "DaemonSet", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind DaemonSet", + "operationId": "listAppsV1NamespacedDaemonSet", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSetList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "DaemonSet", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a DaemonSet", + "operationId": "createAppsV1NamespacedDaemonSet", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "DaemonSet", + "version": "v1" + } + } + }, + "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a DaemonSet", + "operationId": "deleteAppsV1NamespacedDaemonSet", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "DaemonSet", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified DaemonSet", + "operationId": "readAppsV1NamespacedDaemonSet", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "DaemonSet", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the DaemonSet", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified DaemonSet", + "operationId": "patchAppsV1NamespacedDaemonSet", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "DaemonSet", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified DaemonSet", + "operationId": "replaceAppsV1NamespacedDaemonSet", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "DaemonSet", + "version": "v1" + } + } + }, + "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified DaemonSet", + "operationId": "readAppsV1NamespacedDaemonSetStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "DaemonSet", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the DaemonSet", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified DaemonSet", + "operationId": "patchAppsV1NamespacedDaemonSetStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "DaemonSet", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified DaemonSet", + "operationId": "replaceAppsV1NamespacedDaemonSetStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "DaemonSet", + "version": "v1" + } + } + }, + "/apis/apps/v1/namespaces/{namespace}/deployments": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of Deployment", + "operationId": "deleteAppsV1CollectionNamespacedDeployment", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "Deployment", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Deployment", + "operationId": "listAppsV1NamespacedDeployment", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DeploymentList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "Deployment", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a Deployment", + "operationId": "createAppsV1NamespacedDeployment", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "Deployment", + "version": "v1" + } + } + }, + "/apis/apps/v1/namespaces/{namespace}/deployments/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a Deployment", + "operationId": "deleteAppsV1NamespacedDeployment", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "Deployment", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified Deployment", + "operationId": "readAppsV1NamespacedDeployment", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "Deployment", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Deployment", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified Deployment", + "operationId": "patchAppsV1NamespacedDeployment", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "Deployment", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified Deployment", + "operationId": "replaceAppsV1NamespacedDeployment", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "Deployment", + "version": "v1" + } + } + }, + "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read scale of the specified Deployment", + "operationId": "readAppsV1NamespacedDeploymentScale", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Scale", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update scale of the specified Deployment", + "operationId": "patchAppsV1NamespacedDeploymentScale", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace scale of the specified Deployment", + "operationId": "replaceAppsV1NamespacedDeploymentScale", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" + } + } + }, + "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified Deployment", + "operationId": "readAppsV1NamespacedDeploymentStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "Deployment", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Deployment", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified Deployment", + "operationId": "patchAppsV1NamespacedDeploymentStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "Deployment", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified Deployment", + "operationId": "replaceAppsV1NamespacedDeploymentStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "Deployment", + "version": "v1" + } + } + }, + "/apis/apps/v1/namespaces/{namespace}/replicasets": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ReplicaSet", + "operationId": "deleteAppsV1CollectionNamespacedReplicaSet", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ReplicaSet", + "operationId": "listAppsV1NamespacedReplicaSet", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSetList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ReplicaSet", + "operationId": "createAppsV1NamespacedReplicaSet", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + } + } + }, + "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ReplicaSet", + "operationId": "deleteAppsV1NamespacedReplicaSet", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ReplicaSet", + "operationId": "readAppsV1NamespacedReplicaSet", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ReplicaSet", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ReplicaSet", + "operationId": "patchAppsV1NamespacedReplicaSet", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ReplicaSet", + "operationId": "replaceAppsV1NamespacedReplicaSet", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + } + } + }, + "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read scale of the specified ReplicaSet", + "operationId": "readAppsV1NamespacedReplicaSetScale", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Scale", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update scale of the specified ReplicaSet", + "operationId": "patchAppsV1NamespacedReplicaSetScale", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace scale of the specified ReplicaSet", + "operationId": "replaceAppsV1NamespacedReplicaSetScale", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" + } + } + }, + "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified ReplicaSet", + "operationId": "readAppsV1NamespacedReplicaSetStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ReplicaSet", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified ReplicaSet", + "operationId": "patchAppsV1NamespacedReplicaSetStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified ReplicaSet", + "operationId": "replaceAppsV1NamespacedReplicaSetStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + } + } + }, + "/apis/apps/v1/namespaces/{namespace}/statefulsets": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of StatefulSet", + "operationId": "deleteAppsV1CollectionNamespacedStatefulSet", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind StatefulSet", + "operationId": "listAppsV1NamespacedStatefulSet", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSetList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a StatefulSet", + "operationId": "createAppsV1NamespacedStatefulSet", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + } + }, + "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a StatefulSet", + "operationId": "deleteAppsV1NamespacedStatefulSet", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified StatefulSet", + "operationId": "readAppsV1NamespacedStatefulSet", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the StatefulSet", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified StatefulSet", + "operationId": "patchAppsV1NamespacedStatefulSet", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified StatefulSet", + "operationId": "replaceAppsV1NamespacedStatefulSet", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + } + }, + "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read scale of the specified StatefulSet", + "operationId": "readAppsV1NamespacedStatefulSetScale", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Scale", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update scale of the specified StatefulSet", + "operationId": "patchAppsV1NamespacedStatefulSetScale", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace scale of the specified StatefulSet", + "operationId": "replaceAppsV1NamespacedStatefulSetScale", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" + } + } + }, + "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified StatefulSet", + "operationId": "readAppsV1NamespacedStatefulSetStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the StatefulSet", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified StatefulSet", + "operationId": "patchAppsV1NamespacedStatefulSetStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified StatefulSet", + "operationId": "replaceAppsV1NamespacedStatefulSetStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + } + }, + "/apis/apps/v1/replicasets": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ReplicaSet", + "operationId": "listAppsV1ReplicaSetForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSetList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/apps/v1/statefulsets": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind StatefulSet", + "operationId": "listAppsV1StatefulSetForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSetList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/apps/v1/watch/controllerrevisions": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ControllerRevision. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAppsV1ControllerRevisionListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ControllerRevision", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/apps/v1/watch/daemonsets": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of DaemonSet. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAppsV1DaemonSetListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "DaemonSet", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/apps/v1/watch/deployments": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of Deployment. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAppsV1DeploymentListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "Deployment", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ControllerRevision. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAppsV1NamespacedControllerRevisionList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ControllerRevision", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ControllerRevision. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchAppsV1NamespacedControllerRevision", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ControllerRevision", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ControllerRevision", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/apps/v1/watch/namespaces/{namespace}/daemonsets": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of DaemonSet. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAppsV1NamespacedDaemonSetList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "DaemonSet", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/apps/v1/watch/namespaces/{namespace}/daemonsets/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind DaemonSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchAppsV1NamespacedDaemonSet", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "DaemonSet", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the DaemonSet", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/apps/v1/watch/namespaces/{namespace}/deployments": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of Deployment. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAppsV1NamespacedDeploymentList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "Deployment", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/apps/v1/watch/namespaces/{namespace}/deployments/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind Deployment. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchAppsV1NamespacedDeployment", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "Deployment", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the Deployment", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/apps/v1/watch/namespaces/{namespace}/replicasets": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ReplicaSet. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAppsV1NamespacedReplicaSetList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/apps/v1/watch/namespaces/{namespace}/replicasets/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ReplicaSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchAppsV1NamespacedReplicaSet", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ReplicaSet", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/apps/v1/watch/namespaces/{namespace}/statefulsets": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of StatefulSet. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAppsV1NamespacedStatefulSetList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/apps/v1/watch/namespaces/{namespace}/statefulsets/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind StatefulSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchAppsV1NamespacedStatefulSet", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the StatefulSet", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/apps/v1/watch/replicasets": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ReplicaSet. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAppsV1ReplicaSetListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/apps/v1/watch/statefulsets": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of StatefulSet. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAppsV1StatefulSetListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/authentication.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getAuthenticationAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "authentication" + ] + } + }, + "/apis/authentication.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAuthenticationV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "authentication_v1" + ] + } + }, + "/apis/authentication.k8s.io/v1/selfsubjectreviews": { + "parameters": [ + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a SelfSubjectReview", + "operationId": "createAuthenticationV1SelfSubjectReview", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.authentication.v1.SelfSubjectReview" + } + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.authentication.v1.SelfSubjectReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.authentication.v1.SelfSubjectReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.authentication.v1.SelfSubjectReview" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "authentication_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", + "version": "v1" + } + } + }, + "/apis/authentication.k8s.io/v1/tokenreviews": { + "parameters": [ + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a TokenReview", + "operationId": "createAuthenticationV1TokenReview", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenReview" + } + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenReview" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "authentication_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authentication.k8s.io", + "kind": "TokenReview", + "version": "v1" + } + } + }, + "/apis/authentication.k8s.io/v1alpha1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAuthenticationV1alpha1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "authentication_v1alpha1" + ] + } + }, + "/apis/authentication.k8s.io/v1alpha1/selfsubjectreviews": { + "parameters": [ + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a SelfSubjectReview", + "operationId": "createAuthenticationV1alpha1SelfSubjectReview", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.authentication.v1alpha1.SelfSubjectReview" + } + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.authentication.v1alpha1.SelfSubjectReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.authentication.v1alpha1.SelfSubjectReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.authentication.v1alpha1.SelfSubjectReview" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "authentication_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", + "version": "v1alpha1" + } + } + }, + "/apis/authentication.k8s.io/v1beta1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAuthenticationV1beta1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "authentication_v1beta1" + ] + } + }, + "/apis/authentication.k8s.io/v1beta1/selfsubjectreviews": { + "parameters": [ + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a SelfSubjectReview", + "operationId": "createAuthenticationV1beta1SelfSubjectReview", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.authentication.v1beta1.SelfSubjectReview" + } + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.authentication.v1beta1.SelfSubjectReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.authentication.v1beta1.SelfSubjectReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.authentication.v1beta1.SelfSubjectReview" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "authentication_v1beta1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", + "version": "v1beta1" + } + } + }, + "/apis/authorization.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getAuthorizationAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "authorization" + ] + } + }, + "/apis/authorization.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAuthorizationV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "authorization_v1" + ] + } + }, + "/apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews": { + "parameters": [ + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a LocalSubjectAccessReview", + "operationId": "createAuthorizationV1NamespacedLocalSubjectAccessReview", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.LocalSubjectAccessReview" + } + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.LocalSubjectAccessReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.LocalSubjectAccessReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.LocalSubjectAccessReview" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "authorization_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authorization.k8s.io", + "kind": "LocalSubjectAccessReview", + "version": "v1" + } + } + }, + "/apis/authorization.k8s.io/v1/selfsubjectaccessreviews": { + "parameters": [ + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a SelfSubjectAccessReview", + "operationId": "createAuthorizationV1SelfSubjectAccessReview", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectAccessReview" + } + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectAccessReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectAccessReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectAccessReview" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "authorization_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authorization.k8s.io", + "kind": "SelfSubjectAccessReview", + "version": "v1" + } + } + }, + "/apis/authorization.k8s.io/v1/selfsubjectrulesreviews": { + "parameters": [ + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a SelfSubjectRulesReview", + "operationId": "createAuthorizationV1SelfSubjectRulesReview", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectRulesReview" + } + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectRulesReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectRulesReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectRulesReview" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "authorization_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authorization.k8s.io", + "kind": "SelfSubjectRulesReview", + "version": "v1" + } + } + }, + "/apis/authorization.k8s.io/v1/subjectaccessreviews": { + "parameters": [ + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a SubjectAccessReview", + "operationId": "createAuthorizationV1SubjectAccessReview", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReview" + } + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReview" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "authorization_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authorization.k8s.io", + "kind": "SubjectAccessReview", + "version": "v1" + } + } + }, + "/apis/autoscaling/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getAutoscalingAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling" + ] + } + }, + "/apis/autoscaling/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAutoscalingV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ] + } + }, + "/apis/autoscaling/v1/horizontalpodautoscalers": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind HorizontalPodAutoscaler", + "operationId": "listAutoscalingV1HorizontalPodAutoscalerForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of HorizontalPodAutoscaler", + "operationId": "deleteAutoscalingV1CollectionNamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind HorizontalPodAutoscaler", + "operationId": "listAutoscalingV1NamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a HorizontalPodAutoscaler", + "operationId": "createAutoscalingV1NamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" + } + } + }, + "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a HorizontalPodAutoscaler", + "operationId": "deleteAutoscalingV1NamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified HorizontalPodAutoscaler", + "operationId": "readAutoscalingV1NamespacedHorizontalPodAutoscaler", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the HorizontalPodAutoscaler", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified HorizontalPodAutoscaler", + "operationId": "patchAutoscalingV1NamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified HorizontalPodAutoscaler", + "operationId": "replaceAutoscalingV1NamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" + } + } + }, + "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified HorizontalPodAutoscaler", + "operationId": "readAutoscalingV1NamespacedHorizontalPodAutoscalerStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the HorizontalPodAutoscaler", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified HorizontalPodAutoscaler", + "operationId": "patchAutoscalingV1NamespacedHorizontalPodAutoscalerStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified HorizontalPodAutoscaler", + "operationId": "replaceAutoscalingV1NamespacedHorizontalPodAutoscalerStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" + } + } + }, + "/apis/autoscaling/v1/watch/horizontalpodautoscalers": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of HorizontalPodAutoscaler. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAutoscalingV1HorizontalPodAutoscalerListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of HorizontalPodAutoscaler. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAutoscalingV1NamespacedHorizontalPodAutoscalerList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind HorizontalPodAutoscaler. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchAutoscalingV1NamespacedHorizontalPodAutoscaler", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the HorizontalPodAutoscaler", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/autoscaling/v2/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAutoscalingV2APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v2" + ] + } + }, + "/apis/autoscaling/v2/horizontalpodautoscalers": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind HorizontalPodAutoscaler", + "operationId": "listAutoscalingV2HorizontalPodAutoscalerForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v2" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of HorizontalPodAutoscaler", + "operationId": "deleteAutoscalingV2CollectionNamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v2" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind HorizontalPodAutoscaler", + "operationId": "listAutoscalingV2NamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v2" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a HorizontalPodAutoscaler", + "operationId": "createAutoscalingV2NamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v2" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + } + } + }, + "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a HorizontalPodAutoscaler", + "operationId": "deleteAutoscalingV2NamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v2" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified HorizontalPodAutoscaler", + "operationId": "readAutoscalingV2NamespacedHorizontalPodAutoscaler", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v2" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + } + }, + "parameters": [ + { + "description": "name of the HorizontalPodAutoscaler", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified HorizontalPodAutoscaler", + "operationId": "patchAutoscalingV2NamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v2" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified HorizontalPodAutoscaler", + "operationId": "replaceAutoscalingV2NamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v2" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + } + } + }, + "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified HorizontalPodAutoscaler", + "operationId": "readAutoscalingV2NamespacedHorizontalPodAutoscalerStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v2" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + } + }, + "parameters": [ + { + "description": "name of the HorizontalPodAutoscaler", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified HorizontalPodAutoscaler", + "operationId": "patchAutoscalingV2NamespacedHorizontalPodAutoscalerStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v2" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified HorizontalPodAutoscaler", + "operationId": "replaceAutoscalingV2NamespacedHorizontalPodAutoscalerStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v2" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + } + } + }, + "/apis/autoscaling/v2/watch/horizontalpodautoscalers": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of HorizontalPodAutoscaler. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAutoscalingV2HorizontalPodAutoscalerListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v2" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/autoscaling/v2/watch/namespaces/{namespace}/horizontalpodautoscalers": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of HorizontalPodAutoscaler. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAutoscalingV2NamespacedHorizontalPodAutoscalerList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v2" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/autoscaling/v2/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind HorizontalPodAutoscaler. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchAutoscalingV2NamespacedHorizontalPodAutoscaler", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v2" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the HorizontalPodAutoscaler", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/batch/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getBatchAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch" + ] + } + }, + "/apis/batch/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getBatchV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ] + } + }, + "/apis/batch/v1/cronjobs": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind CronJob", + "operationId": "listBatchV1CronJobForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.CronJobList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "CronJob", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/batch/v1/jobs": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Job", + "operationId": "listBatchV1JobForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.JobList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "Job", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/batch/v1/namespaces/{namespace}/cronjobs": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of CronJob", + "operationId": "deleteBatchV1CollectionNamespacedCronJob", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "CronJob", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind CronJob", + "operationId": "listBatchV1NamespacedCronJob", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.CronJobList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "CronJob", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a CronJob", + "operationId": "createBatchV1NamespacedCronJob", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "CronJob", + "version": "v1" + } + } + }, + "/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a CronJob", + "operationId": "deleteBatchV1NamespacedCronJob", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "CronJob", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified CronJob", + "operationId": "readBatchV1NamespacedCronJob", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "CronJob", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the CronJob", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified CronJob", + "operationId": "patchBatchV1NamespacedCronJob", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "CronJob", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified CronJob", + "operationId": "replaceBatchV1NamespacedCronJob", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "CronJob", + "version": "v1" + } + } + }, + "/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified CronJob", + "operationId": "readBatchV1NamespacedCronJobStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "CronJob", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the CronJob", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified CronJob", + "operationId": "patchBatchV1NamespacedCronJobStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "CronJob", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified CronJob", + "operationId": "replaceBatchV1NamespacedCronJobStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "CronJob", + "version": "v1" + } + } + }, + "/apis/batch/v1/namespaces/{namespace}/jobs": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of Job", + "operationId": "deleteBatchV1CollectionNamespacedJob", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "Job", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Job", + "operationId": "listBatchV1NamespacedJob", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.JobList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "Job", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a Job", + "operationId": "createBatchV1NamespacedJob", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.Job" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.Job" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.Job" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.Job" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "Job", + "version": "v1" + } + } + }, + "/apis/batch/v1/namespaces/{namespace}/jobs/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a Job", + "operationId": "deleteBatchV1NamespacedJob", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "Job", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified Job", + "operationId": "readBatchV1NamespacedJob", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.Job" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "Job", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Job", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified Job", + "operationId": "patchBatchV1NamespacedJob", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.Job" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.Job" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "Job", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified Job", + "operationId": "replaceBatchV1NamespacedJob", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.Job" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.Job" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.Job" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "Job", + "version": "v1" + } + } + }, + "/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified Job", + "operationId": "readBatchV1NamespacedJobStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.Job" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "Job", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Job", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified Job", + "operationId": "patchBatchV1NamespacedJobStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.Job" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.Job" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "Job", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified Job", + "operationId": "replaceBatchV1NamespacedJobStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.Job" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.Job" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.Job" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "Job", + "version": "v1" + } + } + }, + "/apis/batch/v1/watch/cronjobs": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of CronJob. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchBatchV1CronJobListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "CronJob", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/batch/v1/watch/jobs": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of Job. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchBatchV1JobListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "Job", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/batch/v1/watch/namespaces/{namespace}/cronjobs": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of CronJob. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchBatchV1NamespacedCronJobList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "CronJob", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/batch/v1/watch/namespaces/{namespace}/cronjobs/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind CronJob. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchBatchV1NamespacedCronJob", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "CronJob", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the CronJob", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/batch/v1/watch/namespaces/{namespace}/jobs": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of Job. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchBatchV1NamespacedJobList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "Job", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind Job. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchBatchV1NamespacedJob", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "Job", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the Job", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/certificates.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getCertificatesAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates" + ] + } + }, + "/apis/certificates.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getCertificatesV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1" + ] + } + }, + "/apis/certificates.k8s.io/v1/certificatesigningrequests": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of CertificateSigningRequest", + "operationId": "deleteCertificatesV1CollectionCertificateSigningRequest", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind CertificateSigningRequest", + "operationId": "listCertificatesV1CertificateSigningRequest", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequestList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a CertificateSigningRequest", + "operationId": "createCertificatesV1CertificateSigningRequest", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" + } + } + }, + "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a CertificateSigningRequest", + "operationId": "deleteCertificatesV1CertificateSigningRequest", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified CertificateSigningRequest", + "operationId": "readCertificatesV1CertificateSigningRequest", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the CertificateSigningRequest", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified CertificateSigningRequest", + "operationId": "patchCertificatesV1CertificateSigningRequest", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified CertificateSigningRequest", + "operationId": "replaceCertificatesV1CertificateSigningRequest", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" + } + } + }, + "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read approval of the specified CertificateSigningRequest", + "operationId": "readCertificatesV1CertificateSigningRequestApproval", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the CertificateSigningRequest", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update approval of the specified CertificateSigningRequest", + "operationId": "patchCertificatesV1CertificateSigningRequestApproval", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace approval of the specified CertificateSigningRequest", + "operationId": "replaceCertificatesV1CertificateSigningRequestApproval", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" + } + } + }, + "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified CertificateSigningRequest", + "operationId": "readCertificatesV1CertificateSigningRequestStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the CertificateSigningRequest", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified CertificateSigningRequest", + "operationId": "patchCertificatesV1CertificateSigningRequestStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified CertificateSigningRequest", + "operationId": "replaceCertificatesV1CertificateSigningRequestStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" + } + } + }, + "/apis/certificates.k8s.io/v1/watch/certificatesigningrequests": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of CertificateSigningRequest. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCertificatesV1CertificateSigningRequestList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/certificates.k8s.io/v1/watch/certificatesigningrequests/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind CertificateSigningRequest. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCertificatesV1CertificateSigningRequest", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the CertificateSigningRequest", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/certificates.k8s.io/v1alpha1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getCertificatesV1alpha1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1alpha1" + ] + } + }, + "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ClusterTrustBundle", + "operationId": "deleteCertificatesV1alpha1CollectionClusterTrustBundle", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1alpha1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ClusterTrustBundle", + "operationId": "listCertificatesV1alpha1ClusterTrustBundle", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundleList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ClusterTrustBundle", + "operationId": "createCertificatesV1alpha1ClusterTrustBundle", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1alpha1" + } + } + }, + "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ClusterTrustBundle", + "operationId": "deleteCertificatesV1alpha1ClusterTrustBundle", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1alpha1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ClusterTrustBundle", + "operationId": "readCertificatesV1alpha1ClusterTrustBundle", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the ClusterTrustBundle", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ClusterTrustBundle", + "operationId": "patchCertificatesV1alpha1ClusterTrustBundle", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1alpha1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ClusterTrustBundle", + "operationId": "replaceCertificatesV1alpha1ClusterTrustBundle", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1alpha1" + } + } + }, + "/apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ClusterTrustBundle. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCertificatesV1alpha1ClusterTrustBundleList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1alpha1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ClusterTrustBundle. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCertificatesV1alpha1ClusterTrustBundle", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1alpha1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ClusterTrustBundle", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/coordination.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getCoordinationAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "coordination" + ] + } + }, + "/apis/coordination.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getCoordinationV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "coordination_v1" + ] + } + }, + "/apis/coordination.k8s.io/v1/leases": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Lease", + "operationId": "listCoordinationV1LeaseForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.coordination.v1.LeaseList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "coordination_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "coordination.k8s.io", + "kind": "Lease", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of Lease", + "operationId": "deleteCoordinationV1CollectionNamespacedLease", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "coordination_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "coordination.k8s.io", + "kind": "Lease", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Lease", + "operationId": "listCoordinationV1NamespacedLease", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.coordination.v1.LeaseList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "coordination_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "coordination.k8s.io", + "kind": "Lease", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a Lease", + "operationId": "createCoordinationV1NamespacedLease", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "coordination_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "coordination.k8s.io", + "kind": "Lease", + "version": "v1" + } + } + }, + "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a Lease", + "operationId": "deleteCoordinationV1NamespacedLease", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "coordination_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "coordination.k8s.io", + "kind": "Lease", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified Lease", + "operationId": "readCoordinationV1NamespacedLease", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "coordination_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "coordination.k8s.io", + "kind": "Lease", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Lease", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified Lease", + "operationId": "patchCoordinationV1NamespacedLease", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "coordination_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "coordination.k8s.io", + "kind": "Lease", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified Lease", + "operationId": "replaceCoordinationV1NamespacedLease", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "coordination_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "coordination.k8s.io", + "kind": "Lease", + "version": "v1" + } + } + }, + "/apis/coordination.k8s.io/v1/watch/leases": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of Lease. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoordinationV1LeaseListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "coordination_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "coordination.k8s.io", + "kind": "Lease", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of Lease. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoordinationV1NamespacedLeaseList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "coordination_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "coordination.k8s.io", + "kind": "Lease", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind Lease. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCoordinationV1NamespacedLease", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "coordination_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "coordination.k8s.io", + "kind": "Lease", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the Lease", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/discovery.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getDiscoveryAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "discovery" + ] + } + }, + "/apis/discovery.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getDiscoveryV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "discovery_v1" + ] + } + }, + "/apis/discovery.k8s.io/v1/endpointslices": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind EndpointSlice", + "operationId": "listDiscoveryV1EndpointSliceForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSliceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "discovery_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "discovery.k8s.io", + "kind": "EndpointSlice", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of EndpointSlice", + "operationId": "deleteDiscoveryV1CollectionNamespacedEndpointSlice", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "discovery_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "discovery.k8s.io", + "kind": "EndpointSlice", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind EndpointSlice", + "operationId": "listDiscoveryV1NamespacedEndpointSlice", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSliceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "discovery_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "discovery.k8s.io", + "kind": "EndpointSlice", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create an EndpointSlice", + "operationId": "createDiscoveryV1NamespacedEndpointSlice", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "discovery_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "discovery.k8s.io", + "kind": "EndpointSlice", + "version": "v1" + } + } + }, + "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete an EndpointSlice", + "operationId": "deleteDiscoveryV1NamespacedEndpointSlice", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "discovery_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "discovery.k8s.io", + "kind": "EndpointSlice", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified EndpointSlice", + "operationId": "readDiscoveryV1NamespacedEndpointSlice", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "discovery_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "discovery.k8s.io", + "kind": "EndpointSlice", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the EndpointSlice", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified EndpointSlice", + "operationId": "patchDiscoveryV1NamespacedEndpointSlice", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "discovery_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "discovery.k8s.io", + "kind": "EndpointSlice", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified EndpointSlice", + "operationId": "replaceDiscoveryV1NamespacedEndpointSlice", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "discovery_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "discovery.k8s.io", + "kind": "EndpointSlice", + "version": "v1" + } + } + }, + "/apis/discovery.k8s.io/v1/watch/endpointslices": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of EndpointSlice. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchDiscoveryV1EndpointSliceListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "discovery_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "discovery.k8s.io", + "kind": "EndpointSlice", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of EndpointSlice. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchDiscoveryV1NamespacedEndpointSliceList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "discovery_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "discovery.k8s.io", + "kind": "EndpointSlice", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind EndpointSlice. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchDiscoveryV1NamespacedEndpointSlice", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "discovery_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "discovery.k8s.io", + "kind": "EndpointSlice", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the EndpointSlice", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/events.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getEventsAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "events" + ] + } + }, + "/apis/events.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getEventsV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "events_v1" + ] + } + }, + "/apis/events.k8s.io/v1/events": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Event", + "operationId": "listEventsV1EventForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.events.v1.EventList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "events_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "events.k8s.io", + "kind": "Event", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/events.k8s.io/v1/namespaces/{namespace}/events": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of Event", + "operationId": "deleteEventsV1CollectionNamespacedEvent", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "events_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "events.k8s.io", + "kind": "Event", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Event", + "operationId": "listEventsV1NamespacedEvent", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.events.v1.EventList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "events_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "events.k8s.io", + "kind": "Event", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create an Event", + "operationId": "createEventsV1NamespacedEvent", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.events.v1.Event" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.events.v1.Event" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.events.v1.Event" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.events.v1.Event" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "events_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "events.k8s.io", + "kind": "Event", + "version": "v1" + } + } + }, + "/apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete an Event", + "operationId": "deleteEventsV1NamespacedEvent", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "events_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "events.k8s.io", + "kind": "Event", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified Event", + "operationId": "readEventsV1NamespacedEvent", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.events.v1.Event" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "events_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "events.k8s.io", + "kind": "Event", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Event", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified Event", + "operationId": "patchEventsV1NamespacedEvent", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.events.v1.Event" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.events.v1.Event" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "events_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "events.k8s.io", + "kind": "Event", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified Event", + "operationId": "replaceEventsV1NamespacedEvent", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.events.v1.Event" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.events.v1.Event" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.events.v1.Event" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "events_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "events.k8s.io", + "kind": "Event", + "version": "v1" + } + } + }, + "/apis/events.k8s.io/v1/watch/events": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchEventsV1EventListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "events_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "events.k8s.io", + "kind": "Event", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchEventsV1NamespacedEventList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "events_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "events.k8s.io", + "kind": "Event", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind Event. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchEventsV1NamespacedEvent", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "events_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "events.k8s.io", + "kind": "Event", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the Event", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getFlowcontrolApiserverAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver" + ] + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getFlowcontrolApiserverV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1" + ] + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of FlowSchema", + "operationId": "deleteFlowcontrolApiserverV1CollectionFlowSchema", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind FlowSchema", + "operationId": "listFlowcontrolApiserverV1FlowSchema", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchemaList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a FlowSchema", + "operationId": "createFlowcontrolApiserverV1FlowSchema", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" + } + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a FlowSchema", + "operationId": "deleteFlowcontrolApiserverV1FlowSchema", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified FlowSchema", + "operationId": "readFlowcontrolApiserverV1FlowSchema", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the FlowSchema", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified FlowSchema", + "operationId": "patchFlowcontrolApiserverV1FlowSchema", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified FlowSchema", + "operationId": "replaceFlowcontrolApiserverV1FlowSchema", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" + } + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified FlowSchema", + "operationId": "readFlowcontrolApiserverV1FlowSchemaStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the FlowSchema", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified FlowSchema", + "operationId": "patchFlowcontrolApiserverV1FlowSchemaStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified FlowSchema", + "operationId": "replaceFlowcontrolApiserverV1FlowSchemaStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" + } + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of PriorityLevelConfiguration", + "operationId": "deleteFlowcontrolApiserverV1CollectionPriorityLevelConfiguration", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PriorityLevelConfiguration", + "operationId": "listFlowcontrolApiserverV1PriorityLevelConfiguration", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a PriorityLevelConfiguration", + "operationId": "createFlowcontrolApiserverV1PriorityLevelConfiguration", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1" + } + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a PriorityLevelConfiguration", + "operationId": "deleteFlowcontrolApiserverV1PriorityLevelConfiguration", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified PriorityLevelConfiguration", + "operationId": "readFlowcontrolApiserverV1PriorityLevelConfiguration", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the PriorityLevelConfiguration", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified PriorityLevelConfiguration", + "operationId": "patchFlowcontrolApiserverV1PriorityLevelConfiguration", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified PriorityLevelConfiguration", + "operationId": "replaceFlowcontrolApiserverV1PriorityLevelConfiguration", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1" + } + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified PriorityLevelConfiguration", + "operationId": "readFlowcontrolApiserverV1PriorityLevelConfigurationStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the PriorityLevelConfiguration", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified PriorityLevelConfiguration", + "operationId": "patchFlowcontrolApiserverV1PriorityLevelConfigurationStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified PriorityLevelConfiguration", + "operationId": "replaceFlowcontrolApiserverV1PriorityLevelConfigurationStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1" + } + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of FlowSchema. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchFlowcontrolApiserverV1FlowSchemaList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind FlowSchema. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchFlowcontrolApiserverV1FlowSchema", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the FlowSchema", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of PriorityLevelConfiguration. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchFlowcontrolApiserverV1PriorityLevelConfigurationList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind PriorityLevelConfiguration. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchFlowcontrolApiserverV1PriorityLevelConfiguration", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the PriorityLevelConfiguration", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getFlowcontrolApiserverV1beta3APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ] + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of FlowSchema", + "operationId": "deleteFlowcontrolApiserverV1beta3CollectionFlowSchema", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind FlowSchema", + "operationId": "listFlowcontrolApiserverV1beta3FlowSchema", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchemaList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a FlowSchema", + "operationId": "createFlowcontrolApiserverV1beta3FlowSchema", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a FlowSchema", + "operationId": "deleteFlowcontrolApiserverV1beta3FlowSchema", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified FlowSchema", + "operationId": "readFlowcontrolApiserverV1beta3FlowSchema", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + }, + "parameters": [ + { + "description": "name of the FlowSchema", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified FlowSchema", + "operationId": "patchFlowcontrolApiserverV1beta3FlowSchema", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified FlowSchema", + "operationId": "replaceFlowcontrolApiserverV1beta3FlowSchema", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified FlowSchema", + "operationId": "readFlowcontrolApiserverV1beta3FlowSchemaStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + }, + "parameters": [ + { + "description": "name of the FlowSchema", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified FlowSchema", + "operationId": "patchFlowcontrolApiserverV1beta3FlowSchemaStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified FlowSchema", + "operationId": "replaceFlowcontrolApiserverV1beta3FlowSchemaStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of PriorityLevelConfiguration", + "operationId": "deleteFlowcontrolApiserverV1beta3CollectionPriorityLevelConfiguration", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PriorityLevelConfiguration", + "operationId": "listFlowcontrolApiserverV1beta3PriorityLevelConfiguration", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a PriorityLevelConfiguration", + "operationId": "createFlowcontrolApiserverV1beta3PriorityLevelConfiguration", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a PriorityLevelConfiguration", + "operationId": "deleteFlowcontrolApiserverV1beta3PriorityLevelConfiguration", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified PriorityLevelConfiguration", + "operationId": "readFlowcontrolApiserverV1beta3PriorityLevelConfiguration", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + }, + "parameters": [ + { + "description": "name of the PriorityLevelConfiguration", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified PriorityLevelConfiguration", + "operationId": "patchFlowcontrolApiserverV1beta3PriorityLevelConfiguration", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified PriorityLevelConfiguration", + "operationId": "replaceFlowcontrolApiserverV1beta3PriorityLevelConfiguration", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified PriorityLevelConfiguration", + "operationId": "readFlowcontrolApiserverV1beta3PriorityLevelConfigurationStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + }, + "parameters": [ + { + "description": "name of the PriorityLevelConfiguration", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified PriorityLevelConfiguration", + "operationId": "patchFlowcontrolApiserverV1beta3PriorityLevelConfigurationStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified PriorityLevelConfiguration", + "operationId": "replaceFlowcontrolApiserverV1beta3PriorityLevelConfigurationStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/watch/flowschemas": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of FlowSchema. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchFlowcontrolApiserverV1beta3FlowSchemaList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/watch/flowschemas/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind FlowSchema. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchFlowcontrolApiserverV1beta3FlowSchema", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the FlowSchema", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/watch/prioritylevelconfigurations": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of PriorityLevelConfiguration. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchFlowcontrolApiserverV1beta3PriorityLevelConfigurationList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/watch/prioritylevelconfigurations/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind PriorityLevelConfiguration. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchFlowcontrolApiserverV1beta3PriorityLevelConfiguration", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the PriorityLevelConfiguration", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/internal.apiserver.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getInternalApiserverAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "internalApiserver" + ] + } + }, + "/apis/internal.apiserver.k8s.io/v1alpha1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getInternalApiserverV1alpha1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "internalApiserver_v1alpha1" + ] + } + }, + "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of StorageVersion", + "operationId": "deleteInternalApiserverV1alpha1CollectionStorageVersion", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "internalApiserver_v1alpha1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind StorageVersion", + "operationId": "listInternalApiserverV1alpha1StorageVersion", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "internalApiserver_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a StorageVersion", + "operationId": "createInternalApiserverV1alpha1StorageVersion", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "internalApiserver_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" + } + } + }, + "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a StorageVersion", + "operationId": "deleteInternalApiserverV1alpha1StorageVersion", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "internalApiserver_v1alpha1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified StorageVersion", + "operationId": "readInternalApiserverV1alpha1StorageVersion", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "internalApiserver_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the StorageVersion", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified StorageVersion", + "operationId": "patchInternalApiserverV1alpha1StorageVersion", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "internalApiserver_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified StorageVersion", + "operationId": "replaceInternalApiserverV1alpha1StorageVersion", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "internalApiserver_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" + } + } + }, + "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified StorageVersion", + "operationId": "readInternalApiserverV1alpha1StorageVersionStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "internalApiserver_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the StorageVersion", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified StorageVersion", + "operationId": "patchInternalApiserverV1alpha1StorageVersionStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "internalApiserver_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified StorageVersion", + "operationId": "replaceInternalApiserverV1alpha1StorageVersionStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "internalApiserver_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" + } + } + }, + "/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of StorageVersion. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchInternalApiserverV1alpha1StorageVersionList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "internalApiserver_v1alpha1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind StorageVersion. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchInternalApiserverV1alpha1StorageVersion", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "internalApiserver_v1alpha1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the StorageVersion", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/networking.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getNetworkingAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking" + ] + } + }, + "/apis/networking.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getNetworkingV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ] + } + }, + "/apis/networking.k8s.io/v1/ingressclasses": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of IngressClass", + "operationId": "deleteNetworkingV1CollectionIngressClass", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind IngressClass", + "operationId": "listNetworkingV1IngressClass", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClassList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create an IngressClass", + "operationId": "createNetworkingV1IngressClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" + } + } + }, + "/apis/networking.k8s.io/v1/ingressclasses/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete an IngressClass", + "operationId": "deleteNetworkingV1IngressClass", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified IngressClass", + "operationId": "readNetworkingV1IngressClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the IngressClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified IngressClass", + "operationId": "patchNetworkingV1IngressClass", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified IngressClass", + "operationId": "replaceNetworkingV1IngressClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" + } + } + }, + "/apis/networking.k8s.io/v1/ingresses": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Ingress", + "operationId": "listNetworkingV1IngressForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of Ingress", + "operationId": "deleteNetworkingV1CollectionNamespacedIngress", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Ingress", + "operationId": "listNetworkingV1NamespacedIngress", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create an Ingress", + "operationId": "createNetworkingV1NamespacedIngress", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } + } + }, + "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete an Ingress", + "operationId": "deleteNetworkingV1NamespacedIngress", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified Ingress", + "operationId": "readNetworkingV1NamespacedIngress", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Ingress", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified Ingress", + "operationId": "patchNetworkingV1NamespacedIngress", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified Ingress", + "operationId": "replaceNetworkingV1NamespacedIngress", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } + } + }, + "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified Ingress", + "operationId": "readNetworkingV1NamespacedIngressStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Ingress", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified Ingress", + "operationId": "patchNetworkingV1NamespacedIngressStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified Ingress", + "operationId": "replaceNetworkingV1NamespacedIngressStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } + } + }, + "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of NetworkPolicy", + "operationId": "deleteNetworkingV1CollectionNamespacedNetworkPolicy", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind NetworkPolicy", + "operationId": "listNetworkingV1NamespacedNetworkPolicy", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a NetworkPolicy", + "operationId": "createNetworkingV1NamespacedNetworkPolicy", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + } + } + }, + "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a NetworkPolicy", + "operationId": "deleteNetworkingV1NamespacedNetworkPolicy", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified NetworkPolicy", + "operationId": "readNetworkingV1NamespacedNetworkPolicy", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the NetworkPolicy", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified NetworkPolicy", + "operationId": "patchNetworkingV1NamespacedNetworkPolicy", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified NetworkPolicy", + "operationId": "replaceNetworkingV1NamespacedNetworkPolicy", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + } + } + }, + "/apis/networking.k8s.io/v1/networkpolicies": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind NetworkPolicy", + "operationId": "listNetworkingV1NetworkPolicyForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/networking.k8s.io/v1/watch/ingressclasses": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of IngressClass. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchNetworkingV1IngressClassList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/networking.k8s.io/v1/watch/ingressclasses/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind IngressClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchNetworkingV1IngressClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the IngressClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/networking.k8s.io/v1/watch/ingresses": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of Ingress. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchNetworkingV1IngressListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of Ingress. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchNetworkingV1NamespacedIngressList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind Ingress. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchNetworkingV1NamespacedIngress", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the Ingress", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of NetworkPolicy. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchNetworkingV1NamespacedNetworkPolicyList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind NetworkPolicy. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchNetworkingV1NamespacedNetworkPolicy", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the NetworkPolicy", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/networking.k8s.io/v1/watch/networkpolicies": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of NetworkPolicy. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchNetworkingV1NetworkPolicyListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/networking.k8s.io/v1alpha1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getNetworkingV1alpha1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ] + } + }, + "/apis/networking.k8s.io/v1alpha1/ipaddresses": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of IPAddress", + "operationId": "deleteNetworkingV1alpha1CollectionIPAddress", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "IPAddress", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind IPAddress", + "operationId": "listNetworkingV1alpha1IPAddress", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.IPAddressList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "IPAddress", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create an IPAddress", + "operationId": "createNetworkingV1alpha1IPAddress", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.IPAddress" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.IPAddress" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.IPAddress" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.IPAddress" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "IPAddress", + "version": "v1alpha1" + } + } + }, + "/apis/networking.k8s.io/v1alpha1/ipaddresses/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete an IPAddress", + "operationId": "deleteNetworkingV1alpha1IPAddress", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "IPAddress", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified IPAddress", + "operationId": "readNetworkingV1alpha1IPAddress", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.IPAddress" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "IPAddress", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the IPAddress", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified IPAddress", + "operationId": "patchNetworkingV1alpha1IPAddress", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.IPAddress" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.IPAddress" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "IPAddress", + "version": "v1alpha1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified IPAddress", + "operationId": "replaceNetworkingV1alpha1IPAddress", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.IPAddress" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.IPAddress" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.IPAddress" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "IPAddress", + "version": "v1alpha1" + } + } + }, + "/apis/networking.k8s.io/v1alpha1/servicecidrs": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ServiceCIDR", + "operationId": "deleteNetworkingV1alpha1CollectionServiceCIDR", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ServiceCIDR", + "operationId": "listNetworkingV1alpha1ServiceCIDR", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDRList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ServiceCIDR", + "operationId": "createNetworkingV1alpha1ServiceCIDR", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDR" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDR" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDR" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDR" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1alpha1" + } + } + }, + "/apis/networking.k8s.io/v1alpha1/servicecidrs/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ServiceCIDR", + "operationId": "deleteNetworkingV1alpha1ServiceCIDR", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ServiceCIDR", + "operationId": "readNetworkingV1alpha1ServiceCIDR", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDR" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the ServiceCIDR", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ServiceCIDR", + "operationId": "patchNetworkingV1alpha1ServiceCIDR", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDR" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDR" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1alpha1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ServiceCIDR", + "operationId": "replaceNetworkingV1alpha1ServiceCIDR", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDR" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDR" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDR" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1alpha1" + } + } + }, + "/apis/networking.k8s.io/v1alpha1/servicecidrs/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified ServiceCIDR", + "operationId": "readNetworkingV1alpha1ServiceCIDRStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDR" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the ServiceCIDR", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified ServiceCIDR", + "operationId": "patchNetworkingV1alpha1ServiceCIDRStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDR" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDR" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1alpha1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified ServiceCIDR", + "operationId": "replaceNetworkingV1alpha1ServiceCIDRStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDR" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDR" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDR" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1alpha1" + } + } + }, + "/apis/networking.k8s.io/v1alpha1/watch/ipaddresses": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of IPAddress. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchNetworkingV1alpha1IPAddressList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "IPAddress", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/networking.k8s.io/v1alpha1/watch/ipaddresses/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind IPAddress. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchNetworkingV1alpha1IPAddress", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "IPAddress", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the IPAddress", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/networking.k8s.io/v1alpha1/watch/servicecidrs": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ServiceCIDR. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchNetworkingV1alpha1ServiceCIDRList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/networking.k8s.io/v1alpha1/watch/servicecidrs/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ServiceCIDR. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchNetworkingV1alpha1ServiceCIDR", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ServiceCIDR", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/node.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getNodeAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node" + ] + } + }, + "/apis/node.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getNodeV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ] + } + }, + "/apis/node.k8s.io/v1/runtimeclasses": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of RuntimeClass", + "operationId": "deleteNodeV1CollectionRuntimeClass", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind RuntimeClass", + "operationId": "listNodeV1RuntimeClass", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClassList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a RuntimeClass", + "operationId": "createNodeV1RuntimeClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + } + }, + "/apis/node.k8s.io/v1/runtimeclasses/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a RuntimeClass", + "operationId": "deleteNodeV1RuntimeClass", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified RuntimeClass", + "operationId": "readNodeV1RuntimeClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the RuntimeClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified RuntimeClass", + "operationId": "patchNodeV1RuntimeClass", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified RuntimeClass", + "operationId": "replaceNodeV1RuntimeClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + } + }, + "/apis/node.k8s.io/v1/watch/runtimeclasses": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of RuntimeClass. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchNodeV1RuntimeClassList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/node.k8s.io/v1/watch/runtimeclasses/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind RuntimeClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchNodeV1RuntimeClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the RuntimeClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/policy/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getPolicyAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy" + ] + } + }, + "/apis/policy/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getPolicyV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ] + } + }, + "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of PodDisruptionBudget", + "operationId": "deletePolicyV1CollectionNamespacedPodDisruptionBudget", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PodDisruptionBudget", + "operationId": "listPolicyV1NamespacedPodDisruptionBudget", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudgetList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a PodDisruptionBudget", + "operationId": "createPolicyV1NamespacedPodDisruptionBudget", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + } + }, + "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a PodDisruptionBudget", + "operationId": "deletePolicyV1NamespacedPodDisruptionBudget", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified PodDisruptionBudget", + "operationId": "readPolicyV1NamespacedPodDisruptionBudget", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the PodDisruptionBudget", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified PodDisruptionBudget", + "operationId": "patchPolicyV1NamespacedPodDisruptionBudget", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified PodDisruptionBudget", + "operationId": "replacePolicyV1NamespacedPodDisruptionBudget", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + } + }, + "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified PodDisruptionBudget", + "operationId": "readPolicyV1NamespacedPodDisruptionBudgetStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the PodDisruptionBudget", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified PodDisruptionBudget", + "operationId": "patchPolicyV1NamespacedPodDisruptionBudgetStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified PodDisruptionBudget", + "operationId": "replacePolicyV1NamespacedPodDisruptionBudgetStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + } + }, + "/apis/policy/v1/poddisruptionbudgets": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PodDisruptionBudget", + "operationId": "listPolicyV1PodDisruptionBudgetForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudgetList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchPolicyV1NamespacedPodDisruptionBudgetList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchPolicyV1NamespacedPodDisruptionBudget", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the PodDisruptionBudget", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/policy/v1/watch/poddisruptionbudgets": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchPolicyV1PodDisruptionBudgetListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/rbac.authorization.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getRbacAuthorizationAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization" + ] + } + }, + "/apis/rbac.authorization.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getRbacAuthorizationV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ] + } + }, + "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ClusterRoleBinding", + "operationId": "deleteRbacAuthorizationV1CollectionClusterRoleBinding", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ClusterRoleBinding", + "operationId": "listRbacAuthorizationV1ClusterRoleBinding", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBindingList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ClusterRoleBinding", + "operationId": "createRbacAuthorizationV1ClusterRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } + } + }, + "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ClusterRoleBinding", + "operationId": "deleteRbacAuthorizationV1ClusterRoleBinding", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ClusterRoleBinding", + "operationId": "readRbacAuthorizationV1ClusterRoleBinding", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ClusterRoleBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ClusterRoleBinding", + "operationId": "patchRbacAuthorizationV1ClusterRoleBinding", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ClusterRoleBinding", + "operationId": "replaceRbacAuthorizationV1ClusterRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } + } + }, + "/apis/rbac.authorization.k8s.io/v1/clusterroles": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ClusterRole", + "operationId": "deleteRbacAuthorizationV1CollectionClusterRole", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ClusterRole", + "operationId": "listRbacAuthorizationV1ClusterRole", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ClusterRole", + "operationId": "createRbacAuthorizationV1ClusterRole", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + } + } + }, + "/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ClusterRole", + "operationId": "deleteRbacAuthorizationV1ClusterRole", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ClusterRole", + "operationId": "readRbacAuthorizationV1ClusterRole", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ClusterRole", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ClusterRole", + "operationId": "patchRbacAuthorizationV1ClusterRole", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ClusterRole", + "operationId": "replaceRbacAuthorizationV1ClusterRole", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + } + } + }, + "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of RoleBinding", + "operationId": "deleteRbacAuthorizationV1CollectionNamespacedRoleBinding", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind RoleBinding", + "operationId": "listRbacAuthorizationV1NamespacedRoleBinding", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBindingList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a RoleBinding", + "operationId": "createRbacAuthorizationV1NamespacedRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + } + } + }, + "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a RoleBinding", + "operationId": "deleteRbacAuthorizationV1NamespacedRoleBinding", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified RoleBinding", + "operationId": "readRbacAuthorizationV1NamespacedRoleBinding", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the RoleBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified RoleBinding", + "operationId": "patchRbacAuthorizationV1NamespacedRoleBinding", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified RoleBinding", + "operationId": "replaceRbacAuthorizationV1NamespacedRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + } + } + }, + "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of Role", + "operationId": "deleteRbacAuthorizationV1CollectionNamespacedRole", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Role", + "operationId": "listRbacAuthorizationV1NamespacedRole", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a Role", + "operationId": "createRbacAuthorizationV1NamespacedRole", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + } + } + }, + "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a Role", + "operationId": "deleteRbacAuthorizationV1NamespacedRole", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified Role", + "operationId": "readRbacAuthorizationV1NamespacedRole", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Role", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified Role", + "operationId": "patchRbacAuthorizationV1NamespacedRole", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified Role", + "operationId": "replaceRbacAuthorizationV1NamespacedRole", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + } + } + }, + "/apis/rbac.authorization.k8s.io/v1/rolebindings": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind RoleBinding", + "operationId": "listRbacAuthorizationV1RoleBindingForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBindingList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/roles": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Role", + "operationId": "listRbacAuthorizationV1RoleForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchRbacAuthorizationV1ClusterRoleBindingList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchRbacAuthorizationV1ClusterRoleBinding", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ClusterRoleBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ClusterRole. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchRbacAuthorizationV1ClusterRoleList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ClusterRole. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchRbacAuthorizationV1ClusterRole", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ClusterRole", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchRbacAuthorizationV1NamespacedRoleBindingList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind RoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchRbacAuthorizationV1NamespacedRoleBinding", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the RoleBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchRbacAuthorizationV1NamespacedRoleList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind Role. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchRbacAuthorizationV1NamespacedRole", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the Role", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/rolebindings": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchRbacAuthorizationV1RoleBindingListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/roles": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchRbacAuthorizationV1RoleListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getResourceAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource" + ] + } + }, + "/apis/resource.k8s.io/v1alpha2/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getResourceV1alpha2APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ] + } + }, + "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of PodSchedulingContext", + "operationId": "deleteResourceV1alpha2CollectionNamespacedPodSchedulingContext", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodSchedulingContext", + "version": "v1alpha2" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PodSchedulingContext", + "operationId": "listResourceV1alpha2NamespacedPodSchedulingContext", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.PodSchedulingContextList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodSchedulingContext", + "version": "v1alpha2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a PodSchedulingContext", + "operationId": "createResourceV1alpha2NamespacedPodSchedulingContext", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.PodSchedulingContext" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.PodSchedulingContext" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.PodSchedulingContext" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.PodSchedulingContext" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodSchedulingContext", + "version": "v1alpha2" + } + } + }, + "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a PodSchedulingContext", + "operationId": "deleteResourceV1alpha2NamespacedPodSchedulingContext", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.PodSchedulingContext" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.PodSchedulingContext" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodSchedulingContext", + "version": "v1alpha2" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified PodSchedulingContext", + "operationId": "readResourceV1alpha2NamespacedPodSchedulingContext", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.PodSchedulingContext" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodSchedulingContext", + "version": "v1alpha2" + } + }, + "parameters": [ + { + "description": "name of the PodSchedulingContext", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified PodSchedulingContext", + "operationId": "patchResourceV1alpha2NamespacedPodSchedulingContext", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.PodSchedulingContext" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.PodSchedulingContext" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodSchedulingContext", + "version": "v1alpha2" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified PodSchedulingContext", + "operationId": "replaceResourceV1alpha2NamespacedPodSchedulingContext", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.PodSchedulingContext" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.PodSchedulingContext" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.PodSchedulingContext" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodSchedulingContext", + "version": "v1alpha2" + } + } + }, + "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified PodSchedulingContext", + "operationId": "readResourceV1alpha2NamespacedPodSchedulingContextStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.PodSchedulingContext" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodSchedulingContext", + "version": "v1alpha2" + } + }, + "parameters": [ + { + "description": "name of the PodSchedulingContext", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified PodSchedulingContext", + "operationId": "patchResourceV1alpha2NamespacedPodSchedulingContextStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.PodSchedulingContext" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.PodSchedulingContext" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodSchedulingContext", + "version": "v1alpha2" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified PodSchedulingContext", + "operationId": "replaceResourceV1alpha2NamespacedPodSchedulingContextStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.PodSchedulingContext" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.PodSchedulingContext" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.PodSchedulingContext" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodSchedulingContext", + "version": "v1alpha2" + } + } + }, + "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ResourceClaim", + "operationId": "deleteResourceV1alpha2CollectionNamespacedResourceClaim", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha2" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceClaim", + "operationId": "listResourceV1alpha2NamespacedResourceClaim", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaimList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ResourceClaim", + "operationId": "createResourceV1alpha2NamespacedResourceClaim", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaim" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaim" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha2" + } + } + }, + "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ResourceClaim", + "operationId": "deleteResourceV1alpha2NamespacedResourceClaim", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaim" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha2" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ResourceClaim", + "operationId": "readResourceV1alpha2NamespacedResourceClaim", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha2" + } + }, + "parameters": [ + { + "description": "name of the ResourceClaim", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ResourceClaim", + "operationId": "patchResourceV1alpha2NamespacedResourceClaim", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha2" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ResourceClaim", + "operationId": "replaceResourceV1alpha2NamespacedResourceClaim", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaim" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha2" + } + } + }, + "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified ResourceClaim", + "operationId": "readResourceV1alpha2NamespacedResourceClaimStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha2" + } + }, + "parameters": [ + { + "description": "name of the ResourceClaim", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified ResourceClaim", + "operationId": "patchResourceV1alpha2NamespacedResourceClaimStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha2" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified ResourceClaim", + "operationId": "replaceResourceV1alpha2NamespacedResourceClaimStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaim" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha2" + } + } + }, + "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ResourceClaimTemplate", + "operationId": "deleteResourceV1alpha2CollectionNamespacedResourceClaimTemplate", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha2" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceClaimTemplate", + "operationId": "listResourceV1alpha2NamespacedResourceClaimTemplate", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaimTemplateList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ResourceClaimTemplate", + "operationId": "createResourceV1alpha2NamespacedResourceClaimTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaimTemplate" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaimTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaimTemplate" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha2" + } + } + }, + "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ResourceClaimTemplate", + "operationId": "deleteResourceV1alpha2NamespacedResourceClaimTemplate", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaimTemplate" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha2" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ResourceClaimTemplate", + "operationId": "readResourceV1alpha2NamespacedResourceClaimTemplate", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha2" + } + }, + "parameters": [ + { + "description": "name of the ResourceClaimTemplate", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ResourceClaimTemplate", + "operationId": "patchResourceV1alpha2NamespacedResourceClaimTemplate", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaimTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha2" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ResourceClaimTemplate", + "operationId": "replaceResourceV1alpha2NamespacedResourceClaimTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaimTemplate" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaimTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha2" + } + } + }, + "/apis/resource.k8s.io/v1alpha2/podschedulingcontexts": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PodSchedulingContext", + "operationId": "listResourceV1alpha2PodSchedulingContextForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.PodSchedulingContextList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodSchedulingContext", + "version": "v1alpha2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1alpha2/resourceclaims": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceClaim", + "operationId": "listResourceV1alpha2ResourceClaimForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaimList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1alpha2/resourceclaimtemplates": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceClaimTemplate", + "operationId": "listResourceV1alpha2ResourceClaimTemplateForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaimTemplateList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1alpha2/resourceclasses": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ResourceClass", + "operationId": "deleteResourceV1alpha2CollectionResourceClass", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha2" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceClass", + "operationId": "listResourceV1alpha2ResourceClass", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClassList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ResourceClass", + "operationId": "createResourceV1alpha2ResourceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClass" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha2" + } + } + }, + "/apis/resource.k8s.io/v1alpha2/resourceclasses/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ResourceClass", + "operationId": "deleteResourceV1alpha2ResourceClass", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha2" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ResourceClass", + "operationId": "readResourceV1alpha2ResourceClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha2" + } + }, + "parameters": [ + { + "description": "name of the ResourceClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ResourceClass", + "operationId": "patchResourceV1alpha2ResourceClass", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha2" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ResourceClass", + "operationId": "replaceResourceV1alpha2ResourceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClass" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha2.ResourceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha2" + } + } + }, + "/apis/resource.k8s.io/v1alpha2/watch/namespaces/{namespace}/podschedulingcontexts": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of PodSchedulingContext. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1alpha2NamespacedPodSchedulingContextList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodSchedulingContext", + "version": "v1alpha2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1alpha2/watch/namespaces/{namespace}/podschedulingcontexts/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind PodSchedulingContext. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1alpha2NamespacedPodSchedulingContext", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodSchedulingContext", + "version": "v1alpha2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the PodSchedulingContext", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1alpha2/watch/namespaces/{namespace}/resourceclaims": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1alpha2NamespacedResourceClaimList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1alpha2/watch/namespaces/{namespace}/resourceclaims/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1alpha2NamespacedResourceClaim", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ResourceClaim", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1alpha2/watch/namespaces/{namespace}/resourceclaimtemplates": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1alpha2NamespacedResourceClaimTemplateList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1alpha2/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1alpha2NamespacedResourceClaimTemplate", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ResourceClaimTemplate", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1alpha2/watch/podschedulingcontexts": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of PodSchedulingContext. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1alpha2PodSchedulingContextListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodSchedulingContext", + "version": "v1alpha2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1alpha2/watch/resourceclaims": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1alpha2ResourceClaimListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1alpha2/watch/resourceclaimtemplates": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1alpha2ResourceClaimTemplateListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1alpha2/watch/resourceclasses": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ResourceClass. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1alpha2ResourceClassList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1alpha2/watch/resourceclasses/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ResourceClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1alpha2ResourceClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha2" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ResourceClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/scheduling.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getSchedulingAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling" + ] + } + }, + "/apis/scheduling.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getSchedulingV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ] + } + }, + "/apis/scheduling.k8s.io/v1/priorityclasses": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of PriorityClass", + "operationId": "deleteSchedulingV1CollectionPriorityClass", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PriorityClass", + "operationId": "listSchedulingV1PriorityClass", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClassList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a PriorityClass", + "operationId": "createSchedulingV1PriorityClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + } + }, + "/apis/scheduling.k8s.io/v1/priorityclasses/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a PriorityClass", + "operationId": "deleteSchedulingV1PriorityClass", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified PriorityClass", + "operationId": "readSchedulingV1PriorityClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the PriorityClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified PriorityClass", + "operationId": "patchSchedulingV1PriorityClass", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified PriorityClass", + "operationId": "replaceSchedulingV1PriorityClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + } + }, + "/apis/scheduling.k8s.io/v1/watch/priorityclasses": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of PriorityClass. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchSchedulingV1PriorityClassList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind PriorityClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchSchedulingV1PriorityClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the PriorityClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/storage.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getStorageAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage" + ] + } + }, + "/apis/storage.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getStorageV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ] + } + }, + "/apis/storage.k8s.io/v1/csidrivers": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of CSIDriver", + "operationId": "deleteStorageV1CollectionCSIDriver", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSIDriver", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind CSIDriver", + "operationId": "listStorageV1CSIDriver", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriverList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSIDriver", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a CSIDriver", + "operationId": "createStorageV1CSIDriver", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSIDriver", + "version": "v1" + } + } + }, + "/apis/storage.k8s.io/v1/csidrivers/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a CSIDriver", + "operationId": "deleteStorageV1CSIDriver", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSIDriver", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified CSIDriver", + "operationId": "readStorageV1CSIDriver", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSIDriver", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the CSIDriver", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified CSIDriver", + "operationId": "patchStorageV1CSIDriver", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSIDriver", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified CSIDriver", + "operationId": "replaceStorageV1CSIDriver", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSIDriver", + "version": "v1" + } + } + }, + "/apis/storage.k8s.io/v1/csinodes": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of CSINode", + "operationId": "deleteStorageV1CollectionCSINode", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSINode", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind CSINode", + "operationId": "listStorageV1CSINode", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINodeList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSINode", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a CSINode", + "operationId": "createStorageV1CSINode", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSINode", + "version": "v1" + } + } + }, + "/apis/storage.k8s.io/v1/csinodes/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a CSINode", + "operationId": "deleteStorageV1CSINode", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSINode", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified CSINode", + "operationId": "readStorageV1CSINode", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSINode", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the CSINode", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified CSINode", + "operationId": "patchStorageV1CSINode", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSINode", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified CSINode", + "operationId": "replaceStorageV1CSINode", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSINode", + "version": "v1" + } + } + }, + "/apis/storage.k8s.io/v1/csistoragecapacities": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind CSIStorageCapacity", + "operationId": "listStorageV1CSIStorageCapacityForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIStorageCapacityList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSIStorageCapacity", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of CSIStorageCapacity", + "operationId": "deleteStorageV1CollectionNamespacedCSIStorageCapacity", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSIStorageCapacity", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind CSIStorageCapacity", + "operationId": "listStorageV1NamespacedCSIStorageCapacity", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIStorageCapacityList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSIStorageCapacity", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a CSIStorageCapacity", + "operationId": "createStorageV1NamespacedCSIStorageCapacity", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIStorageCapacity" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIStorageCapacity" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIStorageCapacity" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIStorageCapacity" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSIStorageCapacity", + "version": "v1" + } + } + }, + "/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a CSIStorageCapacity", + "operationId": "deleteStorageV1NamespacedCSIStorageCapacity", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSIStorageCapacity", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified CSIStorageCapacity", + "operationId": "readStorageV1NamespacedCSIStorageCapacity", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIStorageCapacity" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSIStorageCapacity", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the CSIStorageCapacity", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified CSIStorageCapacity", + "operationId": "patchStorageV1NamespacedCSIStorageCapacity", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIStorageCapacity" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIStorageCapacity" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSIStorageCapacity", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified CSIStorageCapacity", + "operationId": "replaceStorageV1NamespacedCSIStorageCapacity", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIStorageCapacity" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIStorageCapacity" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIStorageCapacity" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSIStorageCapacity", + "version": "v1" + } + } + }, + "/apis/storage.k8s.io/v1/storageclasses": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of StorageClass", + "operationId": "deleteStorageV1CollectionStorageClass", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "StorageClass", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind StorageClass", + "operationId": "listStorageV1StorageClass", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClassList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "StorageClass", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a StorageClass", + "operationId": "createStorageV1StorageClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "StorageClass", + "version": "v1" + } + } + }, + "/apis/storage.k8s.io/v1/storageclasses/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a StorageClass", + "operationId": "deleteStorageV1StorageClass", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "StorageClass", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified StorageClass", + "operationId": "readStorageV1StorageClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "StorageClass", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the StorageClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified StorageClass", + "operationId": "patchStorageV1StorageClass", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "StorageClass", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified StorageClass", + "operationId": "replaceStorageV1StorageClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "StorageClass", + "version": "v1" + } + } + }, + "/apis/storage.k8s.io/v1/volumeattachments": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of VolumeAttachment", + "operationId": "deleteStorageV1CollectionVolumeAttachment", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "VolumeAttachment", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind VolumeAttachment", + "operationId": "listStorageV1VolumeAttachment", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachmentList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "VolumeAttachment", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a VolumeAttachment", + "operationId": "createStorageV1VolumeAttachment", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "VolumeAttachment", + "version": "v1" + } + } + }, + "/apis/storage.k8s.io/v1/volumeattachments/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a VolumeAttachment", + "operationId": "deleteStorageV1VolumeAttachment", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "VolumeAttachment", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified VolumeAttachment", + "operationId": "readStorageV1VolumeAttachment", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "VolumeAttachment", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the VolumeAttachment", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified VolumeAttachment", + "operationId": "patchStorageV1VolumeAttachment", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "VolumeAttachment", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified VolumeAttachment", + "operationId": "replaceStorageV1VolumeAttachment", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "VolumeAttachment", + "version": "v1" + } + } + }, + "/apis/storage.k8s.io/v1/volumeattachments/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified VolumeAttachment", + "operationId": "readStorageV1VolumeAttachmentStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "VolumeAttachment", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the VolumeAttachment", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified VolumeAttachment", + "operationId": "patchStorageV1VolumeAttachmentStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "VolumeAttachment", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified VolumeAttachment", + "operationId": "replaceStorageV1VolumeAttachmentStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "VolumeAttachment", + "version": "v1" + } + } + }, + "/apis/storage.k8s.io/v1/watch/csidrivers": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of CSIDriver. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchStorageV1CSIDriverList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSIDriver", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/storage.k8s.io/v1/watch/csidrivers/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind CSIDriver. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchStorageV1CSIDriver", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSIDriver", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the CSIDriver", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/storage.k8s.io/v1/watch/csinodes": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of CSINode. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchStorageV1CSINodeList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSINode", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/storage.k8s.io/v1/watch/csinodes/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind CSINode. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchStorageV1CSINode", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSINode", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the CSINode", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/storage.k8s.io/v1/watch/csistoragecapacities": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of CSIStorageCapacity. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchStorageV1CSIStorageCapacityListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSIStorageCapacity", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/storage.k8s.io/v1/watch/namespaces/{namespace}/csistoragecapacities": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of CSIStorageCapacity. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchStorageV1NamespacedCSIStorageCapacityList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSIStorageCapacity", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/storage.k8s.io/v1/watch/namespaces/{namespace}/csistoragecapacities/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind CSIStorageCapacity. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchStorageV1NamespacedCSIStorageCapacity", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSIStorageCapacity", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the CSIStorageCapacity", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/storage.k8s.io/v1/watch/storageclasses": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of StorageClass. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchStorageV1StorageClassList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "StorageClass", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/storage.k8s.io/v1/watch/storageclasses/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind StorageClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchStorageV1StorageClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "StorageClass", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the StorageClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/storage.k8s.io/v1/watch/volumeattachments": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of VolumeAttachment. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchStorageV1VolumeAttachmentList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "VolumeAttachment", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/storage.k8s.io/v1/watch/volumeattachments/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind VolumeAttachment. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchStorageV1VolumeAttachment", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "VolumeAttachment", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the VolumeAttachment", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/storage.k8s.io/v1alpha1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getStorageV1alpha1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1alpha1" + ] + } + }, + "/apis/storage.k8s.io/v1alpha1/volumeattributesclasses": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of VolumeAttributesClass", + "operationId": "deleteStorageV1alpha1CollectionVolumeAttributesClass", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1alpha1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClass", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind VolumeAttributesClass", + "operationId": "listStorageV1alpha1VolumeAttributesClass", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttributesClassList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClass", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a VolumeAttributesClass", + "operationId": "createStorageV1alpha1VolumeAttributesClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttributesClass" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttributesClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttributesClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttributesClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClass", + "version": "v1alpha1" + } + } + }, + "/apis/storage.k8s.io/v1alpha1/volumeattributesclasses/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a VolumeAttributesClass", + "operationId": "deleteStorageV1alpha1VolumeAttributesClass", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttributesClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttributesClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1alpha1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClass", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified VolumeAttributesClass", + "operationId": "readStorageV1alpha1VolumeAttributesClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttributesClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClass", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the VolumeAttributesClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified VolumeAttributesClass", + "operationId": "patchStorageV1alpha1VolumeAttributesClass", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttributesClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttributesClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClass", + "version": "v1alpha1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified VolumeAttributesClass", + "operationId": "replaceStorageV1alpha1VolumeAttributesClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttributesClass" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttributesClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttributesClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClass", + "version": "v1alpha1" + } + } + }, + "/apis/storage.k8s.io/v1alpha1/watch/volumeattributesclasses": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of VolumeAttributesClass. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchStorageV1alpha1VolumeAttributesClassList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1alpha1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClass", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/storage.k8s.io/v1alpha1/watch/volumeattributesclasses/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind VolumeAttributesClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchStorageV1alpha1VolumeAttributesClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1alpha1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClass", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the VolumeAttributesClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/logs/": { + "get": { + "operationId": "logFileListHandler", + "responses": { + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "logs" + ] + } + }, + "/logs/{logpath}": { + "get": { + "operationId": "logFileHandler", + "responses": { + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "logs" + ] + }, + "parameters": [ + { + "$ref": "#/parameters/logpath-Noq7euwC" + } + ] + }, + "/openid/v1/jwks/": { + "get": { + "description": "get service account issuer OpenID JSON Web Key Set (contains public token verification keys)", + "operationId": "getServiceAccountIssuerOpenIDKeyset", + "produces": [ + "application/jwk-set+json" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "openid" + ] + } + }, + "/version/": { + "get": { + "consumes": [ + "application/json" + ], + "description": "get the code version", + "operationId": "getCodeVersion", + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.version.Info" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "version" + ] + } + } + }, + "security": [ + { + "BearerToken": [] + } + ], + "securityDefinitions": { + "BearerToken": { + "description": "Bearer Token authentication", + "in": "header", + "name": "authorization", + "type": "apiKey" + } + }, + "swagger": "2.0" +} diff --git a/packages/types/src/generated/kubevirt/README.md b/packages/types/src/generated/kubevirt/README.md new file mode 100644 index 000000000..1de6823db --- /dev/null +++ b/packages/types/src/generated/kubevirt/README.md @@ -0,0 +1,15 @@ +## Auto generate typescritp types + +``` bash +npm i @openapitools/openapi-generator-cli + +curl https://raw.githubusercontent.com/kubevirt/kubevirt/main/api/openapi-spec/swagger.json -o swagger.json + +npx openapi-generator-cli generate -g typescript-fetch --skip-validate-spec -o $(pwd) -i $(pwd)/swagger.json + +rm -rf apis index.ts runtime.ts .openapi-generator* + +find ./models -type f -exec sed -i 's/\.\.\/runtime/\.\.\/\.\.\/runtime/g' {} + + +echo "export * from './models';" > index.ts +``` \ No newline at end of file diff --git a/packages/types/src/generated/kubevirt/index.ts b/packages/types/src/generated/kubevirt/index.ts new file mode 100644 index 000000000..e9644dae4 --- /dev/null +++ b/packages/types/src/generated/kubevirt/index.ts @@ -0,0 +1 @@ +export * from './models'; diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1Affinity.ts b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1Affinity.ts new file mode 100644 index 000000000..29fea6ba0 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1Affinity.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1NodeAffinity } from './K8sIoApiCoreV1NodeAffinity'; +import { + K8sIoApiCoreV1NodeAffinityFromJSON, + K8sIoApiCoreV1NodeAffinityFromJSONTyped, + K8sIoApiCoreV1NodeAffinityToJSON, +} from './K8sIoApiCoreV1NodeAffinity'; +import type { K8sIoApiCoreV1PodAffinity } from './K8sIoApiCoreV1PodAffinity'; +import { + K8sIoApiCoreV1PodAffinityFromJSON, + K8sIoApiCoreV1PodAffinityFromJSONTyped, + K8sIoApiCoreV1PodAffinityToJSON, +} from './K8sIoApiCoreV1PodAffinity'; +import type { K8sIoApiCoreV1PodAntiAffinity } from './K8sIoApiCoreV1PodAntiAffinity'; +import { + K8sIoApiCoreV1PodAntiAffinityFromJSON, + K8sIoApiCoreV1PodAntiAffinityFromJSONTyped, + K8sIoApiCoreV1PodAntiAffinityToJSON, +} from './K8sIoApiCoreV1PodAntiAffinity'; + +/** + * Affinity is a group of affinity scheduling rules. + * @export + * @interface K8sIoApiCoreV1Affinity + */ +export interface K8sIoApiCoreV1Affinity { + /** + * + * @type {K8sIoApiCoreV1NodeAffinity} + * @memberof K8sIoApiCoreV1Affinity + */ + nodeAffinity?: K8sIoApiCoreV1NodeAffinity; + /** + * + * @type {K8sIoApiCoreV1PodAffinity} + * @memberof K8sIoApiCoreV1Affinity + */ + podAffinity?: K8sIoApiCoreV1PodAffinity; + /** + * + * @type {K8sIoApiCoreV1PodAntiAffinity} + * @memberof K8sIoApiCoreV1Affinity + */ + podAntiAffinity?: K8sIoApiCoreV1PodAntiAffinity; +} + +/** + * Check if a given object implements the K8sIoApiCoreV1Affinity interface. + */ +export function instanceOfK8sIoApiCoreV1Affinity(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function K8sIoApiCoreV1AffinityFromJSON(json: any): K8sIoApiCoreV1Affinity { + return K8sIoApiCoreV1AffinityFromJSONTyped(json, false); +} + +export function K8sIoApiCoreV1AffinityFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApiCoreV1Affinity { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'nodeAffinity': !exists(json, 'nodeAffinity') ? undefined : K8sIoApiCoreV1NodeAffinityFromJSON(json['nodeAffinity']), + 'podAffinity': !exists(json, 'podAffinity') ? undefined : K8sIoApiCoreV1PodAffinityFromJSON(json['podAffinity']), + 'podAntiAffinity': !exists(json, 'podAntiAffinity') ? undefined : K8sIoApiCoreV1PodAntiAffinityFromJSON(json['podAntiAffinity']), + }; +} + +export function K8sIoApiCoreV1AffinityToJSON(value?: K8sIoApiCoreV1Affinity | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'nodeAffinity': K8sIoApiCoreV1NodeAffinityToJSON(value.nodeAffinity), + 'podAffinity': K8sIoApiCoreV1PodAffinityToJSON(value.podAffinity), + 'podAntiAffinity': K8sIoApiCoreV1PodAntiAffinityToJSON(value.podAntiAffinity), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1DownwardAPIVolumeFile.ts b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1DownwardAPIVolumeFile.ts new file mode 100644 index 000000000..1d80d1edc --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1DownwardAPIVolumeFile.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1ObjectFieldSelector } from './K8sIoApiCoreV1ObjectFieldSelector'; +import { + K8sIoApiCoreV1ObjectFieldSelectorFromJSON, + K8sIoApiCoreV1ObjectFieldSelectorFromJSONTyped, + K8sIoApiCoreV1ObjectFieldSelectorToJSON, +} from './K8sIoApiCoreV1ObjectFieldSelector'; +import type { K8sIoApiCoreV1ResourceFieldSelector } from './K8sIoApiCoreV1ResourceFieldSelector'; +import { + K8sIoApiCoreV1ResourceFieldSelectorFromJSON, + K8sIoApiCoreV1ResourceFieldSelectorFromJSONTyped, + K8sIoApiCoreV1ResourceFieldSelectorToJSON, +} from './K8sIoApiCoreV1ResourceFieldSelector'; + +/** + * DownwardAPIVolumeFile represents information to create the file containing the pod field + * @export + * @interface K8sIoApiCoreV1DownwardAPIVolumeFile + */ +export interface K8sIoApiCoreV1DownwardAPIVolumeFile { + /** + * + * @type {K8sIoApiCoreV1ObjectFieldSelector} + * @memberof K8sIoApiCoreV1DownwardAPIVolumeFile + */ + fieldRef?: K8sIoApiCoreV1ObjectFieldSelector; + /** + * Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + * @type {number} + * @memberof K8sIoApiCoreV1DownwardAPIVolumeFile + */ + mode?: number; + /** + * Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * @type {string} + * @memberof K8sIoApiCoreV1DownwardAPIVolumeFile + */ + path: string; + /** + * + * @type {K8sIoApiCoreV1ResourceFieldSelector} + * @memberof K8sIoApiCoreV1DownwardAPIVolumeFile + */ + resourceFieldRef?: K8sIoApiCoreV1ResourceFieldSelector; +} + +/** + * Check if a given object implements the K8sIoApiCoreV1DownwardAPIVolumeFile interface. + */ +export function instanceOfK8sIoApiCoreV1DownwardAPIVolumeFile(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "path" in value; + + return isInstance; +} + +export function K8sIoApiCoreV1DownwardAPIVolumeFileFromJSON(json: any): K8sIoApiCoreV1DownwardAPIVolumeFile { + return K8sIoApiCoreV1DownwardAPIVolumeFileFromJSONTyped(json, false); +} + +export function K8sIoApiCoreV1DownwardAPIVolumeFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApiCoreV1DownwardAPIVolumeFile { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'fieldRef': !exists(json, 'fieldRef') ? undefined : K8sIoApiCoreV1ObjectFieldSelectorFromJSON(json['fieldRef']), + 'mode': !exists(json, 'mode') ? undefined : json['mode'], + 'path': json['path'], + 'resourceFieldRef': !exists(json, 'resourceFieldRef') ? undefined : K8sIoApiCoreV1ResourceFieldSelectorFromJSON(json['resourceFieldRef']), + }; +} + +export function K8sIoApiCoreV1DownwardAPIVolumeFileToJSON(value?: K8sIoApiCoreV1DownwardAPIVolumeFile | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'fieldRef': K8sIoApiCoreV1ObjectFieldSelectorToJSON(value.fieldRef), + 'mode': value.mode, + 'path': value.path, + 'resourceFieldRef': K8sIoApiCoreV1ResourceFieldSelectorToJSON(value.resourceFieldRef), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1ExecAction.ts b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1ExecAction.ts new file mode 100644 index 000000000..19be917c6 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1ExecAction.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ExecAction describes a "run in container" action. + * @export + * @interface K8sIoApiCoreV1ExecAction + */ +export interface K8sIoApiCoreV1ExecAction { + /** + * Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + * @type {Array} + * @memberof K8sIoApiCoreV1ExecAction + */ + command?: Array; +} + +/** + * Check if a given object implements the K8sIoApiCoreV1ExecAction interface. + */ +export function instanceOfK8sIoApiCoreV1ExecAction(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function K8sIoApiCoreV1ExecActionFromJSON(json: any): K8sIoApiCoreV1ExecAction { + return K8sIoApiCoreV1ExecActionFromJSONTyped(json, false); +} + +export function K8sIoApiCoreV1ExecActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApiCoreV1ExecAction { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'command': !exists(json, 'command') ? undefined : json['command'], + }; +} + +export function K8sIoApiCoreV1ExecActionToJSON(value?: K8sIoApiCoreV1ExecAction | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'command': value.command, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1HTTPGetAction.ts b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1HTTPGetAction.ts new file mode 100644 index 000000000..f3accd197 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1HTTPGetAction.ts @@ -0,0 +1,111 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1HTTPHeader } from './K8sIoApiCoreV1HTTPHeader'; +import { + K8sIoApiCoreV1HTTPHeaderFromJSON, + K8sIoApiCoreV1HTTPHeaderFromJSONTyped, + K8sIoApiCoreV1HTTPHeaderToJSON, +} from './K8sIoApiCoreV1HTTPHeader'; + +/** + * HTTPGetAction describes an action based on HTTP Get requests. + * @export + * @interface K8sIoApiCoreV1HTTPGetAction + */ +export interface K8sIoApiCoreV1HTTPGetAction { + /** + * Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * @type {string} + * @memberof K8sIoApiCoreV1HTTPGetAction + */ + host?: string; + /** + * Custom headers to set in the request. HTTP allows repeated headers. + * @type {Array} + * @memberof K8sIoApiCoreV1HTTPGetAction + */ + httpHeaders?: Array; + /** + * Path to access on the HTTP server. + * @type {string} + * @memberof K8sIoApiCoreV1HTTPGetAction + */ + path?: string; + /** + * Scheme to use for connecting to the host. Defaults to HTTP. + * + * Possible enum values: + * - `"HTTP"` means that the scheme used will be http:// + * - `"HTTPS"` means that the scheme used will be https:// + * @type {string} + * @memberof K8sIoApiCoreV1HTTPGetAction + */ + scheme?: K8sIoApiCoreV1HTTPGetActionSchemeEnum; +} + + +/** + * @export + */ +export const K8sIoApiCoreV1HTTPGetActionSchemeEnum = { + Http: 'HTTP', + Https: 'HTTPS' +} as const; +export type K8sIoApiCoreV1HTTPGetActionSchemeEnum = typeof K8sIoApiCoreV1HTTPGetActionSchemeEnum[keyof typeof K8sIoApiCoreV1HTTPGetActionSchemeEnum]; + + +/** + * Check if a given object implements the K8sIoApiCoreV1HTTPGetAction interface. + */ +export function instanceOfK8sIoApiCoreV1HTTPGetAction(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function K8sIoApiCoreV1HTTPGetActionFromJSON(json: any): K8sIoApiCoreV1HTTPGetAction { + return K8sIoApiCoreV1HTTPGetActionFromJSONTyped(json, false); +} + +export function K8sIoApiCoreV1HTTPGetActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApiCoreV1HTTPGetAction { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'host': !exists(json, 'host') ? undefined : json['host'], + 'httpHeaders': !exists(json, 'httpHeaders') ? undefined : ((json['httpHeaders'] as Array).map(K8sIoApiCoreV1HTTPHeaderFromJSON)), + 'path': !exists(json, 'path') ? undefined : json['path'], + 'scheme': !exists(json, 'scheme') ? undefined : json['scheme'], + }; +} + +export function K8sIoApiCoreV1HTTPGetActionToJSON(value?: K8sIoApiCoreV1HTTPGetAction | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'host': value.host, + 'httpHeaders': value.httpHeaders === undefined ? undefined : ((value.httpHeaders as Array).map(K8sIoApiCoreV1HTTPHeaderToJSON)), + 'path': value.path, + 'scheme': value.scheme, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1HTTPHeader.ts b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1HTTPHeader.ts new file mode 100644 index 000000000..5207d5a76 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1HTTPHeader.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * HTTPHeader describes a custom header to be used in HTTP probes + * @export + * @interface K8sIoApiCoreV1HTTPHeader + */ +export interface K8sIoApiCoreV1HTTPHeader { + /** + * The header field name + * @type {string} + * @memberof K8sIoApiCoreV1HTTPHeader + */ + name: string; + /** + * The header field value + * @type {string} + * @memberof K8sIoApiCoreV1HTTPHeader + */ + value: string; +} + +/** + * Check if a given object implements the K8sIoApiCoreV1HTTPHeader interface. + */ +export function instanceOfK8sIoApiCoreV1HTTPHeader(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "value" in value; + + return isInstance; +} + +export function K8sIoApiCoreV1HTTPHeaderFromJSON(json: any): K8sIoApiCoreV1HTTPHeader { + return K8sIoApiCoreV1HTTPHeaderFromJSONTyped(json, false); +} + +export function K8sIoApiCoreV1HTTPHeaderFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApiCoreV1HTTPHeader { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + 'value': json['value'], + }; +} + +export function K8sIoApiCoreV1HTTPHeaderToJSON(value?: K8sIoApiCoreV1HTTPHeader | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'value': value.value, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1LocalObjectReference.ts b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1LocalObjectReference.ts new file mode 100644 index 000000000..9b780b206 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1LocalObjectReference.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. + * @export + * @interface K8sIoApiCoreV1LocalObjectReference + */ +export interface K8sIoApiCoreV1LocalObjectReference { + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * @type {string} + * @memberof K8sIoApiCoreV1LocalObjectReference + */ + name?: string; +} + +/** + * Check if a given object implements the K8sIoApiCoreV1LocalObjectReference interface. + */ +export function instanceOfK8sIoApiCoreV1LocalObjectReference(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function K8sIoApiCoreV1LocalObjectReferenceFromJSON(json: any): K8sIoApiCoreV1LocalObjectReference { + return K8sIoApiCoreV1LocalObjectReferenceFromJSONTyped(json, false); +} + +export function K8sIoApiCoreV1LocalObjectReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApiCoreV1LocalObjectReference { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': !exists(json, 'name') ? undefined : json['name'], + }; +} + +export function K8sIoApiCoreV1LocalObjectReferenceToJSON(value?: K8sIoApiCoreV1LocalObjectReference | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1NodeAffinity.ts b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1NodeAffinity.ts new file mode 100644 index 000000000..06baacb94 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1NodeAffinity.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1NodeSelector } from './K8sIoApiCoreV1NodeSelector'; +import { + K8sIoApiCoreV1NodeSelectorFromJSON, + K8sIoApiCoreV1NodeSelectorFromJSONTyped, + K8sIoApiCoreV1NodeSelectorToJSON, +} from './K8sIoApiCoreV1NodeSelector'; +import type { K8sIoApiCoreV1PreferredSchedulingTerm } from './K8sIoApiCoreV1PreferredSchedulingTerm'; +import { + K8sIoApiCoreV1PreferredSchedulingTermFromJSON, + K8sIoApiCoreV1PreferredSchedulingTermFromJSONTyped, + K8sIoApiCoreV1PreferredSchedulingTermToJSON, +} from './K8sIoApiCoreV1PreferredSchedulingTerm'; + +/** + * Node affinity is a group of node affinity scheduling rules. + * @export + * @interface K8sIoApiCoreV1NodeAffinity + */ +export interface K8sIoApiCoreV1NodeAffinity { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * @type {Array} + * @memberof K8sIoApiCoreV1NodeAffinity + */ + preferredDuringSchedulingIgnoredDuringExecution?: Array; + /** + * + * @type {K8sIoApiCoreV1NodeSelector} + * @memberof K8sIoApiCoreV1NodeAffinity + */ + requiredDuringSchedulingIgnoredDuringExecution?: K8sIoApiCoreV1NodeSelector; +} + +/** + * Check if a given object implements the K8sIoApiCoreV1NodeAffinity interface. + */ +export function instanceOfK8sIoApiCoreV1NodeAffinity(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function K8sIoApiCoreV1NodeAffinityFromJSON(json: any): K8sIoApiCoreV1NodeAffinity { + return K8sIoApiCoreV1NodeAffinityFromJSONTyped(json, false); +} + +export function K8sIoApiCoreV1NodeAffinityFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApiCoreV1NodeAffinity { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'preferredDuringSchedulingIgnoredDuringExecution': !exists(json, 'preferredDuringSchedulingIgnoredDuringExecution') ? undefined : ((json['preferredDuringSchedulingIgnoredDuringExecution'] as Array).map(K8sIoApiCoreV1PreferredSchedulingTermFromJSON)), + 'requiredDuringSchedulingIgnoredDuringExecution': !exists(json, 'requiredDuringSchedulingIgnoredDuringExecution') ? undefined : K8sIoApiCoreV1NodeSelectorFromJSON(json['requiredDuringSchedulingIgnoredDuringExecution']), + }; +} + +export function K8sIoApiCoreV1NodeAffinityToJSON(value?: K8sIoApiCoreV1NodeAffinity | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'preferredDuringSchedulingIgnoredDuringExecution': value.preferredDuringSchedulingIgnoredDuringExecution === undefined ? undefined : ((value.preferredDuringSchedulingIgnoredDuringExecution as Array).map(K8sIoApiCoreV1PreferredSchedulingTermToJSON)), + 'requiredDuringSchedulingIgnoredDuringExecution': K8sIoApiCoreV1NodeSelectorToJSON(value.requiredDuringSchedulingIgnoredDuringExecution), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1NodeSelector.ts b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1NodeSelector.ts new file mode 100644 index 000000000..0565d537f --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1NodeSelector.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1NodeSelectorTerm } from './K8sIoApiCoreV1NodeSelectorTerm'; +import { + K8sIoApiCoreV1NodeSelectorTermFromJSON, + K8sIoApiCoreV1NodeSelectorTermFromJSONTyped, + K8sIoApiCoreV1NodeSelectorTermToJSON, +} from './K8sIoApiCoreV1NodeSelectorTerm'; + +/** + * A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms. + * @export + * @interface K8sIoApiCoreV1NodeSelector + */ +export interface K8sIoApiCoreV1NodeSelector { + /** + * Required. A list of node selector terms. The terms are ORed. + * @type {Array} + * @memberof K8sIoApiCoreV1NodeSelector + */ + nodeSelectorTerms: Array; +} + +/** + * Check if a given object implements the K8sIoApiCoreV1NodeSelector interface. + */ +export function instanceOfK8sIoApiCoreV1NodeSelector(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "nodeSelectorTerms" in value; + + return isInstance; +} + +export function K8sIoApiCoreV1NodeSelectorFromJSON(json: any): K8sIoApiCoreV1NodeSelector { + return K8sIoApiCoreV1NodeSelectorFromJSONTyped(json, false); +} + +export function K8sIoApiCoreV1NodeSelectorFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApiCoreV1NodeSelector { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'nodeSelectorTerms': ((json['nodeSelectorTerms'] as Array).map(K8sIoApiCoreV1NodeSelectorTermFromJSON)), + }; +} + +export function K8sIoApiCoreV1NodeSelectorToJSON(value?: K8sIoApiCoreV1NodeSelector | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'nodeSelectorTerms': ((value.nodeSelectorTerms as Array).map(K8sIoApiCoreV1NodeSelectorTermToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1NodeSelectorRequirement.ts b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1NodeSelectorRequirement.ts new file mode 100644 index 000000000..c1c8dba55 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1NodeSelectorRequirement.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. + * @export + * @interface K8sIoApiCoreV1NodeSelectorRequirement + */ +export interface K8sIoApiCoreV1NodeSelectorRequirement { + /** + * The label key that the selector applies to. + * @type {string} + * @memberof K8sIoApiCoreV1NodeSelectorRequirement + */ + key: string; + /** + * Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * + * Possible enum values: + * - `"DoesNotExist"` + * - `"Exists"` + * - `"Gt"` + * - `"In"` + * - `"Lt"` + * - `"NotIn"` + * @type {string} + * @memberof K8sIoApiCoreV1NodeSelectorRequirement + */ + operator: K8sIoApiCoreV1NodeSelectorRequirementOperatorEnum; + /** + * An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. + * @type {Array} + * @memberof K8sIoApiCoreV1NodeSelectorRequirement + */ + values?: Array; +} + + +/** + * @export + */ +export const K8sIoApiCoreV1NodeSelectorRequirementOperatorEnum = { + DoesNotExist: 'DoesNotExist', + Exists: 'Exists', + Gt: 'Gt', + In: 'In', + Lt: 'Lt', + NotIn: 'NotIn' +} as const; +export type K8sIoApiCoreV1NodeSelectorRequirementOperatorEnum = typeof K8sIoApiCoreV1NodeSelectorRequirementOperatorEnum[keyof typeof K8sIoApiCoreV1NodeSelectorRequirementOperatorEnum]; + + +/** + * Check if a given object implements the K8sIoApiCoreV1NodeSelectorRequirement interface. + */ +export function instanceOfK8sIoApiCoreV1NodeSelectorRequirement(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "key" in value; + isInstance = isInstance && "operator" in value; + + return isInstance; +} + +export function K8sIoApiCoreV1NodeSelectorRequirementFromJSON(json: any): K8sIoApiCoreV1NodeSelectorRequirement { + return K8sIoApiCoreV1NodeSelectorRequirementFromJSONTyped(json, false); +} + +export function K8sIoApiCoreV1NodeSelectorRequirementFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApiCoreV1NodeSelectorRequirement { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'key': json['key'], + 'operator': json['operator'], + 'values': !exists(json, 'values') ? undefined : json['values'], + }; +} + +export function K8sIoApiCoreV1NodeSelectorRequirementToJSON(value?: K8sIoApiCoreV1NodeSelectorRequirement | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'key': value.key, + 'operator': value.operator, + 'values': value.values, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1NodeSelectorTerm.ts b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1NodeSelectorTerm.ts new file mode 100644 index 000000000..1ff79e597 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1NodeSelectorTerm.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1NodeSelectorRequirement } from './K8sIoApiCoreV1NodeSelectorRequirement'; +import { + K8sIoApiCoreV1NodeSelectorRequirementFromJSON, + K8sIoApiCoreV1NodeSelectorRequirementFromJSONTyped, + K8sIoApiCoreV1NodeSelectorRequirementToJSON, +} from './K8sIoApiCoreV1NodeSelectorRequirement'; + +/** + * A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. + * @export + * @interface K8sIoApiCoreV1NodeSelectorTerm + */ +export interface K8sIoApiCoreV1NodeSelectorTerm { + /** + * A list of node selector requirements by node's labels. + * @type {Array} + * @memberof K8sIoApiCoreV1NodeSelectorTerm + */ + matchExpressions?: Array; + /** + * A list of node selector requirements by node's fields. + * @type {Array} + * @memberof K8sIoApiCoreV1NodeSelectorTerm + */ + matchFields?: Array; +} + +/** + * Check if a given object implements the K8sIoApiCoreV1NodeSelectorTerm interface. + */ +export function instanceOfK8sIoApiCoreV1NodeSelectorTerm(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function K8sIoApiCoreV1NodeSelectorTermFromJSON(json: any): K8sIoApiCoreV1NodeSelectorTerm { + return K8sIoApiCoreV1NodeSelectorTermFromJSONTyped(json, false); +} + +export function K8sIoApiCoreV1NodeSelectorTermFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApiCoreV1NodeSelectorTerm { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'matchExpressions': !exists(json, 'matchExpressions') ? undefined : ((json['matchExpressions'] as Array).map(K8sIoApiCoreV1NodeSelectorRequirementFromJSON)), + 'matchFields': !exists(json, 'matchFields') ? undefined : ((json['matchFields'] as Array).map(K8sIoApiCoreV1NodeSelectorRequirementFromJSON)), + }; +} + +export function K8sIoApiCoreV1NodeSelectorTermToJSON(value?: K8sIoApiCoreV1NodeSelectorTerm | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'matchExpressions': value.matchExpressions === undefined ? undefined : ((value.matchExpressions as Array).map(K8sIoApiCoreV1NodeSelectorRequirementToJSON)), + 'matchFields': value.matchFields === undefined ? undefined : ((value.matchFields as Array).map(K8sIoApiCoreV1NodeSelectorRequirementToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1ObjectFieldSelector.ts b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1ObjectFieldSelector.ts new file mode 100644 index 000000000..b9621c882 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1ObjectFieldSelector.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ObjectFieldSelector selects an APIVersioned field of an object. + * @export + * @interface K8sIoApiCoreV1ObjectFieldSelector + */ +export interface K8sIoApiCoreV1ObjectFieldSelector { + /** + * Version of the schema the FieldPath is written in terms of, defaults to "v1". + * @type {string} + * @memberof K8sIoApiCoreV1ObjectFieldSelector + */ + apiVersion?: string; + /** + * Path of the field to select in the specified API version. + * @type {string} + * @memberof K8sIoApiCoreV1ObjectFieldSelector + */ + fieldPath: string; +} + +/** + * Check if a given object implements the K8sIoApiCoreV1ObjectFieldSelector interface. + */ +export function instanceOfK8sIoApiCoreV1ObjectFieldSelector(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "fieldPath" in value; + + return isInstance; +} + +export function K8sIoApiCoreV1ObjectFieldSelectorFromJSON(json: any): K8sIoApiCoreV1ObjectFieldSelector { + return K8sIoApiCoreV1ObjectFieldSelectorFromJSONTyped(json, false); +} + +export function K8sIoApiCoreV1ObjectFieldSelectorFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApiCoreV1ObjectFieldSelector { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'fieldPath': json['fieldPath'], + }; +} + +export function K8sIoApiCoreV1ObjectFieldSelectorToJSON(value?: K8sIoApiCoreV1ObjectFieldSelector | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'fieldPath': value.fieldPath, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PersistentVolumeClaimSpec.ts b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PersistentVolumeClaimSpec.ts new file mode 100644 index 000000000..2bf43246a --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PersistentVolumeClaimSpec.ts @@ -0,0 +1,161 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1ResourceRequirements } from './K8sIoApiCoreV1ResourceRequirements'; +import { + K8sIoApiCoreV1ResourceRequirementsFromJSON, + K8sIoApiCoreV1ResourceRequirementsFromJSONTyped, + K8sIoApiCoreV1ResourceRequirementsToJSON, +} from './K8sIoApiCoreV1ResourceRequirements'; +import type { K8sIoApiCoreV1TypedLocalObjectReference } from './K8sIoApiCoreV1TypedLocalObjectReference'; +import { + K8sIoApiCoreV1TypedLocalObjectReferenceFromJSON, + K8sIoApiCoreV1TypedLocalObjectReferenceFromJSONTyped, + K8sIoApiCoreV1TypedLocalObjectReferenceToJSON, +} from './K8sIoApiCoreV1TypedLocalObjectReference'; +import type { K8sIoApiCoreV1TypedObjectReference } from './K8sIoApiCoreV1TypedObjectReference'; +import { + K8sIoApiCoreV1TypedObjectReferenceFromJSON, + K8sIoApiCoreV1TypedObjectReferenceFromJSONTyped, + K8sIoApiCoreV1TypedObjectReferenceToJSON, +} from './K8sIoApiCoreV1TypedObjectReference'; +import type { K8sIoApimachineryPkgApisMetaV1LabelSelector } from './K8sIoApimachineryPkgApisMetaV1LabelSelector'; +import { + K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSON, + K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './K8sIoApimachineryPkgApisMetaV1LabelSelector'; + +/** + * PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes + * @export + * @interface K8sIoApiCoreV1PersistentVolumeClaimSpec + */ +export interface K8sIoApiCoreV1PersistentVolumeClaimSpec { + /** + * accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * @type {Array} + * @memberof K8sIoApiCoreV1PersistentVolumeClaimSpec + */ + accessModes?: Array; + /** + * + * @type {K8sIoApiCoreV1TypedLocalObjectReference} + * @memberof K8sIoApiCoreV1PersistentVolumeClaimSpec + */ + dataSource?: K8sIoApiCoreV1TypedLocalObjectReference; + /** + * + * @type {K8sIoApiCoreV1TypedObjectReference} + * @memberof K8sIoApiCoreV1PersistentVolumeClaimSpec + */ + dataSourceRef?: K8sIoApiCoreV1TypedObjectReference; + /** + * + * @type {K8sIoApiCoreV1ResourceRequirements} + * @memberof K8sIoApiCoreV1PersistentVolumeClaimSpec + */ + resources?: K8sIoApiCoreV1ResourceRequirements; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1LabelSelector} + * @memberof K8sIoApiCoreV1PersistentVolumeClaimSpec + */ + selector?: K8sIoApimachineryPkgApisMetaV1LabelSelector; + /** + * storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + * @type {string} + * @memberof K8sIoApiCoreV1PersistentVolumeClaimSpec + */ + storageClassName?: string; + /** + * volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + * + * Possible enum values: + * - `"Block"` means the volume will not be formatted with a filesystem and will remain a raw block device. + * - `"Filesystem"` means the volume will be or is formatted with a filesystem. + * @type {string} + * @memberof K8sIoApiCoreV1PersistentVolumeClaimSpec + */ + volumeMode?: K8sIoApiCoreV1PersistentVolumeClaimSpecVolumeModeEnum; + /** + * volumeName is the binding reference to the PersistentVolume backing this claim. + * @type {string} + * @memberof K8sIoApiCoreV1PersistentVolumeClaimSpec + */ + volumeName?: string; +} + + +/** + * @export + */ +export const K8sIoApiCoreV1PersistentVolumeClaimSpecVolumeModeEnum = { + Block: 'Block', + Filesystem: 'Filesystem' +} as const; +export type K8sIoApiCoreV1PersistentVolumeClaimSpecVolumeModeEnum = typeof K8sIoApiCoreV1PersistentVolumeClaimSpecVolumeModeEnum[keyof typeof K8sIoApiCoreV1PersistentVolumeClaimSpecVolumeModeEnum]; + + +/** + * Check if a given object implements the K8sIoApiCoreV1PersistentVolumeClaimSpec interface. + */ +export function instanceOfK8sIoApiCoreV1PersistentVolumeClaimSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function K8sIoApiCoreV1PersistentVolumeClaimSpecFromJSON(json: any): K8sIoApiCoreV1PersistentVolumeClaimSpec { + return K8sIoApiCoreV1PersistentVolumeClaimSpecFromJSONTyped(json, false); +} + +export function K8sIoApiCoreV1PersistentVolumeClaimSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApiCoreV1PersistentVolumeClaimSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accessModes': !exists(json, 'accessModes') ? undefined : json['accessModes'], + 'dataSource': !exists(json, 'dataSource') ? undefined : K8sIoApiCoreV1TypedLocalObjectReferenceFromJSON(json['dataSource']), + 'dataSourceRef': !exists(json, 'dataSourceRef') ? undefined : K8sIoApiCoreV1TypedObjectReferenceFromJSON(json['dataSourceRef']), + 'resources': !exists(json, 'resources') ? undefined : K8sIoApiCoreV1ResourceRequirementsFromJSON(json['resources']), + 'selector': !exists(json, 'selector') ? undefined : K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['selector']), + 'storageClassName': !exists(json, 'storageClassName') ? undefined : json['storageClassName'], + 'volumeMode': !exists(json, 'volumeMode') ? undefined : json['volumeMode'], + 'volumeName': !exists(json, 'volumeName') ? undefined : json['volumeName'], + }; +} + +export function K8sIoApiCoreV1PersistentVolumeClaimSpecToJSON(value?: K8sIoApiCoreV1PersistentVolumeClaimSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'accessModes': value.accessModes, + 'dataSource': K8sIoApiCoreV1TypedLocalObjectReferenceToJSON(value.dataSource), + 'dataSourceRef': K8sIoApiCoreV1TypedObjectReferenceToJSON(value.dataSourceRef), + 'resources': K8sIoApiCoreV1ResourceRequirementsToJSON(value.resources), + 'selector': K8sIoApimachineryPkgApisMetaV1LabelSelectorToJSON(value.selector), + 'storageClassName': value.storageClassName, + 'volumeMode': value.volumeMode, + 'volumeName': value.volumeName, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PersistentVolumeClaimVolumeSource.ts b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PersistentVolumeClaimVolumeSource.ts new file mode 100644 index 000000000..d73723c30 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PersistentVolumeClaimVolumeSource.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system). + * @export + * @interface K8sIoApiCoreV1PersistentVolumeClaimVolumeSource + */ +export interface K8sIoApiCoreV1PersistentVolumeClaimVolumeSource { + /** + * claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * @type {string} + * @memberof K8sIoApiCoreV1PersistentVolumeClaimVolumeSource + */ + claimName: string; + /** + * readOnly Will force the ReadOnly setting in VolumeMounts. Default false. + * @type {boolean} + * @memberof K8sIoApiCoreV1PersistentVolumeClaimVolumeSource + */ + readOnly?: boolean; +} + +/** + * Check if a given object implements the K8sIoApiCoreV1PersistentVolumeClaimVolumeSource interface. + */ +export function instanceOfK8sIoApiCoreV1PersistentVolumeClaimVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "claimName" in value; + + return isInstance; +} + +export function K8sIoApiCoreV1PersistentVolumeClaimVolumeSourceFromJSON(json: any): K8sIoApiCoreV1PersistentVolumeClaimVolumeSource { + return K8sIoApiCoreV1PersistentVolumeClaimVolumeSourceFromJSONTyped(json, false); +} + +export function K8sIoApiCoreV1PersistentVolumeClaimVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApiCoreV1PersistentVolumeClaimVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'claimName': json['claimName'], + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + }; +} + +export function K8sIoApiCoreV1PersistentVolumeClaimVolumeSourceToJSON(value?: K8sIoApiCoreV1PersistentVolumeClaimVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'claimName': value.claimName, + 'readOnly': value.readOnly, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PodAffinity.ts b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PodAffinity.ts new file mode 100644 index 000000000..e3331acd5 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PodAffinity.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1PodAffinityTerm } from './K8sIoApiCoreV1PodAffinityTerm'; +import { + K8sIoApiCoreV1PodAffinityTermFromJSON, + K8sIoApiCoreV1PodAffinityTermFromJSONTyped, + K8sIoApiCoreV1PodAffinityTermToJSON, +} from './K8sIoApiCoreV1PodAffinityTerm'; +import type { K8sIoApiCoreV1WeightedPodAffinityTerm } from './K8sIoApiCoreV1WeightedPodAffinityTerm'; +import { + K8sIoApiCoreV1WeightedPodAffinityTermFromJSON, + K8sIoApiCoreV1WeightedPodAffinityTermFromJSONTyped, + K8sIoApiCoreV1WeightedPodAffinityTermToJSON, +} from './K8sIoApiCoreV1WeightedPodAffinityTerm'; + +/** + * Pod affinity is a group of inter pod affinity scheduling rules. + * @export + * @interface K8sIoApiCoreV1PodAffinity + */ +export interface K8sIoApiCoreV1PodAffinity { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * @type {Array} + * @memberof K8sIoApiCoreV1PodAffinity + */ + preferredDuringSchedulingIgnoredDuringExecution?: Array; + /** + * If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + * @type {Array} + * @memberof K8sIoApiCoreV1PodAffinity + */ + requiredDuringSchedulingIgnoredDuringExecution?: Array; +} + +/** + * Check if a given object implements the K8sIoApiCoreV1PodAffinity interface. + */ +export function instanceOfK8sIoApiCoreV1PodAffinity(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function K8sIoApiCoreV1PodAffinityFromJSON(json: any): K8sIoApiCoreV1PodAffinity { + return K8sIoApiCoreV1PodAffinityFromJSONTyped(json, false); +} + +export function K8sIoApiCoreV1PodAffinityFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApiCoreV1PodAffinity { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'preferredDuringSchedulingIgnoredDuringExecution': !exists(json, 'preferredDuringSchedulingIgnoredDuringExecution') ? undefined : ((json['preferredDuringSchedulingIgnoredDuringExecution'] as Array).map(K8sIoApiCoreV1WeightedPodAffinityTermFromJSON)), + 'requiredDuringSchedulingIgnoredDuringExecution': !exists(json, 'requiredDuringSchedulingIgnoredDuringExecution') ? undefined : ((json['requiredDuringSchedulingIgnoredDuringExecution'] as Array).map(K8sIoApiCoreV1PodAffinityTermFromJSON)), + }; +} + +export function K8sIoApiCoreV1PodAffinityToJSON(value?: K8sIoApiCoreV1PodAffinity | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'preferredDuringSchedulingIgnoredDuringExecution': value.preferredDuringSchedulingIgnoredDuringExecution === undefined ? undefined : ((value.preferredDuringSchedulingIgnoredDuringExecution as Array).map(K8sIoApiCoreV1WeightedPodAffinityTermToJSON)), + 'requiredDuringSchedulingIgnoredDuringExecution': value.requiredDuringSchedulingIgnoredDuringExecution === undefined ? undefined : ((value.requiredDuringSchedulingIgnoredDuringExecution as Array).map(K8sIoApiCoreV1PodAffinityTermToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PodAffinityTerm.ts b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PodAffinityTerm.ts new file mode 100644 index 000000000..baccd09bc --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PodAffinityTerm.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1LabelSelector } from './K8sIoApimachineryPkgApisMetaV1LabelSelector'; +import { + K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSON, + K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './K8sIoApimachineryPkgApisMetaV1LabelSelector'; + +/** + * Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running + * @export + * @interface K8sIoApiCoreV1PodAffinityTerm + */ +export interface K8sIoApiCoreV1PodAffinityTerm { + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1LabelSelector} + * @memberof K8sIoApiCoreV1PodAffinityTerm + */ + labelSelector?: K8sIoApimachineryPkgApisMetaV1LabelSelector; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1LabelSelector} + * @memberof K8sIoApiCoreV1PodAffinityTerm + */ + namespaceSelector?: K8sIoApimachineryPkgApisMetaV1LabelSelector; + /** + * namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". + * @type {Array} + * @memberof K8sIoApiCoreV1PodAffinityTerm + */ + namespaces?: Array; + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + * @type {string} + * @memberof K8sIoApiCoreV1PodAffinityTerm + */ + topologyKey: string; +} + +/** + * Check if a given object implements the K8sIoApiCoreV1PodAffinityTerm interface. + */ +export function instanceOfK8sIoApiCoreV1PodAffinityTerm(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "topologyKey" in value; + + return isInstance; +} + +export function K8sIoApiCoreV1PodAffinityTermFromJSON(json: any): K8sIoApiCoreV1PodAffinityTerm { + return K8sIoApiCoreV1PodAffinityTermFromJSONTyped(json, false); +} + +export function K8sIoApiCoreV1PodAffinityTermFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApiCoreV1PodAffinityTerm { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'labelSelector': !exists(json, 'labelSelector') ? undefined : K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['labelSelector']), + 'namespaceSelector': !exists(json, 'namespaceSelector') ? undefined : K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['namespaceSelector']), + 'namespaces': !exists(json, 'namespaces') ? undefined : json['namespaces'], + 'topologyKey': json['topologyKey'], + }; +} + +export function K8sIoApiCoreV1PodAffinityTermToJSON(value?: K8sIoApiCoreV1PodAffinityTerm | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'labelSelector': K8sIoApimachineryPkgApisMetaV1LabelSelectorToJSON(value.labelSelector), + 'namespaceSelector': K8sIoApimachineryPkgApisMetaV1LabelSelectorToJSON(value.namespaceSelector), + 'namespaces': value.namespaces, + 'topologyKey': value.topologyKey, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PodAntiAffinity.ts b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PodAntiAffinity.ts new file mode 100644 index 000000000..823906a28 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PodAntiAffinity.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1PodAffinityTerm } from './K8sIoApiCoreV1PodAffinityTerm'; +import { + K8sIoApiCoreV1PodAffinityTermFromJSON, + K8sIoApiCoreV1PodAffinityTermFromJSONTyped, + K8sIoApiCoreV1PodAffinityTermToJSON, +} from './K8sIoApiCoreV1PodAffinityTerm'; +import type { K8sIoApiCoreV1WeightedPodAffinityTerm } from './K8sIoApiCoreV1WeightedPodAffinityTerm'; +import { + K8sIoApiCoreV1WeightedPodAffinityTermFromJSON, + K8sIoApiCoreV1WeightedPodAffinityTermFromJSONTyped, + K8sIoApiCoreV1WeightedPodAffinityTermToJSON, +} from './K8sIoApiCoreV1WeightedPodAffinityTerm'; + +/** + * Pod anti affinity is a group of inter pod anti affinity scheduling rules. + * @export + * @interface K8sIoApiCoreV1PodAntiAffinity + */ +export interface K8sIoApiCoreV1PodAntiAffinity { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * @type {Array} + * @memberof K8sIoApiCoreV1PodAntiAffinity + */ + preferredDuringSchedulingIgnoredDuringExecution?: Array; + /** + * If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + * @type {Array} + * @memberof K8sIoApiCoreV1PodAntiAffinity + */ + requiredDuringSchedulingIgnoredDuringExecution?: Array; +} + +/** + * Check if a given object implements the K8sIoApiCoreV1PodAntiAffinity interface. + */ +export function instanceOfK8sIoApiCoreV1PodAntiAffinity(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function K8sIoApiCoreV1PodAntiAffinityFromJSON(json: any): K8sIoApiCoreV1PodAntiAffinity { + return K8sIoApiCoreV1PodAntiAffinityFromJSONTyped(json, false); +} + +export function K8sIoApiCoreV1PodAntiAffinityFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApiCoreV1PodAntiAffinity { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'preferredDuringSchedulingIgnoredDuringExecution': !exists(json, 'preferredDuringSchedulingIgnoredDuringExecution') ? undefined : ((json['preferredDuringSchedulingIgnoredDuringExecution'] as Array).map(K8sIoApiCoreV1WeightedPodAffinityTermFromJSON)), + 'requiredDuringSchedulingIgnoredDuringExecution': !exists(json, 'requiredDuringSchedulingIgnoredDuringExecution') ? undefined : ((json['requiredDuringSchedulingIgnoredDuringExecution'] as Array).map(K8sIoApiCoreV1PodAffinityTermFromJSON)), + }; +} + +export function K8sIoApiCoreV1PodAntiAffinityToJSON(value?: K8sIoApiCoreV1PodAntiAffinity | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'preferredDuringSchedulingIgnoredDuringExecution': value.preferredDuringSchedulingIgnoredDuringExecution === undefined ? undefined : ((value.preferredDuringSchedulingIgnoredDuringExecution as Array).map(K8sIoApiCoreV1WeightedPodAffinityTermToJSON)), + 'requiredDuringSchedulingIgnoredDuringExecution': value.requiredDuringSchedulingIgnoredDuringExecution === undefined ? undefined : ((value.requiredDuringSchedulingIgnoredDuringExecution as Array).map(K8sIoApiCoreV1PodAffinityTermToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PodDNSConfig.ts b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PodDNSConfig.ts new file mode 100644 index 000000000..51bf25a6b --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PodDNSConfig.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1PodDNSConfigOption } from './K8sIoApiCoreV1PodDNSConfigOption'; +import { + K8sIoApiCoreV1PodDNSConfigOptionFromJSON, + K8sIoApiCoreV1PodDNSConfigOptionFromJSONTyped, + K8sIoApiCoreV1PodDNSConfigOptionToJSON, +} from './K8sIoApiCoreV1PodDNSConfigOption'; + +/** + * PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy. + * @export + * @interface K8sIoApiCoreV1PodDNSConfig + */ +export interface K8sIoApiCoreV1PodDNSConfig { + /** + * A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * @type {Array} + * @memberof K8sIoApiCoreV1PodDNSConfig + */ + nameservers?: Array; + /** + * A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * @type {Array} + * @memberof K8sIoApiCoreV1PodDNSConfig + */ + options?: Array; + /** + * A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + * @type {Array} + * @memberof K8sIoApiCoreV1PodDNSConfig + */ + searches?: Array; +} + +/** + * Check if a given object implements the K8sIoApiCoreV1PodDNSConfig interface. + */ +export function instanceOfK8sIoApiCoreV1PodDNSConfig(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function K8sIoApiCoreV1PodDNSConfigFromJSON(json: any): K8sIoApiCoreV1PodDNSConfig { + return K8sIoApiCoreV1PodDNSConfigFromJSONTyped(json, false); +} + +export function K8sIoApiCoreV1PodDNSConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApiCoreV1PodDNSConfig { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'nameservers': !exists(json, 'nameservers') ? undefined : json['nameservers'], + 'options': !exists(json, 'options') ? undefined : ((json['options'] as Array).map(K8sIoApiCoreV1PodDNSConfigOptionFromJSON)), + 'searches': !exists(json, 'searches') ? undefined : json['searches'], + }; +} + +export function K8sIoApiCoreV1PodDNSConfigToJSON(value?: K8sIoApiCoreV1PodDNSConfig | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'nameservers': value.nameservers, + 'options': value.options === undefined ? undefined : ((value.options as Array).map(K8sIoApiCoreV1PodDNSConfigOptionToJSON)), + 'searches': value.searches, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PodDNSConfigOption.ts b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PodDNSConfigOption.ts new file mode 100644 index 000000000..be2554f52 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PodDNSConfigOption.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * PodDNSConfigOption defines DNS resolver options of a pod. + * @export + * @interface K8sIoApiCoreV1PodDNSConfigOption + */ +export interface K8sIoApiCoreV1PodDNSConfigOption { + /** + * Required. + * @type {string} + * @memberof K8sIoApiCoreV1PodDNSConfigOption + */ + name?: string; + /** + * + * @type {string} + * @memberof K8sIoApiCoreV1PodDNSConfigOption + */ + value?: string; +} + +/** + * Check if a given object implements the K8sIoApiCoreV1PodDNSConfigOption interface. + */ +export function instanceOfK8sIoApiCoreV1PodDNSConfigOption(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function K8sIoApiCoreV1PodDNSConfigOptionFromJSON(json: any): K8sIoApiCoreV1PodDNSConfigOption { + return K8sIoApiCoreV1PodDNSConfigOptionFromJSONTyped(json, false); +} + +export function K8sIoApiCoreV1PodDNSConfigOptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApiCoreV1PodDNSConfigOption { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': !exists(json, 'name') ? undefined : json['name'], + 'value': !exists(json, 'value') ? undefined : json['value'], + }; +} + +export function K8sIoApiCoreV1PodDNSConfigOptionToJSON(value?: K8sIoApiCoreV1PodDNSConfigOption | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'value': value.value, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PreferredSchedulingTerm.ts b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PreferredSchedulingTerm.ts new file mode 100644 index 000000000..fcbc66664 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1PreferredSchedulingTerm.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1NodeSelectorTerm } from './K8sIoApiCoreV1NodeSelectorTerm'; +import { + K8sIoApiCoreV1NodeSelectorTermFromJSON, + K8sIoApiCoreV1NodeSelectorTermFromJSONTyped, + K8sIoApiCoreV1NodeSelectorTermToJSON, +} from './K8sIoApiCoreV1NodeSelectorTerm'; + +/** + * An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). + * @export + * @interface K8sIoApiCoreV1PreferredSchedulingTerm + */ +export interface K8sIoApiCoreV1PreferredSchedulingTerm { + /** + * + * @type {K8sIoApiCoreV1NodeSelectorTerm} + * @memberof K8sIoApiCoreV1PreferredSchedulingTerm + */ + preference: K8sIoApiCoreV1NodeSelectorTerm; + /** + * Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + * @type {number} + * @memberof K8sIoApiCoreV1PreferredSchedulingTerm + */ + weight: number; +} + +/** + * Check if a given object implements the K8sIoApiCoreV1PreferredSchedulingTerm interface. + */ +export function instanceOfK8sIoApiCoreV1PreferredSchedulingTerm(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "preference" in value; + isInstance = isInstance && "weight" in value; + + return isInstance; +} + +export function K8sIoApiCoreV1PreferredSchedulingTermFromJSON(json: any): K8sIoApiCoreV1PreferredSchedulingTerm { + return K8sIoApiCoreV1PreferredSchedulingTermFromJSONTyped(json, false); +} + +export function K8sIoApiCoreV1PreferredSchedulingTermFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApiCoreV1PreferredSchedulingTerm { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'preference': K8sIoApiCoreV1NodeSelectorTermFromJSON(json['preference']), + 'weight': json['weight'], + }; +} + +export function K8sIoApiCoreV1PreferredSchedulingTermToJSON(value?: K8sIoApiCoreV1PreferredSchedulingTerm | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'preference': K8sIoApiCoreV1NodeSelectorTermToJSON(value.preference), + 'weight': value.weight, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1ResourceClaim.ts b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1ResourceClaim.ts new file mode 100644 index 000000000..8c6637639 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1ResourceClaim.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ResourceClaim references one entry in PodSpec.ResourceClaims. + * @export + * @interface K8sIoApiCoreV1ResourceClaim + */ +export interface K8sIoApiCoreV1ResourceClaim { + /** + * 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. + * @type {string} + * @memberof K8sIoApiCoreV1ResourceClaim + */ + name: string; +} + +/** + * Check if a given object implements the K8sIoApiCoreV1ResourceClaim interface. + */ +export function instanceOfK8sIoApiCoreV1ResourceClaim(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function K8sIoApiCoreV1ResourceClaimFromJSON(json: any): K8sIoApiCoreV1ResourceClaim { + return K8sIoApiCoreV1ResourceClaimFromJSONTyped(json, false); +} + +export function K8sIoApiCoreV1ResourceClaimFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApiCoreV1ResourceClaim { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + }; +} + +export function K8sIoApiCoreV1ResourceClaimToJSON(value?: K8sIoApiCoreV1ResourceClaim | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1ResourceFieldSelector.ts b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1ResourceFieldSelector.ts new file mode 100644 index 000000000..86b78c30a --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1ResourceFieldSelector.ts @@ -0,0 +1,118 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ResourceFieldSelector represents container resources (cpu, memory) and their output format + * @export + * @interface K8sIoApiCoreV1ResourceFieldSelector + */ +export interface K8sIoApiCoreV1ResourceFieldSelector { + /** + * Container name: required for volumes, optional for env vars + * @type {string} + * @memberof K8sIoApiCoreV1ResourceFieldSelector + */ + containerName?: string; + /** + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + * + * The serialization format is: + * + * ``` ::= + * + * (Note that may be empty, from the "" case in .) + * + * ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + * + * (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + * + * ::= m | "" | k | M | G | T | P | E + * + * (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + * + * ::= "e" | "E" ``` + * + * No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + * + * When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + * + * Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + * + * - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. + * + * The sign will be omitted unless the number is negative. + * + * Examples: + * + * - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" + * + * Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + * + * Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + * + * This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + * @type {string} + * @memberof K8sIoApiCoreV1ResourceFieldSelector + */ + divisor?: string; + /** + * Required: resource to select + * @type {string} + * @memberof K8sIoApiCoreV1ResourceFieldSelector + */ + resource: string; +} + +/** + * Check if a given object implements the K8sIoApiCoreV1ResourceFieldSelector interface. + */ +export function instanceOfK8sIoApiCoreV1ResourceFieldSelector(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "resource" in value; + + return isInstance; +} + +export function K8sIoApiCoreV1ResourceFieldSelectorFromJSON(json: any): K8sIoApiCoreV1ResourceFieldSelector { + return K8sIoApiCoreV1ResourceFieldSelectorFromJSONTyped(json, false); +} + +export function K8sIoApiCoreV1ResourceFieldSelectorFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApiCoreV1ResourceFieldSelector { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'containerName': !exists(json, 'containerName') ? undefined : json['containerName'], + 'divisor': !exists(json, 'divisor') ? undefined : json['divisor'], + 'resource': json['resource'], + }; +} + +export function K8sIoApiCoreV1ResourceFieldSelectorToJSON(value?: K8sIoApiCoreV1ResourceFieldSelector | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'containerName': value.containerName, + 'divisor': value.divisor, + 'resource': value.resource, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1ResourceRequirements.ts b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1ResourceRequirements.ts new file mode 100644 index 000000000..574519c5c --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1ResourceRequirements.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1ResourceClaim } from './K8sIoApiCoreV1ResourceClaim'; +import { + K8sIoApiCoreV1ResourceClaimFromJSON, + K8sIoApiCoreV1ResourceClaimFromJSONTyped, + K8sIoApiCoreV1ResourceClaimToJSON, +} from './K8sIoApiCoreV1ResourceClaim'; + +/** + * ResourceRequirements describes the compute resource requirements. + * @export + * @interface K8sIoApiCoreV1ResourceRequirements + */ +export interface K8sIoApiCoreV1ResourceRequirements { + /** + * Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. + * + * This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. + * + * This field is immutable. It can only be set for containers. + * @type {Array} + * @memberof K8sIoApiCoreV1ResourceRequirements + */ + claims?: Array; + /** + * Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + * @type {{ [key: string]: string; }} + * @memberof K8sIoApiCoreV1ResourceRequirements + */ + limits?: { [key: string]: string; }; + /** + * Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + * @type {{ [key: string]: string; }} + * @memberof K8sIoApiCoreV1ResourceRequirements + */ + requests?: { [key: string]: string; }; +} + +/** + * Check if a given object implements the K8sIoApiCoreV1ResourceRequirements interface. + */ +export function instanceOfK8sIoApiCoreV1ResourceRequirements(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function K8sIoApiCoreV1ResourceRequirementsFromJSON(json: any): K8sIoApiCoreV1ResourceRequirements { + return K8sIoApiCoreV1ResourceRequirementsFromJSONTyped(json, false); +} + +export function K8sIoApiCoreV1ResourceRequirementsFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApiCoreV1ResourceRequirements { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'claims': !exists(json, 'claims') ? undefined : ((json['claims'] as Array).map(K8sIoApiCoreV1ResourceClaimFromJSON)), + 'limits': !exists(json, 'limits') ? undefined : json['limits'], + 'requests': !exists(json, 'requests') ? undefined : json['requests'], + }; +} + +export function K8sIoApiCoreV1ResourceRequirementsToJSON(value?: K8sIoApiCoreV1ResourceRequirements | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'claims': value.claims === undefined ? undefined : ((value.claims as Array).map(K8sIoApiCoreV1ResourceClaimToJSON)), + 'limits': value.limits, + 'requests': value.requests, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1TCPSocketAction.ts b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1TCPSocketAction.ts new file mode 100644 index 000000000..24c67eacc --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1TCPSocketAction.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * TCPSocketAction describes an action based on opening a socket + * @export + * @interface K8sIoApiCoreV1TCPSocketAction + */ +export interface K8sIoApiCoreV1TCPSocketAction { + /** + * Optional: Host name to connect to, defaults to the pod IP. + * @type {string} + * @memberof K8sIoApiCoreV1TCPSocketAction + */ + host?: string; +} + +/** + * Check if a given object implements the K8sIoApiCoreV1TCPSocketAction interface. + */ +export function instanceOfK8sIoApiCoreV1TCPSocketAction(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function K8sIoApiCoreV1TCPSocketActionFromJSON(json: any): K8sIoApiCoreV1TCPSocketAction { + return K8sIoApiCoreV1TCPSocketActionFromJSONTyped(json, false); +} + +export function K8sIoApiCoreV1TCPSocketActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApiCoreV1TCPSocketAction { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'host': !exists(json, 'host') ? undefined : json['host'], + }; +} + +export function K8sIoApiCoreV1TCPSocketActionToJSON(value?: K8sIoApiCoreV1TCPSocketAction | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'host': value.host, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1Toleration.ts b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1Toleration.ts new file mode 100644 index 000000000..970a4f371 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1Toleration.ts @@ -0,0 +1,127 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator . + * @export + * @interface K8sIoApiCoreV1Toleration + */ +export interface K8sIoApiCoreV1Toleration { + /** + * Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * + * Possible enum values: + * - `"NoExecute"` Evict any already-running pods that do not tolerate the taint. Currently enforced by NodeController. + * - `"NoSchedule"` Do not allow new pods to schedule onto the node unless they tolerate the taint, but allow all pods submitted to Kubelet without going through the scheduler to start, and allow all already-running pods to continue running. Enforced by the scheduler. + * - `"PreferNoSchedule"` Like TaintEffectNoSchedule, but the scheduler tries not to schedule new pods onto the node, rather than prohibiting new pods from scheduling onto the node entirely. Enforced by the scheduler. + * @type {string} + * @memberof K8sIoApiCoreV1Toleration + */ + effect?: K8sIoApiCoreV1TolerationEffectEnum; + /** + * 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. + * @type {string} + * @memberof K8sIoApiCoreV1Toleration + */ + 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 pod can tolerate all taints of a particular category. + * + * Possible enum values: + * - `"Equal"` + * - `"Exists"` + * @type {string} + * @memberof K8sIoApiCoreV1Toleration + */ + operator?: K8sIoApiCoreV1TolerationOperatorEnum; + /** + * 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. + * @type {number} + * @memberof K8sIoApiCoreV1Toleration + */ + tolerationSeconds?: number; + /** + * Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + * @type {string} + * @memberof K8sIoApiCoreV1Toleration + */ + value?: string; +} + + +/** + * @export + */ +export const K8sIoApiCoreV1TolerationEffectEnum = { + NoExecute: 'NoExecute', + NoSchedule: 'NoSchedule', + PreferNoSchedule: 'PreferNoSchedule' +} as const; +export type K8sIoApiCoreV1TolerationEffectEnum = typeof K8sIoApiCoreV1TolerationEffectEnum[keyof typeof K8sIoApiCoreV1TolerationEffectEnum]; + +/** + * @export + */ +export const K8sIoApiCoreV1TolerationOperatorEnum = { + Equal: 'Equal', + Exists: 'Exists' +} as const; +export type K8sIoApiCoreV1TolerationOperatorEnum = typeof K8sIoApiCoreV1TolerationOperatorEnum[keyof typeof K8sIoApiCoreV1TolerationOperatorEnum]; + + +/** + * Check if a given object implements the K8sIoApiCoreV1Toleration interface. + */ +export function instanceOfK8sIoApiCoreV1Toleration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function K8sIoApiCoreV1TolerationFromJSON(json: any): K8sIoApiCoreV1Toleration { + return K8sIoApiCoreV1TolerationFromJSONTyped(json, false); +} + +export function K8sIoApiCoreV1TolerationFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApiCoreV1Toleration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'effect': !exists(json, 'effect') ? undefined : json['effect'], + 'key': !exists(json, 'key') ? undefined : json['key'], + 'operator': !exists(json, 'operator') ? undefined : json['operator'], + 'tolerationSeconds': !exists(json, 'tolerationSeconds') ? undefined : json['tolerationSeconds'], + 'value': !exists(json, 'value') ? undefined : json['value'], + }; +} + +export function K8sIoApiCoreV1TolerationToJSON(value?: K8sIoApiCoreV1Toleration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'effect': value.effect, + 'key': value.key, + 'operator': value.operator, + 'tolerationSeconds': value.tolerationSeconds, + 'value': value.value, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1TopologySpreadConstraint.ts b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1TopologySpreadConstraint.ts new file mode 100644 index 000000000..9bd97b61d --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1TopologySpreadConstraint.ts @@ -0,0 +1,183 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1LabelSelector } from './K8sIoApimachineryPkgApisMetaV1LabelSelector'; +import { + K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSON, + K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './K8sIoApimachineryPkgApisMetaV1LabelSelector'; + +/** + * TopologySpreadConstraint specifies how to spread matching pods among the given topology. + * @export + * @interface K8sIoApiCoreV1TopologySpreadConstraint + */ +export interface K8sIoApiCoreV1TopologySpreadConstraint { + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1LabelSelector} + * @memberof K8sIoApiCoreV1TopologySpreadConstraint + */ + labelSelector?: K8sIoApimachineryPkgApisMetaV1LabelSelector; + /** + * MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. + * @type {Array} + * @memberof K8sIoApiCoreV1TopologySpreadConstraint + */ + matchLabelKeys?: Array; + /** + * MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. + * @type {number} + * @memberof K8sIoApiCoreV1TopologySpreadConstraint + */ + maxSkew: number; + /** + * MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. + * + * For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. + * + * This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). + * @type {number} + * @memberof K8sIoApiCoreV1TopologySpreadConstraint + */ + minDomains?: number; + /** + * NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. + * + * If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. + * + * Possible enum values: + * - `"Honor"` means use this scheduling directive when calculating pod topology spread skew. + * - `"Ignore"` means ignore this scheduling directive when calculating pod topology spread skew. + * @type {string} + * @memberof K8sIoApiCoreV1TopologySpreadConstraint + */ + nodeAffinityPolicy?: K8sIoApiCoreV1TopologySpreadConstraintNodeAffinityPolicyEnum; + /** + * NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. + * + * If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. + * + * Possible enum values: + * - `"Honor"` means use this scheduling directive when calculating pod topology spread skew. + * - `"Ignore"` means ignore this scheduling directive when calculating pod topology spread skew. + * @type {string} + * @memberof K8sIoApiCoreV1TopologySpreadConstraint + */ + nodeTaintsPolicy?: K8sIoApiCoreV1TopologySpreadConstraintNodeTaintsPolicyEnum; + /** + * TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology. And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology. It's a required field. + * @type {string} + * @memberof K8sIoApiCoreV1TopologySpreadConstraint + */ + topologyKey: string; + /** + * WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, + * but giving higher precedence to topologies that would help reduce the + * skew. + * A constraint is considered "Unsatisfiable" for an incoming pod if and only if every possible node assignment for that pod would violate "MaxSkew" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + * + * Possible enum values: + * - `"DoNotSchedule"` instructs the scheduler not to schedule the pod when constraints are not satisfied. + * - `"ScheduleAnyway"` instructs the scheduler to schedule the pod even if constraints are not satisfied. + * @type {string} + * @memberof K8sIoApiCoreV1TopologySpreadConstraint + */ + whenUnsatisfiable: K8sIoApiCoreV1TopologySpreadConstraintWhenUnsatisfiableEnum; +} + + +/** + * @export + */ +export const K8sIoApiCoreV1TopologySpreadConstraintNodeAffinityPolicyEnum = { + Honor: 'Honor', + Ignore: 'Ignore' +} as const; +export type K8sIoApiCoreV1TopologySpreadConstraintNodeAffinityPolicyEnum = typeof K8sIoApiCoreV1TopologySpreadConstraintNodeAffinityPolicyEnum[keyof typeof K8sIoApiCoreV1TopologySpreadConstraintNodeAffinityPolicyEnum]; + +/** + * @export + */ +export const K8sIoApiCoreV1TopologySpreadConstraintNodeTaintsPolicyEnum = { + Honor: 'Honor', + Ignore: 'Ignore' +} as const; +export type K8sIoApiCoreV1TopologySpreadConstraintNodeTaintsPolicyEnum = typeof K8sIoApiCoreV1TopologySpreadConstraintNodeTaintsPolicyEnum[keyof typeof K8sIoApiCoreV1TopologySpreadConstraintNodeTaintsPolicyEnum]; + +/** + * @export + */ +export const K8sIoApiCoreV1TopologySpreadConstraintWhenUnsatisfiableEnum = { + DoNotSchedule: 'DoNotSchedule', + ScheduleAnyway: 'ScheduleAnyway' +} as const; +export type K8sIoApiCoreV1TopologySpreadConstraintWhenUnsatisfiableEnum = typeof K8sIoApiCoreV1TopologySpreadConstraintWhenUnsatisfiableEnum[keyof typeof K8sIoApiCoreV1TopologySpreadConstraintWhenUnsatisfiableEnum]; + + +/** + * Check if a given object implements the K8sIoApiCoreV1TopologySpreadConstraint interface. + */ +export function instanceOfK8sIoApiCoreV1TopologySpreadConstraint(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "maxSkew" in value; + isInstance = isInstance && "topologyKey" in value; + isInstance = isInstance && "whenUnsatisfiable" in value; + + return isInstance; +} + +export function K8sIoApiCoreV1TopologySpreadConstraintFromJSON(json: any): K8sIoApiCoreV1TopologySpreadConstraint { + return K8sIoApiCoreV1TopologySpreadConstraintFromJSONTyped(json, false); +} + +export function K8sIoApiCoreV1TopologySpreadConstraintFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApiCoreV1TopologySpreadConstraint { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'labelSelector': !exists(json, 'labelSelector') ? undefined : K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['labelSelector']), + 'matchLabelKeys': !exists(json, 'matchLabelKeys') ? undefined : json['matchLabelKeys'], + 'maxSkew': json['maxSkew'], + 'minDomains': !exists(json, 'minDomains') ? undefined : json['minDomains'], + 'nodeAffinityPolicy': !exists(json, 'nodeAffinityPolicy') ? undefined : json['nodeAffinityPolicy'], + 'nodeTaintsPolicy': !exists(json, 'nodeTaintsPolicy') ? undefined : json['nodeTaintsPolicy'], + 'topologyKey': json['topologyKey'], + 'whenUnsatisfiable': json['whenUnsatisfiable'], + }; +} + +export function K8sIoApiCoreV1TopologySpreadConstraintToJSON(value?: K8sIoApiCoreV1TopologySpreadConstraint | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'labelSelector': K8sIoApimachineryPkgApisMetaV1LabelSelectorToJSON(value.labelSelector), + 'matchLabelKeys': value.matchLabelKeys, + 'maxSkew': value.maxSkew, + 'minDomains': value.minDomains, + 'nodeAffinityPolicy': value.nodeAffinityPolicy, + 'nodeTaintsPolicy': value.nodeTaintsPolicy, + 'topologyKey': value.topologyKey, + 'whenUnsatisfiable': value.whenUnsatisfiable, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1TypedLocalObjectReference.ts b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1TypedLocalObjectReference.ts new file mode 100644 index 000000000..d5f64115a --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1TypedLocalObjectReference.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace. + * @export + * @interface K8sIoApiCoreV1TypedLocalObjectReference + */ +export interface K8sIoApiCoreV1TypedLocalObjectReference { + /** + * APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * @type {string} + * @memberof K8sIoApiCoreV1TypedLocalObjectReference + */ + apiGroup?: string; + /** + * Kind is the type of resource being referenced + * @type {string} + * @memberof K8sIoApiCoreV1TypedLocalObjectReference + */ + kind: string; + /** + * Name is the name of resource being referenced + * @type {string} + * @memberof K8sIoApiCoreV1TypedLocalObjectReference + */ + name: string; +} + +/** + * Check if a given object implements the K8sIoApiCoreV1TypedLocalObjectReference interface. + */ +export function instanceOfK8sIoApiCoreV1TypedLocalObjectReference(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "kind" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function K8sIoApiCoreV1TypedLocalObjectReferenceFromJSON(json: any): K8sIoApiCoreV1TypedLocalObjectReference { + return K8sIoApiCoreV1TypedLocalObjectReferenceFromJSONTyped(json, false); +} + +export function K8sIoApiCoreV1TypedLocalObjectReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApiCoreV1TypedLocalObjectReference { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiGroup': !exists(json, 'apiGroup') ? undefined : json['apiGroup'], + 'kind': json['kind'], + 'name': json['name'], + }; +} + +export function K8sIoApiCoreV1TypedLocalObjectReferenceToJSON(value?: K8sIoApiCoreV1TypedLocalObjectReference | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiGroup': value.apiGroup, + 'kind': value.kind, + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1TypedObjectReference.ts b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1TypedObjectReference.ts new file mode 100644 index 000000000..54cb8edd6 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1TypedObjectReference.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface K8sIoApiCoreV1TypedObjectReference + */ +export interface K8sIoApiCoreV1TypedObjectReference { + /** + * APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * @type {string} + * @memberof K8sIoApiCoreV1TypedObjectReference + */ + apiGroup?: string; + /** + * Kind is the type of resource being referenced + * @type {string} + * @memberof K8sIoApiCoreV1TypedObjectReference + */ + kind: string; + /** + * Name is the name of resource being referenced + * @type {string} + * @memberof K8sIoApiCoreV1TypedObjectReference + */ + name: string; + /** + * Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled. + * @type {string} + * @memberof K8sIoApiCoreV1TypedObjectReference + */ + namespace?: string; +} + +/** + * Check if a given object implements the K8sIoApiCoreV1TypedObjectReference interface. + */ +export function instanceOfK8sIoApiCoreV1TypedObjectReference(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "kind" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function K8sIoApiCoreV1TypedObjectReferenceFromJSON(json: any): K8sIoApiCoreV1TypedObjectReference { + return K8sIoApiCoreV1TypedObjectReferenceFromJSONTyped(json, false); +} + +export function K8sIoApiCoreV1TypedObjectReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApiCoreV1TypedObjectReference { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiGroup': !exists(json, 'apiGroup') ? undefined : json['apiGroup'], + 'kind': json['kind'], + 'name': json['name'], + 'namespace': !exists(json, 'namespace') ? undefined : json['namespace'], + }; +} + +export function K8sIoApiCoreV1TypedObjectReferenceToJSON(value?: K8sIoApiCoreV1TypedObjectReference | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiGroup': value.apiGroup, + 'kind': value.kind, + 'name': value.name, + 'namespace': value.namespace, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1WeightedPodAffinityTerm.ts b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1WeightedPodAffinityTerm.ts new file mode 100644 index 000000000..cab3ebd6b --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApiCoreV1WeightedPodAffinityTerm.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1PodAffinityTerm } from './K8sIoApiCoreV1PodAffinityTerm'; +import { + K8sIoApiCoreV1PodAffinityTermFromJSON, + K8sIoApiCoreV1PodAffinityTermFromJSONTyped, + K8sIoApiCoreV1PodAffinityTermToJSON, +} from './K8sIoApiCoreV1PodAffinityTerm'; + +/** + * The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) + * @export + * @interface K8sIoApiCoreV1WeightedPodAffinityTerm + */ +export interface K8sIoApiCoreV1WeightedPodAffinityTerm { + /** + * + * @type {K8sIoApiCoreV1PodAffinityTerm} + * @memberof K8sIoApiCoreV1WeightedPodAffinityTerm + */ + podAffinityTerm: K8sIoApiCoreV1PodAffinityTerm; + /** + * weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + * @type {number} + * @memberof K8sIoApiCoreV1WeightedPodAffinityTerm + */ + weight: number; +} + +/** + * Check if a given object implements the K8sIoApiCoreV1WeightedPodAffinityTerm interface. + */ +export function instanceOfK8sIoApiCoreV1WeightedPodAffinityTerm(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "podAffinityTerm" in value; + isInstance = isInstance && "weight" in value; + + return isInstance; +} + +export function K8sIoApiCoreV1WeightedPodAffinityTermFromJSON(json: any): K8sIoApiCoreV1WeightedPodAffinityTerm { + return K8sIoApiCoreV1WeightedPodAffinityTermFromJSONTyped(json, false); +} + +export function K8sIoApiCoreV1WeightedPodAffinityTermFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApiCoreV1WeightedPodAffinityTerm { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'podAffinityTerm': K8sIoApiCoreV1PodAffinityTermFromJSON(json['podAffinityTerm']), + 'weight': json['weight'], + }; +} + +export function K8sIoApiCoreV1WeightedPodAffinityTermToJSON(value?: K8sIoApiCoreV1WeightedPodAffinityTerm | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'podAffinityTerm': K8sIoApiCoreV1PodAffinityTermToJSON(value.podAffinityTerm), + 'weight': value.weight, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1APIGroup.ts b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1APIGroup.ts new file mode 100644 index 000000000..9f097d7f5 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1APIGroup.ts @@ -0,0 +1,120 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery } from './K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery'; +import { + K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscoveryFromJSON, + K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscoveryFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscoveryToJSON, +} from './K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery'; +import type { K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR } from './K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR'; +import { + K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDRFromJSON, + K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDRFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDRToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR'; + +/** + * APIGroup contains the name, the supported versions, and the preferred version of a group. + * @export + * @interface K8sIoApimachineryPkgApisMetaV1APIGroup + */ +export interface K8sIoApimachineryPkgApisMetaV1APIGroup { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1APIGroup + */ + 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 + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1APIGroup + */ + kind?: string; + /** + * name is the name of the group. + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1APIGroup + */ + name: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery} + * @memberof K8sIoApimachineryPkgApisMetaV1APIGroup + */ + preferredVersion?: K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery; + /** + * a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + * @type {Array} + * @memberof K8sIoApimachineryPkgApisMetaV1APIGroup + */ + serverAddressByClientCIDRs?: Array; + /** + * versions are the versions supported in this group. + * @type {Array} + * @memberof K8sIoApimachineryPkgApisMetaV1APIGroup + */ + versions: Array; +} + +/** + * Check if a given object implements the K8sIoApimachineryPkgApisMetaV1APIGroup interface. + */ +export function instanceOfK8sIoApimachineryPkgApisMetaV1APIGroup(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "versions" in value; + + return isInstance; +} + +export function K8sIoApimachineryPkgApisMetaV1APIGroupFromJSON(json: any): K8sIoApimachineryPkgApisMetaV1APIGroup { + return K8sIoApimachineryPkgApisMetaV1APIGroupFromJSONTyped(json, false); +} + +export function K8sIoApimachineryPkgApisMetaV1APIGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApimachineryPkgApisMetaV1APIGroup { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'name': json['name'], + 'preferredVersion': !exists(json, 'preferredVersion') ? undefined : K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscoveryFromJSON(json['preferredVersion']), + 'serverAddressByClientCIDRs': !exists(json, 'serverAddressByClientCIDRs') ? undefined : ((json['serverAddressByClientCIDRs'] as Array).map(K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDRFromJSON)), + 'versions': ((json['versions'] as Array).map(K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscoveryFromJSON)), + }; +} + +export function K8sIoApimachineryPkgApisMetaV1APIGroupToJSON(value?: K8sIoApimachineryPkgApisMetaV1APIGroup | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'name': value.name, + 'preferredVersion': K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscoveryToJSON(value.preferredVersion), + 'serverAddressByClientCIDRs': value.serverAddressByClientCIDRs === undefined ? undefined : ((value.serverAddressByClientCIDRs as Array).map(K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDRToJSON)), + 'versions': ((value.versions as Array).map(K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscoveryToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1APIGroupList.ts b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1APIGroupList.ts new file mode 100644 index 000000000..55f671232 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1APIGroupList.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1APIGroup } from './K8sIoApimachineryPkgApisMetaV1APIGroup'; +import { + K8sIoApimachineryPkgApisMetaV1APIGroupFromJSON, + K8sIoApimachineryPkgApisMetaV1APIGroupFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1APIGroupToJSON, +} from './K8sIoApimachineryPkgApisMetaV1APIGroup'; + +/** + * APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis. + * @export + * @interface K8sIoApimachineryPkgApisMetaV1APIGroupList + */ +export interface K8sIoApimachineryPkgApisMetaV1APIGroupList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1APIGroupList + */ + apiVersion?: string; + /** + * groups is a list of APIGroup. + * @type {Array} + * @memberof K8sIoApimachineryPkgApisMetaV1APIGroupList + */ + groups: 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 + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1APIGroupList + */ + kind?: string; +} + +/** + * Check if a given object implements the K8sIoApimachineryPkgApisMetaV1APIGroupList interface. + */ +export function instanceOfK8sIoApimachineryPkgApisMetaV1APIGroupList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "groups" in value; + + return isInstance; +} + +export function K8sIoApimachineryPkgApisMetaV1APIGroupListFromJSON(json: any): K8sIoApimachineryPkgApisMetaV1APIGroupList { + return K8sIoApimachineryPkgApisMetaV1APIGroupListFromJSONTyped(json, false); +} + +export function K8sIoApimachineryPkgApisMetaV1APIGroupListFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApimachineryPkgApisMetaV1APIGroupList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'groups': ((json['groups'] as Array).map(K8sIoApimachineryPkgApisMetaV1APIGroupFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + }; +} + +export function K8sIoApimachineryPkgApisMetaV1APIGroupListToJSON(value?: K8sIoApimachineryPkgApisMetaV1APIGroupList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'groups': ((value.groups as Array).map(K8sIoApimachineryPkgApisMetaV1APIGroupToJSON)), + 'kind': value.kind, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1APIResource.ts b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1APIResource.ts new file mode 100644 index 000000000..de0245920 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1APIResource.ts @@ -0,0 +1,142 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * APIResource specifies the name of a resource and whether it is namespaced. + * @export + * @interface K8sIoApimachineryPkgApisMetaV1APIResource + */ +export interface K8sIoApimachineryPkgApisMetaV1APIResource { + /** + * categories is a list of the grouped resources this resource belongs to (e.g. 'all') + * @type {Array} + * @memberof K8sIoApimachineryPkgApisMetaV1APIResource + */ + categories?: Array; + /** + * group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale". + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1APIResource + */ + group?: string; + /** + * kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1APIResource + */ + kind: string; + /** + * name is the plural name of the resource. + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1APIResource + */ + name: string; + /** + * namespaced indicates if a resource is namespaced or not. + * @type {boolean} + * @memberof K8sIoApimachineryPkgApisMetaV1APIResource + */ + namespaced: boolean; + /** + * shortNames is a list of suggested short names of the resource. + * @type {Array} + * @memberof K8sIoApimachineryPkgApisMetaV1APIResource + */ + shortNames?: Array; + /** + * singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface. + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1APIResource + */ + singularName: string; + /** + * The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates. + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1APIResource + */ + storageVersionHash?: string; + /** + * verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) + * @type {Array} + * @memberof K8sIoApimachineryPkgApisMetaV1APIResource + */ + verbs: Array; + /** + * version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)". + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1APIResource + */ + version?: string; +} + +/** + * Check if a given object implements the K8sIoApimachineryPkgApisMetaV1APIResource interface. + */ +export function instanceOfK8sIoApimachineryPkgApisMetaV1APIResource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "kind" in value; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "namespaced" in value; + isInstance = isInstance && "singularName" in value; + isInstance = isInstance && "verbs" in value; + + return isInstance; +} + +export function K8sIoApimachineryPkgApisMetaV1APIResourceFromJSON(json: any): K8sIoApimachineryPkgApisMetaV1APIResource { + return K8sIoApimachineryPkgApisMetaV1APIResourceFromJSONTyped(json, false); +} + +export function K8sIoApimachineryPkgApisMetaV1APIResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApimachineryPkgApisMetaV1APIResource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'categories': !exists(json, 'categories') ? undefined : json['categories'], + 'group': !exists(json, 'group') ? undefined : json['group'], + 'kind': json['kind'], + 'name': json['name'], + 'namespaced': json['namespaced'], + 'shortNames': !exists(json, 'shortNames') ? undefined : json['shortNames'], + 'singularName': json['singularName'], + 'storageVersionHash': !exists(json, 'storageVersionHash') ? undefined : json['storageVersionHash'], + 'verbs': json['verbs'], + 'version': !exists(json, 'version') ? undefined : json['version'], + }; +} + +export function K8sIoApimachineryPkgApisMetaV1APIResourceToJSON(value?: K8sIoApimachineryPkgApisMetaV1APIResource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'categories': value.categories, + 'group': value.group, + 'kind': value.kind, + 'name': value.name, + 'namespaced': value.namespaced, + 'shortNames': value.shortNames, + 'singularName': value.singularName, + 'storageVersionHash': value.storageVersionHash, + 'verbs': value.verbs, + 'version': value.version, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1APIResourceList.ts b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1APIResourceList.ts new file mode 100644 index 000000000..361638605 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1APIResourceList.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1APIResource } from './K8sIoApimachineryPkgApisMetaV1APIResource'; +import { + K8sIoApimachineryPkgApisMetaV1APIResourceFromJSON, + K8sIoApimachineryPkgApisMetaV1APIResourceFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1APIResourceToJSON, +} from './K8sIoApimachineryPkgApisMetaV1APIResource'; + +/** + * APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced. + * @export + * @interface K8sIoApimachineryPkgApisMetaV1APIResourceList + */ +export interface K8sIoApimachineryPkgApisMetaV1APIResourceList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1APIResourceList + */ + apiVersion?: string; + /** + * groupVersion is the group and version this APIResourceList is for. + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1APIResourceList + */ + groupVersion: 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 + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1APIResourceList + */ + kind?: string; + /** + * resources contains the name of the resources and if they are namespaced. + * @type {Array} + * @memberof K8sIoApimachineryPkgApisMetaV1APIResourceList + */ + resources: Array; +} + +/** + * Check if a given object implements the K8sIoApimachineryPkgApisMetaV1APIResourceList interface. + */ +export function instanceOfK8sIoApimachineryPkgApisMetaV1APIResourceList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "groupVersion" in value; + isInstance = isInstance && "resources" in value; + + return isInstance; +} + +export function K8sIoApimachineryPkgApisMetaV1APIResourceListFromJSON(json: any): K8sIoApimachineryPkgApisMetaV1APIResourceList { + return K8sIoApimachineryPkgApisMetaV1APIResourceListFromJSONTyped(json, false); +} + +export function K8sIoApimachineryPkgApisMetaV1APIResourceListFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApimachineryPkgApisMetaV1APIResourceList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'groupVersion': json['groupVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'resources': ((json['resources'] as Array).map(K8sIoApimachineryPkgApisMetaV1APIResourceFromJSON)), + }; +} + +export function K8sIoApimachineryPkgApisMetaV1APIResourceListToJSON(value?: K8sIoApimachineryPkgApisMetaV1APIResourceList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'groupVersion': value.groupVersion, + 'kind': value.kind, + 'resources': ((value.resources as Array).map(K8sIoApimachineryPkgApisMetaV1APIResourceToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1DeleteOptions.ts b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1DeleteOptions.ts new file mode 100644 index 000000000..0f3e291b6 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1DeleteOptions.ts @@ -0,0 +1,120 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1Preconditions } from './K8sIoApimachineryPkgApisMetaV1Preconditions'; +import { + K8sIoApimachineryPkgApisMetaV1PreconditionsFromJSON, + K8sIoApimachineryPkgApisMetaV1PreconditionsFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1PreconditionsToJSON, +} from './K8sIoApimachineryPkgApisMetaV1Preconditions'; + +/** + * DeleteOptions may be provided when deleting an API object. + * @export + * @interface K8sIoApimachineryPkgApisMetaV1DeleteOptions + */ +export interface K8sIoApimachineryPkgApisMetaV1DeleteOptions { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1DeleteOptions + */ + apiVersion?: 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 + * @type {Array} + * @memberof K8sIoApimachineryPkgApisMetaV1DeleteOptions + */ + dryRun?: Array; + /** + * The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @type {number} + * @memberof K8sIoApimachineryPkgApisMetaV1DeleteOptions + */ + gracePeriodSeconds?: number; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1DeleteOptions + */ + kind?: string; + /** + * Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @type {boolean} + * @memberof K8sIoApimachineryPkgApisMetaV1DeleteOptions + */ + orphanDependents?: boolean; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1Preconditions} + * @memberof K8sIoApimachineryPkgApisMetaV1DeleteOptions + */ + preconditions?: K8sIoApimachineryPkgApisMetaV1Preconditions; + /** + * Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1DeleteOptions + */ + propagationPolicy?: string; +} + +/** + * Check if a given object implements the K8sIoApimachineryPkgApisMetaV1DeleteOptions interface. + */ +export function instanceOfK8sIoApimachineryPkgApisMetaV1DeleteOptions(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function K8sIoApimachineryPkgApisMetaV1DeleteOptionsFromJSON(json: any): K8sIoApimachineryPkgApisMetaV1DeleteOptions { + return K8sIoApimachineryPkgApisMetaV1DeleteOptionsFromJSONTyped(json, false); +} + +export function K8sIoApimachineryPkgApisMetaV1DeleteOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApimachineryPkgApisMetaV1DeleteOptions { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'dryRun': !exists(json, 'dryRun') ? undefined : json['dryRun'], + 'gracePeriodSeconds': !exists(json, 'gracePeriodSeconds') ? undefined : json['gracePeriodSeconds'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'orphanDependents': !exists(json, 'orphanDependents') ? undefined : json['orphanDependents'], + 'preconditions': !exists(json, 'preconditions') ? undefined : K8sIoApimachineryPkgApisMetaV1PreconditionsFromJSON(json['preconditions']), + 'propagationPolicy': !exists(json, 'propagationPolicy') ? undefined : json['propagationPolicy'], + }; +} + +export function K8sIoApimachineryPkgApisMetaV1DeleteOptionsToJSON(value?: K8sIoApimachineryPkgApisMetaV1DeleteOptions | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'dryRun': value.dryRun, + 'gracePeriodSeconds': value.gracePeriodSeconds, + 'kind': value.kind, + 'orphanDependents': value.orphanDependents, + 'preconditions': K8sIoApimachineryPkgApisMetaV1PreconditionsToJSON(value.preconditions), + 'propagationPolicy': value.propagationPolicy, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery.ts b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery.ts new file mode 100644 index 000000000..7acd85b81 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * GroupVersion contains the "group/version" and "version" string of a version. It is made a struct to keep extensibility. + * @export + * @interface K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery + */ +export interface K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery { + /** + * groupVersion specifies the API group and version in the form "group/version" + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery + */ + groupVersion: string; + /** + * version specifies the version in the form of "version". This is to save the clients the trouble of splitting the GroupVersion. + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery + */ + version: string; +} + +/** + * Check if a given object implements the K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery interface. + */ +export function instanceOfK8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "groupVersion" in value; + isInstance = isInstance && "version" in value; + + return isInstance; +} + +export function K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscoveryFromJSON(json: any): K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery { + return K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscoveryFromJSONTyped(json, false); +} + +export function K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscoveryFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'groupVersion': json['groupVersion'], + 'version': json['version'], + }; +} + +export function K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscoveryToJSON(value?: K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'groupVersion': value.groupVersion, + 'version': value.version, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1LabelSelector.ts b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1LabelSelector.ts new file mode 100644 index 000000000..9fde3ddc2 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1LabelSelector.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement } from './K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement'; +import { + K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirementFromJSON, + K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirementFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirementToJSON, +} from './K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement'; + +/** + * A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. + * @export + * @interface K8sIoApimachineryPkgApisMetaV1LabelSelector + */ +export interface K8sIoApimachineryPkgApisMetaV1LabelSelector { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * @type {Array} + * @memberof K8sIoApimachineryPkgApisMetaV1LabelSelector + */ + matchExpressions?: Array; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + * @type {{ [key: string]: string; }} + * @memberof K8sIoApimachineryPkgApisMetaV1LabelSelector + */ + matchLabels?: { [key: string]: string; }; +} + +/** + * Check if a given object implements the K8sIoApimachineryPkgApisMetaV1LabelSelector interface. + */ +export function instanceOfK8sIoApimachineryPkgApisMetaV1LabelSelector(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSON(json: any): K8sIoApimachineryPkgApisMetaV1LabelSelector { + return K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped(json, false); +} + +export function K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApimachineryPkgApisMetaV1LabelSelector { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'matchExpressions': !exists(json, 'matchExpressions') ? undefined : ((json['matchExpressions'] as Array).map(K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirementFromJSON)), + 'matchLabels': !exists(json, 'matchLabels') ? undefined : json['matchLabels'], + }; +} + +export function K8sIoApimachineryPkgApisMetaV1LabelSelectorToJSON(value?: K8sIoApimachineryPkgApisMetaV1LabelSelector | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'matchExpressions': value.matchExpressions === undefined ? undefined : ((value.matchExpressions as Array).map(K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirementToJSON)), + 'matchLabels': value.matchLabels, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement.ts b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement.ts new file mode 100644 index 000000000..d4fa83505 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. + * @export + * @interface K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement + */ +export interface K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement { + /** + * key is the label key that the selector applies to. + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement + */ + key: string; + /** + * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. + * @type {Array} + * @memberof K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement + */ + values?: Array; +} + +/** + * Check if a given object implements the K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement interface. + */ +export function instanceOfK8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "key" in value; + isInstance = isInstance && "operator" in value; + + return isInstance; +} + +export function K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirementFromJSON(json: any): K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement { + return K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirementFromJSONTyped(json, false); +} + +export function K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirementFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'key': json['key'], + 'operator': json['operator'], + 'values': !exists(json, 'values') ? undefined : json['values'], + }; +} + +export function K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirementToJSON(value?: K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'key': value.key, + 'operator': value.operator, + 'values': value.values, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1ListMeta.ts b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1ListMeta.ts new file mode 100644 index 000000000..6c3a6d127 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1ListMeta.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. + * @export + * @interface K8sIoApimachineryPkgApisMetaV1ListMeta + */ +export interface K8sIoApimachineryPkgApisMetaV1ListMeta { + /** + * continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1ListMeta + */ + _continue?: string; + /** + * remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * @type {number} + * @memberof K8sIoApimachineryPkgApisMetaV1ListMeta + */ + remainingItemCount?: number; + /** + * String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1ListMeta + */ + resourceVersion?: string; + /** + * Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1ListMeta + */ + selfLink?: string; +} + +/** + * Check if a given object implements the K8sIoApimachineryPkgApisMetaV1ListMeta interface. + */ +export function instanceOfK8sIoApimachineryPkgApisMetaV1ListMeta(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON(json: any): K8sIoApimachineryPkgApisMetaV1ListMeta { + return K8sIoApimachineryPkgApisMetaV1ListMetaFromJSONTyped(json, false); +} + +export function K8sIoApimachineryPkgApisMetaV1ListMetaFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApimachineryPkgApisMetaV1ListMeta { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + '_continue': !exists(json, 'continue') ? undefined : json['continue'], + 'remainingItemCount': !exists(json, 'remainingItemCount') ? undefined : json['remainingItemCount'], + 'resourceVersion': !exists(json, 'resourceVersion') ? undefined : json['resourceVersion'], + 'selfLink': !exists(json, 'selfLink') ? undefined : json['selfLink'], + }; +} + +export function K8sIoApimachineryPkgApisMetaV1ListMetaToJSON(value?: K8sIoApimachineryPkgApisMetaV1ListMeta | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'continue': value._continue, + 'remainingItemCount': value.remainingItemCount, + 'resourceVersion': value.resourceVersion, + 'selfLink': value.selfLink, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry.ts b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry.ts new file mode 100644 index 000000000..a3dfa4938 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to. + * @export + * @interface K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry + */ +export interface K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry { + /** + * APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry + */ + apiVersion?: string; + /** + * FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry + */ + fieldsType?: string; + /** + * FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format. + * + * Each key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:', where is the name of a field in a struct, or key in a map 'v:', where is the exact json formatted value of a list item 'i:', where is position of a item in a list 'k:', where is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set. + * + * The exact format is defined in sigs.k8s.io/structured-merge-diff + * @type {object} + * @memberof K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry + */ + fieldsV1?: object; + /** + * Manager is an identifier of the workflow managing these fields. + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry + */ + manager?: string; + /** + * Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry + */ + operation?: string; + /** + * Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource. + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry + */ + subresource?: string; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry + */ + time?: string; +} + +/** + * Check if a given object implements the K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry interface. + */ +export function instanceOfK8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntryFromJSON(json: any): K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry { + return K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntryFromJSONTyped(json, false); +} + +export function K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'fieldsType': !exists(json, 'fieldsType') ? undefined : json['fieldsType'], + 'fieldsV1': !exists(json, 'fieldsV1') ? undefined : json['fieldsV1'], + 'manager': !exists(json, 'manager') ? undefined : json['manager'], + 'operation': !exists(json, 'operation') ? undefined : json['operation'], + 'subresource': !exists(json, 'subresource') ? undefined : json['subresource'], + 'time': !exists(json, 'time') ? undefined : json['time'], + }; +} + +export function K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntryToJSON(value?: K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'fieldsType': value.fieldsType, + 'fieldsV1': value.fieldsV1, + 'manager': value.manager, + 'operation': value.operation, + 'subresource': value.subresource, + 'time': value.time === undefined ? undefined : (value.time), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1ObjectMeta.ts b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1ObjectMeta.ts new file mode 100644 index 000000000..857cbe971 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1ObjectMeta.ts @@ -0,0 +1,193 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry } from './K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry'; +import { + K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntryFromJSON, + K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntryFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntryToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry'; +import type { K8sIoApimachineryPkgApisMetaV1OwnerReference } from './K8sIoApimachineryPkgApisMetaV1OwnerReference'; +import { + K8sIoApimachineryPkgApisMetaV1OwnerReferenceFromJSON, + K8sIoApimachineryPkgApisMetaV1OwnerReferenceFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1OwnerReferenceToJSON, +} from './K8sIoApimachineryPkgApisMetaV1OwnerReference'; + +/** + * ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. + * @export + * @interface K8sIoApimachineryPkgApisMetaV1ObjectMeta + */ +export interface K8sIoApimachineryPkgApisMetaV1ObjectMeta { + /** + * Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * @type {{ [key: string]: string; }} + * @memberof K8sIoApimachineryPkgApisMetaV1ObjectMeta + */ + annotations?: { [key: string]: string; }; + /** + * Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * @type {number} + * @memberof K8sIoApimachineryPkgApisMetaV1ObjectMeta + */ + deletionGracePeriodSeconds?: number; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof K8sIoApimachineryPkgApisMetaV1ObjectMeta + */ + deletionTimestamp?: string; + creationTimestamp?: string; + /** + * Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * @type {Array} + * @memberof K8sIoApimachineryPkgApisMetaV1ObjectMeta + */ + finalizers?: Array; + /** + * GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + * + * If this field is specified and the generated name exists, the server will return a 409. + * + * Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1ObjectMeta + */ + generateName?: string; + /** + * A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * @type {number} + * @memberof K8sIoApimachineryPkgApisMetaV1ObjectMeta + */ + generation?: number; + /** + * Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * @type {{ [key: string]: string; }} + * @memberof K8sIoApimachineryPkgApisMetaV1ObjectMeta + */ + labels?: { [key: string]: string; }; + /** + * ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * @type {Array} + * @memberof K8sIoApimachineryPkgApisMetaV1ObjectMeta + */ + managedFields?: Array; + /** + * Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1ObjectMeta + */ + name?: string; + /** + * Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + * + * Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1ObjectMeta + */ + namespace?: string; + /** + * List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * @type {Array} + * @memberof K8sIoApimachineryPkgApisMetaV1ObjectMeta + */ + ownerReferences?: Array; + /** + * An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + * + * Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1ObjectMeta + */ + resourceVersion?: string; + /** + * Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1ObjectMeta + */ + selfLink?: string; + /** + * UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + * + * Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1ObjectMeta + */ + uid?: string; +} + +/** + * Check if a given object implements the K8sIoApimachineryPkgApisMetaV1ObjectMeta interface. + */ +export function instanceOfK8sIoApimachineryPkgApisMetaV1ObjectMeta(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON(json: any): K8sIoApimachineryPkgApisMetaV1ObjectMeta { + return K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped(json, false); +} + +export function K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApimachineryPkgApisMetaV1ObjectMeta { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'annotations': !exists(json, 'annotations') ? undefined : json['annotations'], + 'deletionGracePeriodSeconds': !exists(json, 'deletionGracePeriodSeconds') ? undefined : json['deletionGracePeriodSeconds'], + 'deletionTimestamp': !exists(json, 'deletionTimestamp') ? undefined : json['deletionTimestamp'], + 'finalizers': !exists(json, 'finalizers') ? undefined : json['finalizers'], + 'generateName': !exists(json, 'generateName') ? undefined : json['generateName'], + 'generation': !exists(json, 'generation') ? undefined : json['generation'], + 'labels': !exists(json, 'labels') ? undefined : json['labels'], + 'managedFields': !exists(json, 'managedFields') ? undefined : ((json['managedFields'] as Array).map(K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntryFromJSON)), + 'name': !exists(json, 'name') ? undefined : json['name'], + 'namespace': !exists(json, 'namespace') ? undefined : json['namespace'], + 'ownerReferences': !exists(json, 'ownerReferences') ? undefined : ((json['ownerReferences'] as Array).map(K8sIoApimachineryPkgApisMetaV1OwnerReferenceFromJSON)), + 'resourceVersion': !exists(json, 'resourceVersion') ? undefined : json['resourceVersion'], + 'selfLink': !exists(json, 'selfLink') ? undefined : json['selfLink'], + 'uid': !exists(json, 'uid') ? undefined : json['uid'], + }; +} + +export function K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON(value?: K8sIoApimachineryPkgApisMetaV1ObjectMeta | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'annotations': value.annotations, + 'deletionGracePeriodSeconds': value.deletionGracePeriodSeconds, + 'deletionTimestamp': value.deletionTimestamp === undefined ? undefined : (value.deletionTimestamp), + 'finalizers': value.finalizers, + 'generateName': value.generateName, + 'generation': value.generation, + 'labels': value.labels, + 'managedFields': value.managedFields === undefined ? undefined : ((value.managedFields as Array).map(K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntryToJSON)), + 'name': value.name, + 'namespace': value.namespace, + 'ownerReferences': value.ownerReferences === undefined ? undefined : ((value.ownerReferences as Array).map(K8sIoApimachineryPkgApisMetaV1OwnerReferenceToJSON)), + 'resourceVersion': value.resourceVersion, + 'selfLink': value.selfLink, + 'uid': value.uid, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1OwnerReference.ts b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1OwnerReference.ts new file mode 100644 index 000000000..d9732864f --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1OwnerReference.ts @@ -0,0 +1,109 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field. + * @export + * @interface K8sIoApimachineryPkgApisMetaV1OwnerReference + */ +export interface K8sIoApimachineryPkgApisMetaV1OwnerReference { + /** + * API version of the referent. + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1OwnerReference + */ + apiVersion: string; + /** + * If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * @type {boolean} + * @memberof K8sIoApimachineryPkgApisMetaV1OwnerReference + */ + blockOwnerDeletion?: boolean; + /** + * If true, this reference points to the managing controller. + * @type {boolean} + * @memberof K8sIoApimachineryPkgApisMetaV1OwnerReference + */ + controller?: boolean; + /** + * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1OwnerReference + */ + kind: string; + /** + * Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1OwnerReference + */ + name: string; + /** + * UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1OwnerReference + */ + uid: string; +} + +/** + * Check if a given object implements the K8sIoApimachineryPkgApisMetaV1OwnerReference interface. + */ +export function instanceOfK8sIoApimachineryPkgApisMetaV1OwnerReference(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "apiVersion" in value; + isInstance = isInstance && "kind" in value; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "uid" in value; + + return isInstance; +} + +export function K8sIoApimachineryPkgApisMetaV1OwnerReferenceFromJSON(json: any): K8sIoApimachineryPkgApisMetaV1OwnerReference { + return K8sIoApimachineryPkgApisMetaV1OwnerReferenceFromJSONTyped(json, false); +} + +export function K8sIoApimachineryPkgApisMetaV1OwnerReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApimachineryPkgApisMetaV1OwnerReference { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': json['apiVersion'], + 'blockOwnerDeletion': !exists(json, 'blockOwnerDeletion') ? undefined : json['blockOwnerDeletion'], + 'controller': !exists(json, 'controller') ? undefined : json['controller'], + 'kind': json['kind'], + 'name': json['name'], + 'uid': json['uid'], + }; +} + +export function K8sIoApimachineryPkgApisMetaV1OwnerReferenceToJSON(value?: K8sIoApimachineryPkgApisMetaV1OwnerReference | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'blockOwnerDeletion': value.blockOwnerDeletion, + 'controller': value.controller, + 'kind': value.kind, + 'name': value.name, + 'uid': value.uid, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1Preconditions.ts b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1Preconditions.ts new file mode 100644 index 000000000..53baa7ca7 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1Preconditions.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. + * @export + * @interface K8sIoApimachineryPkgApisMetaV1Preconditions + */ +export interface K8sIoApimachineryPkgApisMetaV1Preconditions { + /** + * Specifies the target ResourceVersion + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1Preconditions + */ + resourceVersion?: string; + /** + * Specifies the target UID. + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1Preconditions + */ + uid?: string; +} + +/** + * Check if a given object implements the K8sIoApimachineryPkgApisMetaV1Preconditions interface. + */ +export function instanceOfK8sIoApimachineryPkgApisMetaV1Preconditions(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function K8sIoApimachineryPkgApisMetaV1PreconditionsFromJSON(json: any): K8sIoApimachineryPkgApisMetaV1Preconditions { + return K8sIoApimachineryPkgApisMetaV1PreconditionsFromJSONTyped(json, false); +} + +export function K8sIoApimachineryPkgApisMetaV1PreconditionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApimachineryPkgApisMetaV1Preconditions { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'resourceVersion': !exists(json, 'resourceVersion') ? undefined : json['resourceVersion'], + 'uid': !exists(json, 'uid') ? undefined : json['uid'], + }; +} + +export function K8sIoApimachineryPkgApisMetaV1PreconditionsToJSON(value?: K8sIoApimachineryPkgApisMetaV1Preconditions | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'resourceVersion': value.resourceVersion, + 'uid': value.uid, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1RootPaths.ts b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1RootPaths.ts new file mode 100644 index 000000000..75b895f5f --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1RootPaths.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * RootPaths lists the paths available at root. For example: "/healthz", "/apis". + * @export + * @interface K8sIoApimachineryPkgApisMetaV1RootPaths + */ +export interface K8sIoApimachineryPkgApisMetaV1RootPaths { + /** + * paths are the paths available at root. + * @type {Array} + * @memberof K8sIoApimachineryPkgApisMetaV1RootPaths + */ + paths: Array; +} + +/** + * Check if a given object implements the K8sIoApimachineryPkgApisMetaV1RootPaths interface. + */ +export function instanceOfK8sIoApimachineryPkgApisMetaV1RootPaths(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "paths" in value; + + return isInstance; +} + +export function K8sIoApimachineryPkgApisMetaV1RootPathsFromJSON(json: any): K8sIoApimachineryPkgApisMetaV1RootPaths { + return K8sIoApimachineryPkgApisMetaV1RootPathsFromJSONTyped(json, false); +} + +export function K8sIoApimachineryPkgApisMetaV1RootPathsFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApimachineryPkgApisMetaV1RootPaths { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'paths': json['paths'], + }; +} + +export function K8sIoApimachineryPkgApisMetaV1RootPathsToJSON(value?: K8sIoApimachineryPkgApisMetaV1RootPaths | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'paths': value.paths, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR.ts b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR.ts new file mode 100644 index 000000000..738103cc7 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match. + * @export + * @interface K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR + */ +export interface K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR { + /** + * The CIDR with which clients can match their IP to figure out the server address that they should use. + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR + */ + clientCIDR: string; + /** + * Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR + */ + serverAddress: string; +} + +/** + * Check if a given object implements the K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR interface. + */ +export function instanceOfK8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "clientCIDR" in value; + isInstance = isInstance && "serverAddress" in value; + + return isInstance; +} + +export function K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDRFromJSON(json: any): K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR { + return K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDRFromJSONTyped(json, false); +} + +export function K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDRFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'clientCIDR': json['clientCIDR'], + 'serverAddress': json['serverAddress'], + }; +} + +export function K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDRToJSON(value?: K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'clientCIDR': value.clientCIDR, + 'serverAddress': value.serverAddress, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1Status.ts b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1Status.ts new file mode 100644 index 000000000..ec179d6d0 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1Status.ts @@ -0,0 +1,134 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ListMeta } from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ListMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import type { K8sIoApimachineryPkgApisMetaV1StatusDetails } from './K8sIoApimachineryPkgApisMetaV1StatusDetails'; +import { + K8sIoApimachineryPkgApisMetaV1StatusDetailsFromJSON, + K8sIoApimachineryPkgApisMetaV1StatusDetailsFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1StatusDetailsToJSON, +} from './K8sIoApimachineryPkgApisMetaV1StatusDetails'; + +/** + * Status is a return value for calls that don't return other objects. + * @export + * @interface K8sIoApimachineryPkgApisMetaV1Status + */ +export interface K8sIoApimachineryPkgApisMetaV1Status { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1Status + */ + apiVersion?: string; + /** + * Suggested HTTP return code for this status, 0 if not set. + * @type {number} + * @memberof K8sIoApimachineryPkgApisMetaV1Status + */ + code?: number; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1StatusDetails} + * @memberof K8sIoApimachineryPkgApisMetaV1Status + */ + details?: K8sIoApimachineryPkgApisMetaV1StatusDetails; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1Status + */ + kind?: string; + /** + * A human-readable description of the status of this operation. + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1Status + */ + message?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ListMeta} + * @memberof K8sIoApimachineryPkgApisMetaV1Status + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ListMeta; + /** + * A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1Status + */ + reason?: string; + /** + * Status of the operation. One of: "Success" or "Failure". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1Status + */ + status?: string; +} + +/** + * Check if a given object implements the K8sIoApimachineryPkgApisMetaV1Status interface. + */ +export function instanceOfK8sIoApimachineryPkgApisMetaV1Status(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function K8sIoApimachineryPkgApisMetaV1StatusFromJSON(json: any): K8sIoApimachineryPkgApisMetaV1Status { + return K8sIoApimachineryPkgApisMetaV1StatusFromJSONTyped(json, false); +} + +export function K8sIoApimachineryPkgApisMetaV1StatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApimachineryPkgApisMetaV1Status { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'code': !exists(json, 'code') ? undefined : json['code'], + 'details': !exists(json, 'details') ? undefined : K8sIoApimachineryPkgApisMetaV1StatusDetailsFromJSON(json['details']), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'status': !exists(json, 'status') ? undefined : json['status'], + }; +} + +export function K8sIoApimachineryPkgApisMetaV1StatusToJSON(value?: K8sIoApimachineryPkgApisMetaV1Status | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'code': value.code, + 'details': K8sIoApimachineryPkgApisMetaV1StatusDetailsToJSON(value.details), + 'kind': value.kind, + 'message': value.message, + 'metadata': K8sIoApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + 'reason': value.reason, + 'status': value.status, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1StatusCause.ts b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1StatusCause.ts new file mode 100644 index 000000000..c95afe033 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1StatusCause.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered. + * @export + * @interface K8sIoApimachineryPkgApisMetaV1StatusCause + */ +export interface K8sIoApimachineryPkgApisMetaV1StatusCause { + /** + * The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. + * + * Examples: + * "name" - the field "name" on the current resource + * "items[0].name" - the field "name" on the first array entry in "items" + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1StatusCause + */ + field?: string; + /** + * A human-readable description of the cause of the error. This field may be presented as-is to a reader. + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1StatusCause + */ + message?: string; + /** + * A machine-readable description of the cause of the error. If this value is empty there is no information available. + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1StatusCause + */ + reason?: string; +} + +/** + * Check if a given object implements the K8sIoApimachineryPkgApisMetaV1StatusCause interface. + */ +export function instanceOfK8sIoApimachineryPkgApisMetaV1StatusCause(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function K8sIoApimachineryPkgApisMetaV1StatusCauseFromJSON(json: any): K8sIoApimachineryPkgApisMetaV1StatusCause { + return K8sIoApimachineryPkgApisMetaV1StatusCauseFromJSONTyped(json, false); +} + +export function K8sIoApimachineryPkgApisMetaV1StatusCauseFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApimachineryPkgApisMetaV1StatusCause { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'field': !exists(json, 'field') ? undefined : json['field'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + }; +} + +export function K8sIoApimachineryPkgApisMetaV1StatusCauseToJSON(value?: K8sIoApimachineryPkgApisMetaV1StatusCause | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'field': value.field, + 'message': value.message, + 'reason': value.reason, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1StatusDetails.ts b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1StatusDetails.ts new file mode 100644 index 000000000..b6a1eeb76 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1StatusDetails.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1StatusCause } from './K8sIoApimachineryPkgApisMetaV1StatusCause'; +import { + K8sIoApimachineryPkgApisMetaV1StatusCauseFromJSON, + K8sIoApimachineryPkgApisMetaV1StatusCauseFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1StatusCauseToJSON, +} from './K8sIoApimachineryPkgApisMetaV1StatusCause'; + +/** + * StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined. + * @export + * @interface K8sIoApimachineryPkgApisMetaV1StatusDetails + */ +export interface K8sIoApimachineryPkgApisMetaV1StatusDetails { + /** + * The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. + * @type {Array} + * @memberof K8sIoApimachineryPkgApisMetaV1StatusDetails + */ + causes?: Array; + /** + * The group attribute of the resource associated with the status StatusReason. + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1StatusDetails + */ + group?: string; + /** + * The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1StatusDetails + */ + kind?: string; + /** + * The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1StatusDetails + */ + name?: string; + /** + * If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action. + * @type {number} + * @memberof K8sIoApimachineryPkgApisMetaV1StatusDetails + */ + retryAfterSeconds?: number; + /** + * UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1StatusDetails + */ + uid?: string; +} + +/** + * Check if a given object implements the K8sIoApimachineryPkgApisMetaV1StatusDetails interface. + */ +export function instanceOfK8sIoApimachineryPkgApisMetaV1StatusDetails(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function K8sIoApimachineryPkgApisMetaV1StatusDetailsFromJSON(json: any): K8sIoApimachineryPkgApisMetaV1StatusDetails { + return K8sIoApimachineryPkgApisMetaV1StatusDetailsFromJSONTyped(json, false); +} + +export function K8sIoApimachineryPkgApisMetaV1StatusDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApimachineryPkgApisMetaV1StatusDetails { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'causes': !exists(json, 'causes') ? undefined : ((json['causes'] as Array).map(K8sIoApimachineryPkgApisMetaV1StatusCauseFromJSON)), + 'group': !exists(json, 'group') ? undefined : json['group'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'name': !exists(json, 'name') ? undefined : json['name'], + 'retryAfterSeconds': !exists(json, 'retryAfterSeconds') ? undefined : json['retryAfterSeconds'], + 'uid': !exists(json, 'uid') ? undefined : json['uid'], + }; +} + +export function K8sIoApimachineryPkgApisMetaV1StatusDetailsToJSON(value?: K8sIoApimachineryPkgApisMetaV1StatusDetails | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'causes': value.causes === undefined ? undefined : ((value.causes as Array).map(K8sIoApimachineryPkgApisMetaV1StatusCauseToJSON)), + 'group': value.group, + 'kind': value.kind, + 'name': value.name, + 'retryAfterSeconds': value.retryAfterSeconds, + 'uid': value.uid, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1WatchEvent.ts b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1WatchEvent.ts new file mode 100644 index 000000000..afedd842b --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/K8sIoApimachineryPkgApisMetaV1WatchEvent.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Event represents a single event to a watched resource. + * @export + * @interface K8sIoApimachineryPkgApisMetaV1WatchEvent + */ +export interface K8sIoApimachineryPkgApisMetaV1WatchEvent { + /** + * RawExtension is used to hold extensions in external versions. + * + * To use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types. + * + * // Internal package: + * + * type MyAPIObject struct { + * runtime.TypeMeta `json:",inline"` + * MyPlugin runtime.Object `json:"myPlugin"` + * } + * + * type PluginA struct { + * AOption string `json:"aOption"` + * } + * + * // External package: + * + * type MyAPIObject struct { + * runtime.TypeMeta `json:",inline"` + * MyPlugin runtime.RawExtension `json:"myPlugin"` + * } + * + * type PluginA struct { + * AOption string `json:"aOption"` + * } + * + * // On the wire, the JSON will look something like this: + * + * { + * "kind":"MyAPIObject", + * "apiVersion":"v1", + * "myPlugin": { + * "kind":"PluginA", + * "aOption":"foo", + * }, + * } + * + * So what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.) + * @type {object} + * @memberof K8sIoApimachineryPkgApisMetaV1WatchEvent + */ + object: object; + /** + * + * @type {string} + * @memberof K8sIoApimachineryPkgApisMetaV1WatchEvent + */ + type: string; +} + +/** + * Check if a given object implements the K8sIoApimachineryPkgApisMetaV1WatchEvent interface. + */ +export function instanceOfK8sIoApimachineryPkgApisMetaV1WatchEvent(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "object" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function K8sIoApimachineryPkgApisMetaV1WatchEventFromJSON(json: any): K8sIoApimachineryPkgApisMetaV1WatchEvent { + return K8sIoApimachineryPkgApisMetaV1WatchEventFromJSONTyped(json, false); +} + +export function K8sIoApimachineryPkgApisMetaV1WatchEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): K8sIoApimachineryPkgApisMetaV1WatchEvent { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'object': json['object'], + 'type': json['type'], + }; +} + +export function K8sIoApimachineryPkgApisMetaV1WatchEventToJSON(value?: K8sIoApimachineryPkgApisMetaV1WatchEvent | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'object': value.object, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1ACPI.ts b/packages/types/src/generated/kubevirt/models/V1ACPI.ts new file mode 100644 index 000000000..0567007d3 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1ACPI.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1ACPI + */ +export interface V1ACPI { + /** + * SlicNameRef should match the volume name of a secret object. The data in the secret should be a binary blob that follows the ACPI SLIC standard, see: https://learn.microsoft.com/en-us/previous-versions/windows/hardware/design/dn653305(v=vs.85) + * @type {string} + * @memberof V1ACPI + */ + slicNameRef?: string; +} + +/** + * Check if a given object implements the V1ACPI interface. + */ +export function instanceOfV1ACPI(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1ACPIFromJSON(json: any): V1ACPI { + return V1ACPIFromJSONTyped(json, false); +} + +export function V1ACPIFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ACPI { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'slicNameRef': !exists(json, 'slicNameRef') ? undefined : json['slicNameRef'], + }; +} + +export function V1ACPIToJSON(value?: V1ACPI | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'slicNameRef': value.slicNameRef, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1AccessCredential.ts b/packages/types/src/generated/kubevirt/models/V1AccessCredential.ts new file mode 100644 index 000000000..c42d1ace8 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1AccessCredential.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1SSHPublicKeyAccessCredential } from './V1SSHPublicKeyAccessCredential'; +import { + V1SSHPublicKeyAccessCredentialFromJSON, + V1SSHPublicKeyAccessCredentialFromJSONTyped, + V1SSHPublicKeyAccessCredentialToJSON, +} from './V1SSHPublicKeyAccessCredential'; +import type { V1UserPasswordAccessCredential } from './V1UserPasswordAccessCredential'; +import { + V1UserPasswordAccessCredentialFromJSON, + V1UserPasswordAccessCredentialFromJSONTyped, + V1UserPasswordAccessCredentialToJSON, +} from './V1UserPasswordAccessCredential'; + +/** + * AccessCredential represents a credential source that can be used to authorize remote access to the vm guest Only one of its members may be specified. + * @export + * @interface V1AccessCredential + */ +export interface V1AccessCredential { + /** + * + * @type {V1SSHPublicKeyAccessCredential} + * @memberof V1AccessCredential + */ + sshPublicKey?: V1SSHPublicKeyAccessCredential; + /** + * + * @type {V1UserPasswordAccessCredential} + * @memberof V1AccessCredential + */ + userPassword?: V1UserPasswordAccessCredential; +} + +/** + * Check if a given object implements the V1AccessCredential interface. + */ +export function instanceOfV1AccessCredential(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1AccessCredentialFromJSON(json: any): V1AccessCredential { + return V1AccessCredentialFromJSONTyped(json, false); +} + +export function V1AccessCredentialFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AccessCredential { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'sshPublicKey': !exists(json, 'sshPublicKey') ? undefined : V1SSHPublicKeyAccessCredentialFromJSON(json['sshPublicKey']), + 'userPassword': !exists(json, 'userPassword') ? undefined : V1UserPasswordAccessCredentialFromJSON(json['userPassword']), + }; +} + +export function V1AccessCredentialToJSON(value?: V1AccessCredential | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'sshPublicKey': V1SSHPublicKeyAccessCredentialToJSON(value.sshPublicKey), + 'userPassword': V1UserPasswordAccessCredentialToJSON(value.userPassword), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1AccessCredentialSecretSource.ts b/packages/types/src/generated/kubevirt/models/V1AccessCredentialSecretSource.ts new file mode 100644 index 000000000..06629cf53 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1AccessCredentialSecretSource.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1AccessCredentialSecretSource + */ +export interface V1AccessCredentialSecretSource { + /** + * SecretName represents the name of the secret in the VMI's namespace + * @type {string} + * @memberof V1AccessCredentialSecretSource + */ + secretName: string; +} + +/** + * Check if a given object implements the V1AccessCredentialSecretSource interface. + */ +export function instanceOfV1AccessCredentialSecretSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "secretName" in value; + + return isInstance; +} + +export function V1AccessCredentialSecretSourceFromJSON(json: any): V1AccessCredentialSecretSource { + return V1AccessCredentialSecretSourceFromJSONTyped(json, false); +} + +export function V1AccessCredentialSecretSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AccessCredentialSecretSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'secretName': json['secretName'], + }; +} + +export function V1AccessCredentialSecretSourceToJSON(value?: V1AccessCredentialSecretSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'secretName': value.secretName, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1AddVolumeOptions.ts b/packages/types/src/generated/kubevirt/models/V1AddVolumeOptions.ts new file mode 100644 index 000000000..8eb350986 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1AddVolumeOptions.ts @@ -0,0 +1,105 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1Disk } from './V1Disk'; +import { + V1DiskFromJSON, + V1DiskFromJSONTyped, + V1DiskToJSON, +} from './V1Disk'; +import type { V1HotplugVolumeSource } from './V1HotplugVolumeSource'; +import { + V1HotplugVolumeSourceFromJSON, + V1HotplugVolumeSourceFromJSONTyped, + V1HotplugVolumeSourceToJSON, +} from './V1HotplugVolumeSource'; + +/** + * AddVolumeOptions is provided when dynamically hot plugging a volume and disk + * @export + * @interface V1AddVolumeOptions + */ +export interface V1AddVolumeOptions { + /** + * + * @type {V1Disk} + * @memberof V1AddVolumeOptions + */ + disk: V1Disk; + /** + * When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @type {Array} + * @memberof V1AddVolumeOptions + */ + dryRun?: Array; + /** + * Name represents the name that will be used to map the disk to the corresponding volume. This overrides any name set inside the Disk struct itself. + * @type {string} + * @memberof V1AddVolumeOptions + */ + name: string; + /** + * + * @type {V1HotplugVolumeSource} + * @memberof V1AddVolumeOptions + */ + volumeSource: V1HotplugVolumeSource; +} + +/** + * Check if a given object implements the V1AddVolumeOptions interface. + */ +export function instanceOfV1AddVolumeOptions(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "disk" in value; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "volumeSource" in value; + + return isInstance; +} + +export function V1AddVolumeOptionsFromJSON(json: any): V1AddVolumeOptions { + return V1AddVolumeOptionsFromJSONTyped(json, false); +} + +export function V1AddVolumeOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AddVolumeOptions { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'disk': V1DiskFromJSON(json['disk']), + 'dryRun': !exists(json, 'dryRun') ? undefined : json['dryRun'], + 'name': json['name'], + 'volumeSource': V1HotplugVolumeSourceFromJSON(json['volumeSource']), + }; +} + +export function V1AddVolumeOptionsToJSON(value?: V1AddVolumeOptions | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'disk': V1DiskToJSON(value.disk), + 'dryRun': value.dryRun, + 'name': value.name, + 'volumeSource': V1HotplugVolumeSourceToJSON(value.volumeSource), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1ArchConfiguration.ts b/packages/types/src/generated/kubevirt/models/V1ArchConfiguration.ts new file mode 100644 index 000000000..bac58a2b9 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1ArchConfiguration.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1ArchSpecificConfiguration } from './V1ArchSpecificConfiguration'; +import { + V1ArchSpecificConfigurationFromJSON, + V1ArchSpecificConfigurationFromJSONTyped, + V1ArchSpecificConfigurationToJSON, +} from './V1ArchSpecificConfiguration'; + +/** + * + * @export + * @interface V1ArchConfiguration + */ +export interface V1ArchConfiguration { + /** + * + * @type {V1ArchSpecificConfiguration} + * @memberof V1ArchConfiguration + */ + amd64?: V1ArchSpecificConfiguration; + /** + * + * @type {V1ArchSpecificConfiguration} + * @memberof V1ArchConfiguration + */ + arm64?: V1ArchSpecificConfiguration; + /** + * + * @type {string} + * @memberof V1ArchConfiguration + */ + defaultArchitecture?: string; + /** + * + * @type {V1ArchSpecificConfiguration} + * @memberof V1ArchConfiguration + */ + ppc64le?: V1ArchSpecificConfiguration; +} + +/** + * Check if a given object implements the V1ArchConfiguration interface. + */ +export function instanceOfV1ArchConfiguration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1ArchConfigurationFromJSON(json: any): V1ArchConfiguration { + return V1ArchConfigurationFromJSONTyped(json, false); +} + +export function V1ArchConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ArchConfiguration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'amd64': !exists(json, 'amd64') ? undefined : V1ArchSpecificConfigurationFromJSON(json['amd64']), + 'arm64': !exists(json, 'arm64') ? undefined : V1ArchSpecificConfigurationFromJSON(json['arm64']), + 'defaultArchitecture': !exists(json, 'defaultArchitecture') ? undefined : json['defaultArchitecture'], + 'ppc64le': !exists(json, 'ppc64le') ? undefined : V1ArchSpecificConfigurationFromJSON(json['ppc64le']), + }; +} + +export function V1ArchConfigurationToJSON(value?: V1ArchConfiguration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'amd64': V1ArchSpecificConfigurationToJSON(value.amd64), + 'arm64': V1ArchSpecificConfigurationToJSON(value.arm64), + 'defaultArchitecture': value.defaultArchitecture, + 'ppc64le': V1ArchSpecificConfigurationToJSON(value.ppc64le), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1ArchSpecificConfiguration.ts b/packages/types/src/generated/kubevirt/models/V1ArchSpecificConfiguration.ts new file mode 100644 index 000000000..86a2cc46b --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1ArchSpecificConfiguration.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1ArchSpecificConfiguration + */ +export interface V1ArchSpecificConfiguration { + /** + * + * @type {Array} + * @memberof V1ArchSpecificConfiguration + */ + emulatedMachines?: Array; + /** + * + * @type {string} + * @memberof V1ArchSpecificConfiguration + */ + machineType?: string; + /** + * + * @type {string} + * @memberof V1ArchSpecificConfiguration + */ + ovmfPath?: string; +} + +/** + * Check if a given object implements the V1ArchSpecificConfiguration interface. + */ +export function instanceOfV1ArchSpecificConfiguration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1ArchSpecificConfigurationFromJSON(json: any): V1ArchSpecificConfiguration { + return V1ArchSpecificConfigurationFromJSONTyped(json, false); +} + +export function V1ArchSpecificConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ArchSpecificConfiguration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'emulatedMachines': !exists(json, 'emulatedMachines') ? undefined : json['emulatedMachines'], + 'machineType': !exists(json, 'machineType') ? undefined : json['machineType'], + 'ovmfPath': !exists(json, 'ovmfPath') ? undefined : json['ovmfPath'], + }; +} + +export function V1ArchSpecificConfigurationToJSON(value?: V1ArchSpecificConfiguration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'emulatedMachines': value.emulatedMachines, + 'machineType': value.machineType, + 'ovmfPath': value.ovmfPath, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1BIOS.ts b/packages/types/src/generated/kubevirt/models/V1BIOS.ts new file mode 100644 index 000000000..072155fd8 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1BIOS.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * If set (default), BIOS will be used. + * @export + * @interface V1BIOS + */ +export interface V1BIOS { + /** + * If set, the BIOS output will be transmitted over serial + * @type {boolean} + * @memberof V1BIOS + */ + useSerial?: boolean; +} + +/** + * Check if a given object implements the V1BIOS interface. + */ +export function instanceOfV1BIOS(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1BIOSFromJSON(json: any): V1BIOS { + return V1BIOSFromJSONTyped(json, false); +} + +export function V1BIOSFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1BIOS { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'useSerial': !exists(json, 'useSerial') ? undefined : json['useSerial'], + }; +} + +export function V1BIOSToJSON(value?: V1BIOS | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'useSerial': value.useSerial, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1BlockSize.ts b/packages/types/src/generated/kubevirt/models/V1BlockSize.ts new file mode 100644 index 000000000..239c53f44 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1BlockSize.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1CustomBlockSize } from './V1CustomBlockSize'; +import { + V1CustomBlockSizeFromJSON, + V1CustomBlockSizeFromJSONTyped, + V1CustomBlockSizeToJSON, +} from './V1CustomBlockSize'; +import type { V1FeatureState } from './V1FeatureState'; +import { + V1FeatureStateFromJSON, + V1FeatureStateFromJSONTyped, + V1FeatureStateToJSON, +} from './V1FeatureState'; + +/** + * BlockSize provides the option to change the block size presented to the VM for a disk. Only one of its members may be specified. + * @export + * @interface V1BlockSize + */ +export interface V1BlockSize { + /** + * + * @type {V1CustomBlockSize} + * @memberof V1BlockSize + */ + custom?: V1CustomBlockSize; + /** + * + * @type {V1FeatureState} + * @memberof V1BlockSize + */ + matchVolume?: V1FeatureState; +} + +/** + * Check if a given object implements the V1BlockSize interface. + */ +export function instanceOfV1BlockSize(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1BlockSizeFromJSON(json: any): V1BlockSize { + return V1BlockSizeFromJSONTyped(json, false); +} + +export function V1BlockSizeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1BlockSize { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'custom': !exists(json, 'custom') ? undefined : V1CustomBlockSizeFromJSON(json['custom']), + 'matchVolume': !exists(json, 'matchVolume') ? undefined : V1FeatureStateFromJSON(json['matchVolume']), + }; +} + +export function V1BlockSizeToJSON(value?: V1BlockSize | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'custom': V1CustomBlockSizeToJSON(value.custom), + 'matchVolume': V1FeatureStateToJSON(value.matchVolume), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1Bootloader.ts b/packages/types/src/generated/kubevirt/models/V1Bootloader.ts new file mode 100644 index 000000000..0a67db21c --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1Bootloader.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1BIOS } from './V1BIOS'; +import { + V1BIOSFromJSON, + V1BIOSFromJSONTyped, + V1BIOSToJSON, +} from './V1BIOS'; +import type { V1EFI } from './V1EFI'; +import { + V1EFIFromJSON, + V1EFIFromJSONTyped, + V1EFIToJSON, +} from './V1EFI'; + +/** + * Represents the firmware blob used to assist in the domain creation process. Used for setting the QEMU BIOS file path for the libvirt domain. + * @export + * @interface V1Bootloader + */ +export interface V1Bootloader { + /** + * + * @type {V1BIOS} + * @memberof V1Bootloader + */ + bios?: V1BIOS; + /** + * + * @type {V1EFI} + * @memberof V1Bootloader + */ + efi?: V1EFI; +} + +/** + * Check if a given object implements the V1Bootloader interface. + */ +export function instanceOfV1Bootloader(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1BootloaderFromJSON(json: any): V1Bootloader { + return V1BootloaderFromJSONTyped(json, false); +} + +export function V1BootloaderFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Bootloader { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bios': !exists(json, 'bios') ? undefined : V1BIOSFromJSON(json['bios']), + 'efi': !exists(json, 'efi') ? undefined : V1EFIFromJSON(json['efi']), + }; +} + +export function V1BootloaderToJSON(value?: V1Bootloader | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'bios': V1BIOSToJSON(value.bios), + 'efi': V1EFIToJSON(value.efi), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1CDRomTarget.ts b/packages/types/src/generated/kubevirt/models/V1CDRomTarget.ts new file mode 100644 index 000000000..c5c843975 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1CDRomTarget.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1CDRomTarget + */ +export interface V1CDRomTarget { + /** + * Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi. + * @type {string} + * @memberof V1CDRomTarget + */ + bus?: string; + /** + * ReadOnly. Defaults to true. + * @type {boolean} + * @memberof V1CDRomTarget + */ + readonly?: boolean; + /** + * Tray indicates if the tray of the device is open or closed. Allowed values are "open" and "closed". Defaults to closed. + * @type {string} + * @memberof V1CDRomTarget + */ + tray?: string; +} + +/** + * Check if a given object implements the V1CDRomTarget interface. + */ +export function instanceOfV1CDRomTarget(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1CDRomTargetFromJSON(json: any): V1CDRomTarget { + return V1CDRomTargetFromJSONTyped(json, false); +} + +export function V1CDRomTargetFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CDRomTarget { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bus': !exists(json, 'bus') ? undefined : json['bus'], + 'readonly': !exists(json, 'readonly') ? undefined : json['readonly'], + 'tray': !exists(json, 'tray') ? undefined : json['tray'], + }; +} + +export function V1CDRomTargetToJSON(value?: V1CDRomTarget | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'bus': value.bus, + 'readonly': value.readonly, + 'tray': value.tray, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1CPU.ts b/packages/types/src/generated/kubevirt/models/V1CPU.ts new file mode 100644 index 000000000..7fb820383 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1CPU.ts @@ -0,0 +1,156 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1CPUFeature } from './V1CPUFeature'; +import { + V1CPUFeatureFromJSON, + V1CPUFeatureFromJSONTyped, + V1CPUFeatureToJSON, +} from './V1CPUFeature'; +import type { V1NUMA } from './V1NUMA'; +import { + V1NUMAFromJSON, + V1NUMAFromJSONTyped, + V1NUMAToJSON, +} from './V1NUMA'; +import type { V1Realtime } from './V1Realtime'; +import { + V1RealtimeFromJSON, + V1RealtimeFromJSONTyped, + V1RealtimeToJSON, +} from './V1Realtime'; + +/** + * CPU allows specifying the CPU topology. + * @export + * @interface V1CPU + */ +export interface V1CPU { + /** + * Cores specifies the number of cores inside the vmi. Must be a value greater or equal 1. + * @type {number} + * @memberof V1CPU + */ + cores?: number; + /** + * DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. + * @type {boolean} + * @memberof V1CPU + */ + dedicatedCpuPlacement?: boolean; + /** + * Features specifies the CPU features list inside the VMI. + * @type {Array} + * @memberof V1CPU + */ + features?: Array; + /** + * IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it. + * @type {boolean} + * @memberof V1CPU + */ + isolateEmulatorThread?: boolean; + /** + * MaxSockets specifies the maximum amount of sockets that can be hotplugged + * @type {number} + * @memberof V1CPU + */ + maxSockets?: number; + /** + * Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like "host-passthrough" to get the same CPU as the node and "host-model" to get CPU closest to the node one. Defaults to host-model. + * @type {string} + * @memberof V1CPU + */ + model?: string; + /** + * + * @type {V1NUMA} + * @memberof V1CPU + */ + numa?: V1NUMA; + /** + * + * @type {V1Realtime} + * @memberof V1CPU + */ + realtime?: V1Realtime; + /** + * Sockets specifies the number of sockets inside the vmi. Must be a value greater or equal 1. + * @type {number} + * @memberof V1CPU + */ + sockets?: number; + /** + * Threads specifies the number of threads inside the vmi. Must be a value greater or equal 1. + * @type {number} + * @memberof V1CPU + */ + threads?: number; +} + +/** + * Check if a given object implements the V1CPU interface. + */ +export function instanceOfV1CPU(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1CPUFromJSON(json: any): V1CPU { + return V1CPUFromJSONTyped(json, false); +} + +export function V1CPUFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CPU { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'cores': !exists(json, 'cores') ? undefined : json['cores'], + 'dedicatedCpuPlacement': !exists(json, 'dedicatedCpuPlacement') ? undefined : json['dedicatedCpuPlacement'], + 'features': !exists(json, 'features') ? undefined : ((json['features'] as Array).map(V1CPUFeatureFromJSON)), + 'isolateEmulatorThread': !exists(json, 'isolateEmulatorThread') ? undefined : json['isolateEmulatorThread'], + 'maxSockets': !exists(json, 'maxSockets') ? undefined : json['maxSockets'], + 'model': !exists(json, 'model') ? undefined : json['model'], + 'numa': !exists(json, 'numa') ? undefined : V1NUMAFromJSON(json['numa']), + 'realtime': !exists(json, 'realtime') ? undefined : V1RealtimeFromJSON(json['realtime']), + 'sockets': !exists(json, 'sockets') ? undefined : json['sockets'], + 'threads': !exists(json, 'threads') ? undefined : json['threads'], + }; +} + +export function V1CPUToJSON(value?: V1CPU | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'cores': value.cores, + 'dedicatedCpuPlacement': value.dedicatedCpuPlacement, + 'features': value.features === undefined ? undefined : ((value.features as Array).map(V1CPUFeatureToJSON)), + 'isolateEmulatorThread': value.isolateEmulatorThread, + 'maxSockets': value.maxSockets, + 'model': value.model, + 'numa': V1NUMAToJSON(value.numa), + 'realtime': V1RealtimeToJSON(value.realtime), + 'sockets': value.sockets, + 'threads': value.threads, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1CPUFeature.ts b/packages/types/src/generated/kubevirt/models/V1CPUFeature.ts new file mode 100644 index 000000000..e6fbd6b2c --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1CPUFeature.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * CPUFeature allows specifying a CPU feature. + * @export + * @interface V1CPUFeature + */ +export interface V1CPUFeature { + /** + * Name of the CPU feature + * @type {string} + * @memberof V1CPUFeature + */ + name: string; + /** + * Policy is the CPU feature attribute which can have the following attributes: force - The virtual CPU will claim the feature is supported regardless of it being supported by host CPU. require - Guest creation will fail unless the feature is supported by the host CPU or the hypervisor is able to emulate it. optional - The feature will be supported by virtual CPU if and only if it is supported by host CPU. disable - The feature will not be supported by virtual CPU. forbid - Guest creation will fail if the feature is supported by host CPU. Defaults to require + * @type {string} + * @memberof V1CPUFeature + */ + policy?: string; +} + +/** + * Check if a given object implements the V1CPUFeature interface. + */ +export function instanceOfV1CPUFeature(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function V1CPUFeatureFromJSON(json: any): V1CPUFeature { + return V1CPUFeatureFromJSONTyped(json, false); +} + +export function V1CPUFeatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CPUFeature { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + 'policy': !exists(json, 'policy') ? undefined : json['policy'], + }; +} + +export function V1CPUFeatureToJSON(value?: V1CPUFeature | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'policy': value.policy, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1CPUTopology.ts b/packages/types/src/generated/kubevirt/models/V1CPUTopology.ts new file mode 100644 index 000000000..120f468eb --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1CPUTopology.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * CPUTopology allows specifying the amount of cores, sockets and threads. + * @export + * @interface V1CPUTopology + */ +export interface V1CPUTopology { + /** + * Cores specifies the number of cores inside the vmi. Must be a value greater or equal 1. + * @type {number} + * @memberof V1CPUTopology + */ + cores?: number; + /** + * Sockets specifies the number of sockets inside the vmi. Must be a value greater or equal 1. + * @type {number} + * @memberof V1CPUTopology + */ + sockets?: number; + /** + * Threads specifies the number of threads inside the vmi. Must be a value greater or equal 1. + * @type {number} + * @memberof V1CPUTopology + */ + threads?: number; +} + +/** + * Check if a given object implements the V1CPUTopology interface. + */ +export function instanceOfV1CPUTopology(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1CPUTopologyFromJSON(json: any): V1CPUTopology { + return V1CPUTopologyFromJSONTyped(json, false); +} + +export function V1CPUTopologyFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CPUTopology { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'cores': !exists(json, 'cores') ? undefined : json['cores'], + 'sockets': !exists(json, 'sockets') ? undefined : json['sockets'], + 'threads': !exists(json, 'threads') ? undefined : json['threads'], + }; +} + +export function V1CPUTopologyToJSON(value?: V1CPUTopology | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'cores': value.cores, + 'sockets': value.sockets, + 'threads': value.threads, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1CertConfig.ts b/packages/types/src/generated/kubevirt/models/V1CertConfig.ts new file mode 100644 index 000000000..c254ca49c --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1CertConfig.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * CertConfig contains the tunables for TLS certificates + * @export + * @interface V1CertConfig + */ +export interface V1CertConfig { + /** + * Duration is a wrapper around time.Duration which supports correct marshaling to YAML and JSON. In particular, it marshals into strings, which can be used as map keys in json. + * @type {string} + * @memberof V1CertConfig + */ + duration?: string; + /** + * Duration is a wrapper around time.Duration which supports correct marshaling to YAML and JSON. In particular, it marshals into strings, which can be used as map keys in json. + * @type {string} + * @memberof V1CertConfig + */ + renewBefore?: string; +} + +/** + * Check if a given object implements the V1CertConfig interface. + */ +export function instanceOfV1CertConfig(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1CertConfigFromJSON(json: any): V1CertConfig { + return V1CertConfigFromJSONTyped(json, false); +} + +export function V1CertConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CertConfig { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'duration': !exists(json, 'duration') ? undefined : json['duration'], + 'renewBefore': !exists(json, 'renewBefore') ? undefined : json['renewBefore'], + }; +} + +export function V1CertConfigToJSON(value?: V1CertConfig | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'duration': value.duration, + 'renewBefore': value.renewBefore, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1Chassis.ts b/packages/types/src/generated/kubevirt/models/V1Chassis.ts new file mode 100644 index 000000000..e769aa128 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1Chassis.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Chassis specifies the chassis info passed to the domain. + * @export + * @interface V1Chassis + */ +export interface V1Chassis { + /** + * + * @type {string} + * @memberof V1Chassis + */ + asset?: string; + /** + * + * @type {string} + * @memberof V1Chassis + */ + manufacturer?: string; + /** + * + * @type {string} + * @memberof V1Chassis + */ + serial?: string; + /** + * + * @type {string} + * @memberof V1Chassis + */ + sku?: string; + /** + * + * @type {string} + * @memberof V1Chassis + */ + version?: string; +} + +/** + * Check if a given object implements the V1Chassis interface. + */ +export function instanceOfV1Chassis(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1ChassisFromJSON(json: any): V1Chassis { + return V1ChassisFromJSONTyped(json, false); +} + +export function V1ChassisFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Chassis { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'asset': !exists(json, 'asset') ? undefined : json['asset'], + 'manufacturer': !exists(json, 'manufacturer') ? undefined : json['manufacturer'], + 'serial': !exists(json, 'serial') ? undefined : json['serial'], + 'sku': !exists(json, 'sku') ? undefined : json['sku'], + 'version': !exists(json, 'version') ? undefined : json['version'], + }; +} + +export function V1ChassisToJSON(value?: V1Chassis | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'asset': value.asset, + 'manufacturer': value.manufacturer, + 'serial': value.serial, + 'sku': value.sku, + 'version': value.version, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1Clock.ts b/packages/types/src/generated/kubevirt/models/V1Clock.ts new file mode 100644 index 000000000..6ba9a2680 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1Clock.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1ClockOffsetUTC } from './V1ClockOffsetUTC'; +import { + V1ClockOffsetUTCFromJSON, + V1ClockOffsetUTCFromJSONTyped, + V1ClockOffsetUTCToJSON, +} from './V1ClockOffsetUTC'; +import type { V1Timer } from './V1Timer'; +import { + V1TimerFromJSON, + V1TimerFromJSONTyped, + V1TimerToJSON, +} from './V1Timer'; + +/** + * Represents the clock and timers of a vmi. + * @export + * @interface V1Clock + */ +export interface V1Clock { + /** + * + * @type {V1Timer} + * @memberof V1Clock + */ + timer?: V1Timer; + /** + * Timezone sets the guest clock to the specified timezone. Zone name follows the TZ environment variable format (e.g. 'America/New_York'). + * @type {string} + * @memberof V1Clock + */ + timezone?: string; + /** + * + * @type {V1ClockOffsetUTC} + * @memberof V1Clock + */ + utc?: V1ClockOffsetUTC; +} + +/** + * Check if a given object implements the V1Clock interface. + */ +export function instanceOfV1Clock(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1ClockFromJSON(json: any): V1Clock { + return V1ClockFromJSONTyped(json, false); +} + +export function V1ClockFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Clock { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'timer': !exists(json, 'timer') ? undefined : V1TimerFromJSON(json['timer']), + 'timezone': !exists(json, 'timezone') ? undefined : json['timezone'], + 'utc': !exists(json, 'utc') ? undefined : V1ClockOffsetUTCFromJSON(json['utc']), + }; +} + +export function V1ClockToJSON(value?: V1Clock | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'timer': V1TimerToJSON(value.timer), + 'timezone': value.timezone, + 'utc': V1ClockOffsetUTCToJSON(value.utc), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1ClockOffset.ts b/packages/types/src/generated/kubevirt/models/V1ClockOffset.ts new file mode 100644 index 000000000..ff488dc61 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1ClockOffset.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1ClockOffsetUTC } from './V1ClockOffsetUTC'; +import { + V1ClockOffsetUTCFromJSON, + V1ClockOffsetUTCFromJSONTyped, + V1ClockOffsetUTCToJSON, +} from './V1ClockOffsetUTC'; + +/** + * Exactly one of its members must be set. + * @export + * @interface V1ClockOffset + */ +export interface V1ClockOffset { + /** + * Timezone sets the guest clock to the specified timezone. Zone name follows the TZ environment variable format (e.g. 'America/New_York'). + * @type {string} + * @memberof V1ClockOffset + */ + timezone?: string; + /** + * + * @type {V1ClockOffsetUTC} + * @memberof V1ClockOffset + */ + utc?: V1ClockOffsetUTC; +} + +/** + * Check if a given object implements the V1ClockOffset interface. + */ +export function instanceOfV1ClockOffset(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1ClockOffsetFromJSON(json: any): V1ClockOffset { + return V1ClockOffsetFromJSONTyped(json, false); +} + +export function V1ClockOffsetFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ClockOffset { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'timezone': !exists(json, 'timezone') ? undefined : json['timezone'], + 'utc': !exists(json, 'utc') ? undefined : V1ClockOffsetUTCFromJSON(json['utc']), + }; +} + +export function V1ClockOffsetToJSON(value?: V1ClockOffset | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'timezone': value.timezone, + 'utc': V1ClockOffsetUTCToJSON(value.utc), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1ClockOffsetUTC.ts b/packages/types/src/generated/kubevirt/models/V1ClockOffsetUTC.ts new file mode 100644 index 000000000..aa6a3677f --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1ClockOffsetUTC.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * UTC sets the guest clock to UTC on each boot. + * @export + * @interface V1ClockOffsetUTC + */ +export interface V1ClockOffsetUTC { + /** + * OffsetSeconds specifies an offset in seconds, relative to UTC. If set, guest changes to the clock will be kept during reboots and not reset. + * @type {number} + * @memberof V1ClockOffsetUTC + */ + offsetSeconds?: number; +} + +/** + * Check if a given object implements the V1ClockOffsetUTC interface. + */ +export function instanceOfV1ClockOffsetUTC(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1ClockOffsetUTCFromJSON(json: any): V1ClockOffsetUTC { + return V1ClockOffsetUTCFromJSONTyped(json, false); +} + +export function V1ClockOffsetUTCFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ClockOffsetUTC { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'offsetSeconds': !exists(json, 'offsetSeconds') ? undefined : json['offsetSeconds'], + }; +} + +export function V1ClockOffsetUTCToJSON(value?: V1ClockOffsetUTC | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'offsetSeconds': value.offsetSeconds, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1CloudInitConfigDriveSource.ts b/packages/types/src/generated/kubevirt/models/V1CloudInitConfigDriveSource.ts new file mode 100644 index 000000000..b36a135cf --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1CloudInitConfigDriveSource.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1LocalObjectReference } from './K8sIoApiCoreV1LocalObjectReference'; +import { + K8sIoApiCoreV1LocalObjectReferenceFromJSON, + K8sIoApiCoreV1LocalObjectReferenceFromJSONTyped, + K8sIoApiCoreV1LocalObjectReferenceToJSON, +} from './K8sIoApiCoreV1LocalObjectReference'; + +/** + * Represents a cloud-init config drive user data source. More info: https://cloudinit.readthedocs.io/en/latest/topics/datasources/configdrive.html + * @export + * @interface V1CloudInitConfigDriveSource + */ +export interface V1CloudInitConfigDriveSource { + /** + * NetworkData contains config drive inline cloud-init networkdata. + * @type {string} + * @memberof V1CloudInitConfigDriveSource + */ + networkData?: string; + /** + * NetworkDataBase64 contains config drive cloud-init networkdata as a base64 encoded string. + * @type {string} + * @memberof V1CloudInitConfigDriveSource + */ + networkDataBase64?: string; + /** + * + * @type {K8sIoApiCoreV1LocalObjectReference} + * @memberof V1CloudInitConfigDriveSource + */ + networkDataSecretRef?: K8sIoApiCoreV1LocalObjectReference; + /** + * + * @type {K8sIoApiCoreV1LocalObjectReference} + * @memberof V1CloudInitConfigDriveSource + */ + secretRef?: K8sIoApiCoreV1LocalObjectReference; + /** + * UserData contains config drive inline cloud-init userdata. + * @type {string} + * @memberof V1CloudInitConfigDriveSource + */ + userData?: string; + /** + * UserDataBase64 contains config drive cloud-init userdata as a base64 encoded string. + * @type {string} + * @memberof V1CloudInitConfigDriveSource + */ + userDataBase64?: string; +} + +/** + * Check if a given object implements the V1CloudInitConfigDriveSource interface. + */ +export function instanceOfV1CloudInitConfigDriveSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1CloudInitConfigDriveSourceFromJSON(json: any): V1CloudInitConfigDriveSource { + return V1CloudInitConfigDriveSourceFromJSONTyped(json, false); +} + +export function V1CloudInitConfigDriveSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CloudInitConfigDriveSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'networkData': !exists(json, 'networkData') ? undefined : json['networkData'], + 'networkDataBase64': !exists(json, 'networkDataBase64') ? undefined : json['networkDataBase64'], + 'networkDataSecretRef': !exists(json, 'networkDataSecretRef') ? undefined : K8sIoApiCoreV1LocalObjectReferenceFromJSON(json['networkDataSecretRef']), + 'secretRef': !exists(json, 'secretRef') ? undefined : K8sIoApiCoreV1LocalObjectReferenceFromJSON(json['secretRef']), + 'userData': !exists(json, 'userData') ? undefined : json['userData'], + 'userDataBase64': !exists(json, 'userDataBase64') ? undefined : json['userDataBase64'], + }; +} + +export function V1CloudInitConfigDriveSourceToJSON(value?: V1CloudInitConfigDriveSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'networkData': value.networkData, + 'networkDataBase64': value.networkDataBase64, + 'networkDataSecretRef': K8sIoApiCoreV1LocalObjectReferenceToJSON(value.networkDataSecretRef), + 'secretRef': K8sIoApiCoreV1LocalObjectReferenceToJSON(value.secretRef), + 'userData': value.userData, + 'userDataBase64': value.userDataBase64, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1CloudInitNoCloudSource.ts b/packages/types/src/generated/kubevirt/models/V1CloudInitNoCloudSource.ts new file mode 100644 index 000000000..7c2d894d1 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1CloudInitNoCloudSource.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1LocalObjectReference } from './K8sIoApiCoreV1LocalObjectReference'; +import { + K8sIoApiCoreV1LocalObjectReferenceFromJSON, + K8sIoApiCoreV1LocalObjectReferenceFromJSONTyped, + K8sIoApiCoreV1LocalObjectReferenceToJSON, +} from './K8sIoApiCoreV1LocalObjectReference'; + +/** + * Represents a cloud-init nocloud user data source. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html + * @export + * @interface V1CloudInitNoCloudSource + */ +export interface V1CloudInitNoCloudSource { + /** + * NetworkData contains NoCloud inline cloud-init networkdata. + * @type {string} + * @memberof V1CloudInitNoCloudSource + */ + networkData?: string; + /** + * NetworkDataBase64 contains NoCloud cloud-init networkdata as a base64 encoded string. + * @type {string} + * @memberof V1CloudInitNoCloudSource + */ + networkDataBase64?: string; + /** + * + * @type {K8sIoApiCoreV1LocalObjectReference} + * @memberof V1CloudInitNoCloudSource + */ + networkDataSecretRef?: K8sIoApiCoreV1LocalObjectReference; + /** + * + * @type {K8sIoApiCoreV1LocalObjectReference} + * @memberof V1CloudInitNoCloudSource + */ + secretRef?: K8sIoApiCoreV1LocalObjectReference; + /** + * UserData contains NoCloud inline cloud-init userdata. + * @type {string} + * @memberof V1CloudInitNoCloudSource + */ + userData?: string; + /** + * UserDataBase64 contains NoCloud cloud-init userdata as a base64 encoded string. + * @type {string} + * @memberof V1CloudInitNoCloudSource + */ + userDataBase64?: string; +} + +/** + * Check if a given object implements the V1CloudInitNoCloudSource interface. + */ +export function instanceOfV1CloudInitNoCloudSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1CloudInitNoCloudSourceFromJSON(json: any): V1CloudInitNoCloudSource { + return V1CloudInitNoCloudSourceFromJSONTyped(json, false); +} + +export function V1CloudInitNoCloudSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CloudInitNoCloudSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'networkData': !exists(json, 'networkData') ? undefined : json['networkData'], + 'networkDataBase64': !exists(json, 'networkDataBase64') ? undefined : json['networkDataBase64'], + 'networkDataSecretRef': !exists(json, 'networkDataSecretRef') ? undefined : K8sIoApiCoreV1LocalObjectReferenceFromJSON(json['networkDataSecretRef']), + 'secretRef': !exists(json, 'secretRef') ? undefined : K8sIoApiCoreV1LocalObjectReferenceFromJSON(json['secretRef']), + 'userData': !exists(json, 'userData') ? undefined : json['userData'], + 'userDataBase64': !exists(json, 'userDataBase64') ? undefined : json['userDataBase64'], + }; +} + +export function V1CloudInitNoCloudSourceToJSON(value?: V1CloudInitNoCloudSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'networkData': value.networkData, + 'networkDataBase64': value.networkDataBase64, + 'networkDataSecretRef': K8sIoApiCoreV1LocalObjectReferenceToJSON(value.networkDataSecretRef), + 'secretRef': K8sIoApiCoreV1LocalObjectReferenceToJSON(value.secretRef), + 'userData': value.userData, + 'userDataBase64': value.userDataBase64, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1ComponentConfig.ts b/packages/types/src/generated/kubevirt/models/V1ComponentConfig.ts new file mode 100644 index 000000000..b9d3fa455 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1ComponentConfig.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1NodePlacement } from './V1NodePlacement'; +import { + V1NodePlacementFromJSON, + V1NodePlacementFromJSONTyped, + V1NodePlacementToJSON, +} from './V1NodePlacement'; + +/** + * + * @export + * @interface V1ComponentConfig + */ +export interface V1ComponentConfig { + /** + * + * @type {V1NodePlacement} + * @memberof V1ComponentConfig + */ + nodePlacement?: V1NodePlacement; + /** + * replicas indicates how many replicas should be created for each KubeVirt infrastructure component (like virt-api or virt-controller). Defaults to 2. WARNING: this is an advanced feature that prevents auto-scaling for core kubevirt components. Please use with caution! + * @type {number} + * @memberof V1ComponentConfig + */ + replicas?: number; +} + +/** + * Check if a given object implements the V1ComponentConfig interface. + */ +export function instanceOfV1ComponentConfig(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1ComponentConfigFromJSON(json: any): V1ComponentConfig { + return V1ComponentConfigFromJSONTyped(json, false); +} + +export function V1ComponentConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ComponentConfig { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'nodePlacement': !exists(json, 'nodePlacement') ? undefined : V1NodePlacementFromJSON(json['nodePlacement']), + 'replicas': !exists(json, 'replicas') ? undefined : json['replicas'], + }; +} + +export function V1ComponentConfigToJSON(value?: V1ComponentConfig | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'nodePlacement': V1NodePlacementToJSON(value.nodePlacement), + 'replicas': value.replicas, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1ConfigMapVolumeSource.ts b/packages/types/src/generated/kubevirt/models/V1ConfigMapVolumeSource.ts new file mode 100644 index 000000000..88e098048 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1ConfigMapVolumeSource.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ConfigMapVolumeSource adapts a ConfigMap into a volume. More info: https://kubernetes.io/docs/concepts/storage/volumes/#configmap + * @export + * @interface V1ConfigMapVolumeSource + */ +export interface V1ConfigMapVolumeSource { + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * @type {string} + * @memberof V1ConfigMapVolumeSource + */ + name?: string; + /** + * Specify whether the ConfigMap or it's keys must be defined + * @type {boolean} + * @memberof V1ConfigMapVolumeSource + */ + optional?: boolean; + /** + * The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are "cidata" (cloud-init), "config-2" (cloud-init) or "OEMDRV" (kickstart). + * @type {string} + * @memberof V1ConfigMapVolumeSource + */ + volumeLabel?: string; +} + +/** + * Check if a given object implements the V1ConfigMapVolumeSource interface. + */ +export function instanceOfV1ConfigMapVolumeSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1ConfigMapVolumeSourceFromJSON(json: any): V1ConfigMapVolumeSource { + return V1ConfigMapVolumeSourceFromJSONTyped(json, false); +} + +export function V1ConfigMapVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ConfigMapVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': !exists(json, 'name') ? undefined : json['name'], + 'optional': !exists(json, 'optional') ? undefined : json['optional'], + 'volumeLabel': !exists(json, 'volumeLabel') ? undefined : json['volumeLabel'], + }; +} + +export function V1ConfigMapVolumeSourceToJSON(value?: V1ConfigMapVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'optional': value.optional, + 'volumeLabel': value.volumeLabel, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1ContainerDiskInfo.ts b/packages/types/src/generated/kubevirt/models/V1ContainerDiskInfo.ts new file mode 100644 index 000000000..f932f8f6f --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1ContainerDiskInfo.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ContainerDiskInfo shows info about the containerdisk + * @export + * @interface V1ContainerDiskInfo + */ +export interface V1ContainerDiskInfo { + /** + * Checksum is the checksum of the rootdisk or kernel artifacts inside the containerdisk + * @type {number} + * @memberof V1ContainerDiskInfo + */ + checksum?: number; +} + +/** + * Check if a given object implements the V1ContainerDiskInfo interface. + */ +export function instanceOfV1ContainerDiskInfo(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1ContainerDiskInfoFromJSON(json: any): V1ContainerDiskInfo { + return V1ContainerDiskInfoFromJSONTyped(json, false); +} + +export function V1ContainerDiskInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ContainerDiskInfo { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'checksum': !exists(json, 'checksum') ? undefined : json['checksum'], + }; +} + +export function V1ContainerDiskInfoToJSON(value?: V1ContainerDiskInfo | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'checksum': value.checksum, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1ContainerDiskSource.ts b/packages/types/src/generated/kubevirt/models/V1ContainerDiskSource.ts new file mode 100644 index 000000000..7ed64c9d2 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1ContainerDiskSource.ts @@ -0,0 +1,107 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Represents a docker image with an embedded disk. + * @export + * @interface V1ContainerDiskSource + */ +export interface V1ContainerDiskSource { + /** + * Image is the name of the image with the embedded disk. + * @type {string} + * @memberof V1ContainerDiskSource + */ + image: string; + /** + * Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * + * Possible enum values: + * - `"Always"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. + * - `"IfNotPresent"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. + * - `"Never"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present + * @type {string} + * @memberof V1ContainerDiskSource + */ + imagePullPolicy?: V1ContainerDiskSourceImagePullPolicyEnum; + /** + * ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist. + * @type {string} + * @memberof V1ContainerDiskSource + */ + imagePullSecret?: string; + /** + * Path defines the path to disk file in the container + * @type {string} + * @memberof V1ContainerDiskSource + */ + path?: string; +} + + +/** + * @export + */ +export const V1ContainerDiskSourceImagePullPolicyEnum = { + Always: 'Always', + IfNotPresent: 'IfNotPresent', + Never: 'Never' +} as const; +export type V1ContainerDiskSourceImagePullPolicyEnum = typeof V1ContainerDiskSourceImagePullPolicyEnum[keyof typeof V1ContainerDiskSourceImagePullPolicyEnum]; + + +/** + * Check if a given object implements the V1ContainerDiskSource interface. + */ +export function instanceOfV1ContainerDiskSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "image" in value; + + return isInstance; +} + +export function V1ContainerDiskSourceFromJSON(json: any): V1ContainerDiskSource { + return V1ContainerDiskSourceFromJSONTyped(json, false); +} + +export function V1ContainerDiskSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ContainerDiskSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'image': json['image'], + 'imagePullPolicy': !exists(json, 'imagePullPolicy') ? undefined : json['imagePullPolicy'], + 'imagePullSecret': !exists(json, 'imagePullSecret') ? undefined : json['imagePullSecret'], + 'path': !exists(json, 'path') ? undefined : json['path'], + }; +} + +export function V1ContainerDiskSourceToJSON(value?: V1ContainerDiskSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'image': value.image, + 'imagePullPolicy': value.imagePullPolicy, + 'imagePullSecret': value.imagePullSecret, + 'path': value.path, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1CustomBlockSize.ts b/packages/types/src/generated/kubevirt/models/V1CustomBlockSize.ts new file mode 100644 index 000000000..43d3eea06 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1CustomBlockSize.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * CustomBlockSize represents the desired logical and physical block size for a VM disk. + * @export + * @interface V1CustomBlockSize + */ +export interface V1CustomBlockSize { + /** + * + * @type {number} + * @memberof V1CustomBlockSize + */ + logical: number; + /** + * + * @type {number} + * @memberof V1CustomBlockSize + */ + physical: number; +} + +/** + * Check if a given object implements the V1CustomBlockSize interface. + */ +export function instanceOfV1CustomBlockSize(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "logical" in value; + isInstance = isInstance && "physical" in value; + + return isInstance; +} + +export function V1CustomBlockSizeFromJSON(json: any): V1CustomBlockSize { + return V1CustomBlockSizeFromJSONTyped(json, false); +} + +export function V1CustomBlockSizeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CustomBlockSize { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'logical': json['logical'], + 'physical': json['physical'], + }; +} + +export function V1CustomBlockSizeToJSON(value?: V1CustomBlockSize | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'logical': value.logical, + 'physical': value.physical, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1CustomProfile.ts b/packages/types/src/generated/kubevirt/models/V1CustomProfile.ts new file mode 100644 index 000000000..cbd4fcab4 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1CustomProfile.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1CustomProfile + */ +export interface V1CustomProfile { + /** + * + * @type {string} + * @memberof V1CustomProfile + */ + localhostProfile?: string; + /** + * + * @type {boolean} + * @memberof V1CustomProfile + */ + runtimeDefaultProfile?: boolean; +} + +/** + * Check if a given object implements the V1CustomProfile interface. + */ +export function instanceOfV1CustomProfile(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1CustomProfileFromJSON(json: any): V1CustomProfile { + return V1CustomProfileFromJSONTyped(json, false); +} + +export function V1CustomProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CustomProfile { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'localhostProfile': !exists(json, 'localhostProfile') ? undefined : json['localhostProfile'], + 'runtimeDefaultProfile': !exists(json, 'runtimeDefaultProfile') ? undefined : json['runtimeDefaultProfile'], + }; +} + +export function V1CustomProfileToJSON(value?: V1CustomProfile | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'localhostProfile': value.localhostProfile, + 'runtimeDefaultProfile': value.runtimeDefaultProfile, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1CustomizeComponents.ts b/packages/types/src/generated/kubevirt/models/V1CustomizeComponents.ts new file mode 100644 index 000000000..c52dbff8a --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1CustomizeComponents.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1CustomizeComponentsPatch } from './V1CustomizeComponentsPatch'; +import { + V1CustomizeComponentsPatchFromJSON, + V1CustomizeComponentsPatchFromJSONTyped, + V1CustomizeComponentsPatchToJSON, +} from './V1CustomizeComponentsPatch'; +import type { V1Flags } from './V1Flags'; +import { + V1FlagsFromJSON, + V1FlagsFromJSONTyped, + V1FlagsToJSON, +} from './V1Flags'; + +/** + * + * @export + * @interface V1CustomizeComponents + */ +export interface V1CustomizeComponents { + /** + * + * @type {V1Flags} + * @memberof V1CustomizeComponents + */ + flags?: V1Flags; + /** + * + * @type {Array} + * @memberof V1CustomizeComponents + */ + patches?: Array; +} + +/** + * Check if a given object implements the V1CustomizeComponents interface. + */ +export function instanceOfV1CustomizeComponents(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1CustomizeComponentsFromJSON(json: any): V1CustomizeComponents { + return V1CustomizeComponentsFromJSONTyped(json, false); +} + +export function V1CustomizeComponentsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CustomizeComponents { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'flags': !exists(json, 'flags') ? undefined : V1FlagsFromJSON(json['flags']), + 'patches': !exists(json, 'patches') ? undefined : ((json['patches'] as Array).map(V1CustomizeComponentsPatchFromJSON)), + }; +} + +export function V1CustomizeComponentsToJSON(value?: V1CustomizeComponents | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'flags': V1FlagsToJSON(value.flags), + 'patches': value.patches === undefined ? undefined : ((value.patches as Array).map(V1CustomizeComponentsPatchToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1CustomizeComponentsPatch.ts b/packages/types/src/generated/kubevirt/models/V1CustomizeComponentsPatch.ts new file mode 100644 index 000000000..30456149a --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1CustomizeComponentsPatch.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1CustomizeComponentsPatch + */ +export interface V1CustomizeComponentsPatch { + /** + * + * @type {string} + * @memberof V1CustomizeComponentsPatch + */ + patch: string; + /** + * + * @type {string} + * @memberof V1CustomizeComponentsPatch + */ + resourceName: string; + /** + * + * @type {string} + * @memberof V1CustomizeComponentsPatch + */ + resourceType: string; + /** + * + * @type {string} + * @memberof V1CustomizeComponentsPatch + */ + type: string; +} + +/** + * Check if a given object implements the V1CustomizeComponentsPatch interface. + */ +export function instanceOfV1CustomizeComponentsPatch(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "patch" in value; + isInstance = isInstance && "resourceName" in value; + isInstance = isInstance && "resourceType" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function V1CustomizeComponentsPatchFromJSON(json: any): V1CustomizeComponentsPatch { + return V1CustomizeComponentsPatchFromJSONTyped(json, false); +} + +export function V1CustomizeComponentsPatchFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CustomizeComponentsPatch { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'patch': json['patch'], + 'resourceName': json['resourceName'], + 'resourceType': json['resourceType'], + 'type': json['type'], + }; +} + +export function V1CustomizeComponentsPatchToJSON(value?: V1CustomizeComponentsPatch | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'patch': value.patch, + 'resourceName': value.resourceName, + 'resourceType': value.resourceType, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1DHCPOptions.ts b/packages/types/src/generated/kubevirt/models/V1DHCPOptions.ts new file mode 100644 index 000000000..dba09cf01 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1DHCPOptions.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1DHCPPrivateOptions } from './V1DHCPPrivateOptions'; +import { + V1DHCPPrivateOptionsFromJSON, + V1DHCPPrivateOptionsFromJSONTyped, + V1DHCPPrivateOptionsToJSON, +} from './V1DHCPPrivateOptions'; + +/** + * Extra DHCP options to use in the interface. + * @export + * @interface V1DHCPOptions + */ +export interface V1DHCPOptions { + /** + * If specified will pass option 67 to interface's DHCP server + * @type {string} + * @memberof V1DHCPOptions + */ + bootFileName?: string; + /** + * If specified will pass the configured NTP server to the VM via DHCP option 042. + * @type {Array} + * @memberof V1DHCPOptions + */ + ntpServers?: Array; + /** + * If specified will pass extra DHCP options for private use, range: 224-254 + * @type {Array} + * @memberof V1DHCPOptions + */ + privateOptions?: Array; + /** + * If specified will pass option 66 to interface's DHCP server + * @type {string} + * @memberof V1DHCPOptions + */ + tftpServerName?: string; +} + +/** + * Check if a given object implements the V1DHCPOptions interface. + */ +export function instanceOfV1DHCPOptions(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1DHCPOptionsFromJSON(json: any): V1DHCPOptions { + return V1DHCPOptionsFromJSONTyped(json, false); +} + +export function V1DHCPOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DHCPOptions { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bootFileName': !exists(json, 'bootFileName') ? undefined : json['bootFileName'], + 'ntpServers': !exists(json, 'ntpServers') ? undefined : json['ntpServers'], + 'privateOptions': !exists(json, 'privateOptions') ? undefined : ((json['privateOptions'] as Array).map(V1DHCPPrivateOptionsFromJSON)), + 'tftpServerName': !exists(json, 'tftpServerName') ? undefined : json['tftpServerName'], + }; +} + +export function V1DHCPOptionsToJSON(value?: V1DHCPOptions | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'bootFileName': value.bootFileName, + 'ntpServers': value.ntpServers, + 'privateOptions': value.privateOptions === undefined ? undefined : ((value.privateOptions as Array).map(V1DHCPPrivateOptionsToJSON)), + 'tftpServerName': value.tftpServerName, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1DHCPPrivateOptions.ts b/packages/types/src/generated/kubevirt/models/V1DHCPPrivateOptions.ts new file mode 100644 index 000000000..273d095f8 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1DHCPPrivateOptions.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * DHCPExtraOptions defines Extra DHCP options for a VM. + * @export + * @interface V1DHCPPrivateOptions + */ +export interface V1DHCPPrivateOptions { + /** + * Option is an Integer value from 224-254 Required. + * @type {number} + * @memberof V1DHCPPrivateOptions + */ + option: number; + /** + * Value is a String value for the Option provided Required. + * @type {string} + * @memberof V1DHCPPrivateOptions + */ + value: string; +} + +/** + * Check if a given object implements the V1DHCPPrivateOptions interface. + */ +export function instanceOfV1DHCPPrivateOptions(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "option" in value; + isInstance = isInstance && "value" in value; + + return isInstance; +} + +export function V1DHCPPrivateOptionsFromJSON(json: any): V1DHCPPrivateOptions { + return V1DHCPPrivateOptionsFromJSONTyped(json, false); +} + +export function V1DHCPPrivateOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DHCPPrivateOptions { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'option': json['option'], + 'value': json['value'], + }; +} + +export function V1DHCPPrivateOptionsToJSON(value?: V1DHCPPrivateOptions | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'option': value.option, + 'value': value.value, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1DataVolumeSource.ts b/packages/types/src/generated/kubevirt/models/V1DataVolumeSource.ts new file mode 100644 index 000000000..c838ae0b3 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1DataVolumeSource.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1DataVolumeSource + */ +export interface V1DataVolumeSource { + /** + * Hotpluggable indicates whether the volume can be hotplugged and hotunplugged. + * @type {boolean} + * @memberof V1DataVolumeSource + */ + hotpluggable?: boolean; + /** + * Name of both the DataVolume and the PVC in the same namespace. After PVC population the DataVolume is garbage collected by default. + * @type {string} + * @memberof V1DataVolumeSource + */ + name: string; +} + +/** + * Check if a given object implements the V1DataVolumeSource interface. + */ +export function instanceOfV1DataVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function V1DataVolumeSourceFromJSON(json: any): V1DataVolumeSource { + return V1DataVolumeSourceFromJSONTyped(json, false); +} + +export function V1DataVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DataVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'hotpluggable': !exists(json, 'hotpluggable') ? undefined : json['hotpluggable'], + 'name': json['name'], + }; +} + +export function V1DataVolumeSourceToJSON(value?: V1DataVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'hotpluggable': value.hotpluggable, + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1DataVolumeTemplateSpec.ts b/packages/types/src/generated/kubevirt/models/V1DataVolumeTemplateSpec.ts new file mode 100644 index 000000000..64a17c1f0 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1DataVolumeTemplateSpec.ts @@ -0,0 +1,111 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ObjectMeta } from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import type { V1beta1DataVolumeSpec } from './V1beta1DataVolumeSpec'; +import { + V1beta1DataVolumeSpecFromJSON, + V1beta1DataVolumeSpecFromJSONTyped, + V1beta1DataVolumeSpecToJSON, +} from './V1beta1DataVolumeSpec'; + +/** + * + * @export + * @interface V1DataVolumeTemplateSpec + */ +export interface V1DataVolumeTemplateSpec { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1DataVolumeTemplateSpec + */ + 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 + * @type {string} + * @memberof V1DataVolumeTemplateSpec + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ObjectMeta} + * @memberof V1DataVolumeTemplateSpec + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {V1beta1DataVolumeSpec} + * @memberof V1DataVolumeTemplateSpec + */ + spec: V1beta1DataVolumeSpec; + /** + * + * @type {object} + * @memberof V1DataVolumeTemplateSpec + */ + status?: object; +} + +/** + * Check if a given object implements the V1DataVolumeTemplateSpec interface. + */ +export function instanceOfV1DataVolumeTemplateSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function V1DataVolumeTemplateSpecFromJSON(json: any): V1DataVolumeTemplateSpec { + return V1DataVolumeTemplateSpecFromJSONTyped(json, false); +} + +export function V1DataVolumeTemplateSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DataVolumeTemplateSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': V1beta1DataVolumeSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : json['status'], + }; +} + +export function V1DataVolumeTemplateSpecToJSON(value?: V1DataVolumeTemplateSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': V1beta1DataVolumeSpecToJSON(value.spec), + 'status': value.status, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1DeveloperConfiguration.ts b/packages/types/src/generated/kubevirt/models/V1DeveloperConfiguration.ts new file mode 100644 index 000000000..94372c448 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1DeveloperConfiguration.ts @@ -0,0 +1,150 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1DiskVerification } from './V1DiskVerification'; +import { + V1DiskVerificationFromJSON, + V1DiskVerificationFromJSONTyped, + V1DiskVerificationToJSON, +} from './V1DiskVerification'; +import type { V1LogVerbosity } from './V1LogVerbosity'; +import { + V1LogVerbosityFromJSON, + V1LogVerbosityFromJSONTyped, + V1LogVerbosityToJSON, +} from './V1LogVerbosity'; + +/** + * DeveloperConfiguration holds developer options + * @export + * @interface V1DeveloperConfiguration + */ +export interface V1DeveloperConfiguration { + /** + * For each requested virtual CPU, CPUAllocationRatio defines how much physical CPU to request per VMI from the hosting node. The value is in fraction of a CPU thread (or core on non-hyperthreaded nodes). For example, a value of 1 means 1 physical CPU thread per VMI CPU thread. A value of 100 would be 1% of a physical thread allocated for each requested VMI thread. This option has no effect on VMIs that request dedicated CPUs. More information at: https://kubevirt.io/user-guide/operations/node_overcommit/#node-cpu-allocation-ratio Defaults to 10 + * @type {number} + * @memberof V1DeveloperConfiguration + */ + cpuAllocationRatio?: number; + /** + * + * @type {V1DiskVerification} + * @memberof V1DeveloperConfiguration + */ + diskVerification?: V1DiskVerification; + /** + * FeatureGates is the list of experimental features to enable. Defaults to none + * @type {Array} + * @memberof V1DeveloperConfiguration + */ + featureGates?: Array; + /** + * + * @type {V1LogVerbosity} + * @memberof V1DeveloperConfiguration + */ + logVerbosity?: V1LogVerbosity; + /** + * MemoryOvercommit is the percentage of memory we want to give VMIs compared to the amount given to its parent pod (virt-launcher). For example, a value of 102 means the VMI will "see" 2% more memory than its parent pod. Values under 100 are effectively "undercommits". Overcommits can lead to memory exhaustion, which in turn can lead to crashes. Use carefully. Defaults to 100 + * @type {number} + * @memberof V1DeveloperConfiguration + */ + memoryOvercommit?: number; + /** + * Allow overriding the automatically determined minimum TSC frequency of the cluster and fixate the minimum to this frequency. + * @type {number} + * @memberof V1DeveloperConfiguration + */ + minimumClusterTSCFrequency?: number; + /** + * MinimumReservePVCBytes is the amount of space, in bytes, to leave unused on disks. Defaults to 131072 (128KiB) + * @type {number} + * @memberof V1DeveloperConfiguration + */ + minimumReservePVCBytes?: number; + /** + * NodeSelectors allows restricting VMI creation to nodes that match a set of labels. Defaults to none + * @type {{ [key: string]: string; }} + * @memberof V1DeveloperConfiguration + */ + nodeSelectors?: { [key: string]: string; }; + /** + * LessPVCSpaceToleration determines how much smaller, in percentage, disk PVCs are allowed to be compared to the requested size (to account for various overheads). Defaults to 10 + * @type {number} + * @memberof V1DeveloperConfiguration + */ + pvcTolerateLessSpaceUpToPercent?: number; + /** + * UseEmulation can be set to true to allow fallback to software emulation in case hardware-assisted emulation is not available. Defaults to false + * @type {boolean} + * @memberof V1DeveloperConfiguration + */ + useEmulation?: boolean; +} + +/** + * Check if a given object implements the V1DeveloperConfiguration interface. + */ +export function instanceOfV1DeveloperConfiguration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1DeveloperConfigurationFromJSON(json: any): V1DeveloperConfiguration { + return V1DeveloperConfigurationFromJSONTyped(json, false); +} + +export function V1DeveloperConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeveloperConfiguration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'cpuAllocationRatio': !exists(json, 'cpuAllocationRatio') ? undefined : json['cpuAllocationRatio'], + 'diskVerification': !exists(json, 'diskVerification') ? undefined : V1DiskVerificationFromJSON(json['diskVerification']), + 'featureGates': !exists(json, 'featureGates') ? undefined : json['featureGates'], + 'logVerbosity': !exists(json, 'logVerbosity') ? undefined : V1LogVerbosityFromJSON(json['logVerbosity']), + 'memoryOvercommit': !exists(json, 'memoryOvercommit') ? undefined : json['memoryOvercommit'], + 'minimumClusterTSCFrequency': !exists(json, 'minimumClusterTSCFrequency') ? undefined : json['minimumClusterTSCFrequency'], + 'minimumReservePVCBytes': !exists(json, 'minimumReservePVCBytes') ? undefined : json['minimumReservePVCBytes'], + 'nodeSelectors': !exists(json, 'nodeSelectors') ? undefined : json['nodeSelectors'], + 'pvcTolerateLessSpaceUpToPercent': !exists(json, 'pvcTolerateLessSpaceUpToPercent') ? undefined : json['pvcTolerateLessSpaceUpToPercent'], + 'useEmulation': !exists(json, 'useEmulation') ? undefined : json['useEmulation'], + }; +} + +export function V1DeveloperConfigurationToJSON(value?: V1DeveloperConfiguration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'cpuAllocationRatio': value.cpuAllocationRatio, + 'diskVerification': V1DiskVerificationToJSON(value.diskVerification), + 'featureGates': value.featureGates, + 'logVerbosity': V1LogVerbosityToJSON(value.logVerbosity), + 'memoryOvercommit': value.memoryOvercommit, + 'minimumClusterTSCFrequency': value.minimumClusterTSCFrequency, + 'minimumReservePVCBytes': value.minimumReservePVCBytes, + 'nodeSelectors': value.nodeSelectors, + 'pvcTolerateLessSpaceUpToPercent': value.pvcTolerateLessSpaceUpToPercent, + 'useEmulation': value.useEmulation, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1Devices.ts b/packages/types/src/generated/kubevirt/models/V1Devices.ts new file mode 100644 index 000000000..6ab08d9ad --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1Devices.ts @@ -0,0 +1,298 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1Disk } from './V1Disk'; +import { + V1DiskFromJSON, + V1DiskFromJSONTyped, + V1DiskToJSON, +} from './V1Disk'; +import type { V1Filesystem } from './V1Filesystem'; +import { + V1FilesystemFromJSON, + V1FilesystemFromJSONTyped, + V1FilesystemToJSON, +} from './V1Filesystem'; +import type { V1GPU } from './V1GPU'; +import { + V1GPUFromJSON, + V1GPUFromJSONTyped, + V1GPUToJSON, +} from './V1GPU'; +import type { V1HostDevice } from './V1HostDevice'; +import { + V1HostDeviceFromJSON, + V1HostDeviceFromJSONTyped, + V1HostDeviceToJSON, +} from './V1HostDevice'; +import type { V1Input } from './V1Input'; +import { + V1InputFromJSON, + V1InputFromJSONTyped, + V1InputToJSON, +} from './V1Input'; +import type { V1Interface } from './V1Interface'; +import { + V1InterfaceFromJSON, + V1InterfaceFromJSONTyped, + V1InterfaceToJSON, +} from './V1Interface'; +import type { V1SoundDevice } from './V1SoundDevice'; +import { + V1SoundDeviceFromJSON, + V1SoundDeviceFromJSONTyped, + V1SoundDeviceToJSON, +} from './V1SoundDevice'; +import type { V1TPMDevice } from './V1TPMDevice'; +import { + V1TPMDeviceFromJSON, + V1TPMDeviceFromJSONTyped, + V1TPMDeviceToJSON, +} from './V1TPMDevice'; +import type { V1Watchdog } from './V1Watchdog'; +import { + V1WatchdogFromJSON, + V1WatchdogFromJSONTyped, + V1WatchdogToJSON, +} from './V1Watchdog'; + +/** + * + * @export + * @interface V1Devices + */ +export interface V1Devices { + /** + * Whether to attach the default graphics device or not. VNC will not be available if set to false. Defaults to true. + * @type {boolean} + * @memberof V1Devices + */ + autoattachGraphicsDevice?: boolean; + /** + * Whether to attach an Input Device. Defaults to false. + * @type {boolean} + * @memberof V1Devices + */ + autoattachInputDevice?: boolean; + /** + * Whether to attach the Memory balloon device with default period. Period can be adjusted in virt-config. Defaults to true. + * @type {boolean} + * @memberof V1Devices + */ + autoattachMemBalloon?: boolean; + /** + * Whether to attach a pod network interface. Defaults to true. + * @type {boolean} + * @memberof V1Devices + */ + autoattachPodInterface?: boolean; + /** + * Whether to attach the default virtio-serial console or not. Serial console access will not be available if set to false. Defaults to true. + * @type {boolean} + * @memberof V1Devices + */ + autoattachSerialConsole?: boolean; + /** + * Whether to attach the VSOCK CID to the VM or not. VSOCK access will be available if set to true. Defaults to false. + * @type {boolean} + * @memberof V1Devices + */ + autoattachVSOCK?: boolean; + /** + * Whether or not to enable virtio multi-queue for block devices. Defaults to false. + * @type {boolean} + * @memberof V1Devices + */ + blockMultiQueue?: boolean; + /** + * Represent a subset of client devices that can be accessed by VMI. At the moment only, USB devices using Usbredir's library and tooling. Another fit would be a smartcard with libcacard. + * + * The struct is currently empty as there is no immediate request for user-facing APIs. This structure simply turns on USB redirection of UsbClientPassthroughMaxNumberOf devices. + * @type {object} + * @memberof V1Devices + */ + clientPassthrough?: object; + /** + * DisableHotplug disabled the ability to hotplug disks. + * @type {boolean} + * @memberof V1Devices + */ + disableHotplug?: boolean; + /** + * Disks describes disks, cdroms and luns which are connected to the vmi. + * @type {Array} + * @memberof V1Devices + */ + disks?: Array; + /** + * + * @type {object} + * @memberof V1Devices + */ + downwardMetrics?: object; + /** + * Filesystems describes filesystem which is connected to the vmi. + * @type {Array} + * @memberof V1Devices + */ + filesystems?: Array; + /** + * Whether to attach a GPU device to the vmi. + * @type {Array} + * @memberof V1Devices + */ + gpus?: Array; + /** + * Whether to attach a host device to the vmi. + * @type {Array} + * @memberof V1Devices + */ + hostDevices?: Array; + /** + * Inputs describe input devices + * @type {Array} + * @memberof V1Devices + */ + inputs?: Array; + /** + * Interfaces describe network interfaces which are added to the vmi. + * @type {Array} + * @memberof V1Devices + */ + interfaces?: Array; + /** + * Whether to log the auto-attached default serial console or not. Serial console logs will be collect to a file and then streamed from a named `guest-console-log`. Not relevant if autoattachSerialConsole is disabled. Defaults to cluster wide setting on VirtualMachineOptions. + * @type {boolean} + * @memberof V1Devices + */ + logSerialConsole?: boolean; + /** + * If specified, virtual network interfaces configured with a virtio bus will also enable the vhost multiqueue feature for network devices. The number of queues created depends on additional factors of the VirtualMachineInstance, like the number of guest CPUs. + * @type {boolean} + * @memberof V1Devices + */ + networkInterfaceMultiqueue?: boolean; + /** + * Rng represents the random device passed from host + * @type {object} + * @memberof V1Devices + */ + rng?: object; + /** + * + * @type {V1SoundDevice} + * @memberof V1Devices + */ + sound?: V1SoundDevice; + /** + * + * @type {V1TPMDevice} + * @memberof V1Devices + */ + tpm?: V1TPMDevice; + /** + * Fall back to legacy virtio 0.9 support if virtio bus is selected on devices. This is helpful for old machines like CentOS6 or RHEL6 which do not understand virtio_non_transitional (virtio 1.0). + * @type {boolean} + * @memberof V1Devices + */ + useVirtioTransitional?: boolean; + /** + * + * @type {V1Watchdog} + * @memberof V1Devices + */ + watchdog?: V1Watchdog; +} + +/** + * Check if a given object implements the V1Devices interface. + */ +export function instanceOfV1Devices(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1DevicesFromJSON(json: any): V1Devices { + return V1DevicesFromJSONTyped(json, false); +} + +export function V1DevicesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Devices { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'autoattachGraphicsDevice': !exists(json, 'autoattachGraphicsDevice') ? undefined : json['autoattachGraphicsDevice'], + 'autoattachInputDevice': !exists(json, 'autoattachInputDevice') ? undefined : json['autoattachInputDevice'], + 'autoattachMemBalloon': !exists(json, 'autoattachMemBalloon') ? undefined : json['autoattachMemBalloon'], + 'autoattachPodInterface': !exists(json, 'autoattachPodInterface') ? undefined : json['autoattachPodInterface'], + 'autoattachSerialConsole': !exists(json, 'autoattachSerialConsole') ? undefined : json['autoattachSerialConsole'], + 'autoattachVSOCK': !exists(json, 'autoattachVSOCK') ? undefined : json['autoattachVSOCK'], + 'blockMultiQueue': !exists(json, 'blockMultiQueue') ? undefined : json['blockMultiQueue'], + 'clientPassthrough': !exists(json, 'clientPassthrough') ? undefined : json['clientPassthrough'], + 'disableHotplug': !exists(json, 'disableHotplug') ? undefined : json['disableHotplug'], + 'disks': !exists(json, 'disks') ? undefined : ((json['disks'] as Array).map(V1DiskFromJSON)), + 'downwardMetrics': !exists(json, 'downwardMetrics') ? undefined : json['downwardMetrics'], + 'filesystems': !exists(json, 'filesystems') ? undefined : ((json['filesystems'] as Array).map(V1FilesystemFromJSON)), + 'gpus': !exists(json, 'gpus') ? undefined : ((json['gpus'] as Array).map(V1GPUFromJSON)), + 'hostDevices': !exists(json, 'hostDevices') ? undefined : ((json['hostDevices'] as Array).map(V1HostDeviceFromJSON)), + 'inputs': !exists(json, 'inputs') ? undefined : ((json['inputs'] as Array).map(V1InputFromJSON)), + 'interfaces': !exists(json, 'interfaces') ? undefined : ((json['interfaces'] as Array).map(V1InterfaceFromJSON)), + 'logSerialConsole': !exists(json, 'logSerialConsole') ? undefined : json['logSerialConsole'], + 'networkInterfaceMultiqueue': !exists(json, 'networkInterfaceMultiqueue') ? undefined : json['networkInterfaceMultiqueue'], + 'rng': !exists(json, 'rng') ? undefined : json['rng'], + 'sound': !exists(json, 'sound') ? undefined : V1SoundDeviceFromJSON(json['sound']), + 'tpm': !exists(json, 'tpm') ? undefined : V1TPMDeviceFromJSON(json['tpm']), + 'useVirtioTransitional': !exists(json, 'useVirtioTransitional') ? undefined : json['useVirtioTransitional'], + 'watchdog': !exists(json, 'watchdog') ? undefined : V1WatchdogFromJSON(json['watchdog']), + }; +} + +export function V1DevicesToJSON(value?: V1Devices | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'autoattachGraphicsDevice': value.autoattachGraphicsDevice, + 'autoattachInputDevice': value.autoattachInputDevice, + 'autoattachMemBalloon': value.autoattachMemBalloon, + 'autoattachPodInterface': value.autoattachPodInterface, + 'autoattachSerialConsole': value.autoattachSerialConsole, + 'autoattachVSOCK': value.autoattachVSOCK, + 'blockMultiQueue': value.blockMultiQueue, + 'clientPassthrough': value.clientPassthrough, + 'disableHotplug': value.disableHotplug, + 'disks': value.disks === undefined ? undefined : ((value.disks as Array).map(V1DiskToJSON)), + 'downwardMetrics': value.downwardMetrics, + 'filesystems': value.filesystems === undefined ? undefined : ((value.filesystems as Array).map(V1FilesystemToJSON)), + 'gpus': value.gpus === undefined ? undefined : ((value.gpus as Array).map(V1GPUToJSON)), + 'hostDevices': value.hostDevices === undefined ? undefined : ((value.hostDevices as Array).map(V1HostDeviceToJSON)), + 'inputs': value.inputs === undefined ? undefined : ((value.inputs as Array).map(V1InputToJSON)), + 'interfaces': value.interfaces === undefined ? undefined : ((value.interfaces as Array).map(V1InterfaceToJSON)), + 'logSerialConsole': value.logSerialConsole, + 'networkInterfaceMultiqueue': value.networkInterfaceMultiqueue, + 'rng': value.rng, + 'sound': V1SoundDeviceToJSON(value.sound), + 'tpm': V1TPMDeviceToJSON(value.tpm), + 'useVirtioTransitional': value.useVirtioTransitional, + 'watchdog': V1WatchdogToJSON(value.watchdog), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1Disk.ts b/packages/types/src/generated/kubevirt/models/V1Disk.ts new file mode 100644 index 000000000..419a11c8a --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1Disk.ts @@ -0,0 +1,187 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1BlockSize } from './V1BlockSize'; +import { + V1BlockSizeFromJSON, + V1BlockSizeFromJSONTyped, + V1BlockSizeToJSON, +} from './V1BlockSize'; +import type { V1CDRomTarget } from './V1CDRomTarget'; +import { + V1CDRomTargetFromJSON, + V1CDRomTargetFromJSONTyped, + V1CDRomTargetToJSON, +} from './V1CDRomTarget'; +import type { V1DiskTarget } from './V1DiskTarget'; +import { + V1DiskTargetFromJSON, + V1DiskTargetFromJSONTyped, + V1DiskTargetToJSON, +} from './V1DiskTarget'; +import type { V1LunTarget } from './V1LunTarget'; +import { + V1LunTargetFromJSON, + V1LunTargetFromJSONTyped, + V1LunTargetToJSON, +} from './V1LunTarget'; + +/** + * + * @export + * @interface V1Disk + */ +export interface V1Disk { + /** + * + * @type {V1BlockSize} + * @memberof V1Disk + */ + blockSize?: V1BlockSize; + /** + * BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each disk or interface that has a boot order must have a unique value. Disks without a boot order are not tried if a disk with a boot order exists. + * @type {number} + * @memberof V1Disk + */ + bootOrder?: number; + /** + * Cache specifies which kvm disk cache mode should be used. Supported values are: CacheNone, CacheWriteThrough. + * @type {string} + * @memberof V1Disk + */ + cache?: string; + /** + * + * @type {V1CDRomTarget} + * @memberof V1Disk + */ + cdrom?: V1CDRomTarget; + /** + * dedicatedIOThread indicates this disk should have an exclusive IO Thread. Enabling this implies useIOThreads = true. Defaults to false. + * @type {boolean} + * @memberof V1Disk + */ + dedicatedIOThread?: boolean; + /** + * + * @type {V1DiskTarget} + * @memberof V1Disk + */ + disk?: V1DiskTarget; + /** + * If specified, it can change the default error policy (stop) for the disk + * @type {string} + * @memberof V1Disk + */ + errorPolicy?: string; + /** + * IO specifies which QEMU disk IO mode should be used. Supported values are: native, default, threads. + * @type {string} + * @memberof V1Disk + */ + io?: string; + /** + * + * @type {V1LunTarget} + * @memberof V1Disk + */ + lun?: V1LunTarget; + /** + * Name is the device name + * @type {string} + * @memberof V1Disk + */ + name: string; + /** + * Serial provides the ability to specify a serial number for the disk device. + * @type {string} + * @memberof V1Disk + */ + serial?: string; + /** + * If specified the disk is made sharable and multiple write from different VMs are permitted + * @type {boolean} + * @memberof V1Disk + */ + shareable?: boolean; + /** + * If specified, disk address and its tag will be provided to the guest via config drive metadata + * @type {string} + * @memberof V1Disk + */ + tag?: string; +} + +/** + * Check if a given object implements the V1Disk interface. + */ +export function instanceOfV1Disk(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function V1DiskFromJSON(json: any): V1Disk { + return V1DiskFromJSONTyped(json, false); +} + +export function V1DiskFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Disk { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'blockSize': !exists(json, 'blockSize') ? undefined : V1BlockSizeFromJSON(json['blockSize']), + 'bootOrder': !exists(json, 'bootOrder') ? undefined : json['bootOrder'], + 'cache': !exists(json, 'cache') ? undefined : json['cache'], + 'cdrom': !exists(json, 'cdrom') ? undefined : V1CDRomTargetFromJSON(json['cdrom']), + 'dedicatedIOThread': !exists(json, 'dedicatedIOThread') ? undefined : json['dedicatedIOThread'], + 'disk': !exists(json, 'disk') ? undefined : V1DiskTargetFromJSON(json['disk']), + 'errorPolicy': !exists(json, 'errorPolicy') ? undefined : json['errorPolicy'], + 'io': !exists(json, 'io') ? undefined : json['io'], + 'lun': !exists(json, 'lun') ? undefined : V1LunTargetFromJSON(json['lun']), + 'name': json['name'], + 'serial': !exists(json, 'serial') ? undefined : json['serial'], + 'shareable': !exists(json, 'shareable') ? undefined : json['shareable'], + 'tag': !exists(json, 'tag') ? undefined : json['tag'], + }; +} + +export function V1DiskToJSON(value?: V1Disk | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'blockSize': V1BlockSizeToJSON(value.blockSize), + 'bootOrder': value.bootOrder, + 'cache': value.cache, + 'cdrom': V1CDRomTargetToJSON(value.cdrom), + 'dedicatedIOThread': value.dedicatedIOThread, + 'disk': V1DiskTargetToJSON(value.disk), + 'errorPolicy': value.errorPolicy, + 'io': value.io, + 'lun': V1LunTargetToJSON(value.lun), + 'name': value.name, + 'serial': value.serial, + 'shareable': value.shareable, + 'tag': value.tag, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1DiskTarget.ts b/packages/types/src/generated/kubevirt/models/V1DiskTarget.ts new file mode 100644 index 000000000..a39dbc76c --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1DiskTarget.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1DiskTarget + */ +export interface V1DiskTarget { + /** + * Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, usb. + * @type {string} + * @memberof V1DiskTarget + */ + bus?: string; + /** + * If specified, the virtual disk will be placed on the guests pci address with the specified PCI address. For example: 0000:81:01.10 + * @type {string} + * @memberof V1DiskTarget + */ + pciAddress?: string; + /** + * ReadOnly. Defaults to false. + * @type {boolean} + * @memberof V1DiskTarget + */ + readonly?: boolean; +} + +/** + * Check if a given object implements the V1DiskTarget interface. + */ +export function instanceOfV1DiskTarget(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1DiskTargetFromJSON(json: any): V1DiskTarget { + return V1DiskTargetFromJSONTyped(json, false); +} + +export function V1DiskTargetFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DiskTarget { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bus': !exists(json, 'bus') ? undefined : json['bus'], + 'pciAddress': !exists(json, 'pciAddress') ? undefined : json['pciAddress'], + 'readonly': !exists(json, 'readonly') ? undefined : json['readonly'], + }; +} + +export function V1DiskTargetToJSON(value?: V1DiskTarget | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'bus': value.bus, + 'pciAddress': value.pciAddress, + 'readonly': value.readonly, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1DiskVerification.ts b/packages/types/src/generated/kubevirt/models/V1DiskVerification.ts new file mode 100644 index 000000000..bb1903bb1 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1DiskVerification.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * DiskVerification holds container disks verification limits + * @export + * @interface V1DiskVerification + */ +export interface V1DiskVerification { + /** + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + * + * The serialization format is: + * + * ``` ::= + * + * (Note that may be empty, from the "" case in .) + * + * ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + * + * (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + * + * ::= m | "" | k | M | G | T | P | E + * + * (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + * + * ::= "e" | "E" ``` + * + * No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + * + * When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + * + * Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + * + * - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. + * + * The sign will be omitted unless the number is negative. + * + * Examples: + * + * - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" + * + * Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + * + * Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + * + * This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + * @type {string} + * @memberof V1DiskVerification + */ + memoryLimit: string; +} + +/** + * Check if a given object implements the V1DiskVerification interface. + */ +export function instanceOfV1DiskVerification(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "memoryLimit" in value; + + return isInstance; +} + +export function V1DiskVerificationFromJSON(json: any): V1DiskVerification { + return V1DiskVerificationFromJSONTyped(json, false); +} + +export function V1DiskVerificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DiskVerification { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'memoryLimit': json['memoryLimit'], + }; +} + +export function V1DiskVerificationToJSON(value?: V1DiskVerification | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'memoryLimit': value.memoryLimit, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1DomainMemoryDumpInfo.ts b/packages/types/src/generated/kubevirt/models/V1DomainMemoryDumpInfo.ts new file mode 100644 index 000000000..175aa472e --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1DomainMemoryDumpInfo.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * DomainMemoryDumpInfo represents the memory dump information + * @export + * @interface V1DomainMemoryDumpInfo + */ +export interface V1DomainMemoryDumpInfo { + /** + * ClaimName is the name of the pvc the memory was dumped to + * @type {string} + * @memberof V1DomainMemoryDumpInfo + */ + claimName?: string; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof V1DomainMemoryDumpInfo + */ + endTimestamp?: string; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof V1DomainMemoryDumpInfo + */ + startTimestamp?: string; + /** + * TargetFileName is the name of the memory dump output + * @type {string} + * @memberof V1DomainMemoryDumpInfo + */ + targetFileName?: string; +} + +/** + * Check if a given object implements the V1DomainMemoryDumpInfo interface. + */ +export function instanceOfV1DomainMemoryDumpInfo(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1DomainMemoryDumpInfoFromJSON(json: any): V1DomainMemoryDumpInfo { + return V1DomainMemoryDumpInfoFromJSONTyped(json, false); +} + +export function V1DomainMemoryDumpInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DomainMemoryDumpInfo { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'claimName': !exists(json, 'claimName') ? undefined : json['claimName'], + 'endTimestamp': !exists(json, 'endTimestamp') ? undefined : json['endTimestamp'], + 'startTimestamp': !exists(json, 'startTimestamp') ? undefined : json['startTimestamp'], + 'targetFileName': !exists(json, 'targetFileName') ? undefined : json['targetFileName'], + }; +} + +export function V1DomainMemoryDumpInfoToJSON(value?: V1DomainMemoryDumpInfo | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'claimName': value.claimName, + 'endTimestamp': value.endTimestamp === undefined ? undefined : (value.endTimestamp), + 'startTimestamp': value.startTimestamp === undefined ? undefined : (value.startTimestamp), + 'targetFileName': value.targetFileName, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1DomainSpec.ts b/packages/types/src/generated/kubevirt/models/V1DomainSpec.ts new file mode 100644 index 000000000..9e421c064 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1DomainSpec.ts @@ -0,0 +1,207 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1CPU } from './V1CPU'; +import { + V1CPUFromJSON, + V1CPUFromJSONTyped, + V1CPUToJSON, +} from './V1CPU'; +import type { V1Chassis } from './V1Chassis'; +import { + V1ChassisFromJSON, + V1ChassisFromJSONTyped, + V1ChassisToJSON, +} from './V1Chassis'; +import type { V1Clock } from './V1Clock'; +import { + V1ClockFromJSON, + V1ClockFromJSONTyped, + V1ClockToJSON, +} from './V1Clock'; +import type { V1Devices } from './V1Devices'; +import { + V1DevicesFromJSON, + V1DevicesFromJSONTyped, + V1DevicesToJSON, +} from './V1Devices'; +import type { V1Features } from './V1Features'; +import { + V1FeaturesFromJSON, + V1FeaturesFromJSONTyped, + V1FeaturesToJSON, +} from './V1Features'; +import type { V1Firmware } from './V1Firmware'; +import { + V1FirmwareFromJSON, + V1FirmwareFromJSONTyped, + V1FirmwareToJSON, +} from './V1Firmware'; +import type { V1LaunchSecurity } from './V1LaunchSecurity'; +import { + V1LaunchSecurityFromJSON, + V1LaunchSecurityFromJSONTyped, + V1LaunchSecurityToJSON, +} from './V1LaunchSecurity'; +import type { V1Machine } from './V1Machine'; +import { + V1MachineFromJSON, + V1MachineFromJSONTyped, + V1MachineToJSON, +} from './V1Machine'; +import type { V1Memory } from './V1Memory'; +import { + V1MemoryFromJSON, + V1MemoryFromJSONTyped, + V1MemoryToJSON, +} from './V1Memory'; +import type { V1ResourceRequirements } from './V1ResourceRequirements'; +import { + V1ResourceRequirementsFromJSON, + V1ResourceRequirementsFromJSONTyped, + V1ResourceRequirementsToJSON, +} from './V1ResourceRequirements'; + +/** + * + * @export + * @interface V1DomainSpec + */ +export interface V1DomainSpec { + /** + * + * @type {V1Chassis} + * @memberof V1DomainSpec + */ + chassis?: V1Chassis; + /** + * + * @type {V1Clock} + * @memberof V1DomainSpec + */ + clock?: V1Clock; + /** + * + * @type {V1CPU} + * @memberof V1DomainSpec + */ + cpu?: V1CPU; + /** + * + * @type {V1Devices} + * @memberof V1DomainSpec + */ + devices: V1Devices; + /** + * + * @type {V1Features} + * @memberof V1DomainSpec + */ + features?: V1Features; + /** + * + * @type {V1Firmware} + * @memberof V1DomainSpec + */ + firmware?: V1Firmware; + /** + * Controls whether or not disks will share IOThreads. Omitting IOThreadsPolicy disables use of IOThreads. One of: shared, auto + * @type {string} + * @memberof V1DomainSpec + */ + ioThreadsPolicy?: string; + /** + * + * @type {V1LaunchSecurity} + * @memberof V1DomainSpec + */ + launchSecurity?: V1LaunchSecurity; + /** + * + * @type {V1Machine} + * @memberof V1DomainSpec + */ + machine?: V1Machine; + /** + * + * @type {V1Memory} + * @memberof V1DomainSpec + */ + memory?: V1Memory; + /** + * + * @type {V1ResourceRequirements} + * @memberof V1DomainSpec + */ + resources?: V1ResourceRequirements; +} + +/** + * Check if a given object implements the V1DomainSpec interface. + */ +export function instanceOfV1DomainSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "devices" in value; + + return isInstance; +} + +export function V1DomainSpecFromJSON(json: any): V1DomainSpec { + return V1DomainSpecFromJSONTyped(json, false); +} + +export function V1DomainSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DomainSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'chassis': !exists(json, 'chassis') ? undefined : V1ChassisFromJSON(json['chassis']), + 'clock': !exists(json, 'clock') ? undefined : V1ClockFromJSON(json['clock']), + 'cpu': !exists(json, 'cpu') ? undefined : V1CPUFromJSON(json['cpu']), + 'devices': V1DevicesFromJSON(json['devices']), + 'features': !exists(json, 'features') ? undefined : V1FeaturesFromJSON(json['features']), + 'firmware': !exists(json, 'firmware') ? undefined : V1FirmwareFromJSON(json['firmware']), + 'ioThreadsPolicy': !exists(json, 'ioThreadsPolicy') ? undefined : json['ioThreadsPolicy'], + 'launchSecurity': !exists(json, 'launchSecurity') ? undefined : V1LaunchSecurityFromJSON(json['launchSecurity']), + 'machine': !exists(json, 'machine') ? undefined : V1MachineFromJSON(json['machine']), + 'memory': !exists(json, 'memory') ? undefined : V1MemoryFromJSON(json['memory']), + 'resources': !exists(json, 'resources') ? undefined : V1ResourceRequirementsFromJSON(json['resources']), + }; +} + +export function V1DomainSpecToJSON(value?: V1DomainSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'chassis': V1ChassisToJSON(value.chassis), + 'clock': V1ClockToJSON(value.clock), + 'cpu': V1CPUToJSON(value.cpu), + 'devices': V1DevicesToJSON(value.devices), + 'features': V1FeaturesToJSON(value.features), + 'firmware': V1FirmwareToJSON(value.firmware), + 'ioThreadsPolicy': value.ioThreadsPolicy, + 'launchSecurity': V1LaunchSecurityToJSON(value.launchSecurity), + 'machine': V1MachineToJSON(value.machine), + 'memory': V1MemoryToJSON(value.memory), + 'resources': V1ResourceRequirementsToJSON(value.resources), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1DownwardAPIVolumeSource.ts b/packages/types/src/generated/kubevirt/models/V1DownwardAPIVolumeSource.ts new file mode 100644 index 000000000..f1c245546 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1DownwardAPIVolumeSource.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1DownwardAPIVolumeFile } from './K8sIoApiCoreV1DownwardAPIVolumeFile'; +import { + K8sIoApiCoreV1DownwardAPIVolumeFileFromJSON, + K8sIoApiCoreV1DownwardAPIVolumeFileFromJSONTyped, + K8sIoApiCoreV1DownwardAPIVolumeFileToJSON, +} from './K8sIoApiCoreV1DownwardAPIVolumeFile'; + +/** + * DownwardAPIVolumeSource represents a volume containing downward API info. + * @export + * @interface V1DownwardAPIVolumeSource + */ +export interface V1DownwardAPIVolumeSource { + /** + * Fields is a list of downward API volume file + * @type {Array} + * @memberof V1DownwardAPIVolumeSource + */ + fields?: Array; + /** + * The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are "cidata" (cloud-init), "config-2" (cloud-init) or "OEMDRV" (kickstart). + * @type {string} + * @memberof V1DownwardAPIVolumeSource + */ + volumeLabel?: string; +} + +/** + * Check if a given object implements the V1DownwardAPIVolumeSource interface. + */ +export function instanceOfV1DownwardAPIVolumeSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1DownwardAPIVolumeSourceFromJSON(json: any): V1DownwardAPIVolumeSource { + return V1DownwardAPIVolumeSourceFromJSONTyped(json, false); +} + +export function V1DownwardAPIVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DownwardAPIVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'fields': !exists(json, 'fields') ? undefined : ((json['fields'] as Array).map(K8sIoApiCoreV1DownwardAPIVolumeFileFromJSON)), + 'volumeLabel': !exists(json, 'volumeLabel') ? undefined : json['volumeLabel'], + }; +} + +export function V1DownwardAPIVolumeSourceToJSON(value?: V1DownwardAPIVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'fields': value.fields === undefined ? undefined : ((value.fields as Array).map(K8sIoApiCoreV1DownwardAPIVolumeFileToJSON)), + 'volumeLabel': value.volumeLabel, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1EFI.ts b/packages/types/src/generated/kubevirt/models/V1EFI.ts new file mode 100644 index 000000000..9c8981561 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1EFI.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * If set, EFI will be used instead of BIOS. + * @export + * @interface V1EFI + */ +export interface V1EFI { + /** + * If set to true, Persistent will persist the EFI NVRAM across reboots. Defaults to false + * @type {boolean} + * @memberof V1EFI + */ + persistent?: boolean; + /** + * If set, SecureBoot will be enabled and the OVMF roms will be swapped for SecureBoot-enabled ones. Requires SMM to be enabled. Defaults to true + * @type {boolean} + * @memberof V1EFI + */ + secureBoot?: boolean; +} + +/** + * Check if a given object implements the V1EFI interface. + */ +export function instanceOfV1EFI(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1EFIFromJSON(json: any): V1EFI { + return V1EFIFromJSONTyped(json, false); +} + +export function V1EFIFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1EFI { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'persistent': !exists(json, 'persistent') ? undefined : json['persistent'], + 'secureBoot': !exists(json, 'secureBoot') ? undefined : json['secureBoot'], + }; +} + +export function V1EFIToJSON(value?: V1EFI | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'persistent': value.persistent, + 'secureBoot': value.secureBoot, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1EmptyDiskSource.ts b/packages/types/src/generated/kubevirt/models/V1EmptyDiskSource.ts new file mode 100644 index 000000000..ed7ab357f --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1EmptyDiskSource.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * EmptyDisk represents a temporary disk which shares the vmis lifecycle. + * @export + * @interface V1EmptyDiskSource + */ +export interface V1EmptyDiskSource { + /** + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + * + * The serialization format is: + * + * ``` ::= + * + * (Note that may be empty, from the "" case in .) + * + * ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + * + * (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + * + * ::= m | "" | k | M | G | T | P | E + * + * (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + * + * ::= "e" | "E" ``` + * + * No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + * + * When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + * + * Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + * + * - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. + * + * The sign will be omitted unless the number is negative. + * + * Examples: + * + * - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" + * + * Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + * + * Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + * + * This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + * @type {string} + * @memberof V1EmptyDiskSource + */ + capacity: string; +} + +/** + * Check if a given object implements the V1EmptyDiskSource interface. + */ +export function instanceOfV1EmptyDiskSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "capacity" in value; + + return isInstance; +} + +export function V1EmptyDiskSourceFromJSON(json: any): V1EmptyDiskSource { + return V1EmptyDiskSourceFromJSONTyped(json, false); +} + +export function V1EmptyDiskSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1EmptyDiskSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'capacity': json['capacity'], + }; +} + +export function V1EmptyDiskSourceToJSON(value?: V1EmptyDiskSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'capacity': value.capacity, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1EphemeralVolumeSource.ts b/packages/types/src/generated/kubevirt/models/V1EphemeralVolumeSource.ts new file mode 100644 index 000000000..71cbc6582 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1EphemeralVolumeSource.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1PersistentVolumeClaimVolumeSource } from './K8sIoApiCoreV1PersistentVolumeClaimVolumeSource'; +import { + K8sIoApiCoreV1PersistentVolumeClaimVolumeSourceFromJSON, + K8sIoApiCoreV1PersistentVolumeClaimVolumeSourceFromJSONTyped, + K8sIoApiCoreV1PersistentVolumeClaimVolumeSourceToJSON, +} from './K8sIoApiCoreV1PersistentVolumeClaimVolumeSource'; + +/** + * + * @export + * @interface V1EphemeralVolumeSource + */ +export interface V1EphemeralVolumeSource { + /** + * + * @type {K8sIoApiCoreV1PersistentVolumeClaimVolumeSource} + * @memberof V1EphemeralVolumeSource + */ + persistentVolumeClaim?: K8sIoApiCoreV1PersistentVolumeClaimVolumeSource; +} + +/** + * Check if a given object implements the V1EphemeralVolumeSource interface. + */ +export function instanceOfV1EphemeralVolumeSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1EphemeralVolumeSourceFromJSON(json: any): V1EphemeralVolumeSource { + return V1EphemeralVolumeSourceFromJSONTyped(json, false); +} + +export function V1EphemeralVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1EphemeralVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'persistentVolumeClaim': !exists(json, 'persistentVolumeClaim') ? undefined : K8sIoApiCoreV1PersistentVolumeClaimVolumeSourceFromJSON(json['persistentVolumeClaim']), + }; +} + +export function V1EphemeralVolumeSourceToJSON(value?: V1EphemeralVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'persistentVolumeClaim': K8sIoApiCoreV1PersistentVolumeClaimVolumeSourceToJSON(value.persistentVolumeClaim), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1FeatureAPIC.ts b/packages/types/src/generated/kubevirt/models/V1FeatureAPIC.ts new file mode 100644 index 000000000..f64387057 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1FeatureAPIC.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1FeatureAPIC + */ +export interface V1FeatureAPIC { + /** + * Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. + * @type {boolean} + * @memberof V1FeatureAPIC + */ + enabled?: boolean; + /** + * EndOfInterrupt enables the end of interrupt notification in the guest. Defaults to false. + * @type {boolean} + * @memberof V1FeatureAPIC + */ + endOfInterrupt?: boolean; +} + +/** + * Check if a given object implements the V1FeatureAPIC interface. + */ +export function instanceOfV1FeatureAPIC(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1FeatureAPICFromJSON(json: any): V1FeatureAPIC { + return V1FeatureAPICFromJSONTyped(json, false); +} + +export function V1FeatureAPICFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FeatureAPIC { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'enabled': !exists(json, 'enabled') ? undefined : json['enabled'], + 'endOfInterrupt': !exists(json, 'endOfInterrupt') ? undefined : json['endOfInterrupt'], + }; +} + +export function V1FeatureAPICToJSON(value?: V1FeatureAPIC | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'enabled': value.enabled, + 'endOfInterrupt': value.endOfInterrupt, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1FeatureHyperv.ts b/packages/types/src/generated/kubevirt/models/V1FeatureHyperv.ts new file mode 100644 index 000000000..cfe76c615 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1FeatureHyperv.ts @@ -0,0 +1,194 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1FeatureSpinlocks } from './V1FeatureSpinlocks'; +import { + V1FeatureSpinlocksFromJSON, + V1FeatureSpinlocksFromJSONTyped, + V1FeatureSpinlocksToJSON, +} from './V1FeatureSpinlocks'; +import type { V1FeatureState } from './V1FeatureState'; +import { + V1FeatureStateFromJSON, + V1FeatureStateFromJSONTyped, + V1FeatureStateToJSON, +} from './V1FeatureState'; +import type { V1FeatureVendorID } from './V1FeatureVendorID'; +import { + V1FeatureVendorIDFromJSON, + V1FeatureVendorIDFromJSONTyped, + V1FeatureVendorIDToJSON, +} from './V1FeatureVendorID'; +import type { V1SyNICTimer } from './V1SyNICTimer'; +import { + V1SyNICTimerFromJSON, + V1SyNICTimerFromJSONTyped, + V1SyNICTimerToJSON, +} from './V1SyNICTimer'; + +/** + * Hyperv specific features. + * @export + * @interface V1FeatureHyperv + */ +export interface V1FeatureHyperv { + /** + * + * @type {V1FeatureState} + * @memberof V1FeatureHyperv + */ + evmcs?: V1FeatureState; + /** + * + * @type {V1FeatureState} + * @memberof V1FeatureHyperv + */ + frequencies?: V1FeatureState; + /** + * + * @type {V1FeatureState} + * @memberof V1FeatureHyperv + */ + ipi?: V1FeatureState; + /** + * + * @type {V1FeatureState} + * @memberof V1FeatureHyperv + */ + reenlightenment?: V1FeatureState; + /** + * + * @type {V1FeatureState} + * @memberof V1FeatureHyperv + */ + relaxed?: V1FeatureState; + /** + * + * @type {V1FeatureState} + * @memberof V1FeatureHyperv + */ + reset?: V1FeatureState; + /** + * + * @type {V1FeatureState} + * @memberof V1FeatureHyperv + */ + runtime?: V1FeatureState; + /** + * + * @type {V1FeatureSpinlocks} + * @memberof V1FeatureHyperv + */ + spinlocks?: V1FeatureSpinlocks; + /** + * + * @type {V1FeatureState} + * @memberof V1FeatureHyperv + */ + synic?: V1FeatureState; + /** + * + * @type {V1SyNICTimer} + * @memberof V1FeatureHyperv + */ + synictimer?: V1SyNICTimer; + /** + * + * @type {V1FeatureState} + * @memberof V1FeatureHyperv + */ + tlbflush?: V1FeatureState; + /** + * + * @type {V1FeatureState} + * @memberof V1FeatureHyperv + */ + vapic?: V1FeatureState; + /** + * + * @type {V1FeatureVendorID} + * @memberof V1FeatureHyperv + */ + vendorid?: V1FeatureVendorID; + /** + * + * @type {V1FeatureState} + * @memberof V1FeatureHyperv + */ + vpindex?: V1FeatureState; +} + +/** + * Check if a given object implements the V1FeatureHyperv interface. + */ +export function instanceOfV1FeatureHyperv(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1FeatureHypervFromJSON(json: any): V1FeatureHyperv { + return V1FeatureHypervFromJSONTyped(json, false); +} + +export function V1FeatureHypervFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FeatureHyperv { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'evmcs': !exists(json, 'evmcs') ? undefined : V1FeatureStateFromJSON(json['evmcs']), + 'frequencies': !exists(json, 'frequencies') ? undefined : V1FeatureStateFromJSON(json['frequencies']), + 'ipi': !exists(json, 'ipi') ? undefined : V1FeatureStateFromJSON(json['ipi']), + 'reenlightenment': !exists(json, 'reenlightenment') ? undefined : V1FeatureStateFromJSON(json['reenlightenment']), + 'relaxed': !exists(json, 'relaxed') ? undefined : V1FeatureStateFromJSON(json['relaxed']), + 'reset': !exists(json, 'reset') ? undefined : V1FeatureStateFromJSON(json['reset']), + 'runtime': !exists(json, 'runtime') ? undefined : V1FeatureStateFromJSON(json['runtime']), + 'spinlocks': !exists(json, 'spinlocks') ? undefined : V1FeatureSpinlocksFromJSON(json['spinlocks']), + 'synic': !exists(json, 'synic') ? undefined : V1FeatureStateFromJSON(json['synic']), + 'synictimer': !exists(json, 'synictimer') ? undefined : V1SyNICTimerFromJSON(json['synictimer']), + 'tlbflush': !exists(json, 'tlbflush') ? undefined : V1FeatureStateFromJSON(json['tlbflush']), + 'vapic': !exists(json, 'vapic') ? undefined : V1FeatureStateFromJSON(json['vapic']), + 'vendorid': !exists(json, 'vendorid') ? undefined : V1FeatureVendorIDFromJSON(json['vendorid']), + 'vpindex': !exists(json, 'vpindex') ? undefined : V1FeatureStateFromJSON(json['vpindex']), + }; +} + +export function V1FeatureHypervToJSON(value?: V1FeatureHyperv | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'evmcs': V1FeatureStateToJSON(value.evmcs), + 'frequencies': V1FeatureStateToJSON(value.frequencies), + 'ipi': V1FeatureStateToJSON(value.ipi), + 'reenlightenment': V1FeatureStateToJSON(value.reenlightenment), + 'relaxed': V1FeatureStateToJSON(value.relaxed), + 'reset': V1FeatureStateToJSON(value.reset), + 'runtime': V1FeatureStateToJSON(value.runtime), + 'spinlocks': V1FeatureSpinlocksToJSON(value.spinlocks), + 'synic': V1FeatureStateToJSON(value.synic), + 'synictimer': V1SyNICTimerToJSON(value.synictimer), + 'tlbflush': V1FeatureStateToJSON(value.tlbflush), + 'vapic': V1FeatureStateToJSON(value.vapic), + 'vendorid': V1FeatureVendorIDToJSON(value.vendorid), + 'vpindex': V1FeatureStateToJSON(value.vpindex), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1FeatureKVM.ts b/packages/types/src/generated/kubevirt/models/V1FeatureKVM.ts new file mode 100644 index 000000000..7b42a4e9d --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1FeatureKVM.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1FeatureKVM + */ +export interface V1FeatureKVM { + /** + * Hide the KVM hypervisor from standard MSR based discovery. Defaults to false + * @type {boolean} + * @memberof V1FeatureKVM + */ + hidden?: boolean; +} + +/** + * Check if a given object implements the V1FeatureKVM interface. + */ +export function instanceOfV1FeatureKVM(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1FeatureKVMFromJSON(json: any): V1FeatureKVM { + return V1FeatureKVMFromJSONTyped(json, false); +} + +export function V1FeatureKVMFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FeatureKVM { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'hidden': !exists(json, 'hidden') ? undefined : json['hidden'], + }; +} + +export function V1FeatureKVMToJSON(value?: V1FeatureKVM | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'hidden': value.hidden, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1FeatureSpinlocks.ts b/packages/types/src/generated/kubevirt/models/V1FeatureSpinlocks.ts new file mode 100644 index 000000000..0d3c88ebc --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1FeatureSpinlocks.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1FeatureSpinlocks + */ +export interface V1FeatureSpinlocks { + /** + * Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. + * @type {boolean} + * @memberof V1FeatureSpinlocks + */ + enabled?: boolean; + /** + * Retries indicates the number of retries. Must be a value greater or equal 4096. Defaults to 4096. + * @type {number} + * @memberof V1FeatureSpinlocks + */ + spinlocks?: number; +} + +/** + * Check if a given object implements the V1FeatureSpinlocks interface. + */ +export function instanceOfV1FeatureSpinlocks(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1FeatureSpinlocksFromJSON(json: any): V1FeatureSpinlocks { + return V1FeatureSpinlocksFromJSONTyped(json, false); +} + +export function V1FeatureSpinlocksFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FeatureSpinlocks { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'enabled': !exists(json, 'enabled') ? undefined : json['enabled'], + 'spinlocks': !exists(json, 'spinlocks') ? undefined : json['spinlocks'], + }; +} + +export function V1FeatureSpinlocksToJSON(value?: V1FeatureSpinlocks | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'enabled': value.enabled, + 'spinlocks': value.spinlocks, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1FeatureState.ts b/packages/types/src/generated/kubevirt/models/V1FeatureState.ts new file mode 100644 index 000000000..92d4527ce --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1FeatureState.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Represents if a feature is enabled or disabled. + * @export + * @interface V1FeatureState + */ +export interface V1FeatureState { + /** + * Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. + * @type {boolean} + * @memberof V1FeatureState + */ + enabled?: boolean; +} + +/** + * Check if a given object implements the V1FeatureState interface. + */ +export function instanceOfV1FeatureState(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1FeatureStateFromJSON(json: any): V1FeatureState { + return V1FeatureStateFromJSONTyped(json, false); +} + +export function V1FeatureStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FeatureState { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'enabled': !exists(json, 'enabled') ? undefined : json['enabled'], + }; +} + +export function V1FeatureStateToJSON(value?: V1FeatureState | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'enabled': value.enabled, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1FeatureVendorID.ts b/packages/types/src/generated/kubevirt/models/V1FeatureVendorID.ts new file mode 100644 index 000000000..52132ef4f --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1FeatureVendorID.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1FeatureVendorID + */ +export interface V1FeatureVendorID { + /** + * Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. + * @type {boolean} + * @memberof V1FeatureVendorID + */ + enabled?: boolean; + /** + * VendorID sets the hypervisor vendor id, visible to the vmi. String up to twelve characters. + * @type {string} + * @memberof V1FeatureVendorID + */ + vendorid?: string; +} + +/** + * Check if a given object implements the V1FeatureVendorID interface. + */ +export function instanceOfV1FeatureVendorID(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1FeatureVendorIDFromJSON(json: any): V1FeatureVendorID { + return V1FeatureVendorIDFromJSONTyped(json, false); +} + +export function V1FeatureVendorIDFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FeatureVendorID { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'enabled': !exists(json, 'enabled') ? undefined : json['enabled'], + 'vendorid': !exists(json, 'vendorid') ? undefined : json['vendorid'], + }; +} + +export function V1FeatureVendorIDToJSON(value?: V1FeatureVendorID | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'enabled': value.enabled, + 'vendorid': value.vendorid, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1Features.ts b/packages/types/src/generated/kubevirt/models/V1Features.ts new file mode 100644 index 000000000..171e326e1 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1Features.ts @@ -0,0 +1,130 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1FeatureAPIC } from './V1FeatureAPIC'; +import { + V1FeatureAPICFromJSON, + V1FeatureAPICFromJSONTyped, + V1FeatureAPICToJSON, +} from './V1FeatureAPIC'; +import type { V1FeatureHyperv } from './V1FeatureHyperv'; +import { + V1FeatureHypervFromJSON, + V1FeatureHypervFromJSONTyped, + V1FeatureHypervToJSON, +} from './V1FeatureHyperv'; +import type { V1FeatureKVM } from './V1FeatureKVM'; +import { + V1FeatureKVMFromJSON, + V1FeatureKVMFromJSONTyped, + V1FeatureKVMToJSON, +} from './V1FeatureKVM'; +import type { V1FeatureState } from './V1FeatureState'; +import { + V1FeatureStateFromJSON, + V1FeatureStateFromJSONTyped, + V1FeatureStateToJSON, +} from './V1FeatureState'; + +/** + * + * @export + * @interface V1Features + */ +export interface V1Features { + /** + * + * @type {V1FeatureState} + * @memberof V1Features + */ + acpi?: V1FeatureState; + /** + * + * @type {V1FeatureAPIC} + * @memberof V1Features + */ + apic?: V1FeatureAPIC; + /** + * + * @type {V1FeatureHyperv} + * @memberof V1Features + */ + hyperv?: V1FeatureHyperv; + /** + * + * @type {V1FeatureKVM} + * @memberof V1Features + */ + kvm?: V1FeatureKVM; + /** + * + * @type {V1FeatureState} + * @memberof V1Features + */ + pvspinlock?: V1FeatureState; + /** + * + * @type {V1FeatureState} + * @memberof V1Features + */ + smm?: V1FeatureState; +} + +/** + * Check if a given object implements the V1Features interface. + */ +export function instanceOfV1Features(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1FeaturesFromJSON(json: any): V1Features { + return V1FeaturesFromJSONTyped(json, false); +} + +export function V1FeaturesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Features { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'acpi': !exists(json, 'acpi') ? undefined : V1FeatureStateFromJSON(json['acpi']), + 'apic': !exists(json, 'apic') ? undefined : V1FeatureAPICFromJSON(json['apic']), + 'hyperv': !exists(json, 'hyperv') ? undefined : V1FeatureHypervFromJSON(json['hyperv']), + 'kvm': !exists(json, 'kvm') ? undefined : V1FeatureKVMFromJSON(json['kvm']), + 'pvspinlock': !exists(json, 'pvspinlock') ? undefined : V1FeatureStateFromJSON(json['pvspinlock']), + 'smm': !exists(json, 'smm') ? undefined : V1FeatureStateFromJSON(json['smm']), + }; +} + +export function V1FeaturesToJSON(value?: V1Features | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'acpi': V1FeatureStateToJSON(value.acpi), + 'apic': V1FeatureAPICToJSON(value.apic), + 'hyperv': V1FeatureHypervToJSON(value.hyperv), + 'kvm': V1FeatureKVMToJSON(value.kvm), + 'pvspinlock': V1FeatureStateToJSON(value.pvspinlock), + 'smm': V1FeatureStateToJSON(value.smm), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1Filesystem.ts b/packages/types/src/generated/kubevirt/models/V1Filesystem.ts new file mode 100644 index 000000000..7f861ca9d --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1Filesystem.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1Filesystem + */ +export interface V1Filesystem { + /** + * Name is the device name + * @type {string} + * @memberof V1Filesystem + */ + name: string; + /** + * + * @type {object} + * @memberof V1Filesystem + */ + virtiofs: object; +} + +/** + * Check if a given object implements the V1Filesystem interface. + */ +export function instanceOfV1Filesystem(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "virtiofs" in value; + + return isInstance; +} + +export function V1FilesystemFromJSON(json: any): V1Filesystem { + return V1FilesystemFromJSONTyped(json, false); +} + +export function V1FilesystemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Filesystem { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + 'virtiofs': json['virtiofs'], + }; +} + +export function V1FilesystemToJSON(value?: V1Filesystem | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'virtiofs': value.virtiofs, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1Firmware.ts b/packages/types/src/generated/kubevirt/models/V1Firmware.ts new file mode 100644 index 000000000..76423980e --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1Firmware.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1ACPI } from './V1ACPI'; +import { + V1ACPIFromJSON, + V1ACPIFromJSONTyped, + V1ACPIToJSON, +} from './V1ACPI'; +import type { V1Bootloader } from './V1Bootloader'; +import { + V1BootloaderFromJSON, + V1BootloaderFromJSONTyped, + V1BootloaderToJSON, +} from './V1Bootloader'; +import type { V1KernelBoot } from './V1KernelBoot'; +import { + V1KernelBootFromJSON, + V1KernelBootFromJSONTyped, + V1KernelBootToJSON, +} from './V1KernelBoot'; + +/** + * + * @export + * @interface V1Firmware + */ +export interface V1Firmware { + /** + * + * @type {V1ACPI} + * @memberof V1Firmware + */ + acpi?: V1ACPI; + /** + * + * @type {V1Bootloader} + * @memberof V1Firmware + */ + bootloader?: V1Bootloader; + /** + * + * @type {V1KernelBoot} + * @memberof V1Firmware + */ + kernelBoot?: V1KernelBoot; + /** + * The system-serial-number in SMBIOS + * @type {string} + * @memberof V1Firmware + */ + serial?: string; + /** + * UUID reported by the vmi bios. Defaults to a random generated uid. + * @type {string} + * @memberof V1Firmware + */ + uuid?: string; +} + +/** + * Check if a given object implements the V1Firmware interface. + */ +export function instanceOfV1Firmware(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1FirmwareFromJSON(json: any): V1Firmware { + return V1FirmwareFromJSONTyped(json, false); +} + +export function V1FirmwareFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Firmware { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'acpi': !exists(json, 'acpi') ? undefined : V1ACPIFromJSON(json['acpi']), + 'bootloader': !exists(json, 'bootloader') ? undefined : V1BootloaderFromJSON(json['bootloader']), + 'kernelBoot': !exists(json, 'kernelBoot') ? undefined : V1KernelBootFromJSON(json['kernelBoot']), + 'serial': !exists(json, 'serial') ? undefined : json['serial'], + 'uuid': !exists(json, 'uuid') ? undefined : json['uuid'], + }; +} + +export function V1FirmwareToJSON(value?: V1Firmware | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'acpi': V1ACPIToJSON(value.acpi), + 'bootloader': V1BootloaderToJSON(value.bootloader), + 'kernelBoot': V1KernelBootToJSON(value.kernelBoot), + 'serial': value.serial, + 'uuid': value.uuid, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1Flags.ts b/packages/types/src/generated/kubevirt/models/V1Flags.ts new file mode 100644 index 000000000..fb82fa27c --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1Flags.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Flags will create a patch that will replace all flags for the container's command field. The only flags that will be used are those define. There are no guarantees around forward/backward compatibility. If set incorrectly this will cause the resource when rolled out to error until flags are updated. + * @export + * @interface V1Flags + */ +export interface V1Flags { + /** + * + * @type {{ [key: string]: string; }} + * @memberof V1Flags + */ + api?: { [key: string]: string; }; + /** + * + * @type {{ [key: string]: string; }} + * @memberof V1Flags + */ + controller?: { [key: string]: string; }; + /** + * + * @type {{ [key: string]: string; }} + * @memberof V1Flags + */ + handler?: { [key: string]: string; }; +} + +/** + * Check if a given object implements the V1Flags interface. + */ +export function instanceOfV1Flags(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1FlagsFromJSON(json: any): V1Flags { + return V1FlagsFromJSONTyped(json, false); +} + +export function V1FlagsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Flags { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'api': !exists(json, 'api') ? undefined : json['api'], + 'controller': !exists(json, 'controller') ? undefined : json['controller'], + 'handler': !exists(json, 'handler') ? undefined : json['handler'], + }; +} + +export function V1FlagsToJSON(value?: V1Flags | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'api': value.api, + 'controller': value.controller, + 'handler': value.handler, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1FreezeUnfreezeTimeout.ts b/packages/types/src/generated/kubevirt/models/V1FreezeUnfreezeTimeout.ts new file mode 100644 index 000000000..e381ec5f2 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1FreezeUnfreezeTimeout.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * FreezeUnfreezeTimeout represent the time unfreeze will be triggered if guest was not unfrozen by unfreeze command + * @export + * @interface V1FreezeUnfreezeTimeout + */ +export interface V1FreezeUnfreezeTimeout { + /** + * Duration is a wrapper around time.Duration which supports correct marshaling to YAML and JSON. In particular, it marshals into strings, which can be used as map keys in json. + * @type {string} + * @memberof V1FreezeUnfreezeTimeout + */ + unfreezeTimeout: string; +} + +/** + * Check if a given object implements the V1FreezeUnfreezeTimeout interface. + */ +export function instanceOfV1FreezeUnfreezeTimeout(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "unfreezeTimeout" in value; + + return isInstance; +} + +export function V1FreezeUnfreezeTimeoutFromJSON(json: any): V1FreezeUnfreezeTimeout { + return V1FreezeUnfreezeTimeoutFromJSONTyped(json, false); +} + +export function V1FreezeUnfreezeTimeoutFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FreezeUnfreezeTimeout { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'unfreezeTimeout': json['unfreezeTimeout'], + }; +} + +export function V1FreezeUnfreezeTimeoutToJSON(value?: V1FreezeUnfreezeTimeout | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'unfreezeTimeout': value.unfreezeTimeout, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1GPU.ts b/packages/types/src/generated/kubevirt/models/V1GPU.ts new file mode 100644 index 000000000..c9e954558 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1GPU.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1VGPUOptions } from './V1VGPUOptions'; +import { + V1VGPUOptionsFromJSON, + V1VGPUOptionsFromJSONTyped, + V1VGPUOptionsToJSON, +} from './V1VGPUOptions'; + +/** + * + * @export + * @interface V1GPU + */ +export interface V1GPU { + /** + * + * @type {string} + * @memberof V1GPU + */ + deviceName: string; + /** + * Name of the GPU device as exposed by a device plugin + * @type {string} + * @memberof V1GPU + */ + name: string; + /** + * If specified, the virtual network interface address and its tag will be provided to the guest via config drive + * @type {string} + * @memberof V1GPU + */ + tag?: string; + /** + * + * @type {V1VGPUOptions} + * @memberof V1GPU + */ + virtualGPUOptions?: V1VGPUOptions; +} + +/** + * Check if a given object implements the V1GPU interface. + */ +export function instanceOfV1GPU(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "deviceName" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function V1GPUFromJSON(json: any): V1GPU { + return V1GPUFromJSONTyped(json, false); +} + +export function V1GPUFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GPU { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'deviceName': json['deviceName'], + 'name': json['name'], + 'tag': !exists(json, 'tag') ? undefined : json['tag'], + 'virtualGPUOptions': !exists(json, 'virtualGPUOptions') ? undefined : V1VGPUOptionsFromJSON(json['virtualGPUOptions']), + }; +} + +export function V1GPUToJSON(value?: V1GPU | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'deviceName': value.deviceName, + 'name': value.name, + 'tag': value.tag, + 'virtualGPUOptions': V1VGPUOptionsToJSON(value.virtualGPUOptions), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1GenerationStatus.ts b/packages/types/src/generated/kubevirt/models/V1GenerationStatus.ts new file mode 100644 index 000000000..b03dc77e4 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1GenerationStatus.ts @@ -0,0 +1,109 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * GenerationStatus keeps track of the generation for a given resource so that decisions about forced updates can be made. + * @export + * @interface V1GenerationStatus + */ +export interface V1GenerationStatus { + /** + * group is the group of the thing you're tracking + * @type {string} + * @memberof V1GenerationStatus + */ + group: string; + /** + * hash is an optional field set for resources without generation that are content sensitive like secrets and configmaps + * @type {string} + * @memberof V1GenerationStatus + */ + hash?: string; + /** + * lastGeneration is the last generation of the workload controller involved + * @type {number} + * @memberof V1GenerationStatus + */ + lastGeneration: number; + /** + * name is the name of the thing you're tracking + * @type {string} + * @memberof V1GenerationStatus + */ + name: string; + /** + * namespace is where the thing you're tracking is + * @type {string} + * @memberof V1GenerationStatus + */ + namespace?: string; + /** + * resource is the resource type of the thing you're tracking + * @type {string} + * @memberof V1GenerationStatus + */ + resource: string; +} + +/** + * Check if a given object implements the V1GenerationStatus interface. + */ +export function instanceOfV1GenerationStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "group" in value; + isInstance = isInstance && "lastGeneration" in value; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "resource" in value; + + return isInstance; +} + +export function V1GenerationStatusFromJSON(json: any): V1GenerationStatus { + return V1GenerationStatusFromJSONTyped(json, false); +} + +export function V1GenerationStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GenerationStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'group': json['group'], + 'hash': !exists(json, 'hash') ? undefined : json['hash'], + 'lastGeneration': json['lastGeneration'], + 'name': json['name'], + 'namespace': !exists(json, 'namespace') ? undefined : json['namespace'], + 'resource': json['resource'], + }; +} + +export function V1GenerationStatusToJSON(value?: V1GenerationStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'group': value.group, + 'hash': value.hash, + 'lastGeneration': value.lastGeneration, + 'name': value.name, + 'namespace': value.namespace, + 'resource': value.resource, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1GuestAgentCommandInfo.ts b/packages/types/src/generated/kubevirt/models/V1GuestAgentCommandInfo.ts new file mode 100644 index 000000000..fa794dc56 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1GuestAgentCommandInfo.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * List of commands that QEMU guest agent supports + * @export + * @interface V1GuestAgentCommandInfo + */ +export interface V1GuestAgentCommandInfo { + /** + * + * @type {boolean} + * @memberof V1GuestAgentCommandInfo + */ + enabled?: boolean; + /** + * + * @type {string} + * @memberof V1GuestAgentCommandInfo + */ + name: string; +} + +/** + * Check if a given object implements the V1GuestAgentCommandInfo interface. + */ +export function instanceOfV1GuestAgentCommandInfo(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function V1GuestAgentCommandInfoFromJSON(json: any): V1GuestAgentCommandInfo { + return V1GuestAgentCommandInfoFromJSONTyped(json, false); +} + +export function V1GuestAgentCommandInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GuestAgentCommandInfo { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'enabled': !exists(json, 'enabled') ? undefined : json['enabled'], + 'name': json['name'], + }; +} + +export function V1GuestAgentCommandInfoToJSON(value?: V1GuestAgentCommandInfo | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'enabled': value.enabled, + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1HPETTimer.ts b/packages/types/src/generated/kubevirt/models/V1HPETTimer.ts new file mode 100644 index 000000000..1aaf84f3f --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1HPETTimer.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1HPETTimer + */ +export interface V1HPETTimer { + /** + * Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. + * @type {boolean} + * @memberof V1HPETTimer + */ + present?: boolean; + /** + * TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest. One of "delay", "catchup", "merge", "discard". + * @type {string} + * @memberof V1HPETTimer + */ + tickPolicy?: string; +} + +/** + * Check if a given object implements the V1HPETTimer interface. + */ +export function instanceOfV1HPETTimer(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1HPETTimerFromJSON(json: any): V1HPETTimer { + return V1HPETTimerFromJSONTyped(json, false); +} + +export function V1HPETTimerFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1HPETTimer { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'present': !exists(json, 'present') ? undefined : json['present'], + 'tickPolicy': !exists(json, 'tickPolicy') ? undefined : json['tickPolicy'], + }; +} + +export function V1HPETTimerToJSON(value?: V1HPETTimer | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'present': value.present, + 'tickPolicy': value.tickPolicy, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1HostDevice.ts b/packages/types/src/generated/kubevirt/models/V1HostDevice.ts new file mode 100644 index 000000000..13ab9fc93 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1HostDevice.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1HostDevice + */ +export interface V1HostDevice { + /** + * DeviceName is the resource name of the host device exposed by a device plugin + * @type {string} + * @memberof V1HostDevice + */ + deviceName: string; + /** + * + * @type {string} + * @memberof V1HostDevice + */ + name: string; + /** + * If specified, the virtual network interface address and its tag will be provided to the guest via config drive + * @type {string} + * @memberof V1HostDevice + */ + tag?: string; +} + +/** + * Check if a given object implements the V1HostDevice interface. + */ +export function instanceOfV1HostDevice(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "deviceName" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function V1HostDeviceFromJSON(json: any): V1HostDevice { + return V1HostDeviceFromJSONTyped(json, false); +} + +export function V1HostDeviceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1HostDevice { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'deviceName': json['deviceName'], + 'name': json['name'], + 'tag': !exists(json, 'tag') ? undefined : json['tag'], + }; +} + +export function V1HostDeviceToJSON(value?: V1HostDevice | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'deviceName': value.deviceName, + 'name': value.name, + 'tag': value.tag, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1HostDisk.ts b/packages/types/src/generated/kubevirt/models/V1HostDisk.ts new file mode 100644 index 000000000..bf2a60cc5 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1HostDisk.ts @@ -0,0 +1,127 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Represents a disk created on the cluster level + * @export + * @interface V1HostDisk + */ +export interface V1HostDisk { + /** + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + * + * The serialization format is: + * + * ``` ::= + * + * (Note that may be empty, from the "" case in .) + * + * ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + * + * (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + * + * ::= m | "" | k | M | G | T | P | E + * + * (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + * + * ::= "e" | "E" ``` + * + * No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + * + * When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + * + * Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + * + * - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. + * + * The sign will be omitted unless the number is negative. + * + * Examples: + * + * - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" + * + * Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + * + * Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + * + * This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + * @type {string} + * @memberof V1HostDisk + */ + capacity?: string; + /** + * The path to HostDisk image located on the cluster + * @type {string} + * @memberof V1HostDisk + */ + path: string; + /** + * Shared indicate whether the path is shared between nodes + * @type {boolean} + * @memberof V1HostDisk + */ + shared?: boolean; + /** + * Contains information if disk.img exists or should be created allowed options are 'Disk' and 'DiskOrCreate' + * @type {string} + * @memberof V1HostDisk + */ + type: string; +} + +/** + * Check if a given object implements the V1HostDisk interface. + */ +export function instanceOfV1HostDisk(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "path" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function V1HostDiskFromJSON(json: any): V1HostDisk { + return V1HostDiskFromJSONTyped(json, false); +} + +export function V1HostDiskFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1HostDisk { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'capacity': !exists(json, 'capacity') ? undefined : json['capacity'], + 'path': json['path'], + 'shared': !exists(json, 'shared') ? undefined : json['shared'], + 'type': json['type'], + }; +} + +export function V1HostDiskToJSON(value?: V1HostDisk | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'capacity': value.capacity, + 'path': value.path, + 'shared': value.shared, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1HotplugVolumeSource.ts b/packages/types/src/generated/kubevirt/models/V1HotplugVolumeSource.ts new file mode 100644 index 000000000..68ce9bc4f --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1HotplugVolumeSource.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1DataVolumeSource } from './V1DataVolumeSource'; +import { + V1DataVolumeSourceFromJSON, + V1DataVolumeSourceFromJSONTyped, + V1DataVolumeSourceToJSON, +} from './V1DataVolumeSource'; +import type { V1PersistentVolumeClaimVolumeSource } from './V1PersistentVolumeClaimVolumeSource'; +import { + V1PersistentVolumeClaimVolumeSourceFromJSON, + V1PersistentVolumeClaimVolumeSourceFromJSONTyped, + V1PersistentVolumeClaimVolumeSourceToJSON, +} from './V1PersistentVolumeClaimVolumeSource'; + +/** + * HotplugVolumeSource Represents the source of a volume to mount which are capable of being hotplugged on a live running VMI. Only one of its members may be specified. + * @export + * @interface V1HotplugVolumeSource + */ +export interface V1HotplugVolumeSource { + /** + * + * @type {V1DataVolumeSource} + * @memberof V1HotplugVolumeSource + */ + dataVolume?: V1DataVolumeSource; + /** + * + * @type {V1PersistentVolumeClaimVolumeSource} + * @memberof V1HotplugVolumeSource + */ + persistentVolumeClaim?: V1PersistentVolumeClaimVolumeSource; +} + +/** + * Check if a given object implements the V1HotplugVolumeSource interface. + */ +export function instanceOfV1HotplugVolumeSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1HotplugVolumeSourceFromJSON(json: any): V1HotplugVolumeSource { + return V1HotplugVolumeSourceFromJSONTyped(json, false); +} + +export function V1HotplugVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1HotplugVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dataVolume': !exists(json, 'dataVolume') ? undefined : V1DataVolumeSourceFromJSON(json['dataVolume']), + 'persistentVolumeClaim': !exists(json, 'persistentVolumeClaim') ? undefined : V1PersistentVolumeClaimVolumeSourceFromJSON(json['persistentVolumeClaim']), + }; +} + +export function V1HotplugVolumeSourceToJSON(value?: V1HotplugVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'dataVolume': V1DataVolumeSourceToJSON(value.dataVolume), + 'persistentVolumeClaim': V1PersistentVolumeClaimVolumeSourceToJSON(value.persistentVolumeClaim), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1HotplugVolumeStatus.ts b/packages/types/src/generated/kubevirt/models/V1HotplugVolumeStatus.ts new file mode 100644 index 000000000..0f6e642e9 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1HotplugVolumeStatus.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * HotplugVolumeStatus represents the hotplug status of the volume + * @export + * @interface V1HotplugVolumeStatus + */ +export interface V1HotplugVolumeStatus { + /** + * AttachPodName is the name of the pod used to attach the volume to the node. + * @type {string} + * @memberof V1HotplugVolumeStatus + */ + attachPodName?: string; + /** + * AttachPodUID is the UID of the pod used to attach the volume to the node. + * @type {string} + * @memberof V1HotplugVolumeStatus + */ + attachPodUID?: string; +} + +/** + * Check if a given object implements the V1HotplugVolumeStatus interface. + */ +export function instanceOfV1HotplugVolumeStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1HotplugVolumeStatusFromJSON(json: any): V1HotplugVolumeStatus { + return V1HotplugVolumeStatusFromJSONTyped(json, false); +} + +export function V1HotplugVolumeStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1HotplugVolumeStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'attachPodName': !exists(json, 'attachPodName') ? undefined : json['attachPodName'], + 'attachPodUID': !exists(json, 'attachPodUID') ? undefined : json['attachPodUID'], + }; +} + +export function V1HotplugVolumeStatusToJSON(value?: V1HotplugVolumeStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'attachPodName': value.attachPodName, + 'attachPodUID': value.attachPodUID, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1Hugepages.ts b/packages/types/src/generated/kubevirt/models/V1Hugepages.ts new file mode 100644 index 000000000..2146396ba --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1Hugepages.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Hugepages allow to use hugepages for the VirtualMachineInstance instead of regular memory. + * @export + * @interface V1Hugepages + */ +export interface V1Hugepages { + /** + * PageSize specifies the hugepage size, for x86_64 architecture valid values are 1Gi and 2Mi. + * @type {string} + * @memberof V1Hugepages + */ + pageSize?: string; +} + +/** + * Check if a given object implements the V1Hugepages interface. + */ +export function instanceOfV1Hugepages(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1HugepagesFromJSON(json: any): V1Hugepages { + return V1HugepagesFromJSONTyped(json, false); +} + +export function V1HugepagesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Hugepages { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'pageSize': !exists(json, 'pageSize') ? undefined : json['pageSize'], + }; +} + +export function V1HugepagesToJSON(value?: V1Hugepages | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'pageSize': value.pageSize, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1HypervTimer.ts b/packages/types/src/generated/kubevirt/models/V1HypervTimer.ts new file mode 100644 index 000000000..db6ddb11b --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1HypervTimer.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1HypervTimer + */ +export interface V1HypervTimer { + /** + * Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. + * @type {boolean} + * @memberof V1HypervTimer + */ + present?: boolean; +} + +/** + * Check if a given object implements the V1HypervTimer interface. + */ +export function instanceOfV1HypervTimer(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1HypervTimerFromJSON(json: any): V1HypervTimer { + return V1HypervTimerFromJSONTyped(json, false); +} + +export function V1HypervTimerFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1HypervTimer { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'present': !exists(json, 'present') ? undefined : json['present'], + }; +} + +export function V1HypervTimerToJSON(value?: V1HypervTimer | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'present': value.present, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1I6300ESBWatchdog.ts b/packages/types/src/generated/kubevirt/models/V1I6300ESBWatchdog.ts new file mode 100644 index 000000000..e16a9e8bc --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1I6300ESBWatchdog.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * i6300esb watchdog device. + * @export + * @interface V1I6300ESBWatchdog + */ +export interface V1I6300ESBWatchdog { + /** + * The action to take. Valid values are poweroff, reset, shutdown. Defaults to reset. + * @type {string} + * @memberof V1I6300ESBWatchdog + */ + action?: string; +} + +/** + * Check if a given object implements the V1I6300ESBWatchdog interface. + */ +export function instanceOfV1I6300ESBWatchdog(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1I6300ESBWatchdogFromJSON(json: any): V1I6300ESBWatchdog { + return V1I6300ESBWatchdogFromJSONTyped(json, false); +} + +export function V1I6300ESBWatchdogFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1I6300ESBWatchdog { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'action': !exists(json, 'action') ? undefined : json['action'], + }; +} + +export function V1I6300ESBWatchdogToJSON(value?: V1I6300ESBWatchdog | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'action': value.action, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1InitrdInfo.ts b/packages/types/src/generated/kubevirt/models/V1InitrdInfo.ts new file mode 100644 index 000000000..0a81ff7cb --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1InitrdInfo.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * InitrdInfo show info about the initrd file + * @export + * @interface V1InitrdInfo + */ +export interface V1InitrdInfo { + /** + * Checksum is the checksum of the initrd file + * @type {number} + * @memberof V1InitrdInfo + */ + checksum?: number; +} + +/** + * Check if a given object implements the V1InitrdInfo interface. + */ +export function instanceOfV1InitrdInfo(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1InitrdInfoFromJSON(json: any): V1InitrdInfo { + return V1InitrdInfoFromJSONTyped(json, false); +} + +export function V1InitrdInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1InitrdInfo { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'checksum': !exists(json, 'checksum') ? undefined : json['checksum'], + }; +} + +export function V1InitrdInfoToJSON(value?: V1InitrdInfo | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'checksum': value.checksum, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1Input.ts b/packages/types/src/generated/kubevirt/models/V1Input.ts new file mode 100644 index 000000000..6fbbb0bac --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1Input.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1Input + */ +export interface V1Input { + /** + * Bus indicates the bus of input device to emulate. Supported values: virtio, usb. + * @type {string} + * @memberof V1Input + */ + bus?: string; + /** + * Name is the device name + * @type {string} + * @memberof V1Input + */ + name: string; + /** + * Type indicated the type of input device. Supported values: tablet. + * @type {string} + * @memberof V1Input + */ + type: string; +} + +/** + * Check if a given object implements the V1Input interface. + */ +export function instanceOfV1Input(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function V1InputFromJSON(json: any): V1Input { + return V1InputFromJSONTyped(json, false); +} + +export function V1InputFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Input { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bus': !exists(json, 'bus') ? undefined : json['bus'], + 'name': json['name'], + 'type': json['type'], + }; +} + +export function V1InputToJSON(value?: V1Input | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'bus': value.bus, + 'name': value.name, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1InstancetypeMatcher.ts b/packages/types/src/generated/kubevirt/models/V1InstancetypeMatcher.ts new file mode 100644 index 000000000..f98d0af0b --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1InstancetypeMatcher.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * InstancetypeMatcher references a instancetype that is used to fill fields in the VMI template. + * @export + * @interface V1InstancetypeMatcher + */ +export interface V1InstancetypeMatcher { + /** + * InferFromVolume lists the name of a volume that should be used to infer or discover the instancetype to be used through known annotations on the underlying resource. Once applied to the InstancetypeMatcher this field is removed. + * @type {string} + * @memberof V1InstancetypeMatcher + */ + inferFromVolume?: string; + /** + * InferFromVolumeFailurePolicy controls what should happen on failure when inferring the instancetype. Allowed values are: "RejectInferFromVolumeFailure" and "IgnoreInferFromVolumeFailure". If not specified, "RejectInferFromVolumeFailure" is used by default. + * @type {string} + * @memberof V1InstancetypeMatcher + */ + inferFromVolumeFailurePolicy?: string; + /** + * Kind specifies which instancetype resource is referenced. Allowed values are: "VirtualMachineInstancetype" and "VirtualMachineClusterInstancetype". If not specified, "VirtualMachineClusterInstancetype" is used by default. + * @type {string} + * @memberof V1InstancetypeMatcher + */ + kind?: string; + /** + * Name is the name of the VirtualMachineInstancetype or VirtualMachineClusterInstancetype + * @type {string} + * @memberof V1InstancetypeMatcher + */ + name?: string; + /** + * RevisionName specifies a ControllerRevision containing a specific copy of the VirtualMachineInstancetype or VirtualMachineClusterInstancetype to be used. This is initially captured the first time the instancetype is applied to the VirtualMachineInstance. + * @type {string} + * @memberof V1InstancetypeMatcher + */ + revisionName?: string; +} + +/** + * Check if a given object implements the V1InstancetypeMatcher interface. + */ +export function instanceOfV1InstancetypeMatcher(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1InstancetypeMatcherFromJSON(json: any): V1InstancetypeMatcher { + return V1InstancetypeMatcherFromJSONTyped(json, false); +} + +export function V1InstancetypeMatcherFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1InstancetypeMatcher { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'inferFromVolume': !exists(json, 'inferFromVolume') ? undefined : json['inferFromVolume'], + 'inferFromVolumeFailurePolicy': !exists(json, 'inferFromVolumeFailurePolicy') ? undefined : json['inferFromVolumeFailurePolicy'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'name': !exists(json, 'name') ? undefined : json['name'], + 'revisionName': !exists(json, 'revisionName') ? undefined : json['revisionName'], + }; +} + +export function V1InstancetypeMatcherToJSON(value?: V1InstancetypeMatcher | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'inferFromVolume': value.inferFromVolume, + 'inferFromVolumeFailurePolicy': value.inferFromVolumeFailurePolicy, + 'kind': value.kind, + 'name': value.name, + 'revisionName': value.revisionName, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1Interface.ts b/packages/types/src/generated/kubevirt/models/V1Interface.ts new file mode 100644 index 000000000..42002cf4d --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1Interface.ts @@ -0,0 +1,213 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1DHCPOptions } from './V1DHCPOptions'; +import { + V1DHCPOptionsFromJSON, + V1DHCPOptionsFromJSONTyped, + V1DHCPOptionsToJSON, +} from './V1DHCPOptions'; +import type { V1PluginBinding } from './V1PluginBinding'; +import { + V1PluginBindingFromJSON, + V1PluginBindingFromJSONTyped, + V1PluginBindingToJSON, +} from './V1PluginBinding'; +import type { V1Port } from './V1Port'; +import { + V1PortFromJSON, + V1PortFromJSONTyped, + V1PortToJSON, +} from './V1Port'; + +/** + * + * @export + * @interface V1Interface + */ +export interface V1Interface { + /** + * If specified, the ACPI index is used to provide network interface device naming, that is stable across changes in PCI addresses assigned to the device. This value is required to be unique across all devices and be between 1 and (16*1024-1). + * @type {number} + * @memberof V1Interface + */ + acpiIndex?: number; + /** + * + * @type {V1PluginBinding} + * @memberof V1Interface + */ + binding?: V1PluginBinding; + /** + * BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each interface or disk that has a boot order must have a unique value. Interfaces without a boot order are not tried. + * @type {number} + * @memberof V1Interface + */ + bootOrder?: number; + /** + * InterfaceBridge connects to a given network via a linux bridge. + * @type {object} + * @memberof V1Interface + */ + bridge?: object; + /** + * + * @type {V1DHCPOptions} + * @memberof V1Interface + */ + dhcpOptions?: V1DHCPOptions; + /** + * Interface MAC address. For example: de:ad:00:00:be:af or DE-AD-00-00-BE-AF. + * @type {string} + * @memberof V1Interface + */ + macAddress?: string; + /** + * InterfaceMacvtap connects to a given network by extending the Kubernetes node's L2 networks via a macvtap interface. + * @type {object} + * @memberof V1Interface + */ + macvtap?: object; + /** + * InterfaceMasquerade connects to a given network using netfilter rules to nat the traffic. + * @type {object} + * @memberof V1Interface + */ + masquerade?: object; + /** + * Interface model. One of: e1000, e1000e, ne2k_pci, pcnet, rtl8139, virtio. Defaults to virtio. + * @type {string} + * @memberof V1Interface + */ + model?: string; + /** + * Logical name of the interface as well as a reference to the associated networks. Must match the Name of a Network. + * @type {string} + * @memberof V1Interface + */ + name: string; + /** + * InterfacePasst connects to a given network. + * @type {object} + * @memberof V1Interface + */ + passt?: object; + /** + * If specified, the virtual network interface will be placed on the guests pci address with the specified PCI address. For example: 0000:81:01.10 + * @type {string} + * @memberof V1Interface + */ + pciAddress?: string; + /** + * List of ports to be forwarded to the virtual machine. + * @type {Array} + * @memberof V1Interface + */ + ports?: Array; + /** + * InterfaceSlirp connects to a given network using QEMU user networking mode. + * @type {object} + * @memberof V1Interface + */ + slirp?: object; + /** + * InterfaceSRIOV connects to a given network by passing-through an SR-IOV PCI device via vfio. + * @type {object} + * @memberof V1Interface + */ + sriov?: object; + /** + * State represents the requested operational state of the interface. The (only) value supported is `absent`, expressing a request to remove the interface. + * @type {string} + * @memberof V1Interface + */ + state?: string; + /** + * If specified, the virtual network interface address and its tag will be provided to the guest via config drive + * @type {string} + * @memberof V1Interface + */ + tag?: string; +} + +/** + * Check if a given object implements the V1Interface interface. + */ +export function instanceOfV1Interface(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function V1InterfaceFromJSON(json: any): V1Interface { + return V1InterfaceFromJSONTyped(json, false); +} + +export function V1InterfaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Interface { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'acpiIndex': !exists(json, 'acpiIndex') ? undefined : json['acpiIndex'], + 'binding': !exists(json, 'binding') ? undefined : V1PluginBindingFromJSON(json['binding']), + 'bootOrder': !exists(json, 'bootOrder') ? undefined : json['bootOrder'], + 'bridge': !exists(json, 'bridge') ? undefined : json['bridge'], + 'dhcpOptions': !exists(json, 'dhcpOptions') ? undefined : V1DHCPOptionsFromJSON(json['dhcpOptions']), + 'macAddress': !exists(json, 'macAddress') ? undefined : json['macAddress'], + 'macvtap': !exists(json, 'macvtap') ? undefined : json['macvtap'], + 'masquerade': !exists(json, 'masquerade') ? undefined : json['masquerade'], + 'model': !exists(json, 'model') ? undefined : json['model'], + 'name': json['name'], + 'passt': !exists(json, 'passt') ? undefined : json['passt'], + 'pciAddress': !exists(json, 'pciAddress') ? undefined : json['pciAddress'], + 'ports': !exists(json, 'ports') ? undefined : ((json['ports'] as Array).map(V1PortFromJSON)), + 'slirp': !exists(json, 'slirp') ? undefined : json['slirp'], + 'sriov': !exists(json, 'sriov') ? undefined : json['sriov'], + 'state': !exists(json, 'state') ? undefined : json['state'], + 'tag': !exists(json, 'tag') ? undefined : json['tag'], + }; +} + +export function V1InterfaceToJSON(value?: V1Interface | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'acpiIndex': value.acpiIndex, + 'binding': V1PluginBindingToJSON(value.binding), + 'bootOrder': value.bootOrder, + 'bridge': value.bridge, + 'dhcpOptions': V1DHCPOptionsToJSON(value.dhcpOptions), + 'macAddress': value.macAddress, + 'macvtap': value.macvtap, + 'masquerade': value.masquerade, + 'model': value.model, + 'name': value.name, + 'passt': value.passt, + 'pciAddress': value.pciAddress, + 'ports': value.ports === undefined ? undefined : ((value.ports as Array).map(V1PortToJSON)), + 'slirp': value.slirp, + 'sriov': value.sriov, + 'state': value.state, + 'tag': value.tag, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1InterfaceBindingMigration.ts b/packages/types/src/generated/kubevirt/models/V1InterfaceBindingMigration.ts new file mode 100644 index 000000000..c332c0ed5 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1InterfaceBindingMigration.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1InterfaceBindingMigration + */ +export interface V1InterfaceBindingMigration { + /** + * Method defines a pre-defined migration methodology version: 1alphav1 + * @type {string} + * @memberof V1InterfaceBindingMigration + */ + method?: string; +} + +/** + * Check if a given object implements the V1InterfaceBindingMigration interface. + */ +export function instanceOfV1InterfaceBindingMigration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1InterfaceBindingMigrationFromJSON(json: any): V1InterfaceBindingMigration { + return V1InterfaceBindingMigrationFromJSONTyped(json, false); +} + +export function V1InterfaceBindingMigrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1InterfaceBindingMigration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'method': !exists(json, 'method') ? undefined : json['method'], + }; +} + +export function V1InterfaceBindingMigrationToJSON(value?: V1InterfaceBindingMigration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'method': value.method, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1InterfaceBindingPlugin.ts b/packages/types/src/generated/kubevirt/models/V1InterfaceBindingPlugin.ts new file mode 100644 index 000000000..29af6eed6 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1InterfaceBindingPlugin.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1InterfaceBindingMigration } from './V1InterfaceBindingMigration'; +import { + V1InterfaceBindingMigrationFromJSON, + V1InterfaceBindingMigrationFromJSONTyped, + V1InterfaceBindingMigrationToJSON, +} from './V1InterfaceBindingMigration'; + +/** + * + * @export + * @interface V1InterfaceBindingPlugin + */ +export interface V1InterfaceBindingPlugin { + /** + * DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: "tap". The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1 + * @type {string} + * @memberof V1InterfaceBindingPlugin + */ + domainAttachmentType?: string; + /** + * + * @type {V1InterfaceBindingMigration} + * @memberof V1InterfaceBindingPlugin + */ + migration?: V1InterfaceBindingMigration; + /** + * NetworkAttachmentDefinition references to a NetworkAttachmentDefinition CR object. Format: , /. If namespace is not specified, VMI namespace is assumed. version: 1alphav1 + * @type {string} + * @memberof V1InterfaceBindingPlugin + */ + networkAttachmentDefinition?: string; + /** + * SidecarImage references a container image that runs in the virt-launcher pod. The sidecar handles (libvirt) domain configuration and optional services. version: 1alphav1 + * @type {string} + * @memberof V1InterfaceBindingPlugin + */ + sidecarImage?: string; +} + +/** + * Check if a given object implements the V1InterfaceBindingPlugin interface. + */ +export function instanceOfV1InterfaceBindingPlugin(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1InterfaceBindingPluginFromJSON(json: any): V1InterfaceBindingPlugin { + return V1InterfaceBindingPluginFromJSONTyped(json, false); +} + +export function V1InterfaceBindingPluginFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1InterfaceBindingPlugin { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'domainAttachmentType': !exists(json, 'domainAttachmentType') ? undefined : json['domainAttachmentType'], + 'migration': !exists(json, 'migration') ? undefined : V1InterfaceBindingMigrationFromJSON(json['migration']), + 'networkAttachmentDefinition': !exists(json, 'networkAttachmentDefinition') ? undefined : json['networkAttachmentDefinition'], + 'sidecarImage': !exists(json, 'sidecarImage') ? undefined : json['sidecarImage'], + }; +} + +export function V1InterfaceBindingPluginToJSON(value?: V1InterfaceBindingPlugin | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'domainAttachmentType': value.domainAttachmentType, + 'migration': V1InterfaceBindingMigrationToJSON(value.migration), + 'networkAttachmentDefinition': value.networkAttachmentDefinition, + 'sidecarImage': value.sidecarImage, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1KSMConfiguration.ts b/packages/types/src/generated/kubevirt/models/V1KSMConfiguration.ts new file mode 100644 index 000000000..37fc95130 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1KSMConfiguration.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1LabelSelector } from './K8sIoApimachineryPkgApisMetaV1LabelSelector'; +import { + K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSON, + K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './K8sIoApimachineryPkgApisMetaV1LabelSelector'; + +/** + * KSMConfiguration holds information about KSM. + * @export + * @interface V1KSMConfiguration + */ +export interface V1KSMConfiguration { + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1LabelSelector} + * @memberof V1KSMConfiguration + */ + nodeLabelSelector?: K8sIoApimachineryPkgApisMetaV1LabelSelector; +} + +/** + * Check if a given object implements the V1KSMConfiguration interface. + */ +export function instanceOfV1KSMConfiguration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1KSMConfigurationFromJSON(json: any): V1KSMConfiguration { + return V1KSMConfigurationFromJSONTyped(json, false); +} + +export function V1KSMConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1KSMConfiguration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'nodeLabelSelector': !exists(json, 'nodeLabelSelector') ? undefined : K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['nodeLabelSelector']), + }; +} + +export function V1KSMConfigurationToJSON(value?: V1KSMConfiguration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'nodeLabelSelector': K8sIoApimachineryPkgApisMetaV1LabelSelectorToJSON(value.nodeLabelSelector), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1KVMTimer.ts b/packages/types/src/generated/kubevirt/models/V1KVMTimer.ts new file mode 100644 index 000000000..8123f011b --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1KVMTimer.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1KVMTimer + */ +export interface V1KVMTimer { + /** + * Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. + * @type {boolean} + * @memberof V1KVMTimer + */ + present?: boolean; +} + +/** + * Check if a given object implements the V1KVMTimer interface. + */ +export function instanceOfV1KVMTimer(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1KVMTimerFromJSON(json: any): V1KVMTimer { + return V1KVMTimerFromJSONTyped(json, false); +} + +export function V1KVMTimerFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1KVMTimer { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'present': !exists(json, 'present') ? undefined : json['present'], + }; +} + +export function V1KVMTimerToJSON(value?: V1KVMTimer | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'present': value.present, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1KernelBoot.ts b/packages/types/src/generated/kubevirt/models/V1KernelBoot.ts new file mode 100644 index 000000000..9ec800e3f --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1KernelBoot.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1KernelBootContainer } from './V1KernelBootContainer'; +import { + V1KernelBootContainerFromJSON, + V1KernelBootContainerFromJSONTyped, + V1KernelBootContainerToJSON, +} from './V1KernelBootContainer'; + +/** + * Represents the firmware blob used to assist in the kernel boot process. Used for setting the kernel, initrd and command line arguments + * @export + * @interface V1KernelBoot + */ +export interface V1KernelBoot { + /** + * + * @type {V1KernelBootContainer} + * @memberof V1KernelBoot + */ + container?: V1KernelBootContainer; + /** + * Arguments to be passed to the kernel at boot time + * @type {string} + * @memberof V1KernelBoot + */ + kernelArgs?: string; +} + +/** + * Check if a given object implements the V1KernelBoot interface. + */ +export function instanceOfV1KernelBoot(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1KernelBootFromJSON(json: any): V1KernelBoot { + return V1KernelBootFromJSONTyped(json, false); +} + +export function V1KernelBootFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1KernelBoot { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'container': !exists(json, 'container') ? undefined : V1KernelBootContainerFromJSON(json['container']), + 'kernelArgs': !exists(json, 'kernelArgs') ? undefined : json['kernelArgs'], + }; +} + +export function V1KernelBootToJSON(value?: V1KernelBoot | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'container': V1KernelBootContainerToJSON(value.container), + 'kernelArgs': value.kernelArgs, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1KernelBootContainer.ts b/packages/types/src/generated/kubevirt/models/V1KernelBootContainer.ts new file mode 100644 index 000000000..b225a8d15 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1KernelBootContainer.ts @@ -0,0 +1,115 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * If set, the VM will be booted from the defined kernel / initrd. + * @export + * @interface V1KernelBootContainer + */ +export interface V1KernelBootContainer { + /** + * Image that contains initrd / kernel files. + * @type {string} + * @memberof V1KernelBootContainer + */ + image: string; + /** + * Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * + * Possible enum values: + * - `"Always"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. + * - `"IfNotPresent"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. + * - `"Never"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present + * @type {string} + * @memberof V1KernelBootContainer + */ + imagePullPolicy?: V1KernelBootContainerImagePullPolicyEnum; + /** + * ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist. + * @type {string} + * @memberof V1KernelBootContainer + */ + imagePullSecret?: string; + /** + * the fully-qualified path to the ramdisk image in the host OS + * @type {string} + * @memberof V1KernelBootContainer + */ + initrdPath?: string; + /** + * The fully-qualified path to the kernel image in the host OS + * @type {string} + * @memberof V1KernelBootContainer + */ + kernelPath?: string; +} + + +/** + * @export + */ +export const V1KernelBootContainerImagePullPolicyEnum = { + Always: 'Always', + IfNotPresent: 'IfNotPresent', + Never: 'Never' +} as const; +export type V1KernelBootContainerImagePullPolicyEnum = typeof V1KernelBootContainerImagePullPolicyEnum[keyof typeof V1KernelBootContainerImagePullPolicyEnum]; + + +/** + * Check if a given object implements the V1KernelBootContainer interface. + */ +export function instanceOfV1KernelBootContainer(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "image" in value; + + return isInstance; +} + +export function V1KernelBootContainerFromJSON(json: any): V1KernelBootContainer { + return V1KernelBootContainerFromJSONTyped(json, false); +} + +export function V1KernelBootContainerFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1KernelBootContainer { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'image': json['image'], + 'imagePullPolicy': !exists(json, 'imagePullPolicy') ? undefined : json['imagePullPolicy'], + 'imagePullSecret': !exists(json, 'imagePullSecret') ? undefined : json['imagePullSecret'], + 'initrdPath': !exists(json, 'initrdPath') ? undefined : json['initrdPath'], + 'kernelPath': !exists(json, 'kernelPath') ? undefined : json['kernelPath'], + }; +} + +export function V1KernelBootContainerToJSON(value?: V1KernelBootContainer | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'image': value.image, + 'imagePullPolicy': value.imagePullPolicy, + 'imagePullSecret': value.imagePullSecret, + 'initrdPath': value.initrdPath, + 'kernelPath': value.kernelPath, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1KernelBootStatus.ts b/packages/types/src/generated/kubevirt/models/V1KernelBootStatus.ts new file mode 100644 index 000000000..dc5b98da7 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1KernelBootStatus.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1InitrdInfo } from './V1InitrdInfo'; +import { + V1InitrdInfoFromJSON, + V1InitrdInfoFromJSONTyped, + V1InitrdInfoToJSON, +} from './V1InitrdInfo'; +import type { V1KernelInfo } from './V1KernelInfo'; +import { + V1KernelInfoFromJSON, + V1KernelInfoFromJSONTyped, + V1KernelInfoToJSON, +} from './V1KernelInfo'; + +/** + * KernelBootStatus contains info about the kernelBootContainer + * @export + * @interface V1KernelBootStatus + */ +export interface V1KernelBootStatus { + /** + * + * @type {V1InitrdInfo} + * @memberof V1KernelBootStatus + */ + initrdInfo?: V1InitrdInfo; + /** + * + * @type {V1KernelInfo} + * @memberof V1KernelBootStatus + */ + kernelInfo?: V1KernelInfo; +} + +/** + * Check if a given object implements the V1KernelBootStatus interface. + */ +export function instanceOfV1KernelBootStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1KernelBootStatusFromJSON(json: any): V1KernelBootStatus { + return V1KernelBootStatusFromJSONTyped(json, false); +} + +export function V1KernelBootStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1KernelBootStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'initrdInfo': !exists(json, 'initrdInfo') ? undefined : V1InitrdInfoFromJSON(json['initrdInfo']), + 'kernelInfo': !exists(json, 'kernelInfo') ? undefined : V1KernelInfoFromJSON(json['kernelInfo']), + }; +} + +export function V1KernelBootStatusToJSON(value?: V1KernelBootStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'initrdInfo': V1InitrdInfoToJSON(value.initrdInfo), + 'kernelInfo': V1KernelInfoToJSON(value.kernelInfo), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1KernelInfo.ts b/packages/types/src/generated/kubevirt/models/V1KernelInfo.ts new file mode 100644 index 000000000..a02e84374 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1KernelInfo.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * KernelInfo show info about the kernel image + * @export + * @interface V1KernelInfo + */ +export interface V1KernelInfo { + /** + * Checksum is the checksum of the kernel image + * @type {number} + * @memberof V1KernelInfo + */ + checksum?: number; +} + +/** + * Check if a given object implements the V1KernelInfo interface. + */ +export function instanceOfV1KernelInfo(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1KernelInfoFromJSON(json: any): V1KernelInfo { + return V1KernelInfoFromJSONTyped(json, false); +} + +export function V1KernelInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1KernelInfo { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'checksum': !exists(json, 'checksum') ? undefined : json['checksum'], + }; +} + +export function V1KernelInfoToJSON(value?: V1KernelInfo | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'checksum': value.checksum, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1KubeVirt.ts b/packages/types/src/generated/kubevirt/models/V1KubeVirt.ts new file mode 100644 index 000000000..963816841 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1KubeVirt.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ObjectMeta } from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import type { V1KubeVirtSpec } from './V1KubeVirtSpec'; +import { + V1KubeVirtSpecFromJSON, + V1KubeVirtSpecFromJSONTyped, + V1KubeVirtSpecToJSON, +} from './V1KubeVirtSpec'; +import type { V1KubeVirtStatus } from './V1KubeVirtStatus'; +import { + V1KubeVirtStatusFromJSON, + V1KubeVirtStatusFromJSONTyped, + V1KubeVirtStatusToJSON, +} from './V1KubeVirtStatus'; + +/** + * KubeVirt represents the object deploying all KubeVirt resources + * @export + * @interface V1KubeVirt + */ +export interface V1KubeVirt { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1KubeVirt + */ + 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 + * @type {string} + * @memberof V1KubeVirt + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ObjectMeta} + * @memberof V1KubeVirt + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {V1KubeVirtSpec} + * @memberof V1KubeVirt + */ + spec: V1KubeVirtSpec; + /** + * + * @type {V1KubeVirtStatus} + * @memberof V1KubeVirt + */ + status?: V1KubeVirtStatus; +} + +/** + * Check if a given object implements the V1KubeVirt interface. + */ +export function instanceOfV1KubeVirt(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function V1KubeVirtFromJSON(json: any): V1KubeVirt { + return V1KubeVirtFromJSONTyped(json, false); +} + +export function V1KubeVirtFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1KubeVirt { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': V1KubeVirtSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : V1KubeVirtStatusFromJSON(json['status']), + }; +} + +export function V1KubeVirtToJSON(value?: V1KubeVirt | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': V1KubeVirtSpecToJSON(value.spec), + 'status': V1KubeVirtStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1KubeVirtCertificateRotateStrategy.ts b/packages/types/src/generated/kubevirt/models/V1KubeVirtCertificateRotateStrategy.ts new file mode 100644 index 000000000..f8735d1da --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1KubeVirtCertificateRotateStrategy.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1KubeVirtSelfSignConfiguration } from './V1KubeVirtSelfSignConfiguration'; +import { + V1KubeVirtSelfSignConfigurationFromJSON, + V1KubeVirtSelfSignConfigurationFromJSONTyped, + V1KubeVirtSelfSignConfigurationToJSON, +} from './V1KubeVirtSelfSignConfiguration'; + +/** + * + * @export + * @interface V1KubeVirtCertificateRotateStrategy + */ +export interface V1KubeVirtCertificateRotateStrategy { + /** + * + * @type {V1KubeVirtSelfSignConfiguration} + * @memberof V1KubeVirtCertificateRotateStrategy + */ + selfSigned?: V1KubeVirtSelfSignConfiguration; +} + +/** + * Check if a given object implements the V1KubeVirtCertificateRotateStrategy interface. + */ +export function instanceOfV1KubeVirtCertificateRotateStrategy(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1KubeVirtCertificateRotateStrategyFromJSON(json: any): V1KubeVirtCertificateRotateStrategy { + return V1KubeVirtCertificateRotateStrategyFromJSONTyped(json, false); +} + +export function V1KubeVirtCertificateRotateStrategyFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1KubeVirtCertificateRotateStrategy { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'selfSigned': !exists(json, 'selfSigned') ? undefined : V1KubeVirtSelfSignConfigurationFromJSON(json['selfSigned']), + }; +} + +export function V1KubeVirtCertificateRotateStrategyToJSON(value?: V1KubeVirtCertificateRotateStrategy | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'selfSigned': V1KubeVirtSelfSignConfigurationToJSON(value.selfSigned), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1KubeVirtCondition.ts b/packages/types/src/generated/kubevirt/models/V1KubeVirtCondition.ts new file mode 100644 index 000000000..91618ae3a --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1KubeVirtCondition.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * KubeVirtCondition represents a condition of a KubeVirt deployment + * @export + * @interface V1KubeVirtCondition + */ +export interface V1KubeVirtCondition { + /** + * + * @type {string} + * @memberof V1KubeVirtCondition + */ + message?: string; + /** + * + * @type {string} + * @memberof V1KubeVirtCondition + */ + reason?: string; + /** + * + * @type {string} + * @memberof V1KubeVirtCondition + */ + status: string; + /** + * + * @type {string} + * @memberof V1KubeVirtCondition + */ + type: string; +} + +/** + * Check if a given object implements the V1KubeVirtCondition interface. + */ +export function instanceOfV1KubeVirtCondition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "status" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function V1KubeVirtConditionFromJSON(json: any): V1KubeVirtCondition { + return V1KubeVirtConditionFromJSONTyped(json, false); +} + +export function V1KubeVirtConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1KubeVirtCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'status': json['status'], + 'type': json['type'], + }; +} + +export function V1KubeVirtConditionToJSON(value?: V1KubeVirtCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'message': value.message, + 'reason': value.reason, + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1KubeVirtConfiguration.ts b/packages/types/src/generated/kubevirt/models/V1KubeVirtConfiguration.ts new file mode 100644 index 000000000..1b6c2da66 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1KubeVirtConfiguration.ts @@ -0,0 +1,479 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1LabelSelector } from './K8sIoApimachineryPkgApisMetaV1LabelSelector'; +import { + K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSON, + K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './K8sIoApimachineryPkgApisMetaV1LabelSelector'; +import type { V1ArchConfiguration } from './V1ArchConfiguration'; +import { + V1ArchConfigurationFromJSON, + V1ArchConfigurationFromJSONTyped, + V1ArchConfigurationToJSON, +} from './V1ArchConfiguration'; +import type { V1DeveloperConfiguration } from './V1DeveloperConfiguration'; +import { + V1DeveloperConfigurationFromJSON, + V1DeveloperConfigurationFromJSONTyped, + V1DeveloperConfigurationToJSON, +} from './V1DeveloperConfiguration'; +import type { V1KSMConfiguration } from './V1KSMConfiguration'; +import { + V1KSMConfigurationFromJSON, + V1KSMConfigurationFromJSONTyped, + V1KSMConfigurationToJSON, +} from './V1KSMConfiguration'; +import type { V1LiveUpdateConfiguration } from './V1LiveUpdateConfiguration'; +import { + V1LiveUpdateConfigurationFromJSON, + V1LiveUpdateConfigurationFromJSONTyped, + V1LiveUpdateConfigurationToJSON, +} from './V1LiveUpdateConfiguration'; +import type { V1MediatedDevicesConfiguration } from './V1MediatedDevicesConfiguration'; +import { + V1MediatedDevicesConfigurationFromJSON, + V1MediatedDevicesConfigurationFromJSONTyped, + V1MediatedDevicesConfigurationToJSON, +} from './V1MediatedDevicesConfiguration'; +import type { V1MigrationConfiguration } from './V1MigrationConfiguration'; +import { + V1MigrationConfigurationFromJSON, + V1MigrationConfigurationFromJSONTyped, + V1MigrationConfigurationToJSON, +} from './V1MigrationConfiguration'; +import type { V1NetworkConfiguration } from './V1NetworkConfiguration'; +import { + V1NetworkConfigurationFromJSON, + V1NetworkConfigurationFromJSONTyped, + V1NetworkConfigurationToJSON, +} from './V1NetworkConfiguration'; +import type { V1PermittedHostDevices } from './V1PermittedHostDevices'; +import { + V1PermittedHostDevicesFromJSON, + V1PermittedHostDevicesFromJSONTyped, + V1PermittedHostDevicesToJSON, +} from './V1PermittedHostDevices'; +import type { V1ReloadableComponentConfiguration } from './V1ReloadableComponentConfiguration'; +import { + V1ReloadableComponentConfigurationFromJSON, + V1ReloadableComponentConfigurationFromJSONTyped, + V1ReloadableComponentConfigurationToJSON, +} from './V1ReloadableComponentConfiguration'; +import type { V1SMBiosConfiguration } from './V1SMBiosConfiguration'; +import { + V1SMBiosConfigurationFromJSON, + V1SMBiosConfigurationFromJSONTyped, + V1SMBiosConfigurationToJSON, +} from './V1SMBiosConfiguration'; +import type { V1SeccompConfiguration } from './V1SeccompConfiguration'; +import { + V1SeccompConfigurationFromJSON, + V1SeccompConfigurationFromJSONTyped, + V1SeccompConfigurationToJSON, +} from './V1SeccompConfiguration'; +import type { V1SupportContainerResources } from './V1SupportContainerResources'; +import { + V1SupportContainerResourcesFromJSON, + V1SupportContainerResourcesFromJSONTyped, + V1SupportContainerResourcesToJSON, +} from './V1SupportContainerResources'; +import type { V1TLSConfiguration } from './V1TLSConfiguration'; +import { + V1TLSConfigurationFromJSON, + V1TLSConfigurationFromJSONTyped, + V1TLSConfigurationToJSON, +} from './V1TLSConfiguration'; +import type { V1VirtualMachineOptions } from './V1VirtualMachineOptions'; +import { + V1VirtualMachineOptionsFromJSON, + V1VirtualMachineOptionsFromJSONTyped, + V1VirtualMachineOptionsToJSON, +} from './V1VirtualMachineOptions'; + +/** + * KubeVirtConfiguration holds all kubevirt configurations + * @export + * @interface V1KubeVirtConfiguration + */ +export interface V1KubeVirtConfiguration { + /** + * AdditionalGuestMemoryOverheadRatio can be used to increase the virtualization infrastructure overhead. This is useful, since the calculation of this overhead is not accurate and cannot be entirely known in advance. The ratio that is being set determines by which factor to increase the overhead calculated by Kubevirt. A higher ratio means that the VMs would be less compromised by node pressures, but would mean that fewer VMs could be scheduled to a node. If not set, the default is 1. + * @type {string} + * @memberof V1KubeVirtConfiguration + */ + additionalGuestMemoryOverheadRatio?: string; + /** + * + * @type {V1ReloadableComponentConfiguration} + * @memberof V1KubeVirtConfiguration + */ + apiConfiguration?: V1ReloadableComponentConfiguration; + /** + * + * @type {V1ArchConfiguration} + * @memberof V1KubeVirtConfiguration + */ + architectureConfiguration?: V1ArchConfiguration; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1LabelSelector} + * @memberof V1KubeVirtConfiguration + */ + autoCPULimitNamespaceLabelSelector?: K8sIoApimachineryPkgApisMetaV1LabelSelector; + /** + * + * @type {V1ReloadableComponentConfiguration} + * @memberof V1KubeVirtConfiguration + */ + controllerConfiguration?: V1ReloadableComponentConfiguration; + /** + * + * @type {string} + * @memberof V1KubeVirtConfiguration + */ + cpuModel?: string; + /** + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + * + * The serialization format is: + * + * ``` ::= + * + * (Note that may be empty, from the "" case in .) + * + * ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + * + * (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + * + * ::= m | "" | k | M | G | T | P | E + * + * (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + * + * ::= "e" | "E" ``` + * + * No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + * + * When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + * + * Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + * + * - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. + * + * The sign will be omitted unless the number is negative. + * + * Examples: + * + * - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" + * + * Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + * + * Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + * + * This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + * @type {string} + * @memberof V1KubeVirtConfiguration + */ + cpuRequest?: string; + /** + * + * @type {string} + * @memberof V1KubeVirtConfiguration + */ + defaultRuntimeClass?: string; + /** + * + * @type {V1DeveloperConfiguration} + * @memberof V1KubeVirtConfiguration + */ + developerConfiguration?: V1DeveloperConfiguration; + /** + * + * @type {Array} + * @memberof V1KubeVirtConfiguration + */ + emulatedMachines?: Array; + /** + * EvictionStrategy defines at the cluster level if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain. If the VirtualMachineInstance specific field is set it overrides the cluster level one. + * @type {string} + * @memberof V1KubeVirtConfiguration + */ + evictionStrategy?: string; + /** + * + * @type {V1ReloadableComponentConfiguration} + * @memberof V1KubeVirtConfiguration + */ + handlerConfiguration?: V1ReloadableComponentConfiguration; + /** + * Possible enum values: + * - `"Always"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. + * - `"IfNotPresent"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. + * - `"Never"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present + * @type {string} + * @memberof V1KubeVirtConfiguration + */ + imagePullPolicy?: V1KubeVirtConfigurationImagePullPolicyEnum; + /** + * + * @type {V1KSMConfiguration} + * @memberof V1KubeVirtConfiguration + */ + ksmConfiguration?: V1KSMConfiguration; + /** + * + * @type {V1LiveUpdateConfiguration} + * @memberof V1KubeVirtConfiguration + */ + liveUpdateConfiguration?: V1LiveUpdateConfiguration; + /** + * Deprecated. Use architectureConfiguration instead. + * @type {string} + * @memberof V1KubeVirtConfiguration + */ + machineType?: string; + /** + * + * @type {V1MediatedDevicesConfiguration} + * @memberof V1KubeVirtConfiguration + */ + mediatedDevicesConfiguration?: V1MediatedDevicesConfiguration; + /** + * + * @type {number} + * @memberof V1KubeVirtConfiguration + */ + memBalloonStatsPeriod?: number; + /** + * + * @type {V1MigrationConfiguration} + * @memberof V1KubeVirtConfiguration + */ + migrations?: V1MigrationConfiguration; + /** + * + * @type {string} + * @memberof V1KubeVirtConfiguration + */ + minCPUModel?: string; + /** + * + * @type {V1NetworkConfiguration} + * @memberof V1KubeVirtConfiguration + */ + network?: V1NetworkConfiguration; + /** + * + * @type {{ [key: string]: boolean; }} + * @memberof V1KubeVirtConfiguration + */ + obsoleteCPUModels?: { [key: string]: boolean; }; + /** + * + * @type {string} + * @memberof V1KubeVirtConfiguration + */ + ovmfPath?: string; + /** + * + * @type {V1PermittedHostDevices} + * @memberof V1KubeVirtConfiguration + */ + permittedHostDevices?: V1PermittedHostDevices; + /** + * + * @type {V1SeccompConfiguration} + * @memberof V1KubeVirtConfiguration + */ + seccompConfiguration?: V1SeccompConfiguration; + /** + * + * @type {string} + * @memberof V1KubeVirtConfiguration + */ + selinuxLauncherType?: string; + /** + * + * @type {V1SMBiosConfiguration} + * @memberof V1KubeVirtConfiguration + */ + smbios?: V1SMBiosConfiguration; + /** + * SupportContainerResources specifies the resource requirements for various types of supporting containers such as container disks/virtiofs/sidecars and hotplug attachment pods. If omitted a sensible default will be supplied. + * @type {Array} + * @memberof V1KubeVirtConfiguration + */ + supportContainerResources?: Array; + /** + * deprecated + * @type {Array} + * @memberof V1KubeVirtConfiguration + */ + supportedGuestAgentVersions?: Array; + /** + * + * @type {V1TLSConfiguration} + * @memberof V1KubeVirtConfiguration + */ + tlsConfiguration?: V1TLSConfiguration; + /** + * + * @type {number} + * @memberof V1KubeVirtConfiguration + */ + virtualMachineInstancesPerNode?: number; + /** + * + * @type {V1VirtualMachineOptions} + * @memberof V1KubeVirtConfiguration + */ + virtualMachineOptions?: V1VirtualMachineOptions; + /** + * VMRolloutStrategy defines how changes to a VM object propagate to its VMI + * @type {string} + * @memberof V1KubeVirtConfiguration + */ + vmRolloutStrategy?: string; + /** + * VMStateStorageClass is the name of the storage class to use for the PVCs created to preserve VM state, like TPM. The storage class must support RWX in filesystem mode. + * @type {string} + * @memberof V1KubeVirtConfiguration + */ + vmStateStorageClass?: string; + /** + * + * @type {V1ReloadableComponentConfiguration} + * @memberof V1KubeVirtConfiguration + */ + webhookConfiguration?: V1ReloadableComponentConfiguration; +} + + +/** + * @export + */ +export const V1KubeVirtConfigurationImagePullPolicyEnum = { + Always: 'Always', + IfNotPresent: 'IfNotPresent', + Never: 'Never' +} as const; +export type V1KubeVirtConfigurationImagePullPolicyEnum = typeof V1KubeVirtConfigurationImagePullPolicyEnum[keyof typeof V1KubeVirtConfigurationImagePullPolicyEnum]; + + +/** + * Check if a given object implements the V1KubeVirtConfiguration interface. + */ +export function instanceOfV1KubeVirtConfiguration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1KubeVirtConfigurationFromJSON(json: any): V1KubeVirtConfiguration { + return V1KubeVirtConfigurationFromJSONTyped(json, false); +} + +export function V1KubeVirtConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1KubeVirtConfiguration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'additionalGuestMemoryOverheadRatio': !exists(json, 'additionalGuestMemoryOverheadRatio') ? undefined : json['additionalGuestMemoryOverheadRatio'], + 'apiConfiguration': !exists(json, 'apiConfiguration') ? undefined : V1ReloadableComponentConfigurationFromJSON(json['apiConfiguration']), + 'architectureConfiguration': !exists(json, 'architectureConfiguration') ? undefined : V1ArchConfigurationFromJSON(json['architectureConfiguration']), + 'autoCPULimitNamespaceLabelSelector': !exists(json, 'autoCPULimitNamespaceLabelSelector') ? undefined : K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['autoCPULimitNamespaceLabelSelector']), + 'controllerConfiguration': !exists(json, 'controllerConfiguration') ? undefined : V1ReloadableComponentConfigurationFromJSON(json['controllerConfiguration']), + 'cpuModel': !exists(json, 'cpuModel') ? undefined : json['cpuModel'], + 'cpuRequest': !exists(json, 'cpuRequest') ? undefined : json['cpuRequest'], + 'defaultRuntimeClass': !exists(json, 'defaultRuntimeClass') ? undefined : json['defaultRuntimeClass'], + 'developerConfiguration': !exists(json, 'developerConfiguration') ? undefined : V1DeveloperConfigurationFromJSON(json['developerConfiguration']), + 'emulatedMachines': !exists(json, 'emulatedMachines') ? undefined : json['emulatedMachines'], + 'evictionStrategy': !exists(json, 'evictionStrategy') ? undefined : json['evictionStrategy'], + 'handlerConfiguration': !exists(json, 'handlerConfiguration') ? undefined : V1ReloadableComponentConfigurationFromJSON(json['handlerConfiguration']), + 'imagePullPolicy': !exists(json, 'imagePullPolicy') ? undefined : json['imagePullPolicy'], + 'ksmConfiguration': !exists(json, 'ksmConfiguration') ? undefined : V1KSMConfigurationFromJSON(json['ksmConfiguration']), + 'liveUpdateConfiguration': !exists(json, 'liveUpdateConfiguration') ? undefined : V1LiveUpdateConfigurationFromJSON(json['liveUpdateConfiguration']), + 'machineType': !exists(json, 'machineType') ? undefined : json['machineType'], + 'mediatedDevicesConfiguration': !exists(json, 'mediatedDevicesConfiguration') ? undefined : V1MediatedDevicesConfigurationFromJSON(json['mediatedDevicesConfiguration']), + 'memBalloonStatsPeriod': !exists(json, 'memBalloonStatsPeriod') ? undefined : json['memBalloonStatsPeriod'], + 'migrations': !exists(json, 'migrations') ? undefined : V1MigrationConfigurationFromJSON(json['migrations']), + 'minCPUModel': !exists(json, 'minCPUModel') ? undefined : json['minCPUModel'], + 'network': !exists(json, 'network') ? undefined : V1NetworkConfigurationFromJSON(json['network']), + 'obsoleteCPUModels': !exists(json, 'obsoleteCPUModels') ? undefined : json['obsoleteCPUModels'], + 'ovmfPath': !exists(json, 'ovmfPath') ? undefined : json['ovmfPath'], + 'permittedHostDevices': !exists(json, 'permittedHostDevices') ? undefined : V1PermittedHostDevicesFromJSON(json['permittedHostDevices']), + 'seccompConfiguration': !exists(json, 'seccompConfiguration') ? undefined : V1SeccompConfigurationFromJSON(json['seccompConfiguration']), + 'selinuxLauncherType': !exists(json, 'selinuxLauncherType') ? undefined : json['selinuxLauncherType'], + 'smbios': !exists(json, 'smbios') ? undefined : V1SMBiosConfigurationFromJSON(json['smbios']), + 'supportContainerResources': !exists(json, 'supportContainerResources') ? undefined : ((json['supportContainerResources'] as Array).map(V1SupportContainerResourcesFromJSON)), + 'supportedGuestAgentVersions': !exists(json, 'supportedGuestAgentVersions') ? undefined : json['supportedGuestAgentVersions'], + 'tlsConfiguration': !exists(json, 'tlsConfiguration') ? undefined : V1TLSConfigurationFromJSON(json['tlsConfiguration']), + 'virtualMachineInstancesPerNode': !exists(json, 'virtualMachineInstancesPerNode') ? undefined : json['virtualMachineInstancesPerNode'], + 'virtualMachineOptions': !exists(json, 'virtualMachineOptions') ? undefined : V1VirtualMachineOptionsFromJSON(json['virtualMachineOptions']), + 'vmRolloutStrategy': !exists(json, 'vmRolloutStrategy') ? undefined : json['vmRolloutStrategy'], + 'vmStateStorageClass': !exists(json, 'vmStateStorageClass') ? undefined : json['vmStateStorageClass'], + 'webhookConfiguration': !exists(json, 'webhookConfiguration') ? undefined : V1ReloadableComponentConfigurationFromJSON(json['webhookConfiguration']), + }; +} + +export function V1KubeVirtConfigurationToJSON(value?: V1KubeVirtConfiguration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'additionalGuestMemoryOverheadRatio': value.additionalGuestMemoryOverheadRatio, + 'apiConfiguration': V1ReloadableComponentConfigurationToJSON(value.apiConfiguration), + 'architectureConfiguration': V1ArchConfigurationToJSON(value.architectureConfiguration), + 'autoCPULimitNamespaceLabelSelector': K8sIoApimachineryPkgApisMetaV1LabelSelectorToJSON(value.autoCPULimitNamespaceLabelSelector), + 'controllerConfiguration': V1ReloadableComponentConfigurationToJSON(value.controllerConfiguration), + 'cpuModel': value.cpuModel, + 'cpuRequest': value.cpuRequest, + 'defaultRuntimeClass': value.defaultRuntimeClass, + 'developerConfiguration': V1DeveloperConfigurationToJSON(value.developerConfiguration), + 'emulatedMachines': value.emulatedMachines, + 'evictionStrategy': value.evictionStrategy, + 'handlerConfiguration': V1ReloadableComponentConfigurationToJSON(value.handlerConfiguration), + 'imagePullPolicy': value.imagePullPolicy, + 'ksmConfiguration': V1KSMConfigurationToJSON(value.ksmConfiguration), + 'liveUpdateConfiguration': V1LiveUpdateConfigurationToJSON(value.liveUpdateConfiguration), + 'machineType': value.machineType, + 'mediatedDevicesConfiguration': V1MediatedDevicesConfigurationToJSON(value.mediatedDevicesConfiguration), + 'memBalloonStatsPeriod': value.memBalloonStatsPeriod, + 'migrations': V1MigrationConfigurationToJSON(value.migrations), + 'minCPUModel': value.minCPUModel, + 'network': V1NetworkConfigurationToJSON(value.network), + 'obsoleteCPUModels': value.obsoleteCPUModels, + 'ovmfPath': value.ovmfPath, + 'permittedHostDevices': V1PermittedHostDevicesToJSON(value.permittedHostDevices), + 'seccompConfiguration': V1SeccompConfigurationToJSON(value.seccompConfiguration), + 'selinuxLauncherType': value.selinuxLauncherType, + 'smbios': V1SMBiosConfigurationToJSON(value.smbios), + 'supportContainerResources': value.supportContainerResources === undefined ? undefined : ((value.supportContainerResources as Array).map(V1SupportContainerResourcesToJSON)), + 'supportedGuestAgentVersions': value.supportedGuestAgentVersions, + 'tlsConfiguration': V1TLSConfigurationToJSON(value.tlsConfiguration), + 'virtualMachineInstancesPerNode': value.virtualMachineInstancesPerNode, + 'virtualMachineOptions': V1VirtualMachineOptionsToJSON(value.virtualMachineOptions), + 'vmRolloutStrategy': value.vmRolloutStrategy, + 'vmStateStorageClass': value.vmStateStorageClass, + 'webhookConfiguration': V1ReloadableComponentConfigurationToJSON(value.webhookConfiguration), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1KubeVirtList.ts b/packages/types/src/generated/kubevirt/models/V1KubeVirtList.ts new file mode 100644 index 000000000..18adc1233 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1KubeVirtList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ListMeta } from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ListMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import type { V1KubeVirt } from './V1KubeVirt'; +import { + V1KubeVirtFromJSON, + V1KubeVirtFromJSONTyped, + V1KubeVirtToJSON, +} from './V1KubeVirt'; + +/** + * KubeVirtList is a list of KubeVirts + * @export + * @interface V1KubeVirtList + */ +export interface V1KubeVirtList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1KubeVirtList + */ + apiVersion?: string; + /** + * + * @type {Array} + * @memberof V1KubeVirtList + */ + 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 + * @type {string} + * @memberof V1KubeVirtList + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ListMeta} + * @memberof V1KubeVirtList + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the V1KubeVirtList interface. + */ +export function instanceOfV1KubeVirtList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function V1KubeVirtListFromJSON(json: any): V1KubeVirtList { + return V1KubeVirtListFromJSONTyped(json, false); +} + +export function V1KubeVirtListFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1KubeVirtList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(V1KubeVirtFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function V1KubeVirtListToJSON(value?: V1KubeVirtList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(V1KubeVirtToJSON)), + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1KubeVirtSelfSignConfiguration.ts b/packages/types/src/generated/kubevirt/models/V1KubeVirtSelfSignConfiguration.ts new file mode 100644 index 000000000..2fa0e7ab9 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1KubeVirtSelfSignConfiguration.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1CertConfig } from './V1CertConfig'; +import { + V1CertConfigFromJSON, + V1CertConfigFromJSONTyped, + V1CertConfigToJSON, +} from './V1CertConfig'; + +/** + * + * @export + * @interface V1KubeVirtSelfSignConfiguration + */ +export interface V1KubeVirtSelfSignConfiguration { + /** + * + * @type {V1CertConfig} + * @memberof V1KubeVirtSelfSignConfiguration + */ + ca?: V1CertConfig; + /** + * Duration is a wrapper around time.Duration which supports correct marshaling to YAML and JSON. In particular, it marshals into strings, which can be used as map keys in json. + * @type {string} + * @memberof V1KubeVirtSelfSignConfiguration + */ + caOverlapInterval?: string; + /** + * Duration is a wrapper around time.Duration which supports correct marshaling to YAML and JSON. In particular, it marshals into strings, which can be used as map keys in json. + * @type {string} + * @memberof V1KubeVirtSelfSignConfiguration + */ + caRotateInterval?: string; + /** + * Duration is a wrapper around time.Duration which supports correct marshaling to YAML and JSON. In particular, it marshals into strings, which can be used as map keys in json. + * @type {string} + * @memberof V1KubeVirtSelfSignConfiguration + */ + certRotateInterval?: string; + /** + * + * @type {V1CertConfig} + * @memberof V1KubeVirtSelfSignConfiguration + */ + server?: V1CertConfig; +} + +/** + * Check if a given object implements the V1KubeVirtSelfSignConfiguration interface. + */ +export function instanceOfV1KubeVirtSelfSignConfiguration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1KubeVirtSelfSignConfigurationFromJSON(json: any): V1KubeVirtSelfSignConfiguration { + return V1KubeVirtSelfSignConfigurationFromJSONTyped(json, false); +} + +export function V1KubeVirtSelfSignConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1KubeVirtSelfSignConfiguration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'ca': !exists(json, 'ca') ? undefined : V1CertConfigFromJSON(json['ca']), + 'caOverlapInterval': !exists(json, 'caOverlapInterval') ? undefined : json['caOverlapInterval'], + 'caRotateInterval': !exists(json, 'caRotateInterval') ? undefined : json['caRotateInterval'], + 'certRotateInterval': !exists(json, 'certRotateInterval') ? undefined : json['certRotateInterval'], + 'server': !exists(json, 'server') ? undefined : V1CertConfigFromJSON(json['server']), + }; +} + +export function V1KubeVirtSelfSignConfigurationToJSON(value?: V1KubeVirtSelfSignConfiguration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ca': V1CertConfigToJSON(value.ca), + 'caOverlapInterval': value.caOverlapInterval, + 'caRotateInterval': value.caRotateInterval, + 'certRotateInterval': value.certRotateInterval, + 'server': V1CertConfigToJSON(value.server), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1KubeVirtSpec.ts b/packages/types/src/generated/kubevirt/models/V1KubeVirtSpec.ts new file mode 100644 index 000000000..f2ba049c5 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1KubeVirtSpec.ts @@ -0,0 +1,249 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1LocalObjectReference } from './K8sIoApiCoreV1LocalObjectReference'; +import { + K8sIoApiCoreV1LocalObjectReferenceFromJSON, + K8sIoApiCoreV1LocalObjectReferenceFromJSONTyped, + K8sIoApiCoreV1LocalObjectReferenceToJSON, +} from './K8sIoApiCoreV1LocalObjectReference'; +import type { V1ComponentConfig } from './V1ComponentConfig'; +import { + V1ComponentConfigFromJSON, + V1ComponentConfigFromJSONTyped, + V1ComponentConfigToJSON, +} from './V1ComponentConfig'; +import type { V1CustomizeComponents } from './V1CustomizeComponents'; +import { + V1CustomizeComponentsFromJSON, + V1CustomizeComponentsFromJSONTyped, + V1CustomizeComponentsToJSON, +} from './V1CustomizeComponents'; +import type { V1KubeVirtCertificateRotateStrategy } from './V1KubeVirtCertificateRotateStrategy'; +import { + V1KubeVirtCertificateRotateStrategyFromJSON, + V1KubeVirtCertificateRotateStrategyFromJSONTyped, + V1KubeVirtCertificateRotateStrategyToJSON, +} from './V1KubeVirtCertificateRotateStrategy'; +import type { V1KubeVirtConfiguration } from './V1KubeVirtConfiguration'; +import { + V1KubeVirtConfigurationFromJSON, + V1KubeVirtConfigurationFromJSONTyped, + V1KubeVirtConfigurationToJSON, +} from './V1KubeVirtConfiguration'; +import type { V1KubeVirtWorkloadUpdateStrategy } from './V1KubeVirtWorkloadUpdateStrategy'; +import { + V1KubeVirtWorkloadUpdateStrategyFromJSON, + V1KubeVirtWorkloadUpdateStrategyFromJSONTyped, + V1KubeVirtWorkloadUpdateStrategyToJSON, +} from './V1KubeVirtWorkloadUpdateStrategy'; + +/** + * + * @export + * @interface V1KubeVirtSpec + */ +export interface V1KubeVirtSpec { + /** + * + * @type {V1KubeVirtCertificateRotateStrategy} + * @memberof V1KubeVirtSpec + */ + certificateRotateStrategy?: V1KubeVirtCertificateRotateStrategy; + /** + * + * @type {V1KubeVirtConfiguration} + * @memberof V1KubeVirtSpec + */ + _configuration?: V1KubeVirtConfiguration; + /** + * + * @type {V1CustomizeComponents} + * @memberof V1KubeVirtSpec + */ + customizeComponents?: V1CustomizeComponents; + /** + * The ImagePullPolicy to use. + * + * Possible enum values: + * - `"Always"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. + * - `"IfNotPresent"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. + * - `"Never"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present + * @type {string} + * @memberof V1KubeVirtSpec + */ + imagePullPolicy?: V1KubeVirtSpecImagePullPolicyEnum; + /** + * The imagePullSecrets to pull the container images from Defaults to none + * @type {Array} + * @memberof V1KubeVirtSpec + */ + imagePullSecrets?: Array; + /** + * The image registry to pull the container images from Defaults to the same registry the operator's container image is pulled from. + * @type {string} + * @memberof V1KubeVirtSpec + */ + imageRegistry?: string; + /** + * The image tag to use for the continer images installed. Defaults to the same tag as the operator's container image. + * @type {string} + * @memberof V1KubeVirtSpec + */ + imageTag?: string; + /** + * + * @type {V1ComponentConfig} + * @memberof V1KubeVirtSpec + */ + infra?: V1ComponentConfig; + /** + * The name of the Prometheus service account that needs read-access to KubeVirt endpoints Defaults to prometheus-k8s + * @type {string} + * @memberof V1KubeVirtSpec + */ + monitorAccount?: string; + /** + * The namespace Prometheus is deployed in Defaults to openshift-monitor + * @type {string} + * @memberof V1KubeVirtSpec + */ + monitorNamespace?: string; + /** + * Designate the apps.kubevirt.io/component label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductComponent is not specified, the component label default value is kubevirt. + * @type {string} + * @memberof V1KubeVirtSpec + */ + productComponent?: string; + /** + * Designate the apps.kubevirt.io/part-of label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductName is not specified, the part-of label will be omitted. + * @type {string} + * @memberof V1KubeVirtSpec + */ + productName?: string; + /** + * Designate the apps.kubevirt.io/version label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductVersion is not specified, KubeVirt's version will be used. + * @type {string} + * @memberof V1KubeVirtSpec + */ + productVersion?: string; + /** + * The namespace the service monitor will be deployed + * When ServiceMonitorNamespace is set, then we'll install the service monitor object in that namespace + * otherwise we will use the monitoring namespace. + * @type {string} + * @memberof V1KubeVirtSpec + */ + serviceMonitorNamespace?: string; + /** + * Specifies if kubevirt can be deleted if workloads are still present. This is mainly a precaution to avoid accidental data loss + * @type {string} + * @memberof V1KubeVirtSpec + */ + uninstallStrategy?: string; + /** + * + * @type {V1KubeVirtWorkloadUpdateStrategy} + * @memberof V1KubeVirtSpec + */ + workloadUpdateStrategy?: V1KubeVirtWorkloadUpdateStrategy; + /** + * + * @type {V1ComponentConfig} + * @memberof V1KubeVirtSpec + */ + workloads?: V1ComponentConfig; +} + + +/** + * @export + */ +export const V1KubeVirtSpecImagePullPolicyEnum = { + Always: 'Always', + IfNotPresent: 'IfNotPresent', + Never: 'Never' +} as const; +export type V1KubeVirtSpecImagePullPolicyEnum = typeof V1KubeVirtSpecImagePullPolicyEnum[keyof typeof V1KubeVirtSpecImagePullPolicyEnum]; + + +/** + * Check if a given object implements the V1KubeVirtSpec interface. + */ +export function instanceOfV1KubeVirtSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1KubeVirtSpecFromJSON(json: any): V1KubeVirtSpec { + return V1KubeVirtSpecFromJSONTyped(json, false); +} + +export function V1KubeVirtSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1KubeVirtSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'certificateRotateStrategy': !exists(json, 'certificateRotateStrategy') ? undefined : V1KubeVirtCertificateRotateStrategyFromJSON(json['certificateRotateStrategy']), + '_configuration': !exists(json, 'configuration') ? undefined : V1KubeVirtConfigurationFromJSON(json['configuration']), + 'customizeComponents': !exists(json, 'customizeComponents') ? undefined : V1CustomizeComponentsFromJSON(json['customizeComponents']), + 'imagePullPolicy': !exists(json, 'imagePullPolicy') ? undefined : json['imagePullPolicy'], + 'imagePullSecrets': !exists(json, 'imagePullSecrets') ? undefined : ((json['imagePullSecrets'] as Array).map(K8sIoApiCoreV1LocalObjectReferenceFromJSON)), + 'imageRegistry': !exists(json, 'imageRegistry') ? undefined : json['imageRegistry'], + 'imageTag': !exists(json, 'imageTag') ? undefined : json['imageTag'], + 'infra': !exists(json, 'infra') ? undefined : V1ComponentConfigFromJSON(json['infra']), + 'monitorAccount': !exists(json, 'monitorAccount') ? undefined : json['monitorAccount'], + 'monitorNamespace': !exists(json, 'monitorNamespace') ? undefined : json['monitorNamespace'], + 'productComponent': !exists(json, 'productComponent') ? undefined : json['productComponent'], + 'productName': !exists(json, 'productName') ? undefined : json['productName'], + 'productVersion': !exists(json, 'productVersion') ? undefined : json['productVersion'], + 'serviceMonitorNamespace': !exists(json, 'serviceMonitorNamespace') ? undefined : json['serviceMonitorNamespace'], + 'uninstallStrategy': !exists(json, 'uninstallStrategy') ? undefined : json['uninstallStrategy'], + 'workloadUpdateStrategy': !exists(json, 'workloadUpdateStrategy') ? undefined : V1KubeVirtWorkloadUpdateStrategyFromJSON(json['workloadUpdateStrategy']), + 'workloads': !exists(json, 'workloads') ? undefined : V1ComponentConfigFromJSON(json['workloads']), + }; +} + +export function V1KubeVirtSpecToJSON(value?: V1KubeVirtSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'certificateRotateStrategy': V1KubeVirtCertificateRotateStrategyToJSON(value.certificateRotateStrategy), + 'configuration': V1KubeVirtConfigurationToJSON(value._configuration), + 'customizeComponents': V1CustomizeComponentsToJSON(value.customizeComponents), + 'imagePullPolicy': value.imagePullPolicy, + 'imagePullSecrets': value.imagePullSecrets === undefined ? undefined : ((value.imagePullSecrets as Array).map(K8sIoApiCoreV1LocalObjectReferenceToJSON)), + 'imageRegistry': value.imageRegistry, + 'imageTag': value.imageTag, + 'infra': V1ComponentConfigToJSON(value.infra), + 'monitorAccount': value.monitorAccount, + 'monitorNamespace': value.monitorNamespace, + 'productComponent': value.productComponent, + 'productName': value.productName, + 'productVersion': value.productVersion, + 'serviceMonitorNamespace': value.serviceMonitorNamespace, + 'uninstallStrategy': value.uninstallStrategy, + 'workloadUpdateStrategy': V1KubeVirtWorkloadUpdateStrategyToJSON(value.workloadUpdateStrategy), + 'workloads': V1ComponentConfigToJSON(value.workloads), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1KubeVirtStatus.ts b/packages/types/src/generated/kubevirt/models/V1KubeVirtStatus.ts new file mode 100644 index 000000000..6c0125384 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1KubeVirtStatus.ts @@ -0,0 +1,190 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1GenerationStatus } from './V1GenerationStatus'; +import { + V1GenerationStatusFromJSON, + V1GenerationStatusFromJSONTyped, + V1GenerationStatusToJSON, +} from './V1GenerationStatus'; +import type { V1KubeVirtCondition } from './V1KubeVirtCondition'; +import { + V1KubeVirtConditionFromJSON, + V1KubeVirtConditionFromJSONTyped, + V1KubeVirtConditionToJSON, +} from './V1KubeVirtCondition'; + +/** + * KubeVirtStatus represents information pertaining to a KubeVirt deployment. + * @export + * @interface V1KubeVirtStatus + */ +export interface V1KubeVirtStatus { + /** + * + * @type {Array} + * @memberof V1KubeVirtStatus + */ + conditions?: Array; + /** + * + * @type {string} + * @memberof V1KubeVirtStatus + */ + defaultArchitecture?: string; + /** + * + * @type {Array} + * @memberof V1KubeVirtStatus + */ + generations?: Array; + /** + * + * @type {string} + * @memberof V1KubeVirtStatus + */ + observedDeploymentConfig?: string; + /** + * + * @type {string} + * @memberof V1KubeVirtStatus + */ + observedDeploymentID?: string; + /** + * + * @type {number} + * @memberof V1KubeVirtStatus + */ + observedGeneration?: number; + /** + * + * @type {string} + * @memberof V1KubeVirtStatus + */ + observedKubeVirtRegistry?: string; + /** + * + * @type {string} + * @memberof V1KubeVirtStatus + */ + observedKubeVirtVersion?: string; + /** + * + * @type {string} + * @memberof V1KubeVirtStatus + */ + operatorVersion?: string; + /** + * + * @type {number} + * @memberof V1KubeVirtStatus + */ + outdatedVirtualMachineInstanceWorkloads?: number; + /** + * + * @type {string} + * @memberof V1KubeVirtStatus + */ + phase?: string; + /** + * + * @type {string} + * @memberof V1KubeVirtStatus + */ + targetDeploymentConfig?: string; + /** + * + * @type {string} + * @memberof V1KubeVirtStatus + */ + targetDeploymentID?: string; + /** + * + * @type {string} + * @memberof V1KubeVirtStatus + */ + targetKubeVirtRegistry?: string; + /** + * + * @type {string} + * @memberof V1KubeVirtStatus + */ + targetKubeVirtVersion?: string; +} + +/** + * Check if a given object implements the V1KubeVirtStatus interface. + */ +export function instanceOfV1KubeVirtStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1KubeVirtStatusFromJSON(json: any): V1KubeVirtStatus { + return V1KubeVirtStatusFromJSONTyped(json, false); +} + +export function V1KubeVirtStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1KubeVirtStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(V1KubeVirtConditionFromJSON)), + 'defaultArchitecture': !exists(json, 'defaultArchitecture') ? undefined : json['defaultArchitecture'], + 'generations': !exists(json, 'generations') ? undefined : ((json['generations'] as Array).map(V1GenerationStatusFromJSON)), + 'observedDeploymentConfig': !exists(json, 'observedDeploymentConfig') ? undefined : json['observedDeploymentConfig'], + 'observedDeploymentID': !exists(json, 'observedDeploymentID') ? undefined : json['observedDeploymentID'], + 'observedGeneration': !exists(json, 'observedGeneration') ? undefined : json['observedGeneration'], + 'observedKubeVirtRegistry': !exists(json, 'observedKubeVirtRegistry') ? undefined : json['observedKubeVirtRegistry'], + 'observedKubeVirtVersion': !exists(json, 'observedKubeVirtVersion') ? undefined : json['observedKubeVirtVersion'], + 'operatorVersion': !exists(json, 'operatorVersion') ? undefined : json['operatorVersion'], + 'outdatedVirtualMachineInstanceWorkloads': !exists(json, 'outdatedVirtualMachineInstanceWorkloads') ? undefined : json['outdatedVirtualMachineInstanceWorkloads'], + 'phase': !exists(json, 'phase') ? undefined : json['phase'], + 'targetDeploymentConfig': !exists(json, 'targetDeploymentConfig') ? undefined : json['targetDeploymentConfig'], + 'targetDeploymentID': !exists(json, 'targetDeploymentID') ? undefined : json['targetDeploymentID'], + 'targetKubeVirtRegistry': !exists(json, 'targetKubeVirtRegistry') ? undefined : json['targetKubeVirtRegistry'], + 'targetKubeVirtVersion': !exists(json, 'targetKubeVirtVersion') ? undefined : json['targetKubeVirtVersion'], + }; +} + +export function V1KubeVirtStatusToJSON(value?: V1KubeVirtStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(V1KubeVirtConditionToJSON)), + 'defaultArchitecture': value.defaultArchitecture, + 'generations': value.generations === undefined ? undefined : ((value.generations as Array).map(V1GenerationStatusToJSON)), + 'observedDeploymentConfig': value.observedDeploymentConfig, + 'observedDeploymentID': value.observedDeploymentID, + 'observedGeneration': value.observedGeneration, + 'observedKubeVirtRegistry': value.observedKubeVirtRegistry, + 'observedKubeVirtVersion': value.observedKubeVirtVersion, + 'operatorVersion': value.operatorVersion, + 'outdatedVirtualMachineInstanceWorkloads': value.outdatedVirtualMachineInstanceWorkloads, + 'phase': value.phase, + 'targetDeploymentConfig': value.targetDeploymentConfig, + 'targetDeploymentID': value.targetDeploymentID, + 'targetKubeVirtRegistry': value.targetKubeVirtRegistry, + 'targetKubeVirtVersion': value.targetKubeVirtVersion, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1KubeVirtWorkloadUpdateStrategy.ts b/packages/types/src/generated/kubevirt/models/V1KubeVirtWorkloadUpdateStrategy.ts new file mode 100644 index 000000000..58330bc39 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1KubeVirtWorkloadUpdateStrategy.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * KubeVirtWorkloadUpdateStrategy defines options related to updating a KubeVirt install + * @export + * @interface V1KubeVirtWorkloadUpdateStrategy + */ +export interface V1KubeVirtWorkloadUpdateStrategy { + /** + * Duration is a wrapper around time.Duration which supports correct marshaling to YAML and JSON. In particular, it marshals into strings, which can be used as map keys in json. + * @type {string} + * @memberof V1KubeVirtWorkloadUpdateStrategy + */ + batchEvictionInterval?: string; + /** + * BatchEvictionSize Represents the number of VMIs that can be forced updated per the BatchShutdownInteral interval + * + * Defaults to 10 + * @type {number} + * @memberof V1KubeVirtWorkloadUpdateStrategy + */ + batchEvictionSize?: number; + /** + * WorkloadUpdateMethods defines the methods that can be used to disrupt workloads during automated workload updates. When multiple methods are present, the least disruptive method takes precedence over more disruptive methods. For example if both LiveMigrate and Shutdown methods are listed, only VMs which are not live migratable will be restarted/shutdown + * + * An empty list defaults to no automated workload updating + * @type {Array} + * @memberof V1KubeVirtWorkloadUpdateStrategy + */ + workloadUpdateMethods?: Array; +} + +/** + * Check if a given object implements the V1KubeVirtWorkloadUpdateStrategy interface. + */ +export function instanceOfV1KubeVirtWorkloadUpdateStrategy(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1KubeVirtWorkloadUpdateStrategyFromJSON(json: any): V1KubeVirtWorkloadUpdateStrategy { + return V1KubeVirtWorkloadUpdateStrategyFromJSONTyped(json, false); +} + +export function V1KubeVirtWorkloadUpdateStrategyFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1KubeVirtWorkloadUpdateStrategy { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'batchEvictionInterval': !exists(json, 'batchEvictionInterval') ? undefined : json['batchEvictionInterval'], + 'batchEvictionSize': !exists(json, 'batchEvictionSize') ? undefined : json['batchEvictionSize'], + 'workloadUpdateMethods': !exists(json, 'workloadUpdateMethods') ? undefined : json['workloadUpdateMethods'], + }; +} + +export function V1KubeVirtWorkloadUpdateStrategyToJSON(value?: V1KubeVirtWorkloadUpdateStrategy | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'batchEvictionInterval': value.batchEvictionInterval, + 'batchEvictionSize': value.batchEvictionSize, + 'workloadUpdateMethods': value.workloadUpdateMethods, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1LaunchSecurity.ts b/packages/types/src/generated/kubevirt/models/V1LaunchSecurity.ts new file mode 100644 index 000000000..4dcf7b653 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1LaunchSecurity.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1SEV } from './V1SEV'; +import { + V1SEVFromJSON, + V1SEVFromJSONTyped, + V1SEVToJSON, +} from './V1SEV'; + +/** + * + * @export + * @interface V1LaunchSecurity + */ +export interface V1LaunchSecurity { + /** + * + * @type {V1SEV} + * @memberof V1LaunchSecurity + */ + sev?: V1SEV; +} + +/** + * Check if a given object implements the V1LaunchSecurity interface. + */ +export function instanceOfV1LaunchSecurity(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1LaunchSecurityFromJSON(json: any): V1LaunchSecurity { + return V1LaunchSecurityFromJSONTyped(json, false); +} + +export function V1LaunchSecurityFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1LaunchSecurity { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'sev': !exists(json, 'sev') ? undefined : V1SEVFromJSON(json['sev']), + }; +} + +export function V1LaunchSecurityToJSON(value?: V1LaunchSecurity | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'sev': V1SEVToJSON(value.sev), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1LiveUpdateConfiguration.ts b/packages/types/src/generated/kubevirt/models/V1LiveUpdateConfiguration.ts new file mode 100644 index 000000000..4b1e8abcb --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1LiveUpdateConfiguration.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1LiveUpdateConfiguration + */ +export interface V1LiveUpdateConfiguration { + /** + * MaxCpuSockets holds the maximum amount of sockets that can be hotplugged + * @type {number} + * @memberof V1LiveUpdateConfiguration + */ + maxCpuSockets?: number; + /** + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + * + * The serialization format is: + * + * ``` ::= + * + * (Note that may be empty, from the "" case in .) + * + * ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + * + * (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + * + * ::= m | "" | k | M | G | T | P | E + * + * (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + * + * ::= "e" | "E" ``` + * + * No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + * + * When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + * + * Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + * + * - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. + * + * The sign will be omitted unless the number is negative. + * + * Examples: + * + * - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" + * + * Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + * + * Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + * + * This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + * @type {string} + * @memberof V1LiveUpdateConfiguration + */ + maxGuest?: string; + /** + * MaxHotplugRatio is the ratio used to define the max amount of a hotplug resource that can be made available to a VM when the specific Max* setting is not defined (MaxCpuSockets, MaxGuest) Example: VM is configured with 512Mi of guest memory, if MaxGuest is not defined and MaxHotplugRatio is 2 then MaxGuest = 1Gi defaults to 4 + * @type {number} + * @memberof V1LiveUpdateConfiguration + */ + maxHotplugRatio?: number; +} + +/** + * Check if a given object implements the V1LiveUpdateConfiguration interface. + */ +export function instanceOfV1LiveUpdateConfiguration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1LiveUpdateConfigurationFromJSON(json: any): V1LiveUpdateConfiguration { + return V1LiveUpdateConfigurationFromJSONTyped(json, false); +} + +export function V1LiveUpdateConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1LiveUpdateConfiguration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'maxCpuSockets': !exists(json, 'maxCpuSockets') ? undefined : json['maxCpuSockets'], + 'maxGuest': !exists(json, 'maxGuest') ? undefined : json['maxGuest'], + 'maxHotplugRatio': !exists(json, 'maxHotplugRatio') ? undefined : json['maxHotplugRatio'], + }; +} + +export function V1LiveUpdateConfigurationToJSON(value?: V1LiveUpdateConfiguration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'maxCpuSockets': value.maxCpuSockets, + 'maxGuest': value.maxGuest, + 'maxHotplugRatio': value.maxHotplugRatio, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1LogVerbosity.ts b/packages/types/src/generated/kubevirt/models/V1LogVerbosity.ts new file mode 100644 index 000000000..3396506c9 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1LogVerbosity.ts @@ -0,0 +1,105 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * LogVerbosity sets log verbosity level of various components + * @export + * @interface V1LogVerbosity + */ +export interface V1LogVerbosity { + /** + * NodeVerbosity represents a map of nodes with a specific verbosity level + * @type {{ [key: string]: number; }} + * @memberof V1LogVerbosity + */ + nodeVerbosity?: { [key: string]: number; }; + /** + * + * @type {number} + * @memberof V1LogVerbosity + */ + virtAPI?: number; + /** + * + * @type {number} + * @memberof V1LogVerbosity + */ + virtController?: number; + /** + * + * @type {number} + * @memberof V1LogVerbosity + */ + virtHandler?: number; + /** + * + * @type {number} + * @memberof V1LogVerbosity + */ + virtLauncher?: number; + /** + * + * @type {number} + * @memberof V1LogVerbosity + */ + virtOperator?: number; +} + +/** + * Check if a given object implements the V1LogVerbosity interface. + */ +export function instanceOfV1LogVerbosity(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1LogVerbosityFromJSON(json: any): V1LogVerbosity { + return V1LogVerbosityFromJSONTyped(json, false); +} + +export function V1LogVerbosityFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1LogVerbosity { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'nodeVerbosity': !exists(json, 'nodeVerbosity') ? undefined : json['nodeVerbosity'], + 'virtAPI': !exists(json, 'virtAPI') ? undefined : json['virtAPI'], + 'virtController': !exists(json, 'virtController') ? undefined : json['virtController'], + 'virtHandler': !exists(json, 'virtHandler') ? undefined : json['virtHandler'], + 'virtLauncher': !exists(json, 'virtLauncher') ? undefined : json['virtLauncher'], + 'virtOperator': !exists(json, 'virtOperator') ? undefined : json['virtOperator'], + }; +} + +export function V1LogVerbosityToJSON(value?: V1LogVerbosity | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'nodeVerbosity': value.nodeVerbosity, + 'virtAPI': value.virtAPI, + 'virtController': value.virtController, + 'virtHandler': value.virtHandler, + 'virtLauncher': value.virtLauncher, + 'virtOperator': value.virtOperator, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1LunTarget.ts b/packages/types/src/generated/kubevirt/models/V1LunTarget.ts new file mode 100644 index 000000000..d2bea8f9b --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1LunTarget.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1LunTarget + */ +export interface V1LunTarget { + /** + * Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi. + * @type {string} + * @memberof V1LunTarget + */ + bus?: string; + /** + * ReadOnly. Defaults to false. + * @type {boolean} + * @memberof V1LunTarget + */ + readonly?: boolean; + /** + * Reservation indicates if the disk needs to support the persistent reservation for the SCSI disk + * @type {boolean} + * @memberof V1LunTarget + */ + reservation?: boolean; +} + +/** + * Check if a given object implements the V1LunTarget interface. + */ +export function instanceOfV1LunTarget(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1LunTargetFromJSON(json: any): V1LunTarget { + return V1LunTargetFromJSONTyped(json, false); +} + +export function V1LunTargetFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1LunTarget { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bus': !exists(json, 'bus') ? undefined : json['bus'], + 'readonly': !exists(json, 'readonly') ? undefined : json['readonly'], + 'reservation': !exists(json, 'reservation') ? undefined : json['reservation'], + }; +} + +export function V1LunTargetToJSON(value?: V1LunTarget | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'bus': value.bus, + 'readonly': value.readonly, + 'reservation': value.reservation, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1Machine.ts b/packages/types/src/generated/kubevirt/models/V1Machine.ts new file mode 100644 index 000000000..77405758e --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1Machine.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1Machine + */ +export interface V1Machine { + /** + * QEMU machine type is the actual chipset of the VirtualMachineInstance. + * @type {string} + * @memberof V1Machine + */ + type?: string; +} + +/** + * Check if a given object implements the V1Machine interface. + */ +export function instanceOfV1Machine(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1MachineFromJSON(json: any): V1Machine { + return V1MachineFromJSONTyped(json, false); +} + +export function V1MachineFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Machine { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'type': !exists(json, 'type') ? undefined : json['type'], + }; +} + +export function V1MachineToJSON(value?: V1Machine | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1MediatedDevicesConfiguration.ts b/packages/types/src/generated/kubevirt/models/V1MediatedDevicesConfiguration.ts new file mode 100644 index 000000000..66e86e25b --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1MediatedDevicesConfiguration.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1NodeMediatedDeviceTypesConfig } from './V1NodeMediatedDeviceTypesConfig'; +import { + V1NodeMediatedDeviceTypesConfigFromJSON, + V1NodeMediatedDeviceTypesConfigFromJSONTyped, + V1NodeMediatedDeviceTypesConfigToJSON, +} from './V1NodeMediatedDeviceTypesConfig'; + +/** + * MediatedDevicesConfiguration holds information about MDEV types to be defined, if available + * @export + * @interface V1MediatedDevicesConfiguration + */ +export interface V1MediatedDevicesConfiguration { + /** + * + * @type {Array} + * @memberof V1MediatedDevicesConfiguration + */ + mediatedDeviceTypes?: Array; + /** + * Deprecated. Use mediatedDeviceTypes instead. + * @type {Array} + * @memberof V1MediatedDevicesConfiguration + */ + mediatedDevicesTypes?: Array; + /** + * + * @type {Array} + * @memberof V1MediatedDevicesConfiguration + */ + nodeMediatedDeviceTypes?: Array; +} + +/** + * Check if a given object implements the V1MediatedDevicesConfiguration interface. + */ +export function instanceOfV1MediatedDevicesConfiguration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1MediatedDevicesConfigurationFromJSON(json: any): V1MediatedDevicesConfiguration { + return V1MediatedDevicesConfigurationFromJSONTyped(json, false); +} + +export function V1MediatedDevicesConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1MediatedDevicesConfiguration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'mediatedDeviceTypes': !exists(json, 'mediatedDeviceTypes') ? undefined : json['mediatedDeviceTypes'], + 'mediatedDevicesTypes': !exists(json, 'mediatedDevicesTypes') ? undefined : json['mediatedDevicesTypes'], + 'nodeMediatedDeviceTypes': !exists(json, 'nodeMediatedDeviceTypes') ? undefined : ((json['nodeMediatedDeviceTypes'] as Array).map(V1NodeMediatedDeviceTypesConfigFromJSON)), + }; +} + +export function V1MediatedDevicesConfigurationToJSON(value?: V1MediatedDevicesConfiguration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'mediatedDeviceTypes': value.mediatedDeviceTypes, + 'mediatedDevicesTypes': value.mediatedDevicesTypes, + 'nodeMediatedDeviceTypes': value.nodeMediatedDeviceTypes === undefined ? undefined : ((value.nodeMediatedDeviceTypes as Array).map(V1NodeMediatedDeviceTypesConfigToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1MediatedHostDevice.ts b/packages/types/src/generated/kubevirt/models/V1MediatedHostDevice.ts new file mode 100644 index 000000000..a2f81f9e5 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1MediatedHostDevice.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * MediatedHostDevice represents a host mediated device allowed for passthrough + * @export + * @interface V1MediatedHostDevice + */ +export interface V1MediatedHostDevice { + /** + * + * @type {boolean} + * @memberof V1MediatedHostDevice + */ + externalResourceProvider?: boolean; + /** + * + * @type {string} + * @memberof V1MediatedHostDevice + */ + mdevNameSelector: string; + /** + * + * @type {string} + * @memberof V1MediatedHostDevice + */ + resourceName: string; +} + +/** + * Check if a given object implements the V1MediatedHostDevice interface. + */ +export function instanceOfV1MediatedHostDevice(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "mdevNameSelector" in value; + isInstance = isInstance && "resourceName" in value; + + return isInstance; +} + +export function V1MediatedHostDeviceFromJSON(json: any): V1MediatedHostDevice { + return V1MediatedHostDeviceFromJSONTyped(json, false); +} + +export function V1MediatedHostDeviceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1MediatedHostDevice { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'externalResourceProvider': !exists(json, 'externalResourceProvider') ? undefined : json['externalResourceProvider'], + 'mdevNameSelector': json['mdevNameSelector'], + 'resourceName': json['resourceName'], + }; +} + +export function V1MediatedHostDeviceToJSON(value?: V1MediatedHostDevice | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'externalResourceProvider': value.externalResourceProvider, + 'mdevNameSelector': value.mdevNameSelector, + 'resourceName': value.resourceName, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1Memory.ts b/packages/types/src/generated/kubevirt/models/V1Memory.ts new file mode 100644 index 000000000..e62815180 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1Memory.ts @@ -0,0 +1,160 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1Hugepages } from './V1Hugepages'; +import { + V1HugepagesFromJSON, + V1HugepagesFromJSONTyped, + V1HugepagesToJSON, +} from './V1Hugepages'; + +/** + * Memory allows specifying the VirtualMachineInstance memory features. + * @export + * @interface V1Memory + */ +export interface V1Memory { + /** + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + * + * The serialization format is: + * + * ``` ::= + * + * (Note that may be empty, from the "" case in .) + * + * ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + * + * (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + * + * ::= m | "" | k | M | G | T | P | E + * + * (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + * + * ::= "e" | "E" ``` + * + * No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + * + * When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + * + * Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + * + * - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. + * + * The sign will be omitted unless the number is negative. + * + * Examples: + * + * - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" + * + * Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + * + * Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + * + * This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + * @type {string} + * @memberof V1Memory + */ + guest?: string; + /** + * + * @type {V1Hugepages} + * @memberof V1Memory + */ + hugepages?: V1Hugepages; + /** + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + * + * The serialization format is: + * + * ``` ::= + * + * (Note that may be empty, from the "" case in .) + * + * ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + * + * (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + * + * ::= m | "" | k | M | G | T | P | E + * + * (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + * + * ::= "e" | "E" ``` + * + * No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + * + * When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + * + * Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + * + * - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. + * + * The sign will be omitted unless the number is negative. + * + * Examples: + * + * - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" + * + * Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + * + * Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + * + * This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + * @type {string} + * @memberof V1Memory + */ + maxGuest?: string; +} + +/** + * Check if a given object implements the V1Memory interface. + */ +export function instanceOfV1Memory(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1MemoryFromJSON(json: any): V1Memory { + return V1MemoryFromJSONTyped(json, false); +} + +export function V1MemoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Memory { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'guest': !exists(json, 'guest') ? undefined : json['guest'], + 'hugepages': !exists(json, 'hugepages') ? undefined : V1HugepagesFromJSON(json['hugepages']), + 'maxGuest': !exists(json, 'maxGuest') ? undefined : json['maxGuest'], + }; +} + +export function V1MemoryToJSON(value?: V1Memory | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'guest': value.guest, + 'hugepages': V1HugepagesToJSON(value.hugepages), + 'maxGuest': value.maxGuest, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1MemoryDumpVolumeSource.ts b/packages/types/src/generated/kubevirt/models/V1MemoryDumpVolumeSource.ts new file mode 100644 index 000000000..1bebdb160 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1MemoryDumpVolumeSource.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1MemoryDumpVolumeSource + */ +export interface V1MemoryDumpVolumeSource { + /** + * claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * @type {string} + * @memberof V1MemoryDumpVolumeSource + */ + claimName: string; + /** + * Hotpluggable indicates whether the volume can be hotplugged and hotunplugged. + * @type {boolean} + * @memberof V1MemoryDumpVolumeSource + */ + hotpluggable?: boolean; + /** + * readOnly Will force the ReadOnly setting in VolumeMounts. Default false. + * @type {boolean} + * @memberof V1MemoryDumpVolumeSource + */ + readOnly?: boolean; +} + +/** + * Check if a given object implements the V1MemoryDumpVolumeSource interface. + */ +export function instanceOfV1MemoryDumpVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "claimName" in value; + + return isInstance; +} + +export function V1MemoryDumpVolumeSourceFromJSON(json: any): V1MemoryDumpVolumeSource { + return V1MemoryDumpVolumeSourceFromJSONTyped(json, false); +} + +export function V1MemoryDumpVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1MemoryDumpVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'claimName': json['claimName'], + 'hotpluggable': !exists(json, 'hotpluggable') ? undefined : json['hotpluggable'], + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + }; +} + +export function V1MemoryDumpVolumeSourceToJSON(value?: V1MemoryDumpVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'claimName': value.claimName, + 'hotpluggable': value.hotpluggable, + 'readOnly': value.readOnly, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1MemoryStatus.ts b/packages/types/src/generated/kubevirt/models/V1MemoryStatus.ts new file mode 100644 index 000000000..bbb9a5173 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1MemoryStatus.ts @@ -0,0 +1,189 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1MemoryStatus + */ +export interface V1MemoryStatus { + /** + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + * + * The serialization format is: + * + * ``` ::= + * + * (Note that may be empty, from the "" case in .) + * + * ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + * + * (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + * + * ::= m | "" | k | M | G | T | P | E + * + * (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + * + * ::= "e" | "E" ``` + * + * No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + * + * When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + * + * Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + * + * - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. + * + * The sign will be omitted unless the number is negative. + * + * Examples: + * + * - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" + * + * Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + * + * Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + * + * This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + * @type {string} + * @memberof V1MemoryStatus + */ + guestAtBoot?: string; + /** + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + * + * The serialization format is: + * + * ``` ::= + * + * (Note that may be empty, from the "" case in .) + * + * ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + * + * (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + * + * ::= m | "" | k | M | G | T | P | E + * + * (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + * + * ::= "e" | "E" ``` + * + * No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + * + * When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + * + * Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + * + * - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. + * + * The sign will be omitted unless the number is negative. + * + * Examples: + * + * - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" + * + * Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + * + * Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + * + * This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + * @type {string} + * @memberof V1MemoryStatus + */ + guestCurrent?: string; + /** + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + * + * The serialization format is: + * + * ``` ::= + * + * (Note that may be empty, from the "" case in .) + * + * ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + * + * (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + * + * ::= m | "" | k | M | G | T | P | E + * + * (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + * + * ::= "e" | "E" ``` + * + * No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + * + * When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + * + * Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + * + * - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. + * + * The sign will be omitted unless the number is negative. + * + * Examples: + * + * - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" + * + * Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + * + * Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + * + * This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + * @type {string} + * @memberof V1MemoryStatus + */ + guestRequested?: string; +} + +/** + * Check if a given object implements the V1MemoryStatus interface. + */ +export function instanceOfV1MemoryStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1MemoryStatusFromJSON(json: any): V1MemoryStatus { + return V1MemoryStatusFromJSONTyped(json, false); +} + +export function V1MemoryStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1MemoryStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'guestAtBoot': !exists(json, 'guestAtBoot') ? undefined : json['guestAtBoot'], + 'guestCurrent': !exists(json, 'guestCurrent') ? undefined : json['guestCurrent'], + 'guestRequested': !exists(json, 'guestRequested') ? undefined : json['guestRequested'], + }; +} + +export function V1MemoryStatusToJSON(value?: V1MemoryStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'guestAtBoot': value.guestAtBoot, + 'guestCurrent': value.guestCurrent, + 'guestRequested': value.guestRequested, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1MigrateOptions.ts b/packages/types/src/generated/kubevirt/models/V1MigrateOptions.ts new file mode 100644 index 000000000..62b226dc6 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1MigrateOptions.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * MigrateOptions may be provided on migrate request. + * @export + * @interface V1MigrateOptions + */ +export interface V1MigrateOptions { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1MigrateOptions + */ + apiVersion?: 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 + * @type {Array} + * @memberof V1MigrateOptions + */ + dryRun?: 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 + * @type {string} + * @memberof V1MigrateOptions + */ + kind?: string; +} + +/** + * Check if a given object implements the V1MigrateOptions interface. + */ +export function instanceOfV1MigrateOptions(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1MigrateOptionsFromJSON(json: any): V1MigrateOptions { + return V1MigrateOptionsFromJSONTyped(json, false); +} + +export function V1MigrateOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1MigrateOptions { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'dryRun': !exists(json, 'dryRun') ? undefined : json['dryRun'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + }; +} + +export function V1MigrateOptionsToJSON(value?: V1MigrateOptions | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'dryRun': value.dryRun, + 'kind': value.kind, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1MigrationConfiguration.ts b/packages/types/src/generated/kubevirt/models/V1MigrationConfiguration.ts new file mode 100644 index 000000000..3177dade3 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1MigrationConfiguration.ts @@ -0,0 +1,189 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * MigrationConfiguration holds migration options. Can be overridden for specific groups of VMs though migration policies. Visit https://kubevirt.io/user-guide/operations/migration_policies/ for more information. + * @export + * @interface V1MigrationConfiguration + */ +export interface V1MigrationConfiguration { + /** + * AllowAutoConverge allows the platform to compromise performance/availability of VMIs to guarantee successful VMI live migrations. Defaults to false + * @type {boolean} + * @memberof V1MigrationConfiguration + */ + allowAutoConverge?: boolean; + /** + * AllowPostCopy enables post-copy live migrations. Such migrations allow even the busiest VMIs to successfully live-migrate. However, events like a network failure can cause a VMI crash. If set to true, migrations will still start in pre-copy, but switch to post-copy when CompletionTimeoutPerGiB triggers. Defaults to false + * @type {boolean} + * @memberof V1MigrationConfiguration + */ + allowPostCopy?: boolean; + /** + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + * + * The serialization format is: + * + * ``` ::= + * + * (Note that may be empty, from the "" case in .) + * + * ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + * + * (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + * + * ::= m | "" | k | M | G | T | P | E + * + * (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + * + * ::= "e" | "E" ``` + * + * No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + * + * When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + * + * Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + * + * - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. + * + * The sign will be omitted unless the number is negative. + * + * Examples: + * + * - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" + * + * Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + * + * Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + * + * This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + * @type {string} + * @memberof V1MigrationConfiguration + */ + bandwidthPerMigration?: string; + /** + * CompletionTimeoutPerGiB is the maximum number of seconds per GiB a migration is allowed to take. If a live-migration takes longer to migrate than this value multiplied by the size of the VMI, the migration will be cancelled, unless AllowPostCopy is true. Defaults to 800 + * @type {number} + * @memberof V1MigrationConfiguration + */ + completionTimeoutPerGiB?: number; + /** + * When set to true, DisableTLS will disable the additional layer of live migration encryption provided by KubeVirt. This is usually a bad idea. Defaults to false + * @type {boolean} + * @memberof V1MigrationConfiguration + */ + disableTLS?: boolean; + /** + * By default, the SELinux level of target virt-launcher pods is forced to the level of the source virt-launcher. When set to true, MatchSELinuxLevelOnMigration lets the CRI auto-assign a random level to the target. That will ensure the target virt-launcher doesn't share categories with another pod on the node. However, migrations will fail when using RWX volumes that don't automatically deal with SELinux levels. + * @type {boolean} + * @memberof V1MigrationConfiguration + */ + matchSELinuxLevelOnMigration?: boolean; + /** + * Network is the name of the CNI network to use for live migrations. By default, migrations go through the pod network. + * @type {string} + * @memberof V1MigrationConfiguration + */ + network?: string; + /** + * NodeDrainTaintKey defines the taint key that indicates a node should be drained. Note: this option relies on the deprecated node taint feature. Default: kubevirt.io/drain + * @type {string} + * @memberof V1MigrationConfiguration + */ + nodeDrainTaintKey?: string; + /** + * ParallelMigrationsPerCluster is the total number of concurrent live migrations allowed cluster-wide. Defaults to 5 + * @type {number} + * @memberof V1MigrationConfiguration + */ + parallelMigrationsPerCluster?: number; + /** + * ParallelOutboundMigrationsPerNode is the maximum number of concurrent outgoing live migrations allowed per node. Defaults to 2 + * @type {number} + * @memberof V1MigrationConfiguration + */ + parallelOutboundMigrationsPerNode?: number; + /** + * ProgressTimeout is the maximum number of seconds a live migration is allowed to make no progress. Hitting this timeout means a migration transferred 0 data for that many seconds. The migration is then considered stuck and therefore cancelled. Defaults to 150 + * @type {number} + * @memberof V1MigrationConfiguration + */ + progressTimeout?: number; + /** + * UnsafeMigrationOverride allows live migrations to occur even if the compatibility check indicates the migration will be unsafe to the guest. Defaults to false + * @type {boolean} + * @memberof V1MigrationConfiguration + */ + unsafeMigrationOverride?: boolean; +} + +/** + * Check if a given object implements the V1MigrationConfiguration interface. + */ +export function instanceOfV1MigrationConfiguration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1MigrationConfigurationFromJSON(json: any): V1MigrationConfiguration { + return V1MigrationConfigurationFromJSONTyped(json, false); +} + +export function V1MigrationConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1MigrationConfiguration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'allowAutoConverge': !exists(json, 'allowAutoConverge') ? undefined : json['allowAutoConverge'], + 'allowPostCopy': !exists(json, 'allowPostCopy') ? undefined : json['allowPostCopy'], + 'bandwidthPerMigration': !exists(json, 'bandwidthPerMigration') ? undefined : json['bandwidthPerMigration'], + 'completionTimeoutPerGiB': !exists(json, 'completionTimeoutPerGiB') ? undefined : json['completionTimeoutPerGiB'], + 'disableTLS': !exists(json, 'disableTLS') ? undefined : json['disableTLS'], + 'matchSELinuxLevelOnMigration': !exists(json, 'matchSELinuxLevelOnMigration') ? undefined : json['matchSELinuxLevelOnMigration'], + 'network': !exists(json, 'network') ? undefined : json['network'], + 'nodeDrainTaintKey': !exists(json, 'nodeDrainTaintKey') ? undefined : json['nodeDrainTaintKey'], + 'parallelMigrationsPerCluster': !exists(json, 'parallelMigrationsPerCluster') ? undefined : json['parallelMigrationsPerCluster'], + 'parallelOutboundMigrationsPerNode': !exists(json, 'parallelOutboundMigrationsPerNode') ? undefined : json['parallelOutboundMigrationsPerNode'], + 'progressTimeout': !exists(json, 'progressTimeout') ? undefined : json['progressTimeout'], + 'unsafeMigrationOverride': !exists(json, 'unsafeMigrationOverride') ? undefined : json['unsafeMigrationOverride'], + }; +} + +export function V1MigrationConfigurationToJSON(value?: V1MigrationConfiguration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'allowAutoConverge': value.allowAutoConverge, + 'allowPostCopy': value.allowPostCopy, + 'bandwidthPerMigration': value.bandwidthPerMigration, + 'completionTimeoutPerGiB': value.completionTimeoutPerGiB, + 'disableTLS': value.disableTLS, + 'matchSELinuxLevelOnMigration': value.matchSELinuxLevelOnMigration, + 'network': value.network, + 'nodeDrainTaintKey': value.nodeDrainTaintKey, + 'parallelMigrationsPerCluster': value.parallelMigrationsPerCluster, + 'parallelOutboundMigrationsPerNode': value.parallelOutboundMigrationsPerNode, + 'progressTimeout': value.progressTimeout, + 'unsafeMigrationOverride': value.unsafeMigrationOverride, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1MultusNetwork.ts b/packages/types/src/generated/kubevirt/models/V1MultusNetwork.ts new file mode 100644 index 000000000..ec08c6a53 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1MultusNetwork.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Represents the multus cni network. + * @export + * @interface V1MultusNetwork + */ +export interface V1MultusNetwork { + /** + * Select the default network and add it to the multus-cni.io/default-network annotation. + * @type {boolean} + * @memberof V1MultusNetwork + */ + _default?: boolean; + /** + * References to a NetworkAttachmentDefinition CRD object. Format: , /. If namespace is not specified, VMI namespace is assumed. + * @type {string} + * @memberof V1MultusNetwork + */ + networkName: string; +} + +/** + * Check if a given object implements the V1MultusNetwork interface. + */ +export function instanceOfV1MultusNetwork(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "networkName" in value; + + return isInstance; +} + +export function V1MultusNetworkFromJSON(json: any): V1MultusNetwork { + return V1MultusNetworkFromJSONTyped(json, false); +} + +export function V1MultusNetworkFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1MultusNetwork { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + '_default': !exists(json, 'default') ? undefined : json['default'], + 'networkName': json['networkName'], + }; +} + +export function V1MultusNetworkToJSON(value?: V1MultusNetwork | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'default': value._default, + 'networkName': value.networkName, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1NUMA.ts b/packages/types/src/generated/kubevirt/models/V1NUMA.ts new file mode 100644 index 000000000..7fc23c19b --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1NUMA.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1NUMA + */ +export interface V1NUMA { + /** + * NUMAGuestMappingPassthrough instructs kubevirt to model numa topology which is compatible with the CPU pinning on the guest. This will result in a subset of the node numa topology being passed through, ensuring that virtual numa nodes and their memory never cross boundaries coming from the node numa mapping. + * @type {object} + * @memberof V1NUMA + */ + guestMappingPassthrough?: object; +} + +/** + * Check if a given object implements the V1NUMA interface. + */ +export function instanceOfV1NUMA(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1NUMAFromJSON(json: any): V1NUMA { + return V1NUMAFromJSONTyped(json, false); +} + +export function V1NUMAFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1NUMA { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'guestMappingPassthrough': !exists(json, 'guestMappingPassthrough') ? undefined : json['guestMappingPassthrough'], + }; +} + +export function V1NUMAToJSON(value?: V1NUMA | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'guestMappingPassthrough': value.guestMappingPassthrough, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1Network.ts b/packages/types/src/generated/kubevirt/models/V1Network.ts new file mode 100644 index 000000000..40654af1c --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1Network.ts @@ -0,0 +1,95 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1MultusNetwork } from './V1MultusNetwork'; +import { + V1MultusNetworkFromJSON, + V1MultusNetworkFromJSONTyped, + V1MultusNetworkToJSON, +} from './V1MultusNetwork'; +import type { V1PodNetwork } from './V1PodNetwork'; +import { + V1PodNetworkFromJSON, + V1PodNetworkFromJSONTyped, + V1PodNetworkToJSON, +} from './V1PodNetwork'; + +/** + * Network represents a network type and a resource that should be connected to the vm. + * @export + * @interface V1Network + */ +export interface V1Network { + /** + * + * @type {V1MultusNetwork} + * @memberof V1Network + */ + multus?: V1MultusNetwork; + /** + * Network name. Must be a DNS_LABEL and unique within the vm. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * @type {string} + * @memberof V1Network + */ + name: string; + /** + * + * @type {V1PodNetwork} + * @memberof V1Network + */ + pod?: V1PodNetwork; +} + +/** + * Check if a given object implements the V1Network interface. + */ +export function instanceOfV1Network(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function V1NetworkFromJSON(json: any): V1Network { + return V1NetworkFromJSONTyped(json, false); +} + +export function V1NetworkFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Network { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'multus': !exists(json, 'multus') ? undefined : V1MultusNetworkFromJSON(json['multus']), + 'name': json['name'], + 'pod': !exists(json, 'pod') ? undefined : V1PodNetworkFromJSON(json['pod']), + }; +} + +export function V1NetworkToJSON(value?: V1Network | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'multus': V1MultusNetworkToJSON(value.multus), + 'name': value.name, + 'pod': V1PodNetworkToJSON(value.pod), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1NetworkConfiguration.ts b/packages/types/src/generated/kubevirt/models/V1NetworkConfiguration.ts new file mode 100644 index 000000000..6ef5d034a --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1NetworkConfiguration.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1InterfaceBindingPlugin } from './V1InterfaceBindingPlugin'; +import { + V1InterfaceBindingPluginFromJSON, + V1InterfaceBindingPluginFromJSONTyped, + V1InterfaceBindingPluginToJSON, +} from './V1InterfaceBindingPlugin'; + +/** + * NetworkConfiguration holds network options + * @export + * @interface V1NetworkConfiguration + */ +export interface V1NetworkConfiguration { + /** + * + * @type {{ [key: string]: V1InterfaceBindingPlugin; }} + * @memberof V1NetworkConfiguration + */ + binding?: { [key: string]: V1InterfaceBindingPlugin; }; + /** + * + * @type {string} + * @memberof V1NetworkConfiguration + */ + defaultNetworkInterface?: string; + /** + * + * @type {boolean} + * @memberof V1NetworkConfiguration + */ + permitBridgeInterfaceOnPodNetwork?: boolean; + /** + * + * @type {boolean} + * @memberof V1NetworkConfiguration + */ + permitSlirpInterface?: boolean; +} + +/** + * Check if a given object implements the V1NetworkConfiguration interface. + */ +export function instanceOfV1NetworkConfiguration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1NetworkConfigurationFromJSON(json: any): V1NetworkConfiguration { + return V1NetworkConfigurationFromJSONTyped(json, false); +} + +export function V1NetworkConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1NetworkConfiguration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'binding': !exists(json, 'binding') ? undefined : (mapValues(json['binding'], V1InterfaceBindingPluginFromJSON)), + 'defaultNetworkInterface': !exists(json, 'defaultNetworkInterface') ? undefined : json['defaultNetworkInterface'], + 'permitBridgeInterfaceOnPodNetwork': !exists(json, 'permitBridgeInterfaceOnPodNetwork') ? undefined : json['permitBridgeInterfaceOnPodNetwork'], + 'permitSlirpInterface': !exists(json, 'permitSlirpInterface') ? undefined : json['permitSlirpInterface'], + }; +} + +export function V1NetworkConfigurationToJSON(value?: V1NetworkConfiguration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'binding': value.binding === undefined ? undefined : (mapValues(value.binding, V1InterfaceBindingPluginToJSON)), + 'defaultNetworkInterface': value.defaultNetworkInterface, + 'permitBridgeInterfaceOnPodNetwork': value.permitBridgeInterfaceOnPodNetwork, + 'permitSlirpInterface': value.permitSlirpInterface, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1NodeMediatedDeviceTypesConfig.ts b/packages/types/src/generated/kubevirt/models/V1NodeMediatedDeviceTypesConfig.ts new file mode 100644 index 000000000..70e4b37ba --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1NodeMediatedDeviceTypesConfig.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * NodeMediatedDeviceTypesConfig holds information about MDEV types to be defined in a specific node that matches the NodeSelector field. + * @export + * @interface V1NodeMediatedDeviceTypesConfig + */ +export interface V1NodeMediatedDeviceTypesConfig { + /** + * + * @type {Array} + * @memberof V1NodeMediatedDeviceTypesConfig + */ + mediatedDeviceTypes?: Array; + /** + * Deprecated. Use mediatedDeviceTypes instead. + * @type {Array} + * @memberof V1NodeMediatedDeviceTypesConfig + */ + mediatedDevicesTypes?: Array; + /** + * NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * @type {{ [key: string]: string; }} + * @memberof V1NodeMediatedDeviceTypesConfig + */ + nodeSelector: { [key: string]: string; }; +} + +/** + * Check if a given object implements the V1NodeMediatedDeviceTypesConfig interface. + */ +export function instanceOfV1NodeMediatedDeviceTypesConfig(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "nodeSelector" in value; + + return isInstance; +} + +export function V1NodeMediatedDeviceTypesConfigFromJSON(json: any): V1NodeMediatedDeviceTypesConfig { + return V1NodeMediatedDeviceTypesConfigFromJSONTyped(json, false); +} + +export function V1NodeMediatedDeviceTypesConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1NodeMediatedDeviceTypesConfig { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'mediatedDeviceTypes': !exists(json, 'mediatedDeviceTypes') ? undefined : json['mediatedDeviceTypes'], + 'mediatedDevicesTypes': !exists(json, 'mediatedDevicesTypes') ? undefined : json['mediatedDevicesTypes'], + 'nodeSelector': json['nodeSelector'], + }; +} + +export function V1NodeMediatedDeviceTypesConfigToJSON(value?: V1NodeMediatedDeviceTypesConfig | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'mediatedDeviceTypes': value.mediatedDeviceTypes, + 'mediatedDevicesTypes': value.mediatedDevicesTypes, + 'nodeSelector': value.nodeSelector, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1NodePlacement.ts b/packages/types/src/generated/kubevirt/models/V1NodePlacement.ts new file mode 100644 index 000000000..aa81eedab --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1NodePlacement.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1Affinity } from './K8sIoApiCoreV1Affinity'; +import { + K8sIoApiCoreV1AffinityFromJSON, + K8sIoApiCoreV1AffinityFromJSONTyped, + K8sIoApiCoreV1AffinityToJSON, +} from './K8sIoApiCoreV1Affinity'; +import type { K8sIoApiCoreV1Toleration } from './K8sIoApiCoreV1Toleration'; +import { + K8sIoApiCoreV1TolerationFromJSON, + K8sIoApiCoreV1TolerationFromJSONTyped, + K8sIoApiCoreV1TolerationToJSON, +} from './K8sIoApiCoreV1Toleration'; + +/** + * NodePlacement describes node scheduling configuration. + * @export + * @interface V1NodePlacement + */ +export interface V1NodePlacement { + /** + * + * @type {K8sIoApiCoreV1Affinity} + * @memberof V1NodePlacement + */ + affinity?: K8sIoApiCoreV1Affinity; + /** + * nodeSelector is the node selector applied to the relevant kind of pods It specifies a map of key-value pairs: for the pod to be eligible to run on a node, the node must have each of the indicated key-value pairs as labels (it can have additional labels as well). See https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector + * @type {{ [key: string]: string; }} + * @memberof V1NodePlacement + */ + nodeSelector?: { [key: string]: string; }; + /** + * tolerations is a list of tolerations applied to the relevant kind of pods See https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ for more info. These are additional tolerations other than default ones. + * @type {Array} + * @memberof V1NodePlacement + */ + tolerations?: Array; +} + +/** + * Check if a given object implements the V1NodePlacement interface. + */ +export function instanceOfV1NodePlacement(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1NodePlacementFromJSON(json: any): V1NodePlacement { + return V1NodePlacementFromJSONTyped(json, false); +} + +export function V1NodePlacementFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1NodePlacement { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'affinity': !exists(json, 'affinity') ? undefined : K8sIoApiCoreV1AffinityFromJSON(json['affinity']), + 'nodeSelector': !exists(json, 'nodeSelector') ? undefined : json['nodeSelector'], + 'tolerations': !exists(json, 'tolerations') ? undefined : ((json['tolerations'] as Array).map(K8sIoApiCoreV1TolerationFromJSON)), + }; +} + +export function V1NodePlacementToJSON(value?: V1NodePlacement | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'affinity': K8sIoApiCoreV1AffinityToJSON(value.affinity), + 'nodeSelector': value.nodeSelector, + 'tolerations': value.tolerations === undefined ? undefined : ((value.tolerations as Array).map(K8sIoApiCoreV1TolerationToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1PITTimer.ts b/packages/types/src/generated/kubevirt/models/V1PITTimer.ts new file mode 100644 index 000000000..35e9a0b50 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1PITTimer.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1PITTimer + */ +export interface V1PITTimer { + /** + * Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. + * @type {boolean} + * @memberof V1PITTimer + */ + present?: boolean; + /** + * TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest. One of "delay", "catchup", "discard". + * @type {string} + * @memberof V1PITTimer + */ + tickPolicy?: string; +} + +/** + * Check if a given object implements the V1PITTimer interface. + */ +export function instanceOfV1PITTimer(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1PITTimerFromJSON(json: any): V1PITTimer { + return V1PITTimerFromJSONTyped(json, false); +} + +export function V1PITTimerFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PITTimer { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'present': !exists(json, 'present') ? undefined : json['present'], + 'tickPolicy': !exists(json, 'tickPolicy') ? undefined : json['tickPolicy'], + }; +} + +export function V1PITTimerToJSON(value?: V1PITTimer | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'present': value.present, + 'tickPolicy': value.tickPolicy, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1PauseOptions.ts b/packages/types/src/generated/kubevirt/models/V1PauseOptions.ts new file mode 100644 index 000000000..e36443e98 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1PauseOptions.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * PauseOptions may be provided on pause request. + * @export + * @interface V1PauseOptions + */ +export interface V1PauseOptions { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1PauseOptions + */ + apiVersion?: 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 + * @type {Array} + * @memberof V1PauseOptions + */ + dryRun?: 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 + * @type {string} + * @memberof V1PauseOptions + */ + kind?: string; +} + +/** + * Check if a given object implements the V1PauseOptions interface. + */ +export function instanceOfV1PauseOptions(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1PauseOptionsFromJSON(json: any): V1PauseOptions { + return V1PauseOptionsFromJSONTyped(json, false); +} + +export function V1PauseOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PauseOptions { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'dryRun': !exists(json, 'dryRun') ? undefined : json['dryRun'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + }; +} + +export function V1PauseOptionsToJSON(value?: V1PauseOptions | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'dryRun': value.dryRun, + 'kind': value.kind, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1PciHostDevice.ts b/packages/types/src/generated/kubevirt/models/V1PciHostDevice.ts new file mode 100644 index 000000000..494042af8 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1PciHostDevice.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * PciHostDevice represents a host PCI device allowed for passthrough + * @export + * @interface V1PciHostDevice + */ +export interface V1PciHostDevice { + /** + * If true, KubeVirt will leave the allocation and monitoring to an external device plugin + * @type {boolean} + * @memberof V1PciHostDevice + */ + externalResourceProvider?: boolean; + /** + * The vendor_id:product_id tuple of the PCI device + * @type {string} + * @memberof V1PciHostDevice + */ + pciVendorSelector: string; + /** + * The name of the resource that is representing the device. Exposed by a device plugin and requested by VMs. Typically of the form vendor.com/product_name + * @type {string} + * @memberof V1PciHostDevice + */ + resourceName: string; +} + +/** + * Check if a given object implements the V1PciHostDevice interface. + */ +export function instanceOfV1PciHostDevice(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "pciVendorSelector" in value; + isInstance = isInstance && "resourceName" in value; + + return isInstance; +} + +export function V1PciHostDeviceFromJSON(json: any): V1PciHostDevice { + return V1PciHostDeviceFromJSONTyped(json, false); +} + +export function V1PciHostDeviceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PciHostDevice { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'externalResourceProvider': !exists(json, 'externalResourceProvider') ? undefined : json['externalResourceProvider'], + 'pciVendorSelector': json['pciVendorSelector'], + 'resourceName': json['resourceName'], + }; +} + +export function V1PciHostDeviceToJSON(value?: V1PciHostDevice | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'externalResourceProvider': value.externalResourceProvider, + 'pciVendorSelector': value.pciVendorSelector, + 'resourceName': value.resourceName, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1PermittedHostDevices.ts b/packages/types/src/generated/kubevirt/models/V1PermittedHostDevices.ts new file mode 100644 index 000000000..664ec4645 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1PermittedHostDevices.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1MediatedHostDevice } from './V1MediatedHostDevice'; +import { + V1MediatedHostDeviceFromJSON, + V1MediatedHostDeviceFromJSONTyped, + V1MediatedHostDeviceToJSON, +} from './V1MediatedHostDevice'; +import type { V1PciHostDevice } from './V1PciHostDevice'; +import { + V1PciHostDeviceFromJSON, + V1PciHostDeviceFromJSONTyped, + V1PciHostDeviceToJSON, +} from './V1PciHostDevice'; +import type { V1USBHostDevice } from './V1USBHostDevice'; +import { + V1USBHostDeviceFromJSON, + V1USBHostDeviceFromJSONTyped, + V1USBHostDeviceToJSON, +} from './V1USBHostDevice'; + +/** + * PermittedHostDevices holds information about devices allowed for passthrough + * @export + * @interface V1PermittedHostDevices + */ +export interface V1PermittedHostDevices { + /** + * + * @type {Array} + * @memberof V1PermittedHostDevices + */ + mediatedDevices?: Array; + /** + * + * @type {Array} + * @memberof V1PermittedHostDevices + */ + pciHostDevices?: Array; + /** + * + * @type {Array} + * @memberof V1PermittedHostDevices + */ + usb?: Array; +} + +/** + * Check if a given object implements the V1PermittedHostDevices interface. + */ +export function instanceOfV1PermittedHostDevices(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1PermittedHostDevicesFromJSON(json: any): V1PermittedHostDevices { + return V1PermittedHostDevicesFromJSONTyped(json, false); +} + +export function V1PermittedHostDevicesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PermittedHostDevices { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'mediatedDevices': !exists(json, 'mediatedDevices') ? undefined : ((json['mediatedDevices'] as Array).map(V1MediatedHostDeviceFromJSON)), + 'pciHostDevices': !exists(json, 'pciHostDevices') ? undefined : ((json['pciHostDevices'] as Array).map(V1PciHostDeviceFromJSON)), + 'usb': !exists(json, 'usb') ? undefined : ((json['usb'] as Array).map(V1USBHostDeviceFromJSON)), + }; +} + +export function V1PermittedHostDevicesToJSON(value?: V1PermittedHostDevices | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'mediatedDevices': value.mediatedDevices === undefined ? undefined : ((value.mediatedDevices as Array).map(V1MediatedHostDeviceToJSON)), + 'pciHostDevices': value.pciHostDevices === undefined ? undefined : ((value.pciHostDevices as Array).map(V1PciHostDeviceToJSON)), + 'usb': value.usb === undefined ? undefined : ((value.usb as Array).map(V1USBHostDeviceToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1PersistentVolumeClaimInfo.ts b/packages/types/src/generated/kubevirt/models/V1PersistentVolumeClaimInfo.ts new file mode 100644 index 000000000..5c7232024 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1PersistentVolumeClaimInfo.ts @@ -0,0 +1,120 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * PersistentVolumeClaimInfo contains the relavant information virt-handler needs cached about a PVC + * @export + * @interface V1PersistentVolumeClaimInfo + */ +export interface V1PersistentVolumeClaimInfo { + /** + * AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * @type {Array} + * @memberof V1PersistentVolumeClaimInfo + */ + accessModes?: Array; + /** + * Capacity represents the capacity set on the corresponding PVC status + * @type {{ [key: string]: string; }} + * @memberof V1PersistentVolumeClaimInfo + */ + capacity?: { [key: string]: string; }; + /** + * Percentage of filesystem's size to be reserved when resizing the PVC + * @type {string} + * @memberof V1PersistentVolumeClaimInfo + */ + filesystemOverhead?: string; + /** + * Preallocated indicates if the PVC's storage is preallocated or not + * @type {boolean} + * @memberof V1PersistentVolumeClaimInfo + */ + preallocated?: boolean; + /** + * Requests represents the resources requested by the corresponding PVC spec + * @type {{ [key: string]: string; }} + * @memberof V1PersistentVolumeClaimInfo + */ + requests?: { [key: string]: string; }; + /** + * VolumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + * + * Possible enum values: + * - `"Block"` means the volume will not be formatted with a filesystem and will remain a raw block device. + * - `"Filesystem"` means the volume will be or is formatted with a filesystem. + * @type {string} + * @memberof V1PersistentVolumeClaimInfo + */ + volumeMode?: V1PersistentVolumeClaimInfoVolumeModeEnum; +} + + +/** + * @export + */ +export const V1PersistentVolumeClaimInfoVolumeModeEnum = { + Block: 'Block', + Filesystem: 'Filesystem' +} as const; +export type V1PersistentVolumeClaimInfoVolumeModeEnum = typeof V1PersistentVolumeClaimInfoVolumeModeEnum[keyof typeof V1PersistentVolumeClaimInfoVolumeModeEnum]; + + +/** + * Check if a given object implements the V1PersistentVolumeClaimInfo interface. + */ +export function instanceOfV1PersistentVolumeClaimInfo(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1PersistentVolumeClaimInfoFromJSON(json: any): V1PersistentVolumeClaimInfo { + return V1PersistentVolumeClaimInfoFromJSONTyped(json, false); +} + +export function V1PersistentVolumeClaimInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PersistentVolumeClaimInfo { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accessModes': !exists(json, 'accessModes') ? undefined : json['accessModes'], + 'capacity': !exists(json, 'capacity') ? undefined : json['capacity'], + 'filesystemOverhead': !exists(json, 'filesystemOverhead') ? undefined : json['filesystemOverhead'], + 'preallocated': !exists(json, 'preallocated') ? undefined : json['preallocated'], + 'requests': !exists(json, 'requests') ? undefined : json['requests'], + 'volumeMode': !exists(json, 'volumeMode') ? undefined : json['volumeMode'], + }; +} + +export function V1PersistentVolumeClaimInfoToJSON(value?: V1PersistentVolumeClaimInfo | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'accessModes': value.accessModes, + 'capacity': value.capacity, + 'filesystemOverhead': value.filesystemOverhead, + 'preallocated': value.preallocated, + 'requests': value.requests, + 'volumeMode': value.volumeMode, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1PersistentVolumeClaimVolumeSource.ts b/packages/types/src/generated/kubevirt/models/V1PersistentVolumeClaimVolumeSource.ts new file mode 100644 index 000000000..482c95eb1 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1PersistentVolumeClaimVolumeSource.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * @export + * @interface V1PersistentVolumeClaimVolumeSource + */ +export interface V1PersistentVolumeClaimVolumeSource { + /** + * claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * @type {string} + * @memberof V1PersistentVolumeClaimVolumeSource + */ + claimName: string; + /** + * Hotpluggable indicates whether the volume can be hotplugged and hotunplugged. + * @type {boolean} + * @memberof V1PersistentVolumeClaimVolumeSource + */ + hotpluggable?: boolean; + /** + * readOnly Will force the ReadOnly setting in VolumeMounts. Default false. + * @type {boolean} + * @memberof V1PersistentVolumeClaimVolumeSource + */ + readOnly?: boolean; +} + +/** + * Check if a given object implements the V1PersistentVolumeClaimVolumeSource interface. + */ +export function instanceOfV1PersistentVolumeClaimVolumeSource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "claimName" in value; + + return isInstance; +} + +export function V1PersistentVolumeClaimVolumeSourceFromJSON(json: any): V1PersistentVolumeClaimVolumeSource { + return V1PersistentVolumeClaimVolumeSourceFromJSONTyped(json, false); +} + +export function V1PersistentVolumeClaimVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PersistentVolumeClaimVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'claimName': json['claimName'], + 'hotpluggable': !exists(json, 'hotpluggable') ? undefined : json['hotpluggable'], + 'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'], + }; +} + +export function V1PersistentVolumeClaimVolumeSourceToJSON(value?: V1PersistentVolumeClaimVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'claimName': value.claimName, + 'hotpluggable': value.hotpluggable, + 'readOnly': value.readOnly, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1PluginBinding.ts b/packages/types/src/generated/kubevirt/models/V1PluginBinding.ts new file mode 100644 index 000000000..f2195b74d --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1PluginBinding.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * PluginBinding represents a binding implemented in a plugin. + * @export + * @interface V1PluginBinding + */ +export interface V1PluginBinding { + /** + * Name references to the binding name as denined in the kubevirt CR. version: 1alphav1 + * @type {string} + * @memberof V1PluginBinding + */ + name: string; +} + +/** + * Check if a given object implements the V1PluginBinding interface. + */ +export function instanceOfV1PluginBinding(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function V1PluginBindingFromJSON(json: any): V1PluginBinding { + return V1PluginBindingFromJSONTyped(json, false); +} + +export function V1PluginBindingFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PluginBinding { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + }; +} + +export function V1PluginBindingToJSON(value?: V1PluginBinding | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1PodNetwork.ts b/packages/types/src/generated/kubevirt/models/V1PodNetwork.ts new file mode 100644 index 000000000..d30fe0f3e --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1PodNetwork.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Represents the stock pod network interface. + * @export + * @interface V1PodNetwork + */ +export interface V1PodNetwork { + /** + * IPv6 CIDR for the vm network. Defaults to fd10:0:2::/120 if not specified. + * @type {string} + * @memberof V1PodNetwork + */ + vmIPv6NetworkCIDR?: string; + /** + * CIDR for vm network. Default 10.0.2.0/24 if not specified. + * @type {string} + * @memberof V1PodNetwork + */ + vmNetworkCIDR?: string; +} + +/** + * Check if a given object implements the V1PodNetwork interface. + */ +export function instanceOfV1PodNetwork(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1PodNetworkFromJSON(json: any): V1PodNetwork { + return V1PodNetworkFromJSONTyped(json, false); +} + +export function V1PodNetworkFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PodNetwork { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'vmIPv6NetworkCIDR': !exists(json, 'vmIPv6NetworkCIDR') ? undefined : json['vmIPv6NetworkCIDR'], + 'vmNetworkCIDR': !exists(json, 'vmNetworkCIDR') ? undefined : json['vmNetworkCIDR'], + }; +} + +export function V1PodNetworkToJSON(value?: V1PodNetwork | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'vmIPv6NetworkCIDR': value.vmIPv6NetworkCIDR, + 'vmNetworkCIDR': value.vmNetworkCIDR, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1Port.ts b/packages/types/src/generated/kubevirt/models/V1Port.ts new file mode 100644 index 000000000..e0cab1003 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1Port.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Port represents a port to expose from the virtual machine. Default protocol TCP. The port field is mandatory + * @export + * @interface V1Port + */ +export interface V1Port { + /** + * If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * @type {string} + * @memberof V1Port + */ + name?: string; + /** + * Number of port to expose for the virtual machine. This must be a valid port number, 0 < x < 65536. + * @type {number} + * @memberof V1Port + */ + port: number; + /** + * Protocol for port. Must be UDP or TCP. Defaults to "TCP". + * @type {string} + * @memberof V1Port + */ + protocol?: string; +} + +/** + * Check if a given object implements the V1Port interface. + */ +export function instanceOfV1Port(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "port" in value; + + return isInstance; +} + +export function V1PortFromJSON(json: any): V1Port { + return V1PortFromJSONTyped(json, false); +} + +export function V1PortFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Port { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': !exists(json, 'name') ? undefined : json['name'], + 'port': json['port'], + 'protocol': !exists(json, 'protocol') ? undefined : json['protocol'], + }; +} + +export function V1PortToJSON(value?: V1Port | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'port': value.port, + 'protocol': value.protocol, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1PreferenceMatcher.ts b/packages/types/src/generated/kubevirt/models/V1PreferenceMatcher.ts new file mode 100644 index 000000000..a929937a2 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1PreferenceMatcher.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * PreferenceMatcher references a set of preference that is used to fill fields in the VMI template. + * @export + * @interface V1PreferenceMatcher + */ +export interface V1PreferenceMatcher { + /** + * InferFromVolume lists the name of a volume that should be used to infer or discover the preference to be used through known annotations on the underlying resource. Once applied to the PreferenceMatcher this field is removed. + * @type {string} + * @memberof V1PreferenceMatcher + */ + inferFromVolume?: string; + /** + * InferFromVolumeFailurePolicy controls what should happen on failure when preference the instancetype. Allowed values are: "RejectInferFromVolumeFailure" and "IgnoreInferFromVolumeFailure". If not specified, "RejectInferFromVolumeFailure" is used by default. + * @type {string} + * @memberof V1PreferenceMatcher + */ + inferFromVolumeFailurePolicy?: string; + /** + * Kind specifies which preference resource is referenced. Allowed values are: "VirtualMachinePreference" and "VirtualMachineClusterPreference". If not specified, "VirtualMachineClusterPreference" is used by default. + * @type {string} + * @memberof V1PreferenceMatcher + */ + kind?: string; + /** + * Name is the name of the VirtualMachinePreference or VirtualMachineClusterPreference + * @type {string} + * @memberof V1PreferenceMatcher + */ + name?: string; + /** + * RevisionName specifies a ControllerRevision containing a specific copy of the VirtualMachinePreference or VirtualMachineClusterPreference to be used. This is initially captured the first time the instancetype is applied to the VirtualMachineInstance. + * @type {string} + * @memberof V1PreferenceMatcher + */ + revisionName?: string; +} + +/** + * Check if a given object implements the V1PreferenceMatcher interface. + */ +export function instanceOfV1PreferenceMatcher(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1PreferenceMatcherFromJSON(json: any): V1PreferenceMatcher { + return V1PreferenceMatcherFromJSONTyped(json, false); +} + +export function V1PreferenceMatcherFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PreferenceMatcher { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'inferFromVolume': !exists(json, 'inferFromVolume') ? undefined : json['inferFromVolume'], + 'inferFromVolumeFailurePolicy': !exists(json, 'inferFromVolumeFailurePolicy') ? undefined : json['inferFromVolumeFailurePolicy'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'name': !exists(json, 'name') ? undefined : json['name'], + 'revisionName': !exists(json, 'revisionName') ? undefined : json['revisionName'], + }; +} + +export function V1PreferenceMatcherToJSON(value?: V1PreferenceMatcher | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'inferFromVolume': value.inferFromVolume, + 'inferFromVolumeFailurePolicy': value.inferFromVolumeFailurePolicy, + 'kind': value.kind, + 'name': value.name, + 'revisionName': value.revisionName, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1Probe.ts b/packages/types/src/generated/kubevirt/models/V1Probe.ts new file mode 100644 index 000000000..33fdb2f17 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1Probe.ts @@ -0,0 +1,148 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1ExecAction } from './K8sIoApiCoreV1ExecAction'; +import { + K8sIoApiCoreV1ExecActionFromJSON, + K8sIoApiCoreV1ExecActionFromJSONTyped, + K8sIoApiCoreV1ExecActionToJSON, +} from './K8sIoApiCoreV1ExecAction'; +import type { K8sIoApiCoreV1HTTPGetAction } from './K8sIoApiCoreV1HTTPGetAction'; +import { + K8sIoApiCoreV1HTTPGetActionFromJSON, + K8sIoApiCoreV1HTTPGetActionFromJSONTyped, + K8sIoApiCoreV1HTTPGetActionToJSON, +} from './K8sIoApiCoreV1HTTPGetAction'; +import type { K8sIoApiCoreV1TCPSocketAction } from './K8sIoApiCoreV1TCPSocketAction'; +import { + K8sIoApiCoreV1TCPSocketActionFromJSON, + K8sIoApiCoreV1TCPSocketActionFromJSONTyped, + K8sIoApiCoreV1TCPSocketActionToJSON, +} from './K8sIoApiCoreV1TCPSocketAction'; + +/** + * Probe describes a health check to be performed against a VirtualMachineInstance to determine whether it is alive or ready to receive traffic. + * @export + * @interface V1Probe + */ +export interface V1Probe { + /** + * + * @type {K8sIoApiCoreV1ExecAction} + * @memberof V1Probe + */ + exec?: K8sIoApiCoreV1ExecAction; + /** + * Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * @type {number} + * @memberof V1Probe + */ + failureThreshold?: number; + /** + * GuestAgentPing configures the guest-agent based ping probe + * @type {object} + * @memberof V1Probe + */ + guestAgentPing?: object; + /** + * + * @type {K8sIoApiCoreV1HTTPGetAction} + * @memberof V1Probe + */ + httpGet?: K8sIoApiCoreV1HTTPGetAction; + /** + * Number of seconds after the VirtualMachineInstance has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * @type {number} + * @memberof V1Probe + */ + initialDelaySeconds?: number; + /** + * How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * @type {number} + * @memberof V1Probe + */ + periodSeconds?: number; + /** + * Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. + * @type {number} + * @memberof V1Probe + */ + successThreshold?: number; + /** + * + * @type {K8sIoApiCoreV1TCPSocketAction} + * @memberof V1Probe + */ + tcpSocket?: K8sIoApiCoreV1TCPSocketAction; + /** + * Number of seconds after which the probe times out. For exec probes the timeout fails the probe but does not terminate the command running on the guest. This means a blocking command can result in an increasing load on the guest. A small buffer will be added to the resulting workload exec probe to compensate for delays caused by the qemu guest exec mechanism. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * @type {number} + * @memberof V1Probe + */ + timeoutSeconds?: number; +} + +/** + * Check if a given object implements the V1Probe interface. + */ +export function instanceOfV1Probe(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1ProbeFromJSON(json: any): V1Probe { + return V1ProbeFromJSONTyped(json, false); +} + +export function V1ProbeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Probe { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'exec': !exists(json, 'exec') ? undefined : K8sIoApiCoreV1ExecActionFromJSON(json['exec']), + 'failureThreshold': !exists(json, 'failureThreshold') ? undefined : json['failureThreshold'], + 'guestAgentPing': !exists(json, 'guestAgentPing') ? undefined : json['guestAgentPing'], + 'httpGet': !exists(json, 'httpGet') ? undefined : K8sIoApiCoreV1HTTPGetActionFromJSON(json['httpGet']), + 'initialDelaySeconds': !exists(json, 'initialDelaySeconds') ? undefined : json['initialDelaySeconds'], + 'periodSeconds': !exists(json, 'periodSeconds') ? undefined : json['periodSeconds'], + 'successThreshold': !exists(json, 'successThreshold') ? undefined : json['successThreshold'], + 'tcpSocket': !exists(json, 'tcpSocket') ? undefined : K8sIoApiCoreV1TCPSocketActionFromJSON(json['tcpSocket']), + 'timeoutSeconds': !exists(json, 'timeoutSeconds') ? undefined : json['timeoutSeconds'], + }; +} + +export function V1ProbeToJSON(value?: V1Probe | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'exec': K8sIoApiCoreV1ExecActionToJSON(value.exec), + 'failureThreshold': value.failureThreshold, + 'guestAgentPing': value.guestAgentPing, + 'httpGet': K8sIoApiCoreV1HTTPGetActionToJSON(value.httpGet), + 'initialDelaySeconds': value.initialDelaySeconds, + 'periodSeconds': value.periodSeconds, + 'successThreshold': value.successThreshold, + 'tcpSocket': K8sIoApiCoreV1TCPSocketActionToJSON(value.tcpSocket), + 'timeoutSeconds': value.timeoutSeconds, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation.ts b/packages/types/src/generated/kubevirt/models/V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation.ts new file mode 100644 index 000000000..a9f7736e6 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation + */ +export interface V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation { + /** + * Users represents a list of guest users that should have the ssh public keys added to their authorized_keys file. + * @type {Array} + * @memberof V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation + */ + users: Array; +} + +/** + * Check if a given object implements the V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation interface. + */ +export function instanceOfV1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "users" in value; + + return isInstance; +} + +export function V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagationFromJSON(json: any): V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation { + return V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagationFromJSONTyped(json, false); +} + +export function V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagationFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'users': json['users'], + }; +} + +export function V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagationToJSON(value?: V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'users': value.users, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1RESTClientConfiguration.ts b/packages/types/src/generated/kubevirt/models/V1RESTClientConfiguration.ts new file mode 100644 index 000000000..f610fd6b0 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1RESTClientConfiguration.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1RateLimiter } from './V1RateLimiter'; +import { + V1RateLimiterFromJSON, + V1RateLimiterFromJSONTyped, + V1RateLimiterToJSON, +} from './V1RateLimiter'; + +/** + * RESTClientConfiguration allows configuring certain aspects of the k8s rest client. + * @export + * @interface V1RESTClientConfiguration + */ +export interface V1RESTClientConfiguration { + /** + * + * @type {V1RateLimiter} + * @memberof V1RESTClientConfiguration + */ + rateLimiter?: V1RateLimiter; +} + +/** + * Check if a given object implements the V1RESTClientConfiguration interface. + */ +export function instanceOfV1RESTClientConfiguration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1RESTClientConfigurationFromJSON(json: any): V1RESTClientConfiguration { + return V1RESTClientConfigurationFromJSONTyped(json, false); +} + +export function V1RESTClientConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1RESTClientConfiguration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'rateLimiter': !exists(json, 'rateLimiter') ? undefined : V1RateLimiterFromJSON(json['rateLimiter']), + }; +} + +export function V1RESTClientConfigurationToJSON(value?: V1RESTClientConfiguration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'rateLimiter': V1RateLimiterToJSON(value.rateLimiter), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1RTCTimer.ts b/packages/types/src/generated/kubevirt/models/V1RTCTimer.ts new file mode 100644 index 000000000..8b5065e3e --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1RTCTimer.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1RTCTimer + */ +export interface V1RTCTimer { + /** + * Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. + * @type {boolean} + * @memberof V1RTCTimer + */ + present?: boolean; + /** + * TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest. One of "delay", "catchup". + * @type {string} + * @memberof V1RTCTimer + */ + tickPolicy?: string; + /** + * Track the guest or the wall clock. + * @type {string} + * @memberof V1RTCTimer + */ + track?: string; +} + +/** + * Check if a given object implements the V1RTCTimer interface. + */ +export function instanceOfV1RTCTimer(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1RTCTimerFromJSON(json: any): V1RTCTimer { + return V1RTCTimerFromJSONTyped(json, false); +} + +export function V1RTCTimerFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1RTCTimer { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'present': !exists(json, 'present') ? undefined : json['present'], + 'tickPolicy': !exists(json, 'tickPolicy') ? undefined : json['tickPolicy'], + 'track': !exists(json, 'track') ? undefined : json['track'], + }; +} + +export function V1RTCTimerToJSON(value?: V1RTCTimer | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'present': value.present, + 'tickPolicy': value.tickPolicy, + 'track': value.track, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1RateLimiter.ts b/packages/types/src/generated/kubevirt/models/V1RateLimiter.ts new file mode 100644 index 000000000..eefdaf85f --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1RateLimiter.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1TokenBucketRateLimiter } from './V1TokenBucketRateLimiter'; +import { + V1TokenBucketRateLimiterFromJSON, + V1TokenBucketRateLimiterFromJSONTyped, + V1TokenBucketRateLimiterToJSON, +} from './V1TokenBucketRateLimiter'; + +/** + * + * @export + * @interface V1RateLimiter + */ +export interface V1RateLimiter { + /** + * + * @type {V1TokenBucketRateLimiter} + * @memberof V1RateLimiter + */ + tokenBucketRateLimiter?: V1TokenBucketRateLimiter; +} + +/** + * Check if a given object implements the V1RateLimiter interface. + */ +export function instanceOfV1RateLimiter(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1RateLimiterFromJSON(json: any): V1RateLimiter { + return V1RateLimiterFromJSONTyped(json, false); +} + +export function V1RateLimiterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1RateLimiter { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'tokenBucketRateLimiter': !exists(json, 'tokenBucketRateLimiter') ? undefined : V1TokenBucketRateLimiterFromJSON(json['tokenBucketRateLimiter']), + }; +} + +export function V1RateLimiterToJSON(value?: V1RateLimiter | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'tokenBucketRateLimiter': V1TokenBucketRateLimiterToJSON(value.tokenBucketRateLimiter), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1Realtime.ts b/packages/types/src/generated/kubevirt/models/V1Realtime.ts new file mode 100644 index 000000000..1b9326497 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1Realtime.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Realtime holds the tuning knobs specific for realtime workloads. + * @export + * @interface V1Realtime + */ +export interface V1Realtime { + /** + * Mask defines the vcpu mask expression that defines which vcpus are used for realtime. Format matches libvirt's expressions. Example: "0-3,^1","0,2,3","2-3" + * @type {string} + * @memberof V1Realtime + */ + mask?: string; +} + +/** + * Check if a given object implements the V1Realtime interface. + */ +export function instanceOfV1Realtime(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1RealtimeFromJSON(json: any): V1Realtime { + return V1RealtimeFromJSONTyped(json, false); +} + +export function V1RealtimeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Realtime { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'mask': !exists(json, 'mask') ? undefined : json['mask'], + }; +} + +export function V1RealtimeToJSON(value?: V1Realtime | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'mask': value.mask, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1ReloadableComponentConfiguration.ts b/packages/types/src/generated/kubevirt/models/V1ReloadableComponentConfiguration.ts new file mode 100644 index 000000000..a05d38ba6 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1ReloadableComponentConfiguration.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1RESTClientConfiguration } from './V1RESTClientConfiguration'; +import { + V1RESTClientConfigurationFromJSON, + V1RESTClientConfigurationFromJSONTyped, + V1RESTClientConfigurationToJSON, +} from './V1RESTClientConfiguration'; + +/** + * ReloadableComponentConfiguration holds all generic k8s configuration options which can be reloaded by components without requiring a restart. + * @export + * @interface V1ReloadableComponentConfiguration + */ +export interface V1ReloadableComponentConfiguration { + /** + * + * @type {V1RESTClientConfiguration} + * @memberof V1ReloadableComponentConfiguration + */ + restClient?: V1RESTClientConfiguration; +} + +/** + * Check if a given object implements the V1ReloadableComponentConfiguration interface. + */ +export function instanceOfV1ReloadableComponentConfiguration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1ReloadableComponentConfigurationFromJSON(json: any): V1ReloadableComponentConfiguration { + return V1ReloadableComponentConfigurationFromJSONTyped(json, false); +} + +export function V1ReloadableComponentConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReloadableComponentConfiguration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'restClient': !exists(json, 'restClient') ? undefined : V1RESTClientConfigurationFromJSON(json['restClient']), + }; +} + +export function V1ReloadableComponentConfigurationToJSON(value?: V1ReloadableComponentConfiguration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'restClient': V1RESTClientConfigurationToJSON(value.restClient), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1RemoveVolumeOptions.ts b/packages/types/src/generated/kubevirt/models/V1RemoveVolumeOptions.ts new file mode 100644 index 000000000..2a0d38479 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1RemoveVolumeOptions.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * RemoveVolumeOptions is provided when dynamically hot unplugging volume and disk + * @export + * @interface V1RemoveVolumeOptions + */ +export interface V1RemoveVolumeOptions { + /** + * When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @type {Array} + * @memberof V1RemoveVolumeOptions + */ + dryRun?: Array; + /** + * Name represents the name that maps to both the disk and volume that should be removed + * @type {string} + * @memberof V1RemoveVolumeOptions + */ + name: string; +} + +/** + * Check if a given object implements the V1RemoveVolumeOptions interface. + */ +export function instanceOfV1RemoveVolumeOptions(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function V1RemoveVolumeOptionsFromJSON(json: any): V1RemoveVolumeOptions { + return V1RemoveVolumeOptionsFromJSONTyped(json, false); +} + +export function V1RemoveVolumeOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1RemoveVolumeOptions { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dryRun': !exists(json, 'dryRun') ? undefined : json['dryRun'], + 'name': json['name'], + }; +} + +export function V1RemoveVolumeOptionsToJSON(value?: V1RemoveVolumeOptions | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'dryRun': value.dryRun, + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1ResourceRequirements.ts b/packages/types/src/generated/kubevirt/models/V1ResourceRequirements.ts new file mode 100644 index 000000000..c3b421ac2 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1ResourceRequirements.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1ResourceRequirements + */ +export interface V1ResourceRequirements { + /** + * Limits describes the maximum amount of compute resources allowed. Valid resource keys are "memory" and "cpu". + * @type {object} + * @memberof V1ResourceRequirements + */ + limits?: object; + /** + * Don't ask the scheduler to take the guest-management overhead into account. Instead put the overhead only into the container's memory limit. This can lead to crashes if all memory is in use on a node. Defaults to false. + * @type {boolean} + * @memberof V1ResourceRequirements + */ + overcommitGuestOverhead?: boolean; + /** + * Requests is a description of the initial vmi resources. Valid resource keys are "memory" and "cpu". + * @type {object} + * @memberof V1ResourceRequirements + */ + requests?: object; +} + +/** + * Check if a given object implements the V1ResourceRequirements interface. + */ +export function instanceOfV1ResourceRequirements(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1ResourceRequirementsFromJSON(json: any): V1ResourceRequirements { + return V1ResourceRequirementsFromJSONTyped(json, false); +} + +export function V1ResourceRequirementsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ResourceRequirements { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'limits': !exists(json, 'limits') ? undefined : json['limits'], + 'overcommitGuestOverhead': !exists(json, 'overcommitGuestOverhead') ? undefined : json['overcommitGuestOverhead'], + 'requests': !exists(json, 'requests') ? undefined : json['requests'], + }; +} + +export function V1ResourceRequirementsToJSON(value?: V1ResourceRequirements | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'limits': value.limits, + 'overcommitGuestOverhead': value.overcommitGuestOverhead, + 'requests': value.requests, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1RestartOptions.ts b/packages/types/src/generated/kubevirt/models/V1RestartOptions.ts new file mode 100644 index 000000000..ca6abe888 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1RestartOptions.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * RestartOptions may be provided when deleting an API object. + * @export + * @interface V1RestartOptions + */ +export interface V1RestartOptions { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1RestartOptions + */ + apiVersion?: 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 + * @type {Array} + * @memberof V1RestartOptions + */ + dryRun?: Array; + /** + * The duration in seconds before the object should be force-restarted. Value must be non-negative integer. The value zero indicates, restart immediately. If this value is nil, the default grace period for deletion of the corresponding VMI for the specified type will be used to determine on how much time to give the VMI to restart. Defaults to a per object value if not specified. zero means restart immediately. Allowed Values: nil and 0 + * @type {number} + * @memberof V1RestartOptions + */ + gracePeriodSeconds?: number; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof V1RestartOptions + */ + kind?: string; +} + +/** + * Check if a given object implements the V1RestartOptions interface. + */ +export function instanceOfV1RestartOptions(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1RestartOptionsFromJSON(json: any): V1RestartOptions { + return V1RestartOptionsFromJSONTyped(json, false); +} + +export function V1RestartOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1RestartOptions { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'dryRun': !exists(json, 'dryRun') ? undefined : json['dryRun'], + 'gracePeriodSeconds': !exists(json, 'gracePeriodSeconds') ? undefined : json['gracePeriodSeconds'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + }; +} + +export function V1RestartOptionsToJSON(value?: V1RestartOptions | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'dryRun': value.dryRun, + 'gracePeriodSeconds': value.gracePeriodSeconds, + 'kind': value.kind, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1SEV.ts b/packages/types/src/generated/kubevirt/models/V1SEV.ts new file mode 100644 index 000000000..250506234 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1SEV.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1SEVPolicy } from './V1SEVPolicy'; +import { + V1SEVPolicyFromJSON, + V1SEVPolicyFromJSONTyped, + V1SEVPolicyToJSON, +} from './V1SEVPolicy'; + +/** + * + * @export + * @interface V1SEV + */ +export interface V1SEV { + /** + * + * @type {object} + * @memberof V1SEV + */ + attestation?: object; + /** + * Base64 encoded guest owner's Diffie-Hellman key. + * @type {string} + * @memberof V1SEV + */ + dhCert?: string; + /** + * + * @type {V1SEVPolicy} + * @memberof V1SEV + */ + policy?: V1SEVPolicy; + /** + * Base64 encoded session blob. + * @type {string} + * @memberof V1SEV + */ + session?: string; +} + +/** + * Check if a given object implements the V1SEV interface. + */ +export function instanceOfV1SEV(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1SEVFromJSON(json: any): V1SEV { + return V1SEVFromJSONTyped(json, false); +} + +export function V1SEVFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SEV { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'attestation': !exists(json, 'attestation') ? undefined : json['attestation'], + 'dhCert': !exists(json, 'dhCert') ? undefined : json['dhCert'], + 'policy': !exists(json, 'policy') ? undefined : V1SEVPolicyFromJSON(json['policy']), + 'session': !exists(json, 'session') ? undefined : json['session'], + }; +} + +export function V1SEVToJSON(value?: V1SEV | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'attestation': value.attestation, + 'dhCert': value.dhCert, + 'policy': V1SEVPolicyToJSON(value.policy), + 'session': value.session, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1SEVMeasurementInfo.ts b/packages/types/src/generated/kubevirt/models/V1SEVMeasurementInfo.ts new file mode 100644 index 000000000..2448b4f82 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1SEVMeasurementInfo.ts @@ -0,0 +1,121 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * SEVMeasurementInfo contains information about the guest launch measurement. + * @export + * @interface V1SEVMeasurementInfo + */ +export interface V1SEVMeasurementInfo { + /** + * API major version of the SEV host. + * @type {number} + * @memberof V1SEVMeasurementInfo + */ + apiMajor?: number; + /** + * API minor version of the SEV host. + * @type {number} + * @memberof V1SEVMeasurementInfo + */ + apiMinor?: number; + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1SEVMeasurementInfo + */ + apiVersion?: string; + /** + * Build ID of the SEV host. + * @type {number} + * @memberof V1SEVMeasurementInfo + */ + buildID?: number; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof V1SEVMeasurementInfo + */ + kind?: string; + /** + * SHA256 of the loader binary + * @type {string} + * @memberof V1SEVMeasurementInfo + */ + loaderSHA?: string; + /** + * Base64 encoded launch measurement of the SEV guest. + * @type {string} + * @memberof V1SEVMeasurementInfo + */ + measurement?: string; + /** + * Policy of the SEV guest. + * @type {number} + * @memberof V1SEVMeasurementInfo + */ + policy?: number; +} + +/** + * Check if a given object implements the V1SEVMeasurementInfo interface. + */ +export function instanceOfV1SEVMeasurementInfo(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1SEVMeasurementInfoFromJSON(json: any): V1SEVMeasurementInfo { + return V1SEVMeasurementInfoFromJSONTyped(json, false); +} + +export function V1SEVMeasurementInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SEVMeasurementInfo { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiMajor': !exists(json, 'apiMajor') ? undefined : json['apiMajor'], + 'apiMinor': !exists(json, 'apiMinor') ? undefined : json['apiMinor'], + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'buildID': !exists(json, 'buildID') ? undefined : json['buildID'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'loaderSHA': !exists(json, 'loaderSHA') ? undefined : json['loaderSHA'], + 'measurement': !exists(json, 'measurement') ? undefined : json['measurement'], + 'policy': !exists(json, 'policy') ? undefined : json['policy'], + }; +} + +export function V1SEVMeasurementInfoToJSON(value?: V1SEVMeasurementInfo | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiMajor': value.apiMajor, + 'apiMinor': value.apiMinor, + 'apiVersion': value.apiVersion, + 'buildID': value.buildID, + 'kind': value.kind, + 'loaderSHA': value.loaderSHA, + 'measurement': value.measurement, + 'policy': value.policy, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1SEVPlatformInfo.ts b/packages/types/src/generated/kubevirt/models/V1SEVPlatformInfo.ts new file mode 100644 index 000000000..f3f861230 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1SEVPlatformInfo.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * SEVPlatformInfo contains information about the AMD SEV features for the node. + * @export + * @interface V1SEVPlatformInfo + */ +export interface V1SEVPlatformInfo { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1SEVPlatformInfo + */ + apiVersion?: string; + /** + * Base64 encoded SEV certificate chain. + * @type {string} + * @memberof V1SEVPlatformInfo + */ + certChain?: 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 + * @type {string} + * @memberof V1SEVPlatformInfo + */ + kind?: string; + /** + * Base64 encoded platform Diffie-Hellman key. + * @type {string} + * @memberof V1SEVPlatformInfo + */ + pdh?: string; +} + +/** + * Check if a given object implements the V1SEVPlatformInfo interface. + */ +export function instanceOfV1SEVPlatformInfo(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1SEVPlatformInfoFromJSON(json: any): V1SEVPlatformInfo { + return V1SEVPlatformInfoFromJSONTyped(json, false); +} + +export function V1SEVPlatformInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SEVPlatformInfo { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'certChain': !exists(json, 'certChain') ? undefined : json['certChain'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'pdh': !exists(json, 'pdh') ? undefined : json['pdh'], + }; +} + +export function V1SEVPlatformInfoToJSON(value?: V1SEVPlatformInfo | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'certChain': value.certChain, + 'kind': value.kind, + 'pdh': value.pdh, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1SEVPolicy.ts b/packages/types/src/generated/kubevirt/models/V1SEVPolicy.ts new file mode 100644 index 000000000..bbe9f7adb --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1SEVPolicy.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1SEVPolicy + */ +export interface V1SEVPolicy { + /** + * SEV-ES is required. Defaults to false. + * @type {boolean} + * @memberof V1SEVPolicy + */ + encryptedState?: boolean; +} + +/** + * Check if a given object implements the V1SEVPolicy interface. + */ +export function instanceOfV1SEVPolicy(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1SEVPolicyFromJSON(json: any): V1SEVPolicy { + return V1SEVPolicyFromJSONTyped(json, false); +} + +export function V1SEVPolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SEVPolicy { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'encryptedState': !exists(json, 'encryptedState') ? undefined : json['encryptedState'], + }; +} + +export function V1SEVPolicyToJSON(value?: V1SEVPolicy | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'encryptedState': value.encryptedState, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1SEVSecretOptions.ts b/packages/types/src/generated/kubevirt/models/V1SEVSecretOptions.ts new file mode 100644 index 000000000..29c29e973 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1SEVSecretOptions.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * SEVSecretOptions is used to provide a secret for a running guest. + * @export + * @interface V1SEVSecretOptions + */ +export interface V1SEVSecretOptions { + /** + * Base64 encoded header needed to decrypt the secret. + * @type {string} + * @memberof V1SEVSecretOptions + */ + header?: string; + /** + * Base64 encoded encrypted launch secret. + * @type {string} + * @memberof V1SEVSecretOptions + */ + secret?: string; +} + +/** + * Check if a given object implements the V1SEVSecretOptions interface. + */ +export function instanceOfV1SEVSecretOptions(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1SEVSecretOptionsFromJSON(json: any): V1SEVSecretOptions { + return V1SEVSecretOptionsFromJSONTyped(json, false); +} + +export function V1SEVSecretOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SEVSecretOptions { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'header': !exists(json, 'header') ? undefined : json['header'], + 'secret': !exists(json, 'secret') ? undefined : json['secret'], + }; +} + +export function V1SEVSecretOptionsToJSON(value?: V1SEVSecretOptions | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'header': value.header, + 'secret': value.secret, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1SEVSessionOptions.ts b/packages/types/src/generated/kubevirt/models/V1SEVSessionOptions.ts new file mode 100644 index 000000000..a54478586 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1SEVSessionOptions.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * SEVSessionOptions is used to provide SEV session parameters. + * @export + * @interface V1SEVSessionOptions + */ +export interface V1SEVSessionOptions { + /** + * Base64 encoded guest owner's Diffie-Hellman key. + * @type {string} + * @memberof V1SEVSessionOptions + */ + dhCert?: string; + /** + * Base64 encoded session blob. + * @type {string} + * @memberof V1SEVSessionOptions + */ + session?: string; +} + +/** + * Check if a given object implements the V1SEVSessionOptions interface. + */ +export function instanceOfV1SEVSessionOptions(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1SEVSessionOptionsFromJSON(json: any): V1SEVSessionOptions { + return V1SEVSessionOptionsFromJSONTyped(json, false); +} + +export function V1SEVSessionOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SEVSessionOptions { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dhCert': !exists(json, 'dhCert') ? undefined : json['dhCert'], + 'session': !exists(json, 'session') ? undefined : json['session'], + }; +} + +export function V1SEVSessionOptionsToJSON(value?: V1SEVSessionOptions | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'dhCert': value.dhCert, + 'session': value.session, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1SMBiosConfiguration.ts b/packages/types/src/generated/kubevirt/models/V1SMBiosConfiguration.ts new file mode 100644 index 000000000..d8e0daf02 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1SMBiosConfiguration.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1SMBiosConfiguration + */ +export interface V1SMBiosConfiguration { + /** + * + * @type {string} + * @memberof V1SMBiosConfiguration + */ + family?: string; + /** + * + * @type {string} + * @memberof V1SMBiosConfiguration + */ + manufacturer?: string; + /** + * + * @type {string} + * @memberof V1SMBiosConfiguration + */ + product?: string; + /** + * + * @type {string} + * @memberof V1SMBiosConfiguration + */ + sku?: string; + /** + * + * @type {string} + * @memberof V1SMBiosConfiguration + */ + version?: string; +} + +/** + * Check if a given object implements the V1SMBiosConfiguration interface. + */ +export function instanceOfV1SMBiosConfiguration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1SMBiosConfigurationFromJSON(json: any): V1SMBiosConfiguration { + return V1SMBiosConfigurationFromJSONTyped(json, false); +} + +export function V1SMBiosConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SMBiosConfiguration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'family': !exists(json, 'family') ? undefined : json['family'], + 'manufacturer': !exists(json, 'manufacturer') ? undefined : json['manufacturer'], + 'product': !exists(json, 'product') ? undefined : json['product'], + 'sku': !exists(json, 'sku') ? undefined : json['sku'], + 'version': !exists(json, 'version') ? undefined : json['version'], + }; +} + +export function V1SMBiosConfigurationToJSON(value?: V1SMBiosConfiguration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'family': value.family, + 'manufacturer': value.manufacturer, + 'product': value.product, + 'sku': value.sku, + 'version': value.version, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1SSHPublicKeyAccessCredential.ts b/packages/types/src/generated/kubevirt/models/V1SSHPublicKeyAccessCredential.ts new file mode 100644 index 000000000..34345c2c5 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1SSHPublicKeyAccessCredential.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1SSHPublicKeyAccessCredentialPropagationMethod } from './V1SSHPublicKeyAccessCredentialPropagationMethod'; +import { + V1SSHPublicKeyAccessCredentialPropagationMethodFromJSON, + V1SSHPublicKeyAccessCredentialPropagationMethodFromJSONTyped, + V1SSHPublicKeyAccessCredentialPropagationMethodToJSON, +} from './V1SSHPublicKeyAccessCredentialPropagationMethod'; +import type { V1SSHPublicKeyAccessCredentialSource } from './V1SSHPublicKeyAccessCredentialSource'; +import { + V1SSHPublicKeyAccessCredentialSourceFromJSON, + V1SSHPublicKeyAccessCredentialSourceFromJSONTyped, + V1SSHPublicKeyAccessCredentialSourceToJSON, +} from './V1SSHPublicKeyAccessCredentialSource'; + +/** + * SSHPublicKeyAccessCredential represents a source and propagation method for injecting ssh public keys into a vm guest + * @export + * @interface V1SSHPublicKeyAccessCredential + */ +export interface V1SSHPublicKeyAccessCredential { + /** + * + * @type {V1SSHPublicKeyAccessCredentialPropagationMethod} + * @memberof V1SSHPublicKeyAccessCredential + */ + propagationMethod: V1SSHPublicKeyAccessCredentialPropagationMethod; + /** + * + * @type {V1SSHPublicKeyAccessCredentialSource} + * @memberof V1SSHPublicKeyAccessCredential + */ + source: V1SSHPublicKeyAccessCredentialSource; +} + +/** + * Check if a given object implements the V1SSHPublicKeyAccessCredential interface. + */ +export function instanceOfV1SSHPublicKeyAccessCredential(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "propagationMethod" in value; + isInstance = isInstance && "source" in value; + + return isInstance; +} + +export function V1SSHPublicKeyAccessCredentialFromJSON(json: any): V1SSHPublicKeyAccessCredential { + return V1SSHPublicKeyAccessCredentialFromJSONTyped(json, false); +} + +export function V1SSHPublicKeyAccessCredentialFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SSHPublicKeyAccessCredential { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'propagationMethod': V1SSHPublicKeyAccessCredentialPropagationMethodFromJSON(json['propagationMethod']), + 'source': V1SSHPublicKeyAccessCredentialSourceFromJSON(json['source']), + }; +} + +export function V1SSHPublicKeyAccessCredentialToJSON(value?: V1SSHPublicKeyAccessCredential | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'propagationMethod': V1SSHPublicKeyAccessCredentialPropagationMethodToJSON(value.propagationMethod), + 'source': V1SSHPublicKeyAccessCredentialSourceToJSON(value.source), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1SSHPublicKeyAccessCredentialPropagationMethod.ts b/packages/types/src/generated/kubevirt/models/V1SSHPublicKeyAccessCredentialPropagationMethod.ts new file mode 100644 index 000000000..7bd50c237 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1SSHPublicKeyAccessCredentialPropagationMethod.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation } from './V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation'; +import { + V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagationFromJSON, + V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagationFromJSONTyped, + V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagationToJSON, +} from './V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation'; + +/** + * SSHPublicKeyAccessCredentialPropagationMethod represents the method used to inject a ssh public key into the vm guest. Only one of its members may be specified. + * @export + * @interface V1SSHPublicKeyAccessCredentialPropagationMethod + */ +export interface V1SSHPublicKeyAccessCredentialPropagationMethod { + /** + * + * @type {object} + * @memberof V1SSHPublicKeyAccessCredentialPropagationMethod + */ + configDrive?: object; + /** + * + * @type {object} + * @memberof V1SSHPublicKeyAccessCredentialPropagationMethod + */ + noCloud?: object; + /** + * + * @type {V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation} + * @memberof V1SSHPublicKeyAccessCredentialPropagationMethod + */ + qemuGuestAgent?: V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation; +} + +/** + * Check if a given object implements the V1SSHPublicKeyAccessCredentialPropagationMethod interface. + */ +export function instanceOfV1SSHPublicKeyAccessCredentialPropagationMethod(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1SSHPublicKeyAccessCredentialPropagationMethodFromJSON(json: any): V1SSHPublicKeyAccessCredentialPropagationMethod { + return V1SSHPublicKeyAccessCredentialPropagationMethodFromJSONTyped(json, false); +} + +export function V1SSHPublicKeyAccessCredentialPropagationMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SSHPublicKeyAccessCredentialPropagationMethod { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'configDrive': !exists(json, 'configDrive') ? undefined : json['configDrive'], + 'noCloud': !exists(json, 'noCloud') ? undefined : json['noCloud'], + 'qemuGuestAgent': !exists(json, 'qemuGuestAgent') ? undefined : V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagationFromJSON(json['qemuGuestAgent']), + }; +} + +export function V1SSHPublicKeyAccessCredentialPropagationMethodToJSON(value?: V1SSHPublicKeyAccessCredentialPropagationMethod | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'configDrive': value.configDrive, + 'noCloud': value.noCloud, + 'qemuGuestAgent': V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagationToJSON(value.qemuGuestAgent), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1SSHPublicKeyAccessCredentialSource.ts b/packages/types/src/generated/kubevirt/models/V1SSHPublicKeyAccessCredentialSource.ts new file mode 100644 index 000000000..4f7685a0f --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1SSHPublicKeyAccessCredentialSource.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1AccessCredentialSecretSource } from './V1AccessCredentialSecretSource'; +import { + V1AccessCredentialSecretSourceFromJSON, + V1AccessCredentialSecretSourceFromJSONTyped, + V1AccessCredentialSecretSourceToJSON, +} from './V1AccessCredentialSecretSource'; + +/** + * SSHPublicKeyAccessCredentialSource represents where to retrieve the ssh key credentials Only one of its members may be specified. + * @export + * @interface V1SSHPublicKeyAccessCredentialSource + */ +export interface V1SSHPublicKeyAccessCredentialSource { + /** + * + * @type {V1AccessCredentialSecretSource} + * @memberof V1SSHPublicKeyAccessCredentialSource + */ + secret?: V1AccessCredentialSecretSource; +} + +/** + * Check if a given object implements the V1SSHPublicKeyAccessCredentialSource interface. + */ +export function instanceOfV1SSHPublicKeyAccessCredentialSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1SSHPublicKeyAccessCredentialSourceFromJSON(json: any): V1SSHPublicKeyAccessCredentialSource { + return V1SSHPublicKeyAccessCredentialSourceFromJSONTyped(json, false); +} + +export function V1SSHPublicKeyAccessCredentialSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SSHPublicKeyAccessCredentialSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'secret': !exists(json, 'secret') ? undefined : V1AccessCredentialSecretSourceFromJSON(json['secret']), + }; +} + +export function V1SSHPublicKeyAccessCredentialSourceToJSON(value?: V1SSHPublicKeyAccessCredentialSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'secret': V1AccessCredentialSecretSourceToJSON(value.secret), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1SeccompConfiguration.ts b/packages/types/src/generated/kubevirt/models/V1SeccompConfiguration.ts new file mode 100644 index 000000000..e0fb111a4 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1SeccompConfiguration.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1VirtualMachineInstanceProfile } from './V1VirtualMachineInstanceProfile'; +import { + V1VirtualMachineInstanceProfileFromJSON, + V1VirtualMachineInstanceProfileFromJSONTyped, + V1VirtualMachineInstanceProfileToJSON, +} from './V1VirtualMachineInstanceProfile'; + +/** + * SeccompConfiguration holds Seccomp configuration for Kubevirt components + * @export + * @interface V1SeccompConfiguration + */ +export interface V1SeccompConfiguration { + /** + * + * @type {V1VirtualMachineInstanceProfile} + * @memberof V1SeccompConfiguration + */ + virtualMachineInstanceProfile?: V1VirtualMachineInstanceProfile; +} + +/** + * Check if a given object implements the V1SeccompConfiguration interface. + */ +export function instanceOfV1SeccompConfiguration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1SeccompConfigurationFromJSON(json: any): V1SeccompConfiguration { + return V1SeccompConfigurationFromJSONTyped(json, false); +} + +export function V1SeccompConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SeccompConfiguration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'virtualMachineInstanceProfile': !exists(json, 'virtualMachineInstanceProfile') ? undefined : V1VirtualMachineInstanceProfileFromJSON(json['virtualMachineInstanceProfile']), + }; +} + +export function V1SeccompConfigurationToJSON(value?: V1SeccompConfiguration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'virtualMachineInstanceProfile': V1VirtualMachineInstanceProfileToJSON(value.virtualMachineInstanceProfile), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1SecretVolumeSource.ts b/packages/types/src/generated/kubevirt/models/V1SecretVolumeSource.ts new file mode 100644 index 000000000..f2017607d --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1SecretVolumeSource.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * SecretVolumeSource adapts a Secret into a volume. + * @export + * @interface V1SecretVolumeSource + */ +export interface V1SecretVolumeSource { + /** + * Specify whether the Secret or it's keys must be defined + * @type {boolean} + * @memberof V1SecretVolumeSource + */ + optional?: boolean; + /** + * Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * @type {string} + * @memberof V1SecretVolumeSource + */ + secretName?: string; + /** + * The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are "cidata" (cloud-init), "config-2" (cloud-init) or "OEMDRV" (kickstart). + * @type {string} + * @memberof V1SecretVolumeSource + */ + volumeLabel?: string; +} + +/** + * Check if a given object implements the V1SecretVolumeSource interface. + */ +export function instanceOfV1SecretVolumeSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1SecretVolumeSourceFromJSON(json: any): V1SecretVolumeSource { + return V1SecretVolumeSourceFromJSONTyped(json, false); +} + +export function V1SecretVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SecretVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'optional': !exists(json, 'optional') ? undefined : json['optional'], + 'secretName': !exists(json, 'secretName') ? undefined : json['secretName'], + 'volumeLabel': !exists(json, 'volumeLabel') ? undefined : json['volumeLabel'], + }; +} + +export function V1SecretVolumeSourceToJSON(value?: V1SecretVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'optional': value.optional, + 'secretName': value.secretName, + 'volumeLabel': value.volumeLabel, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1ServiceAccountVolumeSource.ts b/packages/types/src/generated/kubevirt/models/V1ServiceAccountVolumeSource.ts new file mode 100644 index 000000000..14d6554cb --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1ServiceAccountVolumeSource.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * ServiceAccountVolumeSource adapts a ServiceAccount into a volume. + * @export + * @interface V1ServiceAccountVolumeSource + */ +export interface V1ServiceAccountVolumeSource { + /** + * Name of the service account in the pod's namespace to use. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * @type {string} + * @memberof V1ServiceAccountVolumeSource + */ + serviceAccountName?: string; +} + +/** + * Check if a given object implements the V1ServiceAccountVolumeSource interface. + */ +export function instanceOfV1ServiceAccountVolumeSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1ServiceAccountVolumeSourceFromJSON(json: any): V1ServiceAccountVolumeSource { + return V1ServiceAccountVolumeSourceFromJSONTyped(json, false); +} + +export function V1ServiceAccountVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ServiceAccountVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'serviceAccountName': !exists(json, 'serviceAccountName') ? undefined : json['serviceAccountName'], + }; +} + +export function V1ServiceAccountVolumeSourceToJSON(value?: V1ServiceAccountVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'serviceAccountName': value.serviceAccountName, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1SoundDevice.ts b/packages/types/src/generated/kubevirt/models/V1SoundDevice.ts new file mode 100644 index 000000000..e8a6df510 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1SoundDevice.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Represents the user's configuration to emulate sound cards in the VMI. + * @export + * @interface V1SoundDevice + */ +export interface V1SoundDevice { + /** + * We only support ich9 or ac97. If SoundDevice is not set: No sound card is emulated. If SoundDevice is set but Model is not: ich9 + * @type {string} + * @memberof V1SoundDevice + */ + model?: string; + /** + * User's defined name for this sound device + * @type {string} + * @memberof V1SoundDevice + */ + name: string; +} + +/** + * Check if a given object implements the V1SoundDevice interface. + */ +export function instanceOfV1SoundDevice(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function V1SoundDeviceFromJSON(json: any): V1SoundDevice { + return V1SoundDeviceFromJSONTyped(json, false); +} + +export function V1SoundDeviceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SoundDevice { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'model': !exists(json, 'model') ? undefined : json['model'], + 'name': json['name'], + }; +} + +export function V1SoundDeviceToJSON(value?: V1SoundDevice | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'model': value.model, + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1StartOptions.ts b/packages/types/src/generated/kubevirt/models/V1StartOptions.ts new file mode 100644 index 000000000..41ae31572 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1StartOptions.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * StartOptions may be provided on start request. + * @export + * @interface V1StartOptions + */ +export interface V1StartOptions { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1StartOptions + */ + apiVersion?: 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 + * @type {Array} + * @memberof V1StartOptions + */ + dryRun?: 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 + * @type {string} + * @memberof V1StartOptions + */ + kind?: string; + /** + * Indicates that VM will be started in paused state. + * @type {boolean} + * @memberof V1StartOptions + */ + paused?: boolean; +} + +/** + * Check if a given object implements the V1StartOptions interface. + */ +export function instanceOfV1StartOptions(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1StartOptionsFromJSON(json: any): V1StartOptions { + return V1StartOptionsFromJSONTyped(json, false); +} + +export function V1StartOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1StartOptions { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'dryRun': !exists(json, 'dryRun') ? undefined : json['dryRun'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'paused': !exists(json, 'paused') ? undefined : json['paused'], + }; +} + +export function V1StartOptionsToJSON(value?: V1StartOptions | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'dryRun': value.dryRun, + 'kind': value.kind, + 'paused': value.paused, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1StopOptions.ts b/packages/types/src/generated/kubevirt/models/V1StopOptions.ts new file mode 100644 index 000000000..9b39e37ea --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1StopOptions.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * StopOptions may be provided when deleting an API object. + * @export + * @interface V1StopOptions + */ +export interface V1StopOptions { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1StopOptions + */ + apiVersion?: 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 + * @type {Array} + * @memberof V1StopOptions + */ + dryRun?: Array; + /** + * this updates the VMIs terminationGracePeriodSeconds during shutdown + * @type {number} + * @memberof V1StopOptions + */ + gracePeriod?: number; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof V1StopOptions + */ + kind?: string; +} + +/** + * Check if a given object implements the V1StopOptions interface. + */ +export function instanceOfV1StopOptions(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1StopOptionsFromJSON(json: any): V1StopOptions { + return V1StopOptionsFromJSONTyped(json, false); +} + +export function V1StopOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1StopOptions { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'dryRun': !exists(json, 'dryRun') ? undefined : json['dryRun'], + 'gracePeriod': !exists(json, 'gracePeriod') ? undefined : json['gracePeriod'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + }; +} + +export function V1StopOptionsToJSON(value?: V1StopOptions | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'dryRun': value.dryRun, + 'gracePeriod': value.gracePeriod, + 'kind': value.kind, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1SupportContainerResources.ts b/packages/types/src/generated/kubevirt/models/V1SupportContainerResources.ts new file mode 100644 index 000000000..065a63e0f --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1SupportContainerResources.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1ResourceRequirements } from './K8sIoApiCoreV1ResourceRequirements'; +import { + K8sIoApiCoreV1ResourceRequirementsFromJSON, + K8sIoApiCoreV1ResourceRequirementsFromJSONTyped, + K8sIoApiCoreV1ResourceRequirementsToJSON, +} from './K8sIoApiCoreV1ResourceRequirements'; + +/** + * SupportContainerResources are used to specify the cpu/memory request and limits for the containers that support various features of Virtual Machines. These containers are usually idle and don't require a lot of memory or cpu. + * @export + * @interface V1SupportContainerResources + */ +export interface V1SupportContainerResources { + /** + * + * @type {K8sIoApiCoreV1ResourceRequirements} + * @memberof V1SupportContainerResources + */ + resources: K8sIoApiCoreV1ResourceRequirements; + /** + * + * @type {string} + * @memberof V1SupportContainerResources + */ + type: string; +} + +/** + * Check if a given object implements the V1SupportContainerResources interface. + */ +export function instanceOfV1SupportContainerResources(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "resources" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function V1SupportContainerResourcesFromJSON(json: any): V1SupportContainerResources { + return V1SupportContainerResourcesFromJSONTyped(json, false); +} + +export function V1SupportContainerResourcesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupportContainerResources { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'resources': K8sIoApiCoreV1ResourceRequirementsFromJSON(json['resources']), + 'type': json['type'], + }; +} + +export function V1SupportContainerResourcesToJSON(value?: V1SupportContainerResources | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'resources': K8sIoApiCoreV1ResourceRequirementsToJSON(value.resources), + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1SyNICTimer.ts b/packages/types/src/generated/kubevirt/models/V1SyNICTimer.ts new file mode 100644 index 000000000..f8cff0d86 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1SyNICTimer.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1FeatureState } from './V1FeatureState'; +import { + V1FeatureStateFromJSON, + V1FeatureStateFromJSONTyped, + V1FeatureStateToJSON, +} from './V1FeatureState'; + +/** + * + * @export + * @interface V1SyNICTimer + */ +export interface V1SyNICTimer { + /** + * + * @type {V1FeatureState} + * @memberof V1SyNICTimer + */ + direct?: V1FeatureState; + /** + * + * @type {boolean} + * @memberof V1SyNICTimer + */ + enabled?: boolean; +} + +/** + * Check if a given object implements the V1SyNICTimer interface. + */ +export function instanceOfV1SyNICTimer(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1SyNICTimerFromJSON(json: any): V1SyNICTimer { + return V1SyNICTimerFromJSONTyped(json, false); +} + +export function V1SyNICTimerFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SyNICTimer { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'direct': !exists(json, 'direct') ? undefined : V1FeatureStateFromJSON(json['direct']), + 'enabled': !exists(json, 'enabled') ? undefined : json['enabled'], + }; +} + +export function V1SyNICTimerToJSON(value?: V1SyNICTimer | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'direct': V1FeatureStateToJSON(value.direct), + 'enabled': value.enabled, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1SysprepSource.ts b/packages/types/src/generated/kubevirt/models/V1SysprepSource.ts new file mode 100644 index 000000000..eda02a249 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1SysprepSource.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1LocalObjectReference } from './K8sIoApiCoreV1LocalObjectReference'; +import { + K8sIoApiCoreV1LocalObjectReferenceFromJSON, + K8sIoApiCoreV1LocalObjectReferenceFromJSONTyped, + K8sIoApiCoreV1LocalObjectReferenceToJSON, +} from './K8sIoApiCoreV1LocalObjectReference'; + +/** + * Represents a Sysprep volume source. + * @export + * @interface V1SysprepSource + */ +export interface V1SysprepSource { + /** + * + * @type {K8sIoApiCoreV1LocalObjectReference} + * @memberof V1SysprepSource + */ + configMap?: K8sIoApiCoreV1LocalObjectReference; + /** + * + * @type {K8sIoApiCoreV1LocalObjectReference} + * @memberof V1SysprepSource + */ + secret?: K8sIoApiCoreV1LocalObjectReference; +} + +/** + * Check if a given object implements the V1SysprepSource interface. + */ +export function instanceOfV1SysprepSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1SysprepSourceFromJSON(json: any): V1SysprepSource { + return V1SysprepSourceFromJSONTyped(json, false); +} + +export function V1SysprepSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SysprepSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'configMap': !exists(json, 'configMap') ? undefined : K8sIoApiCoreV1LocalObjectReferenceFromJSON(json['configMap']), + 'secret': !exists(json, 'secret') ? undefined : K8sIoApiCoreV1LocalObjectReferenceFromJSON(json['secret']), + }; +} + +export function V1SysprepSourceToJSON(value?: V1SysprepSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'configMap': K8sIoApiCoreV1LocalObjectReferenceToJSON(value.configMap), + 'secret': K8sIoApiCoreV1LocalObjectReferenceToJSON(value.secret), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1TLSConfiguration.ts b/packages/types/src/generated/kubevirt/models/V1TLSConfiguration.ts new file mode 100644 index 000000000..a8a432798 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1TLSConfiguration.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * TLSConfiguration holds TLS options + * @export + * @interface V1TLSConfiguration + */ +export interface V1TLSConfiguration { + /** + * + * @type {Array} + * @memberof V1TLSConfiguration + */ + ciphers?: Array; + /** + * MinTLSVersion is a way to specify the minimum protocol version that is acceptable for TLS connections. Protocol versions are based on the following most common TLS configurations: + * + * https://ssl-config.mozilla.org/ + * + * Note that SSLv3.0 is not a supported protocol version due to well known vulnerabilities such as POODLE: https://en.wikipedia.org/wiki/POODLE + * @type {string} + * @memberof V1TLSConfiguration + */ + minTLSVersion?: string; +} + +/** + * Check if a given object implements the V1TLSConfiguration interface. + */ +export function instanceOfV1TLSConfiguration(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1TLSConfigurationFromJSON(json: any): V1TLSConfiguration { + return V1TLSConfigurationFromJSONTyped(json, false); +} + +export function V1TLSConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1TLSConfiguration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'ciphers': !exists(json, 'ciphers') ? undefined : json['ciphers'], + 'minTLSVersion': !exists(json, 'minTLSVersion') ? undefined : json['minTLSVersion'], + }; +} + +export function V1TLSConfigurationToJSON(value?: V1TLSConfiguration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'ciphers': value.ciphers, + 'minTLSVersion': value.minTLSVersion, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1TPMDevice.ts b/packages/types/src/generated/kubevirt/models/V1TPMDevice.ts new file mode 100644 index 000000000..ae76818e9 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1TPMDevice.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1TPMDevice + */ +export interface V1TPMDevice { + /** + * Persistent indicates the state of the TPM device should be kept accross reboots Defaults to false + * @type {boolean} + * @memberof V1TPMDevice + */ + persistent?: boolean; +} + +/** + * Check if a given object implements the V1TPMDevice interface. + */ +export function instanceOfV1TPMDevice(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1TPMDeviceFromJSON(json: any): V1TPMDevice { + return V1TPMDeviceFromJSONTyped(json, false); +} + +export function V1TPMDeviceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1TPMDevice { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'persistent': !exists(json, 'persistent') ? undefined : json['persistent'], + }; +} + +export function V1TPMDeviceToJSON(value?: V1TPMDevice | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'persistent': value.persistent, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1Timer.ts b/packages/types/src/generated/kubevirt/models/V1Timer.ts new file mode 100644 index 000000000..404bb3e5f --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1Timer.ts @@ -0,0 +1,128 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1HPETTimer } from './V1HPETTimer'; +import { + V1HPETTimerFromJSON, + V1HPETTimerFromJSONTyped, + V1HPETTimerToJSON, +} from './V1HPETTimer'; +import type { V1HypervTimer } from './V1HypervTimer'; +import { + V1HypervTimerFromJSON, + V1HypervTimerFromJSONTyped, + V1HypervTimerToJSON, +} from './V1HypervTimer'; +import type { V1KVMTimer } from './V1KVMTimer'; +import { + V1KVMTimerFromJSON, + V1KVMTimerFromJSONTyped, + V1KVMTimerToJSON, +} from './V1KVMTimer'; +import type { V1PITTimer } from './V1PITTimer'; +import { + V1PITTimerFromJSON, + V1PITTimerFromJSONTyped, + V1PITTimerToJSON, +} from './V1PITTimer'; +import type { V1RTCTimer } from './V1RTCTimer'; +import { + V1RTCTimerFromJSON, + V1RTCTimerFromJSONTyped, + V1RTCTimerToJSON, +} from './V1RTCTimer'; + +/** + * Represents all available timers in a vmi. + * @export + * @interface V1Timer + */ +export interface V1Timer { + /** + * + * @type {V1HPETTimer} + * @memberof V1Timer + */ + hpet?: V1HPETTimer; + /** + * + * @type {V1HypervTimer} + * @memberof V1Timer + */ + hyperv?: V1HypervTimer; + /** + * + * @type {V1KVMTimer} + * @memberof V1Timer + */ + kvm?: V1KVMTimer; + /** + * + * @type {V1PITTimer} + * @memberof V1Timer + */ + pit?: V1PITTimer; + /** + * + * @type {V1RTCTimer} + * @memberof V1Timer + */ + rtc?: V1RTCTimer; +} + +/** + * Check if a given object implements the V1Timer interface. + */ +export function instanceOfV1Timer(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1TimerFromJSON(json: any): V1Timer { + return V1TimerFromJSONTyped(json, false); +} + +export function V1TimerFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Timer { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'hpet': !exists(json, 'hpet') ? undefined : V1HPETTimerFromJSON(json['hpet']), + 'hyperv': !exists(json, 'hyperv') ? undefined : V1HypervTimerFromJSON(json['hyperv']), + 'kvm': !exists(json, 'kvm') ? undefined : V1KVMTimerFromJSON(json['kvm']), + 'pit': !exists(json, 'pit') ? undefined : V1PITTimerFromJSON(json['pit']), + 'rtc': !exists(json, 'rtc') ? undefined : V1RTCTimerFromJSON(json['rtc']), + }; +} + +export function V1TimerToJSON(value?: V1Timer | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'hpet': V1HPETTimerToJSON(value.hpet), + 'hyperv': V1HypervTimerToJSON(value.hyperv), + 'kvm': V1KVMTimerToJSON(value.kvm), + 'pit': V1PITTimerToJSON(value.pit), + 'rtc': V1RTCTimerToJSON(value.rtc), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1TokenBucketRateLimiter.ts b/packages/types/src/generated/kubevirt/models/V1TokenBucketRateLimiter.ts new file mode 100644 index 000000000..d990cd94e --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1TokenBucketRateLimiter.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1TokenBucketRateLimiter + */ +export interface V1TokenBucketRateLimiter { + /** + * Maximum burst for throttle. If it's zero, the component default will be used + * @type {number} + * @memberof V1TokenBucketRateLimiter + */ + burst: number; + /** + * QPS indicates the maximum QPS to the apiserver from this client. If it's zero, the component default will be used + * @type {number} + * @memberof V1TokenBucketRateLimiter + */ + qps: number; +} + +/** + * Check if a given object implements the V1TokenBucketRateLimiter interface. + */ +export function instanceOfV1TokenBucketRateLimiter(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "burst" in value; + isInstance = isInstance && "qps" in value; + + return isInstance; +} + +export function V1TokenBucketRateLimiterFromJSON(json: any): V1TokenBucketRateLimiter { + return V1TokenBucketRateLimiterFromJSONTyped(json, false); +} + +export function V1TokenBucketRateLimiterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1TokenBucketRateLimiter { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'burst': json['burst'], + 'qps': json['qps'], + }; +} + +export function V1TokenBucketRateLimiterToJSON(value?: V1TokenBucketRateLimiter | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'burst': value.burst, + 'qps': value.qps, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1TopologyHints.ts b/packages/types/src/generated/kubevirt/models/V1TopologyHints.ts new file mode 100644 index 000000000..cabf93d85 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1TopologyHints.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1TopologyHints + */ +export interface V1TopologyHints { + /** + * + * @type {number} + * @memberof V1TopologyHints + */ + tscFrequency?: number; +} + +/** + * Check if a given object implements the V1TopologyHints interface. + */ +export function instanceOfV1TopologyHints(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1TopologyHintsFromJSON(json: any): V1TopologyHints { + return V1TopologyHintsFromJSONTyped(json, false); +} + +export function V1TopologyHintsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1TopologyHints { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'tscFrequency': !exists(json, 'tscFrequency') ? undefined : json['tscFrequency'], + }; +} + +export function V1TopologyHintsToJSON(value?: V1TopologyHints | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'tscFrequency': value.tscFrequency, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1USBHostDevice.ts b/packages/types/src/generated/kubevirt/models/V1USBHostDevice.ts new file mode 100644 index 000000000..3701ce8b9 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1USBHostDevice.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1USBSelector } from './V1USBSelector'; +import { + V1USBSelectorFromJSON, + V1USBSelectorFromJSONTyped, + V1USBSelectorToJSON, +} from './V1USBSelector'; + +/** + * + * @export + * @interface V1USBHostDevice + */ +export interface V1USBHostDevice { + /** + * If true, KubeVirt will leave the allocation and monitoring to an external device plugin + * @type {boolean} + * @memberof V1USBHostDevice + */ + externalResourceProvider?: boolean; + /** + * Identifies the list of USB host devices. e.g: kubevirt.io/storage, kubevirt.io/bootable-usb, etc + * @type {string} + * @memberof V1USBHostDevice + */ + resourceName: string; + /** + * + * @type {Array} + * @memberof V1USBHostDevice + */ + selectors?: Array; +} + +/** + * Check if a given object implements the V1USBHostDevice interface. + */ +export function instanceOfV1USBHostDevice(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "resourceName" in value; + + return isInstance; +} + +export function V1USBHostDeviceFromJSON(json: any): V1USBHostDevice { + return V1USBHostDeviceFromJSONTyped(json, false); +} + +export function V1USBHostDeviceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1USBHostDevice { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'externalResourceProvider': !exists(json, 'externalResourceProvider') ? undefined : json['externalResourceProvider'], + 'resourceName': json['resourceName'], + 'selectors': !exists(json, 'selectors') ? undefined : ((json['selectors'] as Array).map(V1USBSelectorFromJSON)), + }; +} + +export function V1USBHostDeviceToJSON(value?: V1USBHostDevice | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'externalResourceProvider': value.externalResourceProvider, + 'resourceName': value.resourceName, + 'selectors': value.selectors === undefined ? undefined : ((value.selectors as Array).map(V1USBSelectorToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1USBSelector.ts b/packages/types/src/generated/kubevirt/models/V1USBSelector.ts new file mode 100644 index 000000000..81f56c2ea --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1USBSelector.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1USBSelector + */ +export interface V1USBSelector { + /** + * + * @type {string} + * @memberof V1USBSelector + */ + product: string; + /** + * + * @type {string} + * @memberof V1USBSelector + */ + vendor: string; +} + +/** + * Check if a given object implements the V1USBSelector interface. + */ +export function instanceOfV1USBSelector(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "product" in value; + isInstance = isInstance && "vendor" in value; + + return isInstance; +} + +export function V1USBSelectorFromJSON(json: any): V1USBSelector { + return V1USBSelectorFromJSONTyped(json, false); +} + +export function V1USBSelectorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1USBSelector { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'product': json['product'], + 'vendor': json['vendor'], + }; +} + +export function V1USBSelectorToJSON(value?: V1USBSelector | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'product': value.product, + 'vendor': value.vendor, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1UnpauseOptions.ts b/packages/types/src/generated/kubevirt/models/V1UnpauseOptions.ts new file mode 100644 index 000000000..1761bb56c --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1UnpauseOptions.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * UnpauseOptions may be provided on unpause request. + * @export + * @interface V1UnpauseOptions + */ +export interface V1UnpauseOptions { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1UnpauseOptions + */ + apiVersion?: 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 + * @type {Array} + * @memberof V1UnpauseOptions + */ + dryRun?: 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 + * @type {string} + * @memberof V1UnpauseOptions + */ + kind?: string; +} + +/** + * Check if a given object implements the V1UnpauseOptions interface. + */ +export function instanceOfV1UnpauseOptions(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1UnpauseOptionsFromJSON(json: any): V1UnpauseOptions { + return V1UnpauseOptionsFromJSONTyped(json, false); +} + +export function V1UnpauseOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UnpauseOptions { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'dryRun': !exists(json, 'dryRun') ? undefined : json['dryRun'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + }; +} + +export function V1UnpauseOptionsToJSON(value?: V1UnpauseOptions | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'dryRun': value.dryRun, + 'kind': value.kind, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1UserPasswordAccessCredential.ts b/packages/types/src/generated/kubevirt/models/V1UserPasswordAccessCredential.ts new file mode 100644 index 000000000..a9cfcd4bc --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1UserPasswordAccessCredential.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1UserPasswordAccessCredentialPropagationMethod } from './V1UserPasswordAccessCredentialPropagationMethod'; +import { + V1UserPasswordAccessCredentialPropagationMethodFromJSON, + V1UserPasswordAccessCredentialPropagationMethodFromJSONTyped, + V1UserPasswordAccessCredentialPropagationMethodToJSON, +} from './V1UserPasswordAccessCredentialPropagationMethod'; +import type { V1UserPasswordAccessCredentialSource } from './V1UserPasswordAccessCredentialSource'; +import { + V1UserPasswordAccessCredentialSourceFromJSON, + V1UserPasswordAccessCredentialSourceFromJSONTyped, + V1UserPasswordAccessCredentialSourceToJSON, +} from './V1UserPasswordAccessCredentialSource'; + +/** + * UserPasswordAccessCredential represents a source and propagation method for injecting user passwords into a vm guest Only one of its members may be specified. + * @export + * @interface V1UserPasswordAccessCredential + */ +export interface V1UserPasswordAccessCredential { + /** + * + * @type {V1UserPasswordAccessCredentialPropagationMethod} + * @memberof V1UserPasswordAccessCredential + */ + propagationMethod: V1UserPasswordAccessCredentialPropagationMethod; + /** + * + * @type {V1UserPasswordAccessCredentialSource} + * @memberof V1UserPasswordAccessCredential + */ + source: V1UserPasswordAccessCredentialSource; +} + +/** + * Check if a given object implements the V1UserPasswordAccessCredential interface. + */ +export function instanceOfV1UserPasswordAccessCredential(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "propagationMethod" in value; + isInstance = isInstance && "source" in value; + + return isInstance; +} + +export function V1UserPasswordAccessCredentialFromJSON(json: any): V1UserPasswordAccessCredential { + return V1UserPasswordAccessCredentialFromJSONTyped(json, false); +} + +export function V1UserPasswordAccessCredentialFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UserPasswordAccessCredential { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'propagationMethod': V1UserPasswordAccessCredentialPropagationMethodFromJSON(json['propagationMethod']), + 'source': V1UserPasswordAccessCredentialSourceFromJSON(json['source']), + }; +} + +export function V1UserPasswordAccessCredentialToJSON(value?: V1UserPasswordAccessCredential | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'propagationMethod': V1UserPasswordAccessCredentialPropagationMethodToJSON(value.propagationMethod), + 'source': V1UserPasswordAccessCredentialSourceToJSON(value.source), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1UserPasswordAccessCredentialPropagationMethod.ts b/packages/types/src/generated/kubevirt/models/V1UserPasswordAccessCredentialPropagationMethod.ts new file mode 100644 index 000000000..5e67aeebd --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1UserPasswordAccessCredentialPropagationMethod.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * UserPasswordAccessCredentialPropagationMethod represents the method used to inject a user passwords into the vm guest. Only one of its members may be specified. + * @export + * @interface V1UserPasswordAccessCredentialPropagationMethod + */ +export interface V1UserPasswordAccessCredentialPropagationMethod { + /** + * + * @type {object} + * @memberof V1UserPasswordAccessCredentialPropagationMethod + */ + qemuGuestAgent?: object; +} + +/** + * Check if a given object implements the V1UserPasswordAccessCredentialPropagationMethod interface. + */ +export function instanceOfV1UserPasswordAccessCredentialPropagationMethod(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1UserPasswordAccessCredentialPropagationMethodFromJSON(json: any): V1UserPasswordAccessCredentialPropagationMethod { + return V1UserPasswordAccessCredentialPropagationMethodFromJSONTyped(json, false); +} + +export function V1UserPasswordAccessCredentialPropagationMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UserPasswordAccessCredentialPropagationMethod { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'qemuGuestAgent': !exists(json, 'qemuGuestAgent') ? undefined : json['qemuGuestAgent'], + }; +} + +export function V1UserPasswordAccessCredentialPropagationMethodToJSON(value?: V1UserPasswordAccessCredentialPropagationMethod | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'qemuGuestAgent': value.qemuGuestAgent, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1UserPasswordAccessCredentialSource.ts b/packages/types/src/generated/kubevirt/models/V1UserPasswordAccessCredentialSource.ts new file mode 100644 index 000000000..49527e981 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1UserPasswordAccessCredentialSource.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1AccessCredentialSecretSource } from './V1AccessCredentialSecretSource'; +import { + V1AccessCredentialSecretSourceFromJSON, + V1AccessCredentialSecretSourceFromJSONTyped, + V1AccessCredentialSecretSourceToJSON, +} from './V1AccessCredentialSecretSource'; + +/** + * UserPasswordAccessCredentialSource represents where to retrieve the user password credentials Only one of its members may be specified. + * @export + * @interface V1UserPasswordAccessCredentialSource + */ +export interface V1UserPasswordAccessCredentialSource { + /** + * + * @type {V1AccessCredentialSecretSource} + * @memberof V1UserPasswordAccessCredentialSource + */ + secret?: V1AccessCredentialSecretSource; +} + +/** + * Check if a given object implements the V1UserPasswordAccessCredentialSource interface. + */ +export function instanceOfV1UserPasswordAccessCredentialSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1UserPasswordAccessCredentialSourceFromJSON(json: any): V1UserPasswordAccessCredentialSource { + return V1UserPasswordAccessCredentialSourceFromJSONTyped(json, false); +} + +export function V1UserPasswordAccessCredentialSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UserPasswordAccessCredentialSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'secret': !exists(json, 'secret') ? undefined : V1AccessCredentialSecretSourceFromJSON(json['secret']), + }; +} + +export function V1UserPasswordAccessCredentialSourceToJSON(value?: V1UserPasswordAccessCredentialSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'secret': V1AccessCredentialSecretSourceToJSON(value.secret), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VGPUDisplayOptions.ts b/packages/types/src/generated/kubevirt/models/V1VGPUDisplayOptions.ts new file mode 100644 index 000000000..5d2d24dcf --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VGPUDisplayOptions.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1FeatureState } from './V1FeatureState'; +import { + V1FeatureStateFromJSON, + V1FeatureStateFromJSONTyped, + V1FeatureStateToJSON, +} from './V1FeatureState'; + +/** + * + * @export + * @interface V1VGPUDisplayOptions + */ +export interface V1VGPUDisplayOptions { + /** + * Enabled determines if a display addapter backed by a vGPU should be enabled or disabled on the guest. Defaults to true. + * @type {boolean} + * @memberof V1VGPUDisplayOptions + */ + enabled?: boolean; + /** + * + * @type {V1FeatureState} + * @memberof V1VGPUDisplayOptions + */ + ramFB?: V1FeatureState; +} + +/** + * Check if a given object implements the V1VGPUDisplayOptions interface. + */ +export function instanceOfV1VGPUDisplayOptions(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1VGPUDisplayOptionsFromJSON(json: any): V1VGPUDisplayOptions { + return V1VGPUDisplayOptionsFromJSONTyped(json, false); +} + +export function V1VGPUDisplayOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VGPUDisplayOptions { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'enabled': !exists(json, 'enabled') ? undefined : json['enabled'], + 'ramFB': !exists(json, 'ramFB') ? undefined : V1FeatureStateFromJSON(json['ramFB']), + }; +} + +export function V1VGPUDisplayOptionsToJSON(value?: V1VGPUDisplayOptions | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'enabled': value.enabled, + 'ramFB': V1FeatureStateToJSON(value.ramFB), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VGPUOptions.ts b/packages/types/src/generated/kubevirt/models/V1VGPUOptions.ts new file mode 100644 index 000000000..7c807c1a4 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VGPUOptions.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1VGPUDisplayOptions } from './V1VGPUDisplayOptions'; +import { + V1VGPUDisplayOptionsFromJSON, + V1VGPUDisplayOptionsFromJSONTyped, + V1VGPUDisplayOptionsToJSON, +} from './V1VGPUDisplayOptions'; + +/** + * + * @export + * @interface V1VGPUOptions + */ +export interface V1VGPUOptions { + /** + * + * @type {V1VGPUDisplayOptions} + * @memberof V1VGPUOptions + */ + display?: V1VGPUDisplayOptions; +} + +/** + * Check if a given object implements the V1VGPUOptions interface. + */ +export function instanceOfV1VGPUOptions(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1VGPUOptionsFromJSON(json: any): V1VGPUOptions { + return V1VGPUOptionsFromJSONTyped(json, false); +} + +export function V1VGPUOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VGPUOptions { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'display': !exists(json, 'display') ? undefined : V1VGPUDisplayOptionsFromJSON(json['display']), + }; +} + +export function V1VGPUOptionsToJSON(value?: V1VGPUOptions | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'display': V1VGPUDisplayOptionsToJSON(value.display), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachine.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachine.ts new file mode 100644 index 000000000..9a66e45e6 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachine.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ObjectMeta } from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import type { V1VirtualMachineSpec } from './V1VirtualMachineSpec'; +import { + V1VirtualMachineSpecFromJSON, + V1VirtualMachineSpecFromJSONTyped, + V1VirtualMachineSpecToJSON, +} from './V1VirtualMachineSpec'; +import type { V1VirtualMachineStatus } from './V1VirtualMachineStatus'; +import { + V1VirtualMachineStatusFromJSON, + V1VirtualMachineStatusFromJSONTyped, + V1VirtualMachineStatusToJSON, +} from './V1VirtualMachineStatus'; + +/** + * VirtualMachine handles the VirtualMachines that are not running or are in a stopped state The VirtualMachine contains the template to create the VirtualMachineInstance. It also mirrors the running state of the created VirtualMachineInstance in its status. + * @export + * @interface V1VirtualMachine + */ +export interface V1VirtualMachine { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1VirtualMachine + */ + 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 + * @type {string} + * @memberof V1VirtualMachine + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ObjectMeta} + * @memberof V1VirtualMachine + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {V1VirtualMachineSpec} + * @memberof V1VirtualMachine + */ + spec: V1VirtualMachineSpec; + /** + * + * @type {V1VirtualMachineStatus} + * @memberof V1VirtualMachine + */ + status?: V1VirtualMachineStatus; +} + +/** + * Check if a given object implements the V1VirtualMachine interface. + */ +export function instanceOfV1VirtualMachine(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function V1VirtualMachineFromJSON(json: any): V1VirtualMachine { + return V1VirtualMachineFromJSONTyped(json, false); +} + +export function V1VirtualMachineFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachine { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': V1VirtualMachineSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : V1VirtualMachineStatusFromJSON(json['status']), + }; +} + +export function V1VirtualMachineToJSON(value?: V1VirtualMachine | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': V1VirtualMachineSpecToJSON(value.spec), + 'status': V1VirtualMachineStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineCondition.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineCondition.ts new file mode 100644 index 000000000..698a964de --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineCondition.ts @@ -0,0 +1,95 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * VirtualMachineCondition represents the state of VirtualMachine + * @export + * @interface V1VirtualMachineCondition + */ +export interface V1VirtualMachineCondition { + /** + * + * @type {string} + * @memberof V1VirtualMachineCondition + */ + message?: string; + /** + * + * @type {string} + * @memberof V1VirtualMachineCondition + */ + reason?: string; + /** + * + * @type {string} + * @memberof V1VirtualMachineCondition + */ + status: string; + /** + * + * @type {string} + * @memberof V1VirtualMachineCondition + */ + type: string; + + /** */ + lastProbeTime?: string; + lastTransitionTime?: string; +} + +/** + * Check if a given object implements the V1VirtualMachineCondition interface. + */ +export function instanceOfV1VirtualMachineCondition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "status" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function V1VirtualMachineConditionFromJSON(json: any): V1VirtualMachineCondition { + return V1VirtualMachineConditionFromJSONTyped(json, false); +} + +export function V1VirtualMachineConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'status': json['status'], + 'type': json['type'], + }; +} + +export function V1VirtualMachineConditionToJSON(value?: V1VirtualMachineCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'message': value.message, + 'reason': value.reason, + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstance.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstance.ts new file mode 100644 index 000000000..94457af92 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstance.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ObjectMeta } from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import type { V1VirtualMachineInstanceSpec } from './V1VirtualMachineInstanceSpec'; +import { + V1VirtualMachineInstanceSpecFromJSON, + V1VirtualMachineInstanceSpecFromJSONTyped, + V1VirtualMachineInstanceSpecToJSON, +} from './V1VirtualMachineInstanceSpec'; +import type { V1VirtualMachineInstanceStatus } from './V1VirtualMachineInstanceStatus'; +import { + V1VirtualMachineInstanceStatusFromJSON, + V1VirtualMachineInstanceStatusFromJSONTyped, + V1VirtualMachineInstanceStatusToJSON, +} from './V1VirtualMachineInstanceStatus'; + +/** + * VirtualMachineInstance is *the* VirtualMachineInstance Definition. It represents a virtual machine in the runtime environment of kubernetes. + * @export + * @interface V1VirtualMachineInstance + */ +export interface V1VirtualMachineInstance { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1VirtualMachineInstance + */ + 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 + * @type {string} + * @memberof V1VirtualMachineInstance + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ObjectMeta} + * @memberof V1VirtualMachineInstance + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {V1VirtualMachineInstanceSpec} + * @memberof V1VirtualMachineInstance + */ + spec: V1VirtualMachineInstanceSpec; + /** + * + * @type {V1VirtualMachineInstanceStatus} + * @memberof V1VirtualMachineInstance + */ + status?: V1VirtualMachineInstanceStatus; +} + +/** + * Check if a given object implements the V1VirtualMachineInstance interface. + */ +export function instanceOfV1VirtualMachineInstance(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function V1VirtualMachineInstanceFromJSON(json: any): V1VirtualMachineInstance { + return V1VirtualMachineInstanceFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstance { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': V1VirtualMachineInstanceSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : V1VirtualMachineInstanceStatusFromJSON(json['status']), + }; +} + +export function V1VirtualMachineInstanceToJSON(value?: V1VirtualMachineInstance | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': V1VirtualMachineInstanceSpecToJSON(value.spec), + 'status': V1VirtualMachineInstanceStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceCondition.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceCondition.ts new file mode 100644 index 000000000..e9d12b768 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceCondition.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1VirtualMachineInstanceCondition + */ +export interface V1VirtualMachineInstanceCondition { + /** + * + * @type {string} + * @memberof V1VirtualMachineInstanceCondition + */ + message?: string; + /** + * + * @type {string} + * @memberof V1VirtualMachineInstanceCondition + */ + reason?: string; + /** + * + * @type {string} + * @memberof V1VirtualMachineInstanceCondition + */ + status: string; + /** + * + * @type {string} + * @memberof V1VirtualMachineInstanceCondition + */ + type: string; +} + +/** + * Check if a given object implements the V1VirtualMachineInstanceCondition interface. + */ +export function instanceOfV1VirtualMachineInstanceCondition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "status" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function V1VirtualMachineInstanceConditionFromJSON(json: any): V1VirtualMachineInstanceCondition { + return V1VirtualMachineInstanceConditionFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstanceConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstanceCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'status': json['status'], + 'type': json['type'], + }; +} + +export function V1VirtualMachineInstanceConditionToJSON(value?: V1VirtualMachineInstanceCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'message': value.message, + 'reason': value.reason, + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceFileSystem.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceFileSystem.ts new file mode 100644 index 000000000..19a516c07 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceFileSystem.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1VirtualMachineInstanceFileSystemDisk } from './V1VirtualMachineInstanceFileSystemDisk'; +import { + V1VirtualMachineInstanceFileSystemDiskFromJSON, + V1VirtualMachineInstanceFileSystemDiskFromJSONTyped, + V1VirtualMachineInstanceFileSystemDiskToJSON, +} from './V1VirtualMachineInstanceFileSystemDisk'; + +/** + * VirtualMachineInstanceFileSystem represents guest os disk + * @export + * @interface V1VirtualMachineInstanceFileSystem + */ +export interface V1VirtualMachineInstanceFileSystem { + /** + * + * @type {Array} + * @memberof V1VirtualMachineInstanceFileSystem + */ + disk?: Array; + /** + * + * @type {string} + * @memberof V1VirtualMachineInstanceFileSystem + */ + diskName: string; + /** + * + * @type {string} + * @memberof V1VirtualMachineInstanceFileSystem + */ + fileSystemType: string; + /** + * + * @type {string} + * @memberof V1VirtualMachineInstanceFileSystem + */ + mountPoint: string; + /** + * + * @type {number} + * @memberof V1VirtualMachineInstanceFileSystem + */ + totalBytes: number; + /** + * + * @type {number} + * @memberof V1VirtualMachineInstanceFileSystem + */ + usedBytes: number; +} + +/** + * Check if a given object implements the V1VirtualMachineInstanceFileSystem interface. + */ +export function instanceOfV1VirtualMachineInstanceFileSystem(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "diskName" in value; + isInstance = isInstance && "fileSystemType" in value; + isInstance = isInstance && "mountPoint" in value; + isInstance = isInstance && "totalBytes" in value; + isInstance = isInstance && "usedBytes" in value; + + return isInstance; +} + +export function V1VirtualMachineInstanceFileSystemFromJSON(json: any): V1VirtualMachineInstanceFileSystem { + return V1VirtualMachineInstanceFileSystemFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstanceFileSystemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstanceFileSystem { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'disk': !exists(json, 'disk') ? undefined : ((json['disk'] as Array).map(V1VirtualMachineInstanceFileSystemDiskFromJSON)), + 'diskName': json['diskName'], + 'fileSystemType': json['fileSystemType'], + 'mountPoint': json['mountPoint'], + 'totalBytes': json['totalBytes'], + 'usedBytes': json['usedBytes'], + }; +} + +export function V1VirtualMachineInstanceFileSystemToJSON(value?: V1VirtualMachineInstanceFileSystem | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'disk': value.disk === undefined ? undefined : ((value.disk as Array).map(V1VirtualMachineInstanceFileSystemDiskToJSON)), + 'diskName': value.diskName, + 'fileSystemType': value.fileSystemType, + 'mountPoint': value.mountPoint, + 'totalBytes': value.totalBytes, + 'usedBytes': value.usedBytes, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceFileSystemDisk.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceFileSystemDisk.ts new file mode 100644 index 000000000..2165604dc --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceFileSystemDisk.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * VirtualMachineInstanceFileSystemDisk represents the guest os FS disks + * @export + * @interface V1VirtualMachineInstanceFileSystemDisk + */ +export interface V1VirtualMachineInstanceFileSystemDisk { + /** + * + * @type {string} + * @memberof V1VirtualMachineInstanceFileSystemDisk + */ + busType: string; + /** + * + * @type {string} + * @memberof V1VirtualMachineInstanceFileSystemDisk + */ + serial: string; +} + +/** + * Check if a given object implements the V1VirtualMachineInstanceFileSystemDisk interface. + */ +export function instanceOfV1VirtualMachineInstanceFileSystemDisk(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "busType" in value; + isInstance = isInstance && "serial" in value; + + return isInstance; +} + +export function V1VirtualMachineInstanceFileSystemDiskFromJSON(json: any): V1VirtualMachineInstanceFileSystemDisk { + return V1VirtualMachineInstanceFileSystemDiskFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstanceFileSystemDiskFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstanceFileSystemDisk { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'busType': json['bus-type'], + 'serial': json['serial'], + }; +} + +export function V1VirtualMachineInstanceFileSystemDiskToJSON(value?: V1VirtualMachineInstanceFileSystemDisk | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'bus-type': value.busType, + 'serial': value.serial, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceFileSystemInfo.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceFileSystemInfo.ts new file mode 100644 index 000000000..6758f16fc --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceFileSystemInfo.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1VirtualMachineInstanceFileSystem } from './V1VirtualMachineInstanceFileSystem'; +import { + V1VirtualMachineInstanceFileSystemFromJSON, + V1VirtualMachineInstanceFileSystemFromJSONTyped, + V1VirtualMachineInstanceFileSystemToJSON, +} from './V1VirtualMachineInstanceFileSystem'; + +/** + * VirtualMachineInstanceFileSystemInfo represents information regarding single guest os filesystem + * @export + * @interface V1VirtualMachineInstanceFileSystemInfo + */ +export interface V1VirtualMachineInstanceFileSystemInfo { + /** + * + * @type {Array} + * @memberof V1VirtualMachineInstanceFileSystemInfo + */ + disks: Array; +} + +/** + * Check if a given object implements the V1VirtualMachineInstanceFileSystemInfo interface. + */ +export function instanceOfV1VirtualMachineInstanceFileSystemInfo(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "disks" in value; + + return isInstance; +} + +export function V1VirtualMachineInstanceFileSystemInfoFromJSON(json: any): V1VirtualMachineInstanceFileSystemInfo { + return V1VirtualMachineInstanceFileSystemInfoFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstanceFileSystemInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstanceFileSystemInfo { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'disks': ((json['disks'] as Array).map(V1VirtualMachineInstanceFileSystemFromJSON)), + }; +} + +export function V1VirtualMachineInstanceFileSystemInfoToJSON(value?: V1VirtualMachineInstanceFileSystemInfo | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'disks': ((value.disks as Array).map(V1VirtualMachineInstanceFileSystemToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceFileSystemList.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceFileSystemList.ts new file mode 100644 index 000000000..bc38ac68a --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceFileSystemList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ListMeta } from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ListMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import type { V1VirtualMachineInstanceFileSystem } from './V1VirtualMachineInstanceFileSystem'; +import { + V1VirtualMachineInstanceFileSystemFromJSON, + V1VirtualMachineInstanceFileSystemFromJSONTyped, + V1VirtualMachineInstanceFileSystemToJSON, +} from './V1VirtualMachineInstanceFileSystem'; + +/** + * VirtualMachineInstanceFileSystemList comprises the list of all filesystems on guest machine + * @export + * @interface V1VirtualMachineInstanceFileSystemList + */ +export interface V1VirtualMachineInstanceFileSystemList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1VirtualMachineInstanceFileSystemList + */ + apiVersion?: string; + /** + * + * @type {Array} + * @memberof V1VirtualMachineInstanceFileSystemList + */ + 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 + * @type {string} + * @memberof V1VirtualMachineInstanceFileSystemList + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ListMeta} + * @memberof V1VirtualMachineInstanceFileSystemList + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the V1VirtualMachineInstanceFileSystemList interface. + */ +export function instanceOfV1VirtualMachineInstanceFileSystemList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function V1VirtualMachineInstanceFileSystemListFromJSON(json: any): V1VirtualMachineInstanceFileSystemList { + return V1VirtualMachineInstanceFileSystemListFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstanceFileSystemListFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstanceFileSystemList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(V1VirtualMachineInstanceFileSystemFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function V1VirtualMachineInstanceFileSystemListToJSON(value?: V1VirtualMachineInstanceFileSystemList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(V1VirtualMachineInstanceFileSystemToJSON)), + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceGuestAgentInfo.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceGuestAgentInfo.ts new file mode 100644 index 000000000..ca3ff0fde --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceGuestAgentInfo.ts @@ -0,0 +1,162 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1GuestAgentCommandInfo } from './V1GuestAgentCommandInfo'; +import { + V1GuestAgentCommandInfoFromJSON, + V1GuestAgentCommandInfoFromJSONTyped, + V1GuestAgentCommandInfoToJSON, +} from './V1GuestAgentCommandInfo'; +import type { V1VirtualMachineInstanceFileSystemInfo } from './V1VirtualMachineInstanceFileSystemInfo'; +import { + V1VirtualMachineInstanceFileSystemInfoFromJSON, + V1VirtualMachineInstanceFileSystemInfoFromJSONTyped, + V1VirtualMachineInstanceFileSystemInfoToJSON, +} from './V1VirtualMachineInstanceFileSystemInfo'; +import type { V1VirtualMachineInstanceGuestOSInfo } from './V1VirtualMachineInstanceGuestOSInfo'; +import { + V1VirtualMachineInstanceGuestOSInfoFromJSON, + V1VirtualMachineInstanceGuestOSInfoFromJSONTyped, + V1VirtualMachineInstanceGuestOSInfoToJSON, +} from './V1VirtualMachineInstanceGuestOSInfo'; +import type { V1VirtualMachineInstanceGuestOSUser } from './V1VirtualMachineInstanceGuestOSUser'; +import { + V1VirtualMachineInstanceGuestOSUserFromJSON, + V1VirtualMachineInstanceGuestOSUserFromJSONTyped, + V1VirtualMachineInstanceGuestOSUserToJSON, +} from './V1VirtualMachineInstanceGuestOSUser'; + +/** + * VirtualMachineInstanceGuestAgentInfo represents information from the installed guest agent + * @export + * @interface V1VirtualMachineInstanceGuestAgentInfo + */ +export interface V1VirtualMachineInstanceGuestAgentInfo { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1VirtualMachineInstanceGuestAgentInfo + */ + apiVersion?: string; + /** + * FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed + * @type {string} + * @memberof V1VirtualMachineInstanceGuestAgentInfo + */ + fsFreezeStatus?: string; + /** + * + * @type {V1VirtualMachineInstanceFileSystemInfo} + * @memberof V1VirtualMachineInstanceGuestAgentInfo + */ + fsInfo?: V1VirtualMachineInstanceFileSystemInfo; + /** + * GAVersion is a version of currently installed guest agent + * @type {string} + * @memberof V1VirtualMachineInstanceGuestAgentInfo + */ + guestAgentVersion?: string; + /** + * Hostname represents FQDN of a guest + * @type {string} + * @memberof V1VirtualMachineInstanceGuestAgentInfo + */ + hostname?: 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 + * @type {string} + * @memberof V1VirtualMachineInstanceGuestAgentInfo + */ + kind?: string; + /** + * + * @type {V1VirtualMachineInstanceGuestOSInfo} + * @memberof V1VirtualMachineInstanceGuestAgentInfo + */ + os?: V1VirtualMachineInstanceGuestOSInfo; + /** + * Return command list the guest agent supports + * @type {Array} + * @memberof V1VirtualMachineInstanceGuestAgentInfo + */ + supportedCommands?: Array; + /** + * Timezone is guest os current timezone + * @type {string} + * @memberof V1VirtualMachineInstanceGuestAgentInfo + */ + timezone?: string; + /** + * UserList is a list of active guest OS users + * @type {Array} + * @memberof V1VirtualMachineInstanceGuestAgentInfo + */ + userList?: Array; +} + +/** + * Check if a given object implements the V1VirtualMachineInstanceGuestAgentInfo interface. + */ +export function instanceOfV1VirtualMachineInstanceGuestAgentInfo(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1VirtualMachineInstanceGuestAgentInfoFromJSON(json: any): V1VirtualMachineInstanceGuestAgentInfo { + return V1VirtualMachineInstanceGuestAgentInfoFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstanceGuestAgentInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstanceGuestAgentInfo { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'fsFreezeStatus': !exists(json, 'fsFreezeStatus') ? undefined : json['fsFreezeStatus'], + 'fsInfo': !exists(json, 'fsInfo') ? undefined : V1VirtualMachineInstanceFileSystemInfoFromJSON(json['fsInfo']), + 'guestAgentVersion': !exists(json, 'guestAgentVersion') ? undefined : json['guestAgentVersion'], + 'hostname': !exists(json, 'hostname') ? undefined : json['hostname'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'os': !exists(json, 'os') ? undefined : V1VirtualMachineInstanceGuestOSInfoFromJSON(json['os']), + 'supportedCommands': !exists(json, 'supportedCommands') ? undefined : ((json['supportedCommands'] as Array).map(V1GuestAgentCommandInfoFromJSON)), + 'timezone': !exists(json, 'timezone') ? undefined : json['timezone'], + 'userList': !exists(json, 'userList') ? undefined : ((json['userList'] as Array).map(V1VirtualMachineInstanceGuestOSUserFromJSON)), + }; +} + +export function V1VirtualMachineInstanceGuestAgentInfoToJSON(value?: V1VirtualMachineInstanceGuestAgentInfo | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'fsFreezeStatus': value.fsFreezeStatus, + 'fsInfo': V1VirtualMachineInstanceFileSystemInfoToJSON(value.fsInfo), + 'guestAgentVersion': value.guestAgentVersion, + 'hostname': value.hostname, + 'kind': value.kind, + 'os': V1VirtualMachineInstanceGuestOSInfoToJSON(value.os), + 'supportedCommands': value.supportedCommands === undefined ? undefined : ((value.supportedCommands as Array).map(V1GuestAgentCommandInfoToJSON)), + 'timezone': value.timezone, + 'userList': value.userList === undefined ? undefined : ((value.userList as Array).map(V1VirtualMachineInstanceGuestOSUserToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceGuestOSInfo.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceGuestOSInfo.ts new file mode 100644 index 000000000..0e3ff8918 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceGuestOSInfo.ts @@ -0,0 +1,121 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1VirtualMachineInstanceGuestOSInfo + */ +export interface V1VirtualMachineInstanceGuestOSInfo { + /** + * Guest OS Id + * @type {string} + * @memberof V1VirtualMachineInstanceGuestOSInfo + */ + id?: string; + /** + * Guest OS Kernel Release + * @type {string} + * @memberof V1VirtualMachineInstanceGuestOSInfo + */ + kernelRelease?: string; + /** + * Kernel version of the Guest OS + * @type {string} + * @memberof V1VirtualMachineInstanceGuestOSInfo + */ + kernelVersion?: string; + /** + * Machine type of the Guest OS + * @type {string} + * @memberof V1VirtualMachineInstanceGuestOSInfo + */ + machine?: string; + /** + * Name of the Guest OS + * @type {string} + * @memberof V1VirtualMachineInstanceGuestOSInfo + */ + name?: string; + /** + * Guest OS Pretty Name + * @type {string} + * @memberof V1VirtualMachineInstanceGuestOSInfo + */ + prettyName?: string; + /** + * Guest OS Version + * @type {string} + * @memberof V1VirtualMachineInstanceGuestOSInfo + */ + version?: string; + /** + * Version ID of the Guest OS + * @type {string} + * @memberof V1VirtualMachineInstanceGuestOSInfo + */ + versionId?: string; +} + +/** + * Check if a given object implements the V1VirtualMachineInstanceGuestOSInfo interface. + */ +export function instanceOfV1VirtualMachineInstanceGuestOSInfo(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1VirtualMachineInstanceGuestOSInfoFromJSON(json: any): V1VirtualMachineInstanceGuestOSInfo { + return V1VirtualMachineInstanceGuestOSInfoFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstanceGuestOSInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstanceGuestOSInfo { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'id': !exists(json, 'id') ? undefined : json['id'], + 'kernelRelease': !exists(json, 'kernelRelease') ? undefined : json['kernelRelease'], + 'kernelVersion': !exists(json, 'kernelVersion') ? undefined : json['kernelVersion'], + 'machine': !exists(json, 'machine') ? undefined : json['machine'], + 'name': !exists(json, 'name') ? undefined : json['name'], + 'prettyName': !exists(json, 'prettyName') ? undefined : json['prettyName'], + 'version': !exists(json, 'version') ? undefined : json['version'], + 'versionId': !exists(json, 'versionId') ? undefined : json['versionId'], + }; +} + +export function V1VirtualMachineInstanceGuestOSInfoToJSON(value?: V1VirtualMachineInstanceGuestOSInfo | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'id': value.id, + 'kernelRelease': value.kernelRelease, + 'kernelVersion': value.kernelVersion, + 'machine': value.machine, + 'name': value.name, + 'prettyName': value.prettyName, + 'version': value.version, + 'versionId': value.versionId, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceGuestOSUser.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceGuestOSUser.ts new file mode 100644 index 000000000..21fe311e4 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceGuestOSUser.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * VirtualMachineGuestOSUser is the single user of the guest os + * @export + * @interface V1VirtualMachineInstanceGuestOSUser + */ +export interface V1VirtualMachineInstanceGuestOSUser { + /** + * + * @type {string} + * @memberof V1VirtualMachineInstanceGuestOSUser + */ + domain?: string; + /** + * + * @type {number} + * @memberof V1VirtualMachineInstanceGuestOSUser + */ + loginTime?: number; + /** + * + * @type {string} + * @memberof V1VirtualMachineInstanceGuestOSUser + */ + userName: string; +} + +/** + * Check if a given object implements the V1VirtualMachineInstanceGuestOSUser interface. + */ +export function instanceOfV1VirtualMachineInstanceGuestOSUser(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "userName" in value; + + return isInstance; +} + +export function V1VirtualMachineInstanceGuestOSUserFromJSON(json: any): V1VirtualMachineInstanceGuestOSUser { + return V1VirtualMachineInstanceGuestOSUserFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstanceGuestOSUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstanceGuestOSUser { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'domain': !exists(json, 'domain') ? undefined : json['domain'], + 'loginTime': !exists(json, 'loginTime') ? undefined : json['loginTime'], + 'userName': json['userName'], + }; +} + +export function V1VirtualMachineInstanceGuestOSUserToJSON(value?: V1VirtualMachineInstanceGuestOSUser | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'domain': value.domain, + 'loginTime': value.loginTime, + 'userName': value.userName, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceGuestOSUserList.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceGuestOSUserList.ts new file mode 100644 index 000000000..f67362373 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceGuestOSUserList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ListMeta } from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ListMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import type { V1VirtualMachineInstanceGuestOSUser } from './V1VirtualMachineInstanceGuestOSUser'; +import { + V1VirtualMachineInstanceGuestOSUserFromJSON, + V1VirtualMachineInstanceGuestOSUserFromJSONTyped, + V1VirtualMachineInstanceGuestOSUserToJSON, +} from './V1VirtualMachineInstanceGuestOSUser'; + +/** + * VirtualMachineInstanceGuestOSUserList comprises the list of all active users on guest machine + * @export + * @interface V1VirtualMachineInstanceGuestOSUserList + */ +export interface V1VirtualMachineInstanceGuestOSUserList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1VirtualMachineInstanceGuestOSUserList + */ + apiVersion?: string; + /** + * + * @type {Array} + * @memberof V1VirtualMachineInstanceGuestOSUserList + */ + 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 + * @type {string} + * @memberof V1VirtualMachineInstanceGuestOSUserList + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ListMeta} + * @memberof V1VirtualMachineInstanceGuestOSUserList + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the V1VirtualMachineInstanceGuestOSUserList interface. + */ +export function instanceOfV1VirtualMachineInstanceGuestOSUserList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function V1VirtualMachineInstanceGuestOSUserListFromJSON(json: any): V1VirtualMachineInstanceGuestOSUserList { + return V1VirtualMachineInstanceGuestOSUserListFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstanceGuestOSUserListFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstanceGuestOSUserList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(V1VirtualMachineInstanceGuestOSUserFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function V1VirtualMachineInstanceGuestOSUserListToJSON(value?: V1VirtualMachineInstanceGuestOSUserList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(V1VirtualMachineInstanceGuestOSUserToJSON)), + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceList.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceList.ts new file mode 100644 index 000000000..679db6004 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ListMeta } from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ListMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import type { V1VirtualMachineInstance } from './V1VirtualMachineInstance'; +import { + V1VirtualMachineInstanceFromJSON, + V1VirtualMachineInstanceFromJSONTyped, + V1VirtualMachineInstanceToJSON, +} from './V1VirtualMachineInstance'; + +/** + * VirtualMachineInstanceList is a list of VirtualMachines + * @export + * @interface V1VirtualMachineInstanceList + */ +export interface V1VirtualMachineInstanceList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1VirtualMachineInstanceList + */ + apiVersion?: string; + /** + * + * @type {Array} + * @memberof V1VirtualMachineInstanceList + */ + 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 + * @type {string} + * @memberof V1VirtualMachineInstanceList + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ListMeta} + * @memberof V1VirtualMachineInstanceList + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the V1VirtualMachineInstanceList interface. + */ +export function instanceOfV1VirtualMachineInstanceList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function V1VirtualMachineInstanceListFromJSON(json: any): V1VirtualMachineInstanceList { + return V1VirtualMachineInstanceListFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstanceListFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstanceList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(V1VirtualMachineInstanceFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function V1VirtualMachineInstanceListToJSON(value?: V1VirtualMachineInstanceList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(V1VirtualMachineInstanceToJSON)), + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceMigration.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceMigration.ts new file mode 100644 index 000000000..f279c1830 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceMigration.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ObjectMeta } from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import type { V1VirtualMachineInstanceMigrationSpec } from './V1VirtualMachineInstanceMigrationSpec'; +import { + V1VirtualMachineInstanceMigrationSpecFromJSON, + V1VirtualMachineInstanceMigrationSpecFromJSONTyped, + V1VirtualMachineInstanceMigrationSpecToJSON, +} from './V1VirtualMachineInstanceMigrationSpec'; +import type { V1VirtualMachineInstanceMigrationStatus } from './V1VirtualMachineInstanceMigrationStatus'; +import { + V1VirtualMachineInstanceMigrationStatusFromJSON, + V1VirtualMachineInstanceMigrationStatusFromJSONTyped, + V1VirtualMachineInstanceMigrationStatusToJSON, +} from './V1VirtualMachineInstanceMigrationStatus'; + +/** + * VirtualMachineInstanceMigration represents the object tracking a VMI's migration to another host in the cluster + * @export + * @interface V1VirtualMachineInstanceMigration + */ +export interface V1VirtualMachineInstanceMigration { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1VirtualMachineInstanceMigration + */ + 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 + * @type {string} + * @memberof V1VirtualMachineInstanceMigration + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ObjectMeta} + * @memberof V1VirtualMachineInstanceMigration + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {V1VirtualMachineInstanceMigrationSpec} + * @memberof V1VirtualMachineInstanceMigration + */ + spec: V1VirtualMachineInstanceMigrationSpec; + /** + * + * @type {V1VirtualMachineInstanceMigrationStatus} + * @memberof V1VirtualMachineInstanceMigration + */ + status?: V1VirtualMachineInstanceMigrationStatus; +} + +/** + * Check if a given object implements the V1VirtualMachineInstanceMigration interface. + */ +export function instanceOfV1VirtualMachineInstanceMigration(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function V1VirtualMachineInstanceMigrationFromJSON(json: any): V1VirtualMachineInstanceMigration { + return V1VirtualMachineInstanceMigrationFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstanceMigrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstanceMigration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': V1VirtualMachineInstanceMigrationSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : V1VirtualMachineInstanceMigrationStatusFromJSON(json['status']), + }; +} + +export function V1VirtualMachineInstanceMigrationToJSON(value?: V1VirtualMachineInstanceMigration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': V1VirtualMachineInstanceMigrationSpecToJSON(value.spec), + 'status': V1VirtualMachineInstanceMigrationStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceMigrationCondition.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceMigrationCondition.ts new file mode 100644 index 000000000..d3f75cd20 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceMigrationCondition.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1VirtualMachineInstanceMigrationCondition + */ +export interface V1VirtualMachineInstanceMigrationCondition { + /** + * + * @type {string} + * @memberof V1VirtualMachineInstanceMigrationCondition + */ + message?: string; + /** + * + * @type {string} + * @memberof V1VirtualMachineInstanceMigrationCondition + */ + reason?: string; + /** + * + * @type {string} + * @memberof V1VirtualMachineInstanceMigrationCondition + */ + status: string; + /** + * + * @type {string} + * @memberof V1VirtualMachineInstanceMigrationCondition + */ + type: string; +} + +/** + * Check if a given object implements the V1VirtualMachineInstanceMigrationCondition interface. + */ +export function instanceOfV1VirtualMachineInstanceMigrationCondition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "status" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function V1VirtualMachineInstanceMigrationConditionFromJSON(json: any): V1VirtualMachineInstanceMigrationCondition { + return V1VirtualMachineInstanceMigrationConditionFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstanceMigrationConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstanceMigrationCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'status': json['status'], + 'type': json['type'], + }; +} + +export function V1VirtualMachineInstanceMigrationConditionToJSON(value?: V1VirtualMachineInstanceMigrationCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'message': value.message, + 'reason': value.reason, + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceMigrationList.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceMigrationList.ts new file mode 100644 index 000000000..30fd6cc3d --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceMigrationList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ListMeta } from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ListMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import type { V1VirtualMachineInstanceMigration } from './V1VirtualMachineInstanceMigration'; +import { + V1VirtualMachineInstanceMigrationFromJSON, + V1VirtualMachineInstanceMigrationFromJSONTyped, + V1VirtualMachineInstanceMigrationToJSON, +} from './V1VirtualMachineInstanceMigration'; + +/** + * VirtualMachineInstanceMigrationList is a list of VirtualMachineMigrations + * @export + * @interface V1VirtualMachineInstanceMigrationList + */ +export interface V1VirtualMachineInstanceMigrationList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1VirtualMachineInstanceMigrationList + */ + apiVersion?: string; + /** + * + * @type {Array} + * @memberof V1VirtualMachineInstanceMigrationList + */ + 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 + * @type {string} + * @memberof V1VirtualMachineInstanceMigrationList + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ListMeta} + * @memberof V1VirtualMachineInstanceMigrationList + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the V1VirtualMachineInstanceMigrationList interface. + */ +export function instanceOfV1VirtualMachineInstanceMigrationList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function V1VirtualMachineInstanceMigrationListFromJSON(json: any): V1VirtualMachineInstanceMigrationList { + return V1VirtualMachineInstanceMigrationListFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstanceMigrationListFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstanceMigrationList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(V1VirtualMachineInstanceMigrationFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function V1VirtualMachineInstanceMigrationListToJSON(value?: V1VirtualMachineInstanceMigrationList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(V1VirtualMachineInstanceMigrationToJSON)), + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp.ts new file mode 100644 index 000000000..dd611bb3e --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * VirtualMachineInstanceMigrationPhaseTransitionTimestamp gives a timestamp in relation to when a phase is set on a vmi + * @export + * @interface V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp + */ +export interface V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp { + /** + * Phase is the status of the VirtualMachineInstanceMigrationPhase in kubernetes world. It is not the VirtualMachineInstanceMigrationPhase status, but partially correlates to it. + * @type {string} + * @memberof V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp + */ + phase?: string; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp + */ + phaseTransitionTimestamp?: string; +} + +/** + * Check if a given object implements the V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp interface. + */ +export function instanceOfV1VirtualMachineInstanceMigrationPhaseTransitionTimestamp(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1VirtualMachineInstanceMigrationPhaseTransitionTimestampFromJSON(json: any): V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp { + return V1VirtualMachineInstanceMigrationPhaseTransitionTimestampFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstanceMigrationPhaseTransitionTimestampFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'phase': !exists(json, 'phase') ? undefined : json['phase'], + 'phaseTransitionTimestamp': !exists(json, 'phaseTransitionTimestamp') ? undefined : json['phaseTransitionTimestamp'], + }; +} + +export function V1VirtualMachineInstanceMigrationPhaseTransitionTimestampToJSON(value?: V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'phase': value.phase, + 'phaseTransitionTimestamp': value.phaseTransitionTimestamp === undefined ? undefined : (value.phaseTransitionTimestamp), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceMigrationSpec.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceMigrationSpec.ts new file mode 100644 index 000000000..4620a2ff8 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceMigrationSpec.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1VirtualMachineInstanceMigrationSpec + */ +export interface V1VirtualMachineInstanceMigrationSpec { + /** + * The name of the VMI to perform the migration on. VMI must exist in the migration objects namespace + * @type {string} + * @memberof V1VirtualMachineInstanceMigrationSpec + */ + vmiName?: string; +} + +/** + * Check if a given object implements the V1VirtualMachineInstanceMigrationSpec interface. + */ +export function instanceOfV1VirtualMachineInstanceMigrationSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1VirtualMachineInstanceMigrationSpecFromJSON(json: any): V1VirtualMachineInstanceMigrationSpec { + return V1VirtualMachineInstanceMigrationSpecFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstanceMigrationSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstanceMigrationSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'vmiName': !exists(json, 'vmiName') ? undefined : json['vmiName'], + }; +} + +export function V1VirtualMachineInstanceMigrationSpecToJSON(value?: V1VirtualMachineInstanceMigrationSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'vmiName': value.vmiName, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceMigrationState.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceMigrationState.ts new file mode 100644 index 000000000..5dcbde092 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceMigrationState.ts @@ -0,0 +1,224 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1MigrationConfiguration } from './V1MigrationConfiguration'; +import { + V1MigrationConfigurationFromJSON, + V1MigrationConfigurationFromJSONTyped, + V1MigrationConfigurationToJSON, +} from './V1MigrationConfiguration'; + +/** + * + * @export + * @interface V1VirtualMachineInstanceMigrationState + */ +export interface V1VirtualMachineInstanceMigrationState { + /** + * Indicates that the migration has been requested to abort + * @type {boolean} + * @memberof V1VirtualMachineInstanceMigrationState + */ + abortRequested?: boolean; + /** + * Indicates the final status of the live migration abortion + * @type {string} + * @memberof V1VirtualMachineInstanceMigrationState + */ + abortStatus?: string; + /** + * Indicates the migration completed + * @type {boolean} + * @memberof V1VirtualMachineInstanceMigrationState + */ + completed?: boolean; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof V1VirtualMachineInstanceMigrationState + */ + endTimestamp?: string; + /** + * Indicates that the migration failed + * @type {boolean} + * @memberof V1VirtualMachineInstanceMigrationState + */ + failed?: boolean; + /** + * + * @type {V1MigrationConfiguration} + * @memberof V1VirtualMachineInstanceMigrationState + */ + migrationConfiguration?: V1MigrationConfiguration; + /** + * Name of the migration policy. If string is empty, no policy is matched + * @type {string} + * @memberof V1VirtualMachineInstanceMigrationState + */ + migrationPolicyName?: string; + /** + * The VirtualMachineInstanceMigration object associated with this migration + * @type {string} + * @memberof V1VirtualMachineInstanceMigrationState + */ + migrationUid?: string; + /** + * Lets us know if the vmi is currently running pre or post copy migration + * @type {string} + * @memberof V1VirtualMachineInstanceMigrationState + */ + mode?: string; + /** + * The source node that the VMI originated on + * @type {string} + * @memberof V1VirtualMachineInstanceMigrationState + */ + sourceNode?: string; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof V1VirtualMachineInstanceMigrationState + */ + startTimestamp?: string; + /** + * The UID of the target attachment pod for hotplug volumes + * @type {string} + * @memberof V1VirtualMachineInstanceMigrationState + */ + targetAttachmentPodUID?: string; + /** + * If the VMI requires dedicated CPUs, this field will hold the dedicated CPU set on the target node + * @type {Array} + * @memberof V1VirtualMachineInstanceMigrationState + */ + targetCPUSet?: Array; + /** + * The list of ports opened for live migration on the destination node + * @type {{ [key: string]: number; }} + * @memberof V1VirtualMachineInstanceMigrationState + */ + targetDirectMigrationNodePorts?: { [key: string]: number; }; + /** + * The target node that the VMI is moving to + * @type {string} + * @memberof V1VirtualMachineInstanceMigrationState + */ + targetNode?: string; + /** + * The address of the target node to use for the migration + * @type {string} + * @memberof V1VirtualMachineInstanceMigrationState + */ + targetNodeAddress?: string; + /** + * The Target Node has seen the Domain Start Event + * @type {boolean} + * @memberof V1VirtualMachineInstanceMigrationState + */ + targetNodeDomainDetected?: boolean; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof V1VirtualMachineInstanceMigrationState + */ + targetNodeDomainReadyTimestamp?: string; + /** + * If the VMI requires dedicated CPUs, this field will hold the numa topology on the target node + * @type {string} + * @memberof V1VirtualMachineInstanceMigrationState + */ + targetNodeTopology?: string; + /** + * The target pod that the VMI is moving to + * @type {string} + * @memberof V1VirtualMachineInstanceMigrationState + */ + targetPod?: string; +} + +/** + * Check if a given object implements the V1VirtualMachineInstanceMigrationState interface. + */ +export function instanceOfV1VirtualMachineInstanceMigrationState(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1VirtualMachineInstanceMigrationStateFromJSON(json: any): V1VirtualMachineInstanceMigrationState { + return V1VirtualMachineInstanceMigrationStateFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstanceMigrationStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstanceMigrationState { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'abortRequested': !exists(json, 'abortRequested') ? undefined : json['abortRequested'], + 'abortStatus': !exists(json, 'abortStatus') ? undefined : json['abortStatus'], + 'completed': !exists(json, 'completed') ? undefined : json['completed'], + 'endTimestamp': !exists(json, 'endTimestamp') ? undefined : json['endTimestamp'], + 'failed': !exists(json, 'failed') ? undefined : json['failed'], + 'migrationConfiguration': !exists(json, 'migrationConfiguration') ? undefined : V1MigrationConfigurationFromJSON(json['migrationConfiguration']), + 'migrationPolicyName': !exists(json, 'migrationPolicyName') ? undefined : json['migrationPolicyName'], + 'migrationUid': !exists(json, 'migrationUid') ? undefined : json['migrationUid'], + 'mode': !exists(json, 'mode') ? undefined : json['mode'], + 'sourceNode': !exists(json, 'sourceNode') ? undefined : json['sourceNode'], + 'startTimestamp': !exists(json, 'startTimestamp') ? undefined : json['startTimestamp'], + 'targetAttachmentPodUID': !exists(json, 'targetAttachmentPodUID') ? undefined : json['targetAttachmentPodUID'], + 'targetCPUSet': !exists(json, 'targetCPUSet') ? undefined : json['targetCPUSet'], + 'targetDirectMigrationNodePorts': !exists(json, 'targetDirectMigrationNodePorts') ? undefined : json['targetDirectMigrationNodePorts'], + 'targetNode': !exists(json, 'targetNode') ? undefined : json['targetNode'], + 'targetNodeAddress': !exists(json, 'targetNodeAddress') ? undefined : json['targetNodeAddress'], + 'targetNodeDomainDetected': !exists(json, 'targetNodeDomainDetected') ? undefined : json['targetNodeDomainDetected'], + 'targetNodeDomainReadyTimestamp': !exists(json, 'targetNodeDomainReadyTimestamp') ? undefined : json['targetNodeDomainReadyTimestamp'], + 'targetNodeTopology': !exists(json, 'targetNodeTopology') ? undefined : json['targetNodeTopology'], + 'targetPod': !exists(json, 'targetPod') ? undefined : json['targetPod'], + }; +} + +export function V1VirtualMachineInstanceMigrationStateToJSON(value?: V1VirtualMachineInstanceMigrationState | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'abortRequested': value.abortRequested, + 'abortStatus': value.abortStatus, + 'completed': value.completed, + 'endTimestamp': value.endTimestamp === undefined ? undefined : (value.endTimestamp), + 'failed': value.failed, + 'migrationConfiguration': V1MigrationConfigurationToJSON(value.migrationConfiguration), + 'migrationPolicyName': value.migrationPolicyName, + 'migrationUid': value.migrationUid, + 'mode': value.mode, + 'sourceNode': value.sourceNode, + 'startTimestamp': value.startTimestamp === undefined ? undefined : (value.startTimestamp), + 'targetAttachmentPodUID': value.targetAttachmentPodUID, + 'targetCPUSet': value.targetCPUSet, + 'targetDirectMigrationNodePorts': value.targetDirectMigrationNodePorts, + 'targetNode': value.targetNode, + 'targetNodeAddress': value.targetNodeAddress, + 'targetNodeDomainDetected': value.targetNodeDomainDetected, + 'targetNodeDomainReadyTimestamp': value.targetNodeDomainReadyTimestamp === undefined ? undefined : (value.targetNodeDomainReadyTimestamp), + 'targetNodeTopology': value.targetNodeTopology, + 'targetPod': value.targetPod, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceMigrationStatus.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceMigrationStatus.ts new file mode 100644 index 000000000..e83d18d81 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceMigrationStatus.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1VirtualMachineInstanceMigrationCondition } from './V1VirtualMachineInstanceMigrationCondition'; +import { + V1VirtualMachineInstanceMigrationConditionFromJSON, + V1VirtualMachineInstanceMigrationConditionFromJSONTyped, + V1VirtualMachineInstanceMigrationConditionToJSON, +} from './V1VirtualMachineInstanceMigrationCondition'; +import type { V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp } from './V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp'; +import { + V1VirtualMachineInstanceMigrationPhaseTransitionTimestampFromJSON, + V1VirtualMachineInstanceMigrationPhaseTransitionTimestampFromJSONTyped, + V1VirtualMachineInstanceMigrationPhaseTransitionTimestampToJSON, +} from './V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp'; +import type { V1VirtualMachineInstanceMigrationState } from './V1VirtualMachineInstanceMigrationState'; +import { + V1VirtualMachineInstanceMigrationStateFromJSON, + V1VirtualMachineInstanceMigrationStateFromJSONTyped, + V1VirtualMachineInstanceMigrationStateToJSON, +} from './V1VirtualMachineInstanceMigrationState'; + +/** + * VirtualMachineInstanceMigration reprents information pertaining to a VMI's migration. + * @export + * @interface V1VirtualMachineInstanceMigrationStatus + */ +export interface V1VirtualMachineInstanceMigrationStatus { + /** + * + * @type {Array} + * @memberof V1VirtualMachineInstanceMigrationStatus + */ + conditions?: Array; + /** + * + * @type {V1VirtualMachineInstanceMigrationState} + * @memberof V1VirtualMachineInstanceMigrationStatus + */ + migrationState?: V1VirtualMachineInstanceMigrationState; + /** + * + * @type {string} + * @memberof V1VirtualMachineInstanceMigrationStatus + */ + phase?: string; + /** + * PhaseTransitionTimestamp is the timestamp of when the last phase change occurred + * @type {Array} + * @memberof V1VirtualMachineInstanceMigrationStatus + */ + phaseTransitionTimestamps?: Array; +} + +/** + * Check if a given object implements the V1VirtualMachineInstanceMigrationStatus interface. + */ +export function instanceOfV1VirtualMachineInstanceMigrationStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1VirtualMachineInstanceMigrationStatusFromJSON(json: any): V1VirtualMachineInstanceMigrationStatus { + return V1VirtualMachineInstanceMigrationStatusFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstanceMigrationStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstanceMigrationStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(V1VirtualMachineInstanceMigrationConditionFromJSON)), + 'migrationState': !exists(json, 'migrationState') ? undefined : V1VirtualMachineInstanceMigrationStateFromJSON(json['migrationState']), + 'phase': !exists(json, 'phase') ? undefined : json['phase'], + 'phaseTransitionTimestamps': !exists(json, 'phaseTransitionTimestamps') ? undefined : ((json['phaseTransitionTimestamps'] as Array).map(V1VirtualMachineInstanceMigrationPhaseTransitionTimestampFromJSON)), + }; +} + +export function V1VirtualMachineInstanceMigrationStatusToJSON(value?: V1VirtualMachineInstanceMigrationStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(V1VirtualMachineInstanceMigrationConditionToJSON)), + 'migrationState': V1VirtualMachineInstanceMigrationStateToJSON(value.migrationState), + 'phase': value.phase, + 'phaseTransitionTimestamps': value.phaseTransitionTimestamps === undefined ? undefined : ((value.phaseTransitionTimestamps as Array).map(V1VirtualMachineInstanceMigrationPhaseTransitionTimestampToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceNetworkInterface.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceNetworkInterface.ts new file mode 100644 index 000000000..34a908b98 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceNetworkInterface.ts @@ -0,0 +1,113 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1VirtualMachineInstanceNetworkInterface + */ +export interface V1VirtualMachineInstanceNetworkInterface { + /** + * Specifies the origin of the interface data collected. values: domain, guest-agent, multus-status. + * @type {string} + * @memberof V1VirtualMachineInstanceNetworkInterface + */ + infoSource?: string; + /** + * The interface name inside the Virtual Machine + * @type {string} + * @memberof V1VirtualMachineInstanceNetworkInterface + */ + interfaceName?: string; + /** + * IP address of a Virtual Machine interface. It is always the first item of IPs + * @type {string} + * @memberof V1VirtualMachineInstanceNetworkInterface + */ + ipAddress?: string; + /** + * List of all IP addresses of a Virtual Machine interface + * @type {Array} + * @memberof V1VirtualMachineInstanceNetworkInterface + */ + ipAddresses?: Array; + /** + * Hardware address of a Virtual Machine interface + * @type {string} + * @memberof V1VirtualMachineInstanceNetworkInterface + */ + mac?: string; + /** + * Name of the interface, corresponds to name of the network assigned to the interface + * @type {string} + * @memberof V1VirtualMachineInstanceNetworkInterface + */ + name?: string; + /** + * Specifies how many queues are allocated by MultiQueue + * @type {number} + * @memberof V1VirtualMachineInstanceNetworkInterface + */ + queueCount?: number; +} + +/** + * Check if a given object implements the V1VirtualMachineInstanceNetworkInterface interface. + */ +export function instanceOfV1VirtualMachineInstanceNetworkInterface(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1VirtualMachineInstanceNetworkInterfaceFromJSON(json: any): V1VirtualMachineInstanceNetworkInterface { + return V1VirtualMachineInstanceNetworkInterfaceFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstanceNetworkInterfaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstanceNetworkInterface { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'infoSource': !exists(json, 'infoSource') ? undefined : json['infoSource'], + 'interfaceName': !exists(json, 'interfaceName') ? undefined : json['interfaceName'], + 'ipAddress': !exists(json, 'ipAddress') ? undefined : json['ipAddress'], + 'ipAddresses': !exists(json, 'ipAddresses') ? undefined : json['ipAddresses'], + 'mac': !exists(json, 'mac') ? undefined : json['mac'], + 'name': !exists(json, 'name') ? undefined : json['name'], + 'queueCount': !exists(json, 'queueCount') ? undefined : json['queueCount'], + }; +} + +export function V1VirtualMachineInstanceNetworkInterfaceToJSON(value?: V1VirtualMachineInstanceNetworkInterface | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'infoSource': value.infoSource, + 'interfaceName': value.interfaceName, + 'ipAddress': value.ipAddress, + 'ipAddresses': value.ipAddresses, + 'mac': value.mac, + 'name': value.name, + 'queueCount': value.queueCount, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstancePhaseTransitionTimestamp.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstancePhaseTransitionTimestamp.ts new file mode 100644 index 000000000..80115ed3e --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstancePhaseTransitionTimestamp.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * VirtualMachineInstancePhaseTransitionTimestamp gives a timestamp in relation to when a phase is set on a vmi + * @export + * @interface V1VirtualMachineInstancePhaseTransitionTimestamp + */ +export interface V1VirtualMachineInstancePhaseTransitionTimestamp { + /** + * Phase is the status of the VirtualMachineInstance in kubernetes world. It is not the VirtualMachineInstance status, but partially correlates to it. + * @type {string} + * @memberof V1VirtualMachineInstancePhaseTransitionTimestamp + */ + phase?: string; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof V1VirtualMachineInstancePhaseTransitionTimestamp + */ + phaseTransitionTimestamp?: string; +} + +/** + * Check if a given object implements the V1VirtualMachineInstancePhaseTransitionTimestamp interface. + */ +export function instanceOfV1VirtualMachineInstancePhaseTransitionTimestamp(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1VirtualMachineInstancePhaseTransitionTimestampFromJSON(json: any): V1VirtualMachineInstancePhaseTransitionTimestamp { + return V1VirtualMachineInstancePhaseTransitionTimestampFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstancePhaseTransitionTimestampFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstancePhaseTransitionTimestamp { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'phase': !exists(json, 'phase') ? undefined : json['phase'], + 'phaseTransitionTimestamp': !exists(json, 'phaseTransitionTimestamp') ? undefined : json['phaseTransitionTimestamp'], + }; +} + +export function V1VirtualMachineInstancePhaseTransitionTimestampToJSON(value?: V1VirtualMachineInstancePhaseTransitionTimestamp | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'phase': value.phase, + 'phaseTransitionTimestamp': value.phaseTransitionTimestamp === undefined ? undefined : (value.phaseTransitionTimestamp), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstancePreset.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstancePreset.ts new file mode 100644 index 000000000..c6a3020d3 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstancePreset.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ObjectMeta } from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import type { V1VirtualMachineInstancePresetSpec } from './V1VirtualMachineInstancePresetSpec'; +import { + V1VirtualMachineInstancePresetSpecFromJSON, + V1VirtualMachineInstancePresetSpecFromJSONTyped, + V1VirtualMachineInstancePresetSpecToJSON, +} from './V1VirtualMachineInstancePresetSpec'; + +/** + * Deprecated for removal in v2, please use VirtualMachineInstanceType and VirtualMachinePreference instead. + * + * VirtualMachineInstancePreset defines a VMI spec.domain to be applied to all VMIs that match the provided label selector More info: https://kubevirt.io/user-guide/virtual_machines/presets/#overrides + * @export + * @interface V1VirtualMachineInstancePreset + */ +export interface V1VirtualMachineInstancePreset { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1VirtualMachineInstancePreset + */ + 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 + * @type {string} + * @memberof V1VirtualMachineInstancePreset + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ObjectMeta} + * @memberof V1VirtualMachineInstancePreset + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {V1VirtualMachineInstancePresetSpec} + * @memberof V1VirtualMachineInstancePreset + */ + spec?: V1VirtualMachineInstancePresetSpec; +} + +/** + * Check if a given object implements the V1VirtualMachineInstancePreset interface. + */ +export function instanceOfV1VirtualMachineInstancePreset(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1VirtualMachineInstancePresetFromJSON(json: any): V1VirtualMachineInstancePreset { + return V1VirtualMachineInstancePresetFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstancePresetFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstancePreset { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : V1VirtualMachineInstancePresetSpecFromJSON(json['spec']), + }; +} + +export function V1VirtualMachineInstancePresetToJSON(value?: V1VirtualMachineInstancePreset | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': V1VirtualMachineInstancePresetSpecToJSON(value.spec), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstancePresetList.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstancePresetList.ts new file mode 100644 index 000000000..90e7c2ae9 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstancePresetList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ListMeta } from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ListMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import type { V1VirtualMachineInstancePreset } from './V1VirtualMachineInstancePreset'; +import { + V1VirtualMachineInstancePresetFromJSON, + V1VirtualMachineInstancePresetFromJSONTyped, + V1VirtualMachineInstancePresetToJSON, +} from './V1VirtualMachineInstancePreset'; + +/** + * VirtualMachineInstancePresetList is a list of VirtualMachinePresets + * @export + * @interface V1VirtualMachineInstancePresetList + */ +export interface V1VirtualMachineInstancePresetList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1VirtualMachineInstancePresetList + */ + apiVersion?: string; + /** + * + * @type {Array} + * @memberof V1VirtualMachineInstancePresetList + */ + 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 + * @type {string} + * @memberof V1VirtualMachineInstancePresetList + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ListMeta} + * @memberof V1VirtualMachineInstancePresetList + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the V1VirtualMachineInstancePresetList interface. + */ +export function instanceOfV1VirtualMachineInstancePresetList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function V1VirtualMachineInstancePresetListFromJSON(json: any): V1VirtualMachineInstancePresetList { + return V1VirtualMachineInstancePresetListFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstancePresetListFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstancePresetList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(V1VirtualMachineInstancePresetFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function V1VirtualMachineInstancePresetListToJSON(value?: V1VirtualMachineInstancePresetList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(V1VirtualMachineInstancePresetToJSON)), + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstancePresetSpec.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstancePresetSpec.ts new file mode 100644 index 000000000..f6801edac --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstancePresetSpec.ts @@ -0,0 +1,87 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1LabelSelector } from './K8sIoApimachineryPkgApisMetaV1LabelSelector'; +import { + K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSON, + K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './K8sIoApimachineryPkgApisMetaV1LabelSelector'; +import type { V1DomainSpec } from './V1DomainSpec'; +import { + V1DomainSpecFromJSON, + V1DomainSpecFromJSONTyped, + V1DomainSpecToJSON, +} from './V1DomainSpec'; + +/** + * + * @export + * @interface V1VirtualMachineInstancePresetSpec + */ +export interface V1VirtualMachineInstancePresetSpec { + /** + * + * @type {V1DomainSpec} + * @memberof V1VirtualMachineInstancePresetSpec + */ + domain?: V1DomainSpec; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1LabelSelector} + * @memberof V1VirtualMachineInstancePresetSpec + */ + selector: K8sIoApimachineryPkgApisMetaV1LabelSelector; +} + +/** + * Check if a given object implements the V1VirtualMachineInstancePresetSpec interface. + */ +export function instanceOfV1VirtualMachineInstancePresetSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "selector" in value; + + return isInstance; +} + +export function V1VirtualMachineInstancePresetSpecFromJSON(json: any): V1VirtualMachineInstancePresetSpec { + return V1VirtualMachineInstancePresetSpecFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstancePresetSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstancePresetSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'domain': !exists(json, 'domain') ? undefined : V1DomainSpecFromJSON(json['domain']), + 'selector': K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['selector']), + }; +} + +export function V1VirtualMachineInstancePresetSpecToJSON(value?: V1VirtualMachineInstancePresetSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'domain': V1DomainSpecToJSON(value.domain), + 'selector': K8sIoApimachineryPkgApisMetaV1LabelSelectorToJSON(value.selector), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceProfile.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceProfile.ts new file mode 100644 index 000000000..d2d5e18d6 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceProfile.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1CustomProfile } from './V1CustomProfile'; +import { + V1CustomProfileFromJSON, + V1CustomProfileFromJSONTyped, + V1CustomProfileToJSON, +} from './V1CustomProfile'; + +/** + * + * @export + * @interface V1VirtualMachineInstanceProfile + */ +export interface V1VirtualMachineInstanceProfile { + /** + * + * @type {V1CustomProfile} + * @memberof V1VirtualMachineInstanceProfile + */ + customProfile?: V1CustomProfile; +} + +/** + * Check if a given object implements the V1VirtualMachineInstanceProfile interface. + */ +export function instanceOfV1VirtualMachineInstanceProfile(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1VirtualMachineInstanceProfileFromJSON(json: any): V1VirtualMachineInstanceProfile { + return V1VirtualMachineInstanceProfileFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstanceProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstanceProfile { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'customProfile': !exists(json, 'customProfile') ? undefined : V1CustomProfileFromJSON(json['customProfile']), + }; +} + +export function V1VirtualMachineInstanceProfileToJSON(value?: V1VirtualMachineInstanceProfile | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'customProfile': V1CustomProfileToJSON(value.customProfile), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceReplicaSet.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceReplicaSet.ts new file mode 100644 index 000000000..f8d8d5a6b --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceReplicaSet.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ObjectMeta } from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import type { V1VirtualMachineInstanceReplicaSetSpec } from './V1VirtualMachineInstanceReplicaSetSpec'; +import { + V1VirtualMachineInstanceReplicaSetSpecFromJSON, + V1VirtualMachineInstanceReplicaSetSpecFromJSONTyped, + V1VirtualMachineInstanceReplicaSetSpecToJSON, +} from './V1VirtualMachineInstanceReplicaSetSpec'; +import type { V1VirtualMachineInstanceReplicaSetStatus } from './V1VirtualMachineInstanceReplicaSetStatus'; +import { + V1VirtualMachineInstanceReplicaSetStatusFromJSON, + V1VirtualMachineInstanceReplicaSetStatusFromJSONTyped, + V1VirtualMachineInstanceReplicaSetStatusToJSON, +} from './V1VirtualMachineInstanceReplicaSetStatus'; + +/** + * VirtualMachineInstance is *the* VirtualMachineInstance Definition. It represents a virtual machine in the runtime environment of kubernetes. + * @export + * @interface V1VirtualMachineInstanceReplicaSet + */ +export interface V1VirtualMachineInstanceReplicaSet { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1VirtualMachineInstanceReplicaSet + */ + 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 + * @type {string} + * @memberof V1VirtualMachineInstanceReplicaSet + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ObjectMeta} + * @memberof V1VirtualMachineInstanceReplicaSet + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {V1VirtualMachineInstanceReplicaSetSpec} + * @memberof V1VirtualMachineInstanceReplicaSet + */ + spec: V1VirtualMachineInstanceReplicaSetSpec; + /** + * + * @type {V1VirtualMachineInstanceReplicaSetStatus} + * @memberof V1VirtualMachineInstanceReplicaSet + */ + status?: V1VirtualMachineInstanceReplicaSetStatus; +} + +/** + * Check if a given object implements the V1VirtualMachineInstanceReplicaSet interface. + */ +export function instanceOfV1VirtualMachineInstanceReplicaSet(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function V1VirtualMachineInstanceReplicaSetFromJSON(json: any): V1VirtualMachineInstanceReplicaSet { + return V1VirtualMachineInstanceReplicaSetFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstanceReplicaSetFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstanceReplicaSet { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': V1VirtualMachineInstanceReplicaSetSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : V1VirtualMachineInstanceReplicaSetStatusFromJSON(json['status']), + }; +} + +export function V1VirtualMachineInstanceReplicaSetToJSON(value?: V1VirtualMachineInstanceReplicaSet | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': V1VirtualMachineInstanceReplicaSetSpecToJSON(value.spec), + 'status': V1VirtualMachineInstanceReplicaSetStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceReplicaSetCondition.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceReplicaSetCondition.ts new file mode 100644 index 000000000..119559833 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceReplicaSetCondition.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1VirtualMachineInstanceReplicaSetCondition + */ +export interface V1VirtualMachineInstanceReplicaSetCondition { + /** + * + * @type {string} + * @memberof V1VirtualMachineInstanceReplicaSetCondition + */ + message?: string; + /** + * + * @type {string} + * @memberof V1VirtualMachineInstanceReplicaSetCondition + */ + reason?: string; + /** + * + * @type {string} + * @memberof V1VirtualMachineInstanceReplicaSetCondition + */ + status: string; + /** + * + * @type {string} + * @memberof V1VirtualMachineInstanceReplicaSetCondition + */ + type: string; +} + +/** + * Check if a given object implements the V1VirtualMachineInstanceReplicaSetCondition interface. + */ +export function instanceOfV1VirtualMachineInstanceReplicaSetCondition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "status" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function V1VirtualMachineInstanceReplicaSetConditionFromJSON(json: any): V1VirtualMachineInstanceReplicaSetCondition { + return V1VirtualMachineInstanceReplicaSetConditionFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstanceReplicaSetConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstanceReplicaSetCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'status': json['status'], + 'type': json['type'], + }; +} + +export function V1VirtualMachineInstanceReplicaSetConditionToJSON(value?: V1VirtualMachineInstanceReplicaSetCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'message': value.message, + 'reason': value.reason, + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceReplicaSetList.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceReplicaSetList.ts new file mode 100644 index 000000000..061683dcd --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceReplicaSetList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ListMeta } from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ListMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import type { V1VirtualMachineInstanceReplicaSet } from './V1VirtualMachineInstanceReplicaSet'; +import { + V1VirtualMachineInstanceReplicaSetFromJSON, + V1VirtualMachineInstanceReplicaSetFromJSONTyped, + V1VirtualMachineInstanceReplicaSetToJSON, +} from './V1VirtualMachineInstanceReplicaSet'; + +/** + * VMIList is a list of VMIs + * @export + * @interface V1VirtualMachineInstanceReplicaSetList + */ +export interface V1VirtualMachineInstanceReplicaSetList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1VirtualMachineInstanceReplicaSetList + */ + apiVersion?: string; + /** + * + * @type {Array} + * @memberof V1VirtualMachineInstanceReplicaSetList + */ + 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 + * @type {string} + * @memberof V1VirtualMachineInstanceReplicaSetList + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ListMeta} + * @memberof V1VirtualMachineInstanceReplicaSetList + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the V1VirtualMachineInstanceReplicaSetList interface. + */ +export function instanceOfV1VirtualMachineInstanceReplicaSetList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function V1VirtualMachineInstanceReplicaSetListFromJSON(json: any): V1VirtualMachineInstanceReplicaSetList { + return V1VirtualMachineInstanceReplicaSetListFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstanceReplicaSetListFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstanceReplicaSetList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(V1VirtualMachineInstanceReplicaSetFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function V1VirtualMachineInstanceReplicaSetListToJSON(value?: V1VirtualMachineInstanceReplicaSetList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(V1VirtualMachineInstanceReplicaSetToJSON)), + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceReplicaSetSpec.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceReplicaSetSpec.ts new file mode 100644 index 000000000..08daa11d5 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceReplicaSetSpec.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1LabelSelector } from './K8sIoApimachineryPkgApisMetaV1LabelSelector'; +import { + K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSON, + K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './K8sIoApimachineryPkgApisMetaV1LabelSelector'; +import type { V1VirtualMachineInstanceTemplateSpec } from './V1VirtualMachineInstanceTemplateSpec'; +import { + V1VirtualMachineInstanceTemplateSpecFromJSON, + V1VirtualMachineInstanceTemplateSpecFromJSONTyped, + V1VirtualMachineInstanceTemplateSpecToJSON, +} from './V1VirtualMachineInstanceTemplateSpec'; + +/** + * + * @export + * @interface V1VirtualMachineInstanceReplicaSetSpec + */ +export interface V1VirtualMachineInstanceReplicaSetSpec { + /** + * Indicates that the replica set is paused. + * @type {boolean} + * @memberof V1VirtualMachineInstanceReplicaSetSpec + */ + paused?: boolean; + /** + * Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + * @type {number} + * @memberof V1VirtualMachineInstanceReplicaSetSpec + */ + replicas?: number; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1LabelSelector} + * @memberof V1VirtualMachineInstanceReplicaSetSpec + */ + selector: K8sIoApimachineryPkgApisMetaV1LabelSelector; + /** + * + * @type {V1VirtualMachineInstanceTemplateSpec} + * @memberof V1VirtualMachineInstanceReplicaSetSpec + */ + template: V1VirtualMachineInstanceTemplateSpec; +} + +/** + * Check if a given object implements the V1VirtualMachineInstanceReplicaSetSpec interface. + */ +export function instanceOfV1VirtualMachineInstanceReplicaSetSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "selector" in value; + isInstance = isInstance && "template" in value; + + return isInstance; +} + +export function V1VirtualMachineInstanceReplicaSetSpecFromJSON(json: any): V1VirtualMachineInstanceReplicaSetSpec { + return V1VirtualMachineInstanceReplicaSetSpecFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstanceReplicaSetSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstanceReplicaSetSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'paused': !exists(json, 'paused') ? undefined : json['paused'], + 'replicas': !exists(json, 'replicas') ? undefined : json['replicas'], + 'selector': K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['selector']), + 'template': V1VirtualMachineInstanceTemplateSpecFromJSON(json['template']), + }; +} + +export function V1VirtualMachineInstanceReplicaSetSpecToJSON(value?: V1VirtualMachineInstanceReplicaSetSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'paused': value.paused, + 'replicas': value.replicas, + 'selector': K8sIoApimachineryPkgApisMetaV1LabelSelectorToJSON(value.selector), + 'template': V1VirtualMachineInstanceTemplateSpecToJSON(value.template), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceReplicaSetStatus.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceReplicaSetStatus.ts new file mode 100644 index 000000000..0cf12ff30 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceReplicaSetStatus.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1VirtualMachineInstanceReplicaSetCondition } from './V1VirtualMachineInstanceReplicaSetCondition'; +import { + V1VirtualMachineInstanceReplicaSetConditionFromJSON, + V1VirtualMachineInstanceReplicaSetConditionFromJSONTyped, + V1VirtualMachineInstanceReplicaSetConditionToJSON, +} from './V1VirtualMachineInstanceReplicaSetCondition'; + +/** + * + * @export + * @interface V1VirtualMachineInstanceReplicaSetStatus + */ +export interface V1VirtualMachineInstanceReplicaSetStatus { + /** + * + * @type {Array} + * @memberof V1VirtualMachineInstanceReplicaSetStatus + */ + conditions?: Array; + /** + * Canonical form of the label selector for HPA which consumes it through the scale subresource. + * @type {string} + * @memberof V1VirtualMachineInstanceReplicaSetStatus + */ + labelSelector?: string; + /** + * The number of ready replicas for this replica set. + * @type {number} + * @memberof V1VirtualMachineInstanceReplicaSetStatus + */ + readyReplicas?: number; + /** + * Total number of non-terminated pods targeted by this deployment (their labels match the selector). + * @type {number} + * @memberof V1VirtualMachineInstanceReplicaSetStatus + */ + replicas?: number; +} + +/** + * Check if a given object implements the V1VirtualMachineInstanceReplicaSetStatus interface. + */ +export function instanceOfV1VirtualMachineInstanceReplicaSetStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1VirtualMachineInstanceReplicaSetStatusFromJSON(json: any): V1VirtualMachineInstanceReplicaSetStatus { + return V1VirtualMachineInstanceReplicaSetStatusFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstanceReplicaSetStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstanceReplicaSetStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(V1VirtualMachineInstanceReplicaSetConditionFromJSON)), + 'labelSelector': !exists(json, 'labelSelector') ? undefined : json['labelSelector'], + 'readyReplicas': !exists(json, 'readyReplicas') ? undefined : json['readyReplicas'], + 'replicas': !exists(json, 'replicas') ? undefined : json['replicas'], + }; +} + +export function V1VirtualMachineInstanceReplicaSetStatusToJSON(value?: V1VirtualMachineInstanceReplicaSetStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(V1VirtualMachineInstanceReplicaSetConditionToJSON)), + 'labelSelector': value.labelSelector, + 'readyReplicas': value.readyReplicas, + 'replicas': value.replicas, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceSpec.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceSpec.ts new file mode 100644 index 000000000..1054e46f5 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceSpec.ts @@ -0,0 +1,292 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1Affinity } from './K8sIoApiCoreV1Affinity'; +import { + K8sIoApiCoreV1AffinityFromJSON, + K8sIoApiCoreV1AffinityFromJSONTyped, + K8sIoApiCoreV1AffinityToJSON, +} from './K8sIoApiCoreV1Affinity'; +import type { K8sIoApiCoreV1PodDNSConfig } from './K8sIoApiCoreV1PodDNSConfig'; +import { + K8sIoApiCoreV1PodDNSConfigFromJSON, + K8sIoApiCoreV1PodDNSConfigFromJSONTyped, + K8sIoApiCoreV1PodDNSConfigToJSON, +} from './K8sIoApiCoreV1PodDNSConfig'; +import type { K8sIoApiCoreV1Toleration } from './K8sIoApiCoreV1Toleration'; +import { + K8sIoApiCoreV1TolerationFromJSON, + K8sIoApiCoreV1TolerationFromJSONTyped, + K8sIoApiCoreV1TolerationToJSON, +} from './K8sIoApiCoreV1Toleration'; +import type { K8sIoApiCoreV1TopologySpreadConstraint } from './K8sIoApiCoreV1TopologySpreadConstraint'; +import { + K8sIoApiCoreV1TopologySpreadConstraintFromJSON, + K8sIoApiCoreV1TopologySpreadConstraintFromJSONTyped, + K8sIoApiCoreV1TopologySpreadConstraintToJSON, +} from './K8sIoApiCoreV1TopologySpreadConstraint'; +import type { V1AccessCredential } from './V1AccessCredential'; +import { + V1AccessCredentialFromJSON, + V1AccessCredentialFromJSONTyped, + V1AccessCredentialToJSON, +} from './V1AccessCredential'; +import type { V1DomainSpec } from './V1DomainSpec'; +import { + V1DomainSpecFromJSON, + V1DomainSpecFromJSONTyped, + V1DomainSpecToJSON, +} from './V1DomainSpec'; +import type { V1Network } from './V1Network'; +import { + V1NetworkFromJSON, + V1NetworkFromJSONTyped, + V1NetworkToJSON, +} from './V1Network'; +import type { V1Probe } from './V1Probe'; +import { + V1ProbeFromJSON, + V1ProbeFromJSONTyped, + V1ProbeToJSON, +} from './V1Probe'; +import type { V1Volume } from './V1Volume'; +import { + V1VolumeFromJSON, + V1VolumeFromJSONTyped, + V1VolumeToJSON, +} from './V1Volume'; + +/** + * VirtualMachineInstanceSpec is a description of a VirtualMachineInstance. + * @export + * @interface V1VirtualMachineInstanceSpec + */ +export interface V1VirtualMachineInstanceSpec { + /** + * Specifies a set of public keys to inject into the vm guest + * @type {Array} + * @memberof V1VirtualMachineInstanceSpec + */ + accessCredentials?: Array; + /** + * + * @type {K8sIoApiCoreV1Affinity} + * @memberof V1VirtualMachineInstanceSpec + */ + affinity?: K8sIoApiCoreV1Affinity; + /** + * Specifies the architecture of the vm guest you are attempting to run. Defaults to the compiled architecture of the KubeVirt components + * @type {string} + * @memberof V1VirtualMachineInstanceSpec + */ + architecture?: string; + /** + * + * @type {K8sIoApiCoreV1PodDNSConfig} + * @memberof V1VirtualMachineInstanceSpec + */ + dnsConfig?: K8sIoApiCoreV1PodDNSConfig; + /** + * Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * + * Possible enum values: + * - `"ClusterFirst"` indicates that the pod should use cluster DNS first unless hostNetwork is true, if it is available, then fall back on the default (as determined by kubelet) DNS settings. + * - `"ClusterFirstWithHostNet"` indicates that the pod should use cluster DNS first, if it is available, then fall back on the default (as determined by kubelet) DNS settings. + * - `"Default"` indicates that the pod should use the default (as determined by kubelet) DNS settings. + * - `"None"` indicates that the pod should use empty DNS settings. DNS parameters such as nameservers and search paths should be defined via DNSConfig. + * @type {string} + * @memberof V1VirtualMachineInstanceSpec + */ + dnsPolicy?: V1VirtualMachineInstanceSpecDnsPolicyEnum; + /** + * + * @type {V1DomainSpec} + * @memberof V1VirtualMachineInstanceSpec + */ + domain: V1DomainSpec; + /** + * EvictionStrategy describes the strategy to follow when a node drain occurs. The possible options are: - "None": No action will be taken, according to the specified 'RunStrategy' the VirtualMachine will be restarted or shutdown. - "LiveMigrate": the VirtualMachineInstance will be migrated instead of being shutdown. - "LiveMigrateIfPossible": the same as "LiveMigrate" but only if the VirtualMachine is Live-Migratable, otherwise it will behave as "None". - "External": the VirtualMachineInstance will be protected by a PDB and `vmi.Status.EvacuationNodeName` will be set on eviction. This is mainly useful for cluster-api-provider-kubevirt (capk) which needs a way for VMI's to be blocked from eviction, yet signal capk that eviction has been called on the VMI so the capk controller can handle tearing the VMI down. Details can be found in the commit description https://github.com/kubevirt/kubevirt/commit/c1d77face705c8b126696bac9a3ee3825f27f1fa. + * @type {string} + * @memberof V1VirtualMachineInstanceSpec + */ + evictionStrategy?: string; + /** + * Specifies the hostname of the vmi If not specified, the hostname will be set to the name of the vmi, if dhcp or cloud-init is configured properly. + * @type {string} + * @memberof V1VirtualMachineInstanceSpec + */ + hostname?: string; + /** + * + * @type {V1Probe} + * @memberof V1VirtualMachineInstanceSpec + */ + livenessProbe?: V1Probe; + /** + * List of networks that can be attached to a vm's virtual interface. + * @type {Array} + * @memberof V1VirtualMachineInstanceSpec + */ + networks?: Array; + /** + * NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * @type {{ [key: string]: string; }} + * @memberof V1VirtualMachineInstanceSpec + */ + nodeSelector?: { [key: string]: string; }; + /** + * If specified, indicates the pod's priority. If not specified, the pod priority will be default or zero if there is no default. + * @type {string} + * @memberof V1VirtualMachineInstanceSpec + */ + priorityClassName?: string; + /** + * + * @type {V1Probe} + * @memberof V1VirtualMachineInstanceSpec + */ + readinessProbe?: V1Probe; + /** + * If specified, the VMI will be dispatched by specified scheduler. If not specified, the VMI will be dispatched by default scheduler. + * @type {string} + * @memberof V1VirtualMachineInstanceSpec + */ + schedulerName?: string; + /** + * StartStrategy can be set to "Paused" if Virtual Machine should be started in paused state. + * @type {string} + * @memberof V1VirtualMachineInstanceSpec + */ + startStrategy?: string; + /** + * If specified, the fully qualified vmi hostname will be "...svc.". If not specified, the vmi will not have a domainname at all. The DNS entry will resolve to the vmi, no matter if the vmi itself can pick up a hostname. + * @type {string} + * @memberof V1VirtualMachineInstanceSpec + */ + subdomain?: string; + /** + * Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. + * @type {number} + * @memberof V1VirtualMachineInstanceSpec + */ + terminationGracePeriodSeconds?: number; + /** + * If toleration is specified, obey all the toleration rules. + * @type {Array} + * @memberof V1VirtualMachineInstanceSpec + */ + tolerations?: Array; + /** + * TopologySpreadConstraints describes how a group of VMIs will be spread across a given topology domains. K8s scheduler will schedule VMI pods in a way which abides by the constraints. + * @type {Array} + * @memberof V1VirtualMachineInstanceSpec + */ + topologySpreadConstraints?: Array; + /** + * List of volumes that can be mounted by disks belonging to the vmi. + * @type {Array} + * @memberof V1VirtualMachineInstanceSpec + */ + volumes?: Array; +} + + +/** + * @export + */ +export const V1VirtualMachineInstanceSpecDnsPolicyEnum = { + ClusterFirst: 'ClusterFirst', + ClusterFirstWithHostNet: 'ClusterFirstWithHostNet', + Default: 'Default', + None: 'None' +} as const; +export type V1VirtualMachineInstanceSpecDnsPolicyEnum = typeof V1VirtualMachineInstanceSpecDnsPolicyEnum[keyof typeof V1VirtualMachineInstanceSpecDnsPolicyEnum]; + + +/** + * Check if a given object implements the V1VirtualMachineInstanceSpec interface. + */ +export function instanceOfV1VirtualMachineInstanceSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "domain" in value; + + return isInstance; +} + +export function V1VirtualMachineInstanceSpecFromJSON(json: any): V1VirtualMachineInstanceSpec { + return V1VirtualMachineInstanceSpecFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstanceSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstanceSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accessCredentials': !exists(json, 'accessCredentials') ? undefined : ((json['accessCredentials'] as Array).map(V1AccessCredentialFromJSON)), + 'affinity': !exists(json, 'affinity') ? undefined : K8sIoApiCoreV1AffinityFromJSON(json['affinity']), + 'architecture': !exists(json, 'architecture') ? undefined : json['architecture'], + 'dnsConfig': !exists(json, 'dnsConfig') ? undefined : K8sIoApiCoreV1PodDNSConfigFromJSON(json['dnsConfig']), + 'dnsPolicy': !exists(json, 'dnsPolicy') ? undefined : json['dnsPolicy'], + 'domain': V1DomainSpecFromJSON(json['domain']), + 'evictionStrategy': !exists(json, 'evictionStrategy') ? undefined : json['evictionStrategy'], + 'hostname': !exists(json, 'hostname') ? undefined : json['hostname'], + 'livenessProbe': !exists(json, 'livenessProbe') ? undefined : V1ProbeFromJSON(json['livenessProbe']), + 'networks': !exists(json, 'networks') ? undefined : ((json['networks'] as Array).map(V1NetworkFromJSON)), + 'nodeSelector': !exists(json, 'nodeSelector') ? undefined : json['nodeSelector'], + 'priorityClassName': !exists(json, 'priorityClassName') ? undefined : json['priorityClassName'], + 'readinessProbe': !exists(json, 'readinessProbe') ? undefined : V1ProbeFromJSON(json['readinessProbe']), + 'schedulerName': !exists(json, 'schedulerName') ? undefined : json['schedulerName'], + 'startStrategy': !exists(json, 'startStrategy') ? undefined : json['startStrategy'], + 'subdomain': !exists(json, 'subdomain') ? undefined : json['subdomain'], + 'terminationGracePeriodSeconds': !exists(json, 'terminationGracePeriodSeconds') ? undefined : json['terminationGracePeriodSeconds'], + 'tolerations': !exists(json, 'tolerations') ? undefined : ((json['tolerations'] as Array).map(K8sIoApiCoreV1TolerationFromJSON)), + 'topologySpreadConstraints': !exists(json, 'topologySpreadConstraints') ? undefined : ((json['topologySpreadConstraints'] as Array).map(K8sIoApiCoreV1TopologySpreadConstraintFromJSON)), + 'volumes': !exists(json, 'volumes') ? undefined : ((json['volumes'] as Array).map(V1VolumeFromJSON)), + }; +} + +export function V1VirtualMachineInstanceSpecToJSON(value?: V1VirtualMachineInstanceSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'accessCredentials': value.accessCredentials === undefined ? undefined : ((value.accessCredentials as Array).map(V1AccessCredentialToJSON)), + 'affinity': K8sIoApiCoreV1AffinityToJSON(value.affinity), + 'architecture': value.architecture, + 'dnsConfig': K8sIoApiCoreV1PodDNSConfigToJSON(value.dnsConfig), + 'dnsPolicy': value.dnsPolicy, + 'domain': V1DomainSpecToJSON(value.domain), + 'evictionStrategy': value.evictionStrategy, + 'hostname': value.hostname, + 'livenessProbe': V1ProbeToJSON(value.livenessProbe), + 'networks': value.networks === undefined ? undefined : ((value.networks as Array).map(V1NetworkToJSON)), + 'nodeSelector': value.nodeSelector, + 'priorityClassName': value.priorityClassName, + 'readinessProbe': V1ProbeToJSON(value.readinessProbe), + 'schedulerName': value.schedulerName, + 'startStrategy': value.startStrategy, + 'subdomain': value.subdomain, + 'terminationGracePeriodSeconds': value.terminationGracePeriodSeconds, + 'tolerations': value.tolerations === undefined ? undefined : ((value.tolerations as Array).map(K8sIoApiCoreV1TolerationToJSON)), + 'topologySpreadConstraints': value.topologySpreadConstraints === undefined ? undefined : ((value.topologySpreadConstraints as Array).map(K8sIoApiCoreV1TopologySpreadConstraintToJSON)), + 'volumes': value.volumes === undefined ? undefined : ((value.volumes as Array).map(V1VolumeToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceStatus.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceStatus.ts new file mode 100644 index 000000000..4fee0e2f7 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceStatus.ts @@ -0,0 +1,341 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1CPUTopology } from './V1CPUTopology'; +import { + V1CPUTopologyFromJSON, + V1CPUTopologyFromJSONTyped, + V1CPUTopologyToJSON, +} from './V1CPUTopology'; +import type { V1KernelBootStatus } from './V1KernelBootStatus'; +import { + V1KernelBootStatusFromJSON, + V1KernelBootStatusFromJSONTyped, + V1KernelBootStatusToJSON, +} from './V1KernelBootStatus'; +import type { V1Machine } from './V1Machine'; +import { + V1MachineFromJSON, + V1MachineFromJSONTyped, + V1MachineToJSON, +} from './V1Machine'; +import type { V1MemoryStatus } from './V1MemoryStatus'; +import { + V1MemoryStatusFromJSON, + V1MemoryStatusFromJSONTyped, + V1MemoryStatusToJSON, +} from './V1MemoryStatus'; +import type { V1TopologyHints } from './V1TopologyHints'; +import { + V1TopologyHintsFromJSON, + V1TopologyHintsFromJSONTyped, + V1TopologyHintsToJSON, +} from './V1TopologyHints'; +import type { V1VirtualMachineInstanceCondition } from './V1VirtualMachineInstanceCondition'; +import { + V1VirtualMachineInstanceConditionFromJSON, + V1VirtualMachineInstanceConditionFromJSONTyped, + V1VirtualMachineInstanceConditionToJSON, +} from './V1VirtualMachineInstanceCondition'; +import type { V1VirtualMachineInstanceGuestOSInfo } from './V1VirtualMachineInstanceGuestOSInfo'; +import { + V1VirtualMachineInstanceGuestOSInfoFromJSON, + V1VirtualMachineInstanceGuestOSInfoFromJSONTyped, + V1VirtualMachineInstanceGuestOSInfoToJSON, +} from './V1VirtualMachineInstanceGuestOSInfo'; +import type { V1VirtualMachineInstanceMigrationState } from './V1VirtualMachineInstanceMigrationState'; +import { + V1VirtualMachineInstanceMigrationStateFromJSON, + V1VirtualMachineInstanceMigrationStateFromJSONTyped, + V1VirtualMachineInstanceMigrationStateToJSON, +} from './V1VirtualMachineInstanceMigrationState'; +import type { V1VirtualMachineInstanceNetworkInterface } from './V1VirtualMachineInstanceNetworkInterface'; +import { + V1VirtualMachineInstanceNetworkInterfaceFromJSON, + V1VirtualMachineInstanceNetworkInterfaceFromJSONTyped, + V1VirtualMachineInstanceNetworkInterfaceToJSON, +} from './V1VirtualMachineInstanceNetworkInterface'; +import type { V1VirtualMachineInstancePhaseTransitionTimestamp } from './V1VirtualMachineInstancePhaseTransitionTimestamp'; +import { + V1VirtualMachineInstancePhaseTransitionTimestampFromJSON, + V1VirtualMachineInstancePhaseTransitionTimestampFromJSONTyped, + V1VirtualMachineInstancePhaseTransitionTimestampToJSON, +} from './V1VirtualMachineInstancePhaseTransitionTimestamp'; +import type { V1VolumeStatus } from './V1VolumeStatus'; +import { + V1VolumeStatusFromJSON, + V1VolumeStatusFromJSONTyped, + V1VolumeStatusToJSON, +} from './V1VolumeStatus'; + +/** + * VirtualMachineInstanceStatus represents information about the status of a VirtualMachineInstance. Status may trail the actual state of a system. + * @export + * @interface V1VirtualMachineInstanceStatus + */ +export interface V1VirtualMachineInstanceStatus { + /** + * VSOCKCID is used to track the allocated VSOCK CID in the VM. + * @type {number} + * @memberof V1VirtualMachineInstanceStatus + */ + vSOCKCID?: number; + /** + * ActivePods is a mapping of pod UID to node name. It is possible for multiple pods to be running for a single VMI during migration. + * @type {{ [key: string]: string; }} + * @memberof V1VirtualMachineInstanceStatus + */ + activePods?: { [key: string]: string; }; + /** + * Conditions are specific points in VirtualMachineInstance's pod runtime. + * @type {Array} + * @memberof V1VirtualMachineInstanceStatus + */ + conditions?: Array; + /** + * + * @type {V1CPUTopology} + * @memberof V1VirtualMachineInstanceStatus + */ + currentCPUTopology?: V1CPUTopology; + /** + * EvacuationNodeName is used to track the eviction process of a VMI. It stores the name of the node that we want to evacuate. It is meant to be used by KubeVirt core components only and can't be set or modified by users. + * @type {string} + * @memberof V1VirtualMachineInstanceStatus + */ + evacuationNodeName?: string; + /** + * FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed + * @type {string} + * @memberof V1VirtualMachineInstanceStatus + */ + fsFreezeStatus?: string; + /** + * + * @type {V1VirtualMachineInstanceGuestOSInfo} + * @memberof V1VirtualMachineInstanceStatus + */ + guestOSInfo?: V1VirtualMachineInstanceGuestOSInfo; + /** + * Interfaces represent the details of available network interfaces. + * @type {Array} + * @memberof V1VirtualMachineInstanceStatus + */ + interfaces?: Array; + /** + * + * @type {V1KernelBootStatus} + * @memberof V1VirtualMachineInstanceStatus + */ + kernelBootStatus?: V1KernelBootStatus; + /** + * LauncherContainerImageVersion indicates what container image is currently active for the vmi. + * @type {string} + * @memberof V1VirtualMachineInstanceStatus + */ + launcherContainerImageVersion?: string; + /** + * + * @type {V1Machine} + * @memberof V1VirtualMachineInstanceStatus + */ + machine?: V1Machine; + /** + * + * @type {V1MemoryStatus} + * @memberof V1VirtualMachineInstanceStatus + */ + memory?: V1MemoryStatus; + /** + * Represents the method using which the vmi can be migrated: live migration or block migration + * @type {string} + * @memberof V1VirtualMachineInstanceStatus + */ + migrationMethod?: string; + /** + * + * @type {V1VirtualMachineInstanceMigrationState} + * @memberof V1VirtualMachineInstanceStatus + */ + migrationState?: V1VirtualMachineInstanceMigrationState; + /** + * This represents the migration transport + * @type {string} + * @memberof V1VirtualMachineInstanceStatus + */ + migrationTransport?: string; + /** + * NodeName is the name where the VirtualMachineInstance is currently running. + * @type {string} + * @memberof V1VirtualMachineInstanceStatus + */ + nodeName?: string; + /** + * Phase is the status of the VirtualMachineInstance in kubernetes world. It is not the VirtualMachineInstance status, but partially correlates to it. + * @type {string} + * @memberof V1VirtualMachineInstanceStatus + */ + phase?: string; + /** + * PhaseTransitionTimestamp is the timestamp of when the last phase change occurred + * @type {Array} + * @memberof V1VirtualMachineInstanceStatus + */ + phaseTransitionTimestamps?: Array; + /** + * The Quality of Service (QOS) classification assigned to the virtual machine instance based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md + * + * Possible enum values: + * - `"BestEffort"` is the BestEffort qos class. + * - `"Burstable"` is the Burstable qos class. + * - `"Guaranteed"` is the Guaranteed qos class. + * @type {string} + * @memberof V1VirtualMachineInstanceStatus + */ + qosClass?: V1VirtualMachineInstanceStatusQosClassEnum; + /** + * A brief CamelCase message indicating details about why the VMI is in this state. e.g. 'NodeUnresponsive' + * @type {string} + * @memberof V1VirtualMachineInstanceStatus + */ + reason?: string; + /** + * RuntimeUser is used to determine what user will be used in launcher + * @type {number} + * @memberof V1VirtualMachineInstanceStatus + */ + runtimeUser?: number; + /** + * SELinuxContext is the actual SELinux context of the virt-launcher pod + * @type {string} + * @memberof V1VirtualMachineInstanceStatus + */ + selinuxContext?: string; + /** + * + * @type {V1TopologyHints} + * @memberof V1VirtualMachineInstanceStatus + */ + topologyHints?: V1TopologyHints; + /** + * VirtualMachineRevisionName is used to get the vm revision of the vmi when doing an online vm snapshot + * @type {string} + * @memberof V1VirtualMachineInstanceStatus + */ + virtualMachineRevisionName?: string; + /** + * VolumeStatus contains the statuses of all the volumes + * @type {Array} + * @memberof V1VirtualMachineInstanceStatus + */ + volumeStatus?: Array; +} + + +/** + * @export + */ +export const V1VirtualMachineInstanceStatusQosClassEnum = { + BestEffort: 'BestEffort', + Burstable: 'Burstable', + Guaranteed: 'Guaranteed' +} as const; +export type V1VirtualMachineInstanceStatusQosClassEnum = typeof V1VirtualMachineInstanceStatusQosClassEnum[keyof typeof V1VirtualMachineInstanceStatusQosClassEnum]; + + +/** + * Check if a given object implements the V1VirtualMachineInstanceStatus interface. + */ +export function instanceOfV1VirtualMachineInstanceStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1VirtualMachineInstanceStatusFromJSON(json: any): V1VirtualMachineInstanceStatus { + return V1VirtualMachineInstanceStatusFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstanceStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstanceStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'vSOCKCID': !exists(json, 'VSOCKCID') ? undefined : json['VSOCKCID'], + 'activePods': !exists(json, 'activePods') ? undefined : json['activePods'], + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(V1VirtualMachineInstanceConditionFromJSON)), + 'currentCPUTopology': !exists(json, 'currentCPUTopology') ? undefined : V1CPUTopologyFromJSON(json['currentCPUTopology']), + 'evacuationNodeName': !exists(json, 'evacuationNodeName') ? undefined : json['evacuationNodeName'], + 'fsFreezeStatus': !exists(json, 'fsFreezeStatus') ? undefined : json['fsFreezeStatus'], + 'guestOSInfo': !exists(json, 'guestOSInfo') ? undefined : V1VirtualMachineInstanceGuestOSInfoFromJSON(json['guestOSInfo']), + 'interfaces': !exists(json, 'interfaces') ? undefined : ((json['interfaces'] as Array).map(V1VirtualMachineInstanceNetworkInterfaceFromJSON)), + 'kernelBootStatus': !exists(json, 'kernelBootStatus') ? undefined : V1KernelBootStatusFromJSON(json['kernelBootStatus']), + 'launcherContainerImageVersion': !exists(json, 'launcherContainerImageVersion') ? undefined : json['launcherContainerImageVersion'], + 'machine': !exists(json, 'machine') ? undefined : V1MachineFromJSON(json['machine']), + 'memory': !exists(json, 'memory') ? undefined : V1MemoryStatusFromJSON(json['memory']), + 'migrationMethod': !exists(json, 'migrationMethod') ? undefined : json['migrationMethod'], + 'migrationState': !exists(json, 'migrationState') ? undefined : V1VirtualMachineInstanceMigrationStateFromJSON(json['migrationState']), + 'migrationTransport': !exists(json, 'migrationTransport') ? undefined : json['migrationTransport'], + 'nodeName': !exists(json, 'nodeName') ? undefined : json['nodeName'], + 'phase': !exists(json, 'phase') ? undefined : json['phase'], + 'phaseTransitionTimestamps': !exists(json, 'phaseTransitionTimestamps') ? undefined : ((json['phaseTransitionTimestamps'] as Array).map(V1VirtualMachineInstancePhaseTransitionTimestampFromJSON)), + 'qosClass': !exists(json, 'qosClass') ? undefined : json['qosClass'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'runtimeUser': !exists(json, 'runtimeUser') ? undefined : json['runtimeUser'], + 'selinuxContext': !exists(json, 'selinuxContext') ? undefined : json['selinuxContext'], + 'topologyHints': !exists(json, 'topologyHints') ? undefined : V1TopologyHintsFromJSON(json['topologyHints']), + 'virtualMachineRevisionName': !exists(json, 'virtualMachineRevisionName') ? undefined : json['virtualMachineRevisionName'], + 'volumeStatus': !exists(json, 'volumeStatus') ? undefined : ((json['volumeStatus'] as Array).map(V1VolumeStatusFromJSON)), + }; +} + +export function V1VirtualMachineInstanceStatusToJSON(value?: V1VirtualMachineInstanceStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'VSOCKCID': value.vSOCKCID, + 'activePods': value.activePods, + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(V1VirtualMachineInstanceConditionToJSON)), + 'currentCPUTopology': V1CPUTopologyToJSON(value.currentCPUTopology), + 'evacuationNodeName': value.evacuationNodeName, + 'fsFreezeStatus': value.fsFreezeStatus, + 'guestOSInfo': V1VirtualMachineInstanceGuestOSInfoToJSON(value.guestOSInfo), + 'interfaces': value.interfaces === undefined ? undefined : ((value.interfaces as Array).map(V1VirtualMachineInstanceNetworkInterfaceToJSON)), + 'kernelBootStatus': V1KernelBootStatusToJSON(value.kernelBootStatus), + 'launcherContainerImageVersion': value.launcherContainerImageVersion, + 'machine': V1MachineToJSON(value.machine), + 'memory': V1MemoryStatusToJSON(value.memory), + 'migrationMethod': value.migrationMethod, + 'migrationState': V1VirtualMachineInstanceMigrationStateToJSON(value.migrationState), + 'migrationTransport': value.migrationTransport, + 'nodeName': value.nodeName, + 'phase': value.phase, + 'phaseTransitionTimestamps': value.phaseTransitionTimestamps === undefined ? undefined : ((value.phaseTransitionTimestamps as Array).map(V1VirtualMachineInstancePhaseTransitionTimestampToJSON)), + 'qosClass': value.qosClass, + 'reason': value.reason, + 'runtimeUser': value.runtimeUser, + 'selinuxContext': value.selinuxContext, + 'topologyHints': V1TopologyHintsToJSON(value.topologyHints), + 'virtualMachineRevisionName': value.virtualMachineRevisionName, + 'volumeStatus': value.volumeStatus === undefined ? undefined : ((value.volumeStatus as Array).map(V1VolumeStatusToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceTemplateSpec.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceTemplateSpec.ts new file mode 100644 index 000000000..98aa750be --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineInstanceTemplateSpec.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ObjectMeta } from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import type { V1VirtualMachineInstanceSpec } from './V1VirtualMachineInstanceSpec'; +import { + V1VirtualMachineInstanceSpecFromJSON, + V1VirtualMachineInstanceSpecFromJSONTyped, + V1VirtualMachineInstanceSpecToJSON, +} from './V1VirtualMachineInstanceSpec'; + +/** + * + * @export + * @interface V1VirtualMachineInstanceTemplateSpec + */ +export interface V1VirtualMachineInstanceTemplateSpec { + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ObjectMeta} + * @memberof V1VirtualMachineInstanceTemplateSpec + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {V1VirtualMachineInstanceSpec} + * @memberof V1VirtualMachineInstanceTemplateSpec + */ + spec?: V1VirtualMachineInstanceSpec; +} + +/** + * Check if a given object implements the V1VirtualMachineInstanceTemplateSpec interface. + */ +export function instanceOfV1VirtualMachineInstanceTemplateSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1VirtualMachineInstanceTemplateSpecFromJSON(json: any): V1VirtualMachineInstanceTemplateSpec { + return V1VirtualMachineInstanceTemplateSpecFromJSONTyped(json, false); +} + +export function V1VirtualMachineInstanceTemplateSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineInstanceTemplateSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : V1VirtualMachineInstanceSpecFromJSON(json['spec']), + }; +} + +export function V1VirtualMachineInstanceTemplateSpecToJSON(value?: V1VirtualMachineInstanceTemplateSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'metadata': K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': V1VirtualMachineInstanceSpecToJSON(value.spec), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineList.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineList.ts new file mode 100644 index 000000000..4244c66ea --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ListMeta } from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ListMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import type { V1VirtualMachine } from './V1VirtualMachine'; +import { + V1VirtualMachineFromJSON, + V1VirtualMachineFromJSONTyped, + V1VirtualMachineToJSON, +} from './V1VirtualMachine'; + +/** + * VirtualMachineList is a list of virtualmachines + * @export + * @interface V1VirtualMachineList + */ +export interface V1VirtualMachineList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1VirtualMachineList + */ + apiVersion?: string; + /** + * + * @type {Array} + * @memberof V1VirtualMachineList + */ + 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 + * @type {string} + * @memberof V1VirtualMachineList + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ListMeta} + * @memberof V1VirtualMachineList + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the V1VirtualMachineList interface. + */ +export function instanceOfV1VirtualMachineList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function V1VirtualMachineListFromJSON(json: any): V1VirtualMachineList { + return V1VirtualMachineListFromJSONTyped(json, false); +} + +export function V1VirtualMachineListFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(V1VirtualMachineFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function V1VirtualMachineListToJSON(value?: V1VirtualMachineList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(V1VirtualMachineToJSON)), + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineMemoryDumpRequest.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineMemoryDumpRequest.ts new file mode 100644 index 000000000..2cc57c110 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineMemoryDumpRequest.ts @@ -0,0 +1,115 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * VirtualMachineMemoryDumpRequest represent the memory dump request phase and info + * @export + * @interface V1VirtualMachineMemoryDumpRequest + */ +export interface V1VirtualMachineMemoryDumpRequest { + /** + * ClaimName is the name of the pvc that will contain the memory dump + * @type {string} + * @memberof V1VirtualMachineMemoryDumpRequest + */ + claimName: string; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof V1VirtualMachineMemoryDumpRequest + */ + endTimestamp?: string; + /** + * FileName represents the name of the output file + * @type {string} + * @memberof V1VirtualMachineMemoryDumpRequest + */ + fileName?: string; + /** + * Message is a detailed message about failure of the memory dump + * @type {string} + * @memberof V1VirtualMachineMemoryDumpRequest + */ + message?: string; + /** + * Phase represents the memory dump phase + * @type {string} + * @memberof V1VirtualMachineMemoryDumpRequest + */ + phase: string; + /** + * Remove represents request of dissociating the memory dump pvc + * @type {boolean} + * @memberof V1VirtualMachineMemoryDumpRequest + */ + remove?: boolean; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof V1VirtualMachineMemoryDumpRequest + */ + startTimestamp?: string; +} + +/** + * Check if a given object implements the V1VirtualMachineMemoryDumpRequest interface. + */ +export function instanceOfV1VirtualMachineMemoryDumpRequest(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "claimName" in value; + isInstance = isInstance && "phase" in value; + + return isInstance; +} + +export function V1VirtualMachineMemoryDumpRequestFromJSON(json: any): V1VirtualMachineMemoryDumpRequest { + return V1VirtualMachineMemoryDumpRequestFromJSONTyped(json, false); +} + +export function V1VirtualMachineMemoryDumpRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineMemoryDumpRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'claimName': json['claimName'], + 'endTimestamp': !exists(json, 'endTimestamp') ? undefined : json['endTimestamp'], + 'fileName': !exists(json, 'fileName') ? undefined : json['fileName'], + 'message': !exists(json, 'message') ? undefined : json['message'], + 'phase': json['phase'], + 'remove': !exists(json, 'remove') ? undefined : json['remove'], + 'startTimestamp': !exists(json, 'startTimestamp') ? undefined : json['startTimestamp'], + }; +} + +export function V1VirtualMachineMemoryDumpRequestToJSON(value?: V1VirtualMachineMemoryDumpRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'claimName': value.claimName, + 'endTimestamp': value.endTimestamp === undefined ? undefined : (value.endTimestamp), + 'fileName': value.fileName, + 'message': value.message, + 'phase': value.phase, + 'remove': value.remove, + 'startTimestamp': value.startTimestamp === undefined ? undefined : (value.startTimestamp), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineOptions.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineOptions.ts new file mode 100644 index 000000000..937e8860d --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineOptions.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * VirtualMachineOptions holds the cluster level information regarding the virtual machine. + * @export + * @interface V1VirtualMachineOptions + */ +export interface V1VirtualMachineOptions { + /** + * + * @type {object} + * @memberof V1VirtualMachineOptions + */ + disableFreePageReporting?: object; + /** + * + * @type {object} + * @memberof V1VirtualMachineOptions + */ + disableSerialConsoleLog?: object; +} + +/** + * Check if a given object implements the V1VirtualMachineOptions interface. + */ +export function instanceOfV1VirtualMachineOptions(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1VirtualMachineOptionsFromJSON(json: any): V1VirtualMachineOptions { + return V1VirtualMachineOptionsFromJSONTyped(json, false); +} + +export function V1VirtualMachineOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineOptions { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'disableFreePageReporting': !exists(json, 'disableFreePageReporting') ? undefined : json['disableFreePageReporting'], + 'disableSerialConsoleLog': !exists(json, 'disableSerialConsoleLog') ? undefined : json['disableSerialConsoleLog'], + }; +} + +export function V1VirtualMachineOptionsToJSON(value?: V1VirtualMachineOptions | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'disableFreePageReporting': value.disableFreePageReporting, + 'disableSerialConsoleLog': value.disableSerialConsoleLog, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineSpec.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineSpec.ts new file mode 100644 index 000000000..95a7f3ef6 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineSpec.ts @@ -0,0 +1,131 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1DataVolumeTemplateSpec } from './V1DataVolumeTemplateSpec'; +import { + V1DataVolumeTemplateSpecFromJSON, + V1DataVolumeTemplateSpecFromJSONTyped, + V1DataVolumeTemplateSpecToJSON, +} from './V1DataVolumeTemplateSpec'; +import type { V1InstancetypeMatcher } from './V1InstancetypeMatcher'; +import { + V1InstancetypeMatcherFromJSON, + V1InstancetypeMatcherFromJSONTyped, + V1InstancetypeMatcherToJSON, +} from './V1InstancetypeMatcher'; +import type { V1PreferenceMatcher } from './V1PreferenceMatcher'; +import { + V1PreferenceMatcherFromJSON, + V1PreferenceMatcherFromJSONTyped, + V1PreferenceMatcherToJSON, +} from './V1PreferenceMatcher'; +import type { V1VirtualMachineInstanceTemplateSpec } from './V1VirtualMachineInstanceTemplateSpec'; +import { + V1VirtualMachineInstanceTemplateSpecFromJSON, + V1VirtualMachineInstanceTemplateSpecFromJSONTyped, + V1VirtualMachineInstanceTemplateSpecToJSON, +} from './V1VirtualMachineInstanceTemplateSpec'; + +/** + * VirtualMachineSpec describes how the proper VirtualMachine should look like + * @export + * @interface V1VirtualMachineSpec + */ +export interface V1VirtualMachineSpec { + /** + * dataVolumeTemplates is a list of dataVolumes that the VirtualMachineInstance template can reference. DataVolumes in this list are dynamically created for the VirtualMachine and are tied to the VirtualMachine's life-cycle. + * @type {Array} + * @memberof V1VirtualMachineSpec + */ + dataVolumeTemplates?: Array; + /** + * + * @type {V1InstancetypeMatcher} + * @memberof V1VirtualMachineSpec + */ + instancetype?: V1InstancetypeMatcher; + /** + * + * @type {V1PreferenceMatcher} + * @memberof V1VirtualMachineSpec + */ + preference?: V1PreferenceMatcher; + /** + * Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running + * @type {string} + * @memberof V1VirtualMachineSpec + */ + runStrategy?: string; + /** + * Running controls whether the associatied VirtualMachineInstance is created or not Mutually exclusive with RunStrategy + * @type {boolean} + * @memberof V1VirtualMachineSpec + */ + running?: boolean; + /** + * + * @type {V1VirtualMachineInstanceTemplateSpec} + * @memberof V1VirtualMachineSpec + */ + template: V1VirtualMachineInstanceTemplateSpec; +} + +/** + * Check if a given object implements the V1VirtualMachineSpec interface. + */ +export function instanceOfV1VirtualMachineSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "template" in value; + + return isInstance; +} + +export function V1VirtualMachineSpecFromJSON(json: any): V1VirtualMachineSpec { + return V1VirtualMachineSpecFromJSONTyped(json, false); +} + +export function V1VirtualMachineSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dataVolumeTemplates': !exists(json, 'dataVolumeTemplates') ? undefined : ((json['dataVolumeTemplates'] as Array).map(V1DataVolumeTemplateSpecFromJSON)), + 'instancetype': !exists(json, 'instancetype') ? undefined : V1InstancetypeMatcherFromJSON(json['instancetype']), + 'preference': !exists(json, 'preference') ? undefined : V1PreferenceMatcherFromJSON(json['preference']), + 'runStrategy': !exists(json, 'runStrategy') ? undefined : json['runStrategy'], + 'running': !exists(json, 'running') ? undefined : json['running'], + 'template': V1VirtualMachineInstanceTemplateSpecFromJSON(json['template']), + }; +} + +export function V1VirtualMachineSpecToJSON(value?: V1VirtualMachineSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'dataVolumeTemplates': value.dataVolumeTemplates === undefined ? undefined : ((value.dataVolumeTemplates as Array).map(V1DataVolumeTemplateSpecToJSON)), + 'instancetype': V1InstancetypeMatcherToJSON(value.instancetype), + 'preference': V1PreferenceMatcherToJSON(value.preference), + 'runStrategy': value.runStrategy, + 'running': value.running, + 'template': V1VirtualMachineInstanceTemplateSpecToJSON(value.template), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineStartFailure.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineStartFailure.ts new file mode 100644 index 000000000..01169ea50 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineStartFailure.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * VirtualMachineStartFailure tracks VMIs which failed to transition successfully to running using the VM status + * @export + * @interface V1VirtualMachineStartFailure + */ +export interface V1VirtualMachineStartFailure { + /** + * + * @type {number} + * @memberof V1VirtualMachineStartFailure + */ + consecutiveFailCount?: number; + /** + * + * @type {string} + * @memberof V1VirtualMachineStartFailure + */ + lastFailedVMIUID?: string; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof V1VirtualMachineStartFailure + */ + retryAfterTimestamp?: string; +} + +/** + * Check if a given object implements the V1VirtualMachineStartFailure interface. + */ +export function instanceOfV1VirtualMachineStartFailure(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1VirtualMachineStartFailureFromJSON(json: any): V1VirtualMachineStartFailure { + return V1VirtualMachineStartFailureFromJSONTyped(json, false); +} + +export function V1VirtualMachineStartFailureFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineStartFailure { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'consecutiveFailCount': !exists(json, 'consecutiveFailCount') ? undefined : json['consecutiveFailCount'], + 'lastFailedVMIUID': !exists(json, 'lastFailedVMIUID') ? undefined : json['lastFailedVMIUID'], + 'retryAfterTimestamp': !exists(json, 'retryAfterTimestamp') ? undefined : json['retryAfterTimestamp'], + }; +} + +export function V1VirtualMachineStartFailureToJSON(value?: V1VirtualMachineStartFailure | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'consecutiveFailCount': value.consecutiveFailCount, + 'lastFailedVMIUID': value.lastFailedVMIUID, + 'retryAfterTimestamp': value.retryAfterTimestamp === undefined ? undefined : (value.retryAfterTimestamp), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineStateChangeRequest.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineStateChangeRequest.ts new file mode 100644 index 000000000..1539cb470 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineStateChangeRequest.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1VirtualMachineStateChangeRequest + */ +export interface V1VirtualMachineStateChangeRequest { + /** + * Indicates the type of action that is requested. e.g. Start or Stop + * @type {string} + * @memberof V1VirtualMachineStateChangeRequest + */ + action: string; + /** + * Provides additional data in order to perform the Action + * @type {{ [key: string]: string; }} + * @memberof V1VirtualMachineStateChangeRequest + */ + data?: { [key: string]: string; }; + /** + * Indicates the UUID of an existing Virtual Machine Instance that this change request applies to -- if applicable + * @type {string} + * @memberof V1VirtualMachineStateChangeRequest + */ + uid?: string; +} + +/** + * Check if a given object implements the V1VirtualMachineStateChangeRequest interface. + */ +export function instanceOfV1VirtualMachineStateChangeRequest(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "action" in value; + + return isInstance; +} + +export function V1VirtualMachineStateChangeRequestFromJSON(json: any): V1VirtualMachineStateChangeRequest { + return V1VirtualMachineStateChangeRequestFromJSONTyped(json, false); +} + +export function V1VirtualMachineStateChangeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineStateChangeRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'action': json['action'], + 'data': !exists(json, 'data') ? undefined : json['data'], + 'uid': !exists(json, 'uid') ? undefined : json['uid'], + }; +} + +export function V1VirtualMachineStateChangeRequestToJSON(value?: V1VirtualMachineStateChangeRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'action': value.action, + 'data': value.data, + 'uid': value.uid, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineStatus.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineStatus.ts new file mode 100644 index 000000000..d3d3f8c78 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineStatus.ts @@ -0,0 +1,198 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1VirtualMachineCondition } from './V1VirtualMachineCondition'; +import { + V1VirtualMachineConditionFromJSON, + V1VirtualMachineConditionFromJSONTyped, + V1VirtualMachineConditionToJSON, +} from './V1VirtualMachineCondition'; +import type { V1VirtualMachineMemoryDumpRequest } from './V1VirtualMachineMemoryDumpRequest'; +import { + V1VirtualMachineMemoryDumpRequestFromJSON, + V1VirtualMachineMemoryDumpRequestFromJSONTyped, + V1VirtualMachineMemoryDumpRequestToJSON, +} from './V1VirtualMachineMemoryDumpRequest'; +import type { V1VirtualMachineStartFailure } from './V1VirtualMachineStartFailure'; +import { + V1VirtualMachineStartFailureFromJSON, + V1VirtualMachineStartFailureFromJSONTyped, + V1VirtualMachineStartFailureToJSON, +} from './V1VirtualMachineStartFailure'; +import type { V1VirtualMachineStateChangeRequest } from './V1VirtualMachineStateChangeRequest'; +import { + V1VirtualMachineStateChangeRequestFromJSON, + V1VirtualMachineStateChangeRequestFromJSONTyped, + V1VirtualMachineStateChangeRequestToJSON, +} from './V1VirtualMachineStateChangeRequest'; +import type { V1VirtualMachineVolumeRequest } from './V1VirtualMachineVolumeRequest'; +import { + V1VirtualMachineVolumeRequestFromJSON, + V1VirtualMachineVolumeRequestFromJSONTyped, + V1VirtualMachineVolumeRequestToJSON, +} from './V1VirtualMachineVolumeRequest'; +import type { V1VolumeSnapshotStatus } from './V1VolumeSnapshotStatus'; +import { + V1VolumeSnapshotStatusFromJSON, + V1VolumeSnapshotStatusFromJSONTyped, + V1VolumeSnapshotStatusToJSON, +} from './V1VolumeSnapshotStatus'; + +/** + * VirtualMachineStatus represents the status returned by the controller to describe how the VirtualMachine is doing + * @export + * @interface V1VirtualMachineStatus + */ +export interface V1VirtualMachineStatus { + /** + * Hold the state information of the VirtualMachine and its VirtualMachineInstance + * @type {Array} + * @memberof V1VirtualMachineStatus + */ + conditions?: Array; + /** + * Created indicates if the virtual machine is created in the cluster + * @type {boolean} + * @memberof V1VirtualMachineStatus + */ + created?: boolean; + /** + * DesiredGeneration is the generation which is desired for the VMI. This will be used in comparisons with ObservedGeneration to understand when the VMI is out of sync. This will be changed at the same time as ObservedGeneration to remove errors which could occur if Generation is updated through an Update() before ObservedGeneration in Status. + * @type {number} + * @memberof V1VirtualMachineStatus + */ + desiredGeneration?: number; + /** + * + * @type {V1VirtualMachineMemoryDumpRequest} + * @memberof V1VirtualMachineStatus + */ + memoryDumpRequest?: V1VirtualMachineMemoryDumpRequest; + /** + * ObservedGeneration is the generation observed by the vmi when started. + * @type {number} + * @memberof V1VirtualMachineStatus + */ + observedGeneration?: number; + /** + * PrintableStatus is a human readable, high-level representation of the status of the virtual machine + * @type {string} + * @memberof V1VirtualMachineStatus + */ + printableStatus?: string; + /** + * Ready indicates if the virtual machine is running and ready + * @type {boolean} + * @memberof V1VirtualMachineStatus + */ + ready?: boolean; + /** + * RestoreInProgress is the name of the VirtualMachineRestore currently executing + * @type {string} + * @memberof V1VirtualMachineStatus + */ + restoreInProgress?: string; + /** + * SnapshotInProgress is the name of the VirtualMachineSnapshot currently executing + * @type {string} + * @memberof V1VirtualMachineStatus + */ + snapshotInProgress?: string; + /** + * + * @type {V1VirtualMachineStartFailure} + * @memberof V1VirtualMachineStatus + */ + startFailure?: V1VirtualMachineStartFailure; + /** + * StateChangeRequests indicates a list of actions that should be taken on a VMI e.g. stop a specific VMI then start a new one. + * @type {Array} + * @memberof V1VirtualMachineStatus + */ + stateChangeRequests?: Array; + /** + * VolumeRequests indicates a list of volumes add or remove from the VMI template and hotplug on an active running VMI. + * @type {Array} + * @memberof V1VirtualMachineStatus + */ + volumeRequests?: Array; + /** + * VolumeSnapshotStatuses indicates a list of statuses whether snapshotting is supported by each volume. + * @type {Array} + * @memberof V1VirtualMachineStatus + */ + volumeSnapshotStatuses?: Array; +} + +/** + * Check if a given object implements the V1VirtualMachineStatus interface. + */ +export function instanceOfV1VirtualMachineStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1VirtualMachineStatusFromJSON(json: any): V1VirtualMachineStatus { + return V1VirtualMachineStatusFromJSONTyped(json, false); +} + +export function V1VirtualMachineStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(V1VirtualMachineConditionFromJSON)), + 'created': !exists(json, 'created') ? undefined : json['created'], + 'desiredGeneration': !exists(json, 'desiredGeneration') ? undefined : json['desiredGeneration'], + 'memoryDumpRequest': !exists(json, 'memoryDumpRequest') ? undefined : V1VirtualMachineMemoryDumpRequestFromJSON(json['memoryDumpRequest']), + 'observedGeneration': !exists(json, 'observedGeneration') ? undefined : json['observedGeneration'], + 'printableStatus': !exists(json, 'printableStatus') ? undefined : json['printableStatus'], + 'ready': !exists(json, 'ready') ? undefined : json['ready'], + 'restoreInProgress': !exists(json, 'restoreInProgress') ? undefined : json['restoreInProgress'], + 'snapshotInProgress': !exists(json, 'snapshotInProgress') ? undefined : json['snapshotInProgress'], + 'startFailure': !exists(json, 'startFailure') ? undefined : V1VirtualMachineStartFailureFromJSON(json['startFailure']), + 'stateChangeRequests': !exists(json, 'stateChangeRequests') ? undefined : ((json['stateChangeRequests'] as Array).map(V1VirtualMachineStateChangeRequestFromJSON)), + 'volumeRequests': !exists(json, 'volumeRequests') ? undefined : ((json['volumeRequests'] as Array).map(V1VirtualMachineVolumeRequestFromJSON)), + 'volumeSnapshotStatuses': !exists(json, 'volumeSnapshotStatuses') ? undefined : ((json['volumeSnapshotStatuses'] as Array).map(V1VolumeSnapshotStatusFromJSON)), + }; +} + +export function V1VirtualMachineStatusToJSON(value?: V1VirtualMachineStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(V1VirtualMachineConditionToJSON)), + 'created': value.created, + 'desiredGeneration': value.desiredGeneration, + 'memoryDumpRequest': V1VirtualMachineMemoryDumpRequestToJSON(value.memoryDumpRequest), + 'observedGeneration': value.observedGeneration, + 'printableStatus': value.printableStatus, + 'ready': value.ready, + 'restoreInProgress': value.restoreInProgress, + 'snapshotInProgress': value.snapshotInProgress, + 'startFailure': V1VirtualMachineStartFailureToJSON(value.startFailure), + 'stateChangeRequests': value.stateChangeRequests === undefined ? undefined : ((value.stateChangeRequests as Array).map(V1VirtualMachineStateChangeRequestToJSON)), + 'volumeRequests': value.volumeRequests === undefined ? undefined : ((value.volumeRequests as Array).map(V1VirtualMachineVolumeRequestToJSON)), + 'volumeSnapshotStatuses': value.volumeSnapshotStatuses === undefined ? undefined : ((value.volumeSnapshotStatuses as Array).map(V1VolumeSnapshotStatusToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VirtualMachineVolumeRequest.ts b/packages/types/src/generated/kubevirt/models/V1VirtualMachineVolumeRequest.ts new file mode 100644 index 000000000..d93320383 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VirtualMachineVolumeRequest.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1AddVolumeOptions } from './V1AddVolumeOptions'; +import { + V1AddVolumeOptionsFromJSON, + V1AddVolumeOptionsFromJSONTyped, + V1AddVolumeOptionsToJSON, +} from './V1AddVolumeOptions'; +import type { V1RemoveVolumeOptions } from './V1RemoveVolumeOptions'; +import { + V1RemoveVolumeOptionsFromJSON, + V1RemoveVolumeOptionsFromJSONTyped, + V1RemoveVolumeOptionsToJSON, +} from './V1RemoveVolumeOptions'; + +/** + * + * @export + * @interface V1VirtualMachineVolumeRequest + */ +export interface V1VirtualMachineVolumeRequest { + /** + * + * @type {V1AddVolumeOptions} + * @memberof V1VirtualMachineVolumeRequest + */ + addVolumeOptions?: V1AddVolumeOptions; + /** + * + * @type {V1RemoveVolumeOptions} + * @memberof V1VirtualMachineVolumeRequest + */ + removeVolumeOptions?: V1RemoveVolumeOptions; +} + +/** + * Check if a given object implements the V1VirtualMachineVolumeRequest interface. + */ +export function instanceOfV1VirtualMachineVolumeRequest(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1VirtualMachineVolumeRequestFromJSON(json: any): V1VirtualMachineVolumeRequest { + return V1VirtualMachineVolumeRequestFromJSONTyped(json, false); +} + +export function V1VirtualMachineVolumeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VirtualMachineVolumeRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'addVolumeOptions': !exists(json, 'addVolumeOptions') ? undefined : V1AddVolumeOptionsFromJSON(json['addVolumeOptions']), + 'removeVolumeOptions': !exists(json, 'removeVolumeOptions') ? undefined : V1RemoveVolumeOptionsFromJSON(json['removeVolumeOptions']), + }; +} + +export function V1VirtualMachineVolumeRequestToJSON(value?: V1VirtualMachineVolumeRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'addVolumeOptions': V1AddVolumeOptionsToJSON(value.addVolumeOptions), + 'removeVolumeOptions': V1RemoveVolumeOptionsToJSON(value.removeVolumeOptions), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1Volume.ts b/packages/types/src/generated/kubevirt/models/V1Volume.ts new file mode 100644 index 000000000..2a84951af --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1Volume.ts @@ -0,0 +1,271 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1CloudInitConfigDriveSource } from './V1CloudInitConfigDriveSource'; +import { + V1CloudInitConfigDriveSourceFromJSON, + V1CloudInitConfigDriveSourceFromJSONTyped, + V1CloudInitConfigDriveSourceToJSON, +} from './V1CloudInitConfigDriveSource'; +import type { V1CloudInitNoCloudSource } from './V1CloudInitNoCloudSource'; +import { + V1CloudInitNoCloudSourceFromJSON, + V1CloudInitNoCloudSourceFromJSONTyped, + V1CloudInitNoCloudSourceToJSON, +} from './V1CloudInitNoCloudSource'; +import type { V1ConfigMapVolumeSource } from './V1ConfigMapVolumeSource'; +import { + V1ConfigMapVolumeSourceFromJSON, + V1ConfigMapVolumeSourceFromJSONTyped, + V1ConfigMapVolumeSourceToJSON, +} from './V1ConfigMapVolumeSource'; +import type { V1ContainerDiskSource } from './V1ContainerDiskSource'; +import { + V1ContainerDiskSourceFromJSON, + V1ContainerDiskSourceFromJSONTyped, + V1ContainerDiskSourceToJSON, +} from './V1ContainerDiskSource'; +import type { V1DataVolumeSource } from './V1DataVolumeSource'; +import { + V1DataVolumeSourceFromJSON, + V1DataVolumeSourceFromJSONTyped, + V1DataVolumeSourceToJSON, +} from './V1DataVolumeSource'; +import type { V1DownwardAPIVolumeSource } from './V1DownwardAPIVolumeSource'; +import { + V1DownwardAPIVolumeSourceFromJSON, + V1DownwardAPIVolumeSourceFromJSONTyped, + V1DownwardAPIVolumeSourceToJSON, +} from './V1DownwardAPIVolumeSource'; +import type { V1EmptyDiskSource } from './V1EmptyDiskSource'; +import { + V1EmptyDiskSourceFromJSON, + V1EmptyDiskSourceFromJSONTyped, + V1EmptyDiskSourceToJSON, +} from './V1EmptyDiskSource'; +import type { V1EphemeralVolumeSource } from './V1EphemeralVolumeSource'; +import { + V1EphemeralVolumeSourceFromJSON, + V1EphemeralVolumeSourceFromJSONTyped, + V1EphemeralVolumeSourceToJSON, +} from './V1EphemeralVolumeSource'; +import type { V1HostDisk } from './V1HostDisk'; +import { + V1HostDiskFromJSON, + V1HostDiskFromJSONTyped, + V1HostDiskToJSON, +} from './V1HostDisk'; +import type { V1MemoryDumpVolumeSource } from './V1MemoryDumpVolumeSource'; +import { + V1MemoryDumpVolumeSourceFromJSON, + V1MemoryDumpVolumeSourceFromJSONTyped, + V1MemoryDumpVolumeSourceToJSON, +} from './V1MemoryDumpVolumeSource'; +import type { V1PersistentVolumeClaimVolumeSource } from './V1PersistentVolumeClaimVolumeSource'; +import { + V1PersistentVolumeClaimVolumeSourceFromJSON, + V1PersistentVolumeClaimVolumeSourceFromJSONTyped, + V1PersistentVolumeClaimVolumeSourceToJSON, +} from './V1PersistentVolumeClaimVolumeSource'; +import type { V1SecretVolumeSource } from './V1SecretVolumeSource'; +import { + V1SecretVolumeSourceFromJSON, + V1SecretVolumeSourceFromJSONTyped, + V1SecretVolumeSourceToJSON, +} from './V1SecretVolumeSource'; +import type { V1ServiceAccountVolumeSource } from './V1ServiceAccountVolumeSource'; +import { + V1ServiceAccountVolumeSourceFromJSON, + V1ServiceAccountVolumeSourceFromJSONTyped, + V1ServiceAccountVolumeSourceToJSON, +} from './V1ServiceAccountVolumeSource'; +import type { V1SysprepSource } from './V1SysprepSource'; +import { + V1SysprepSourceFromJSON, + V1SysprepSourceFromJSONTyped, + V1SysprepSourceToJSON, +} from './V1SysprepSource'; + +/** + * Volume represents a named volume in a vmi. + * @export + * @interface V1Volume + */ +export interface V1Volume { + /** + * + * @type {V1CloudInitConfigDriveSource} + * @memberof V1Volume + */ + cloudInitConfigDrive?: V1CloudInitConfigDriveSource; + /** + * + * @type {V1CloudInitNoCloudSource} + * @memberof V1Volume + */ + cloudInitNoCloud?: V1CloudInitNoCloudSource; + /** + * + * @type {V1ConfigMapVolumeSource} + * @memberof V1Volume + */ + configMap?: V1ConfigMapVolumeSource; + /** + * + * @type {V1ContainerDiskSource} + * @memberof V1Volume + */ + containerDisk?: V1ContainerDiskSource; + /** + * + * @type {V1DataVolumeSource} + * @memberof V1Volume + */ + dataVolume?: V1DataVolumeSource; + /** + * + * @type {V1DownwardAPIVolumeSource} + * @memberof V1Volume + */ + downwardAPI?: V1DownwardAPIVolumeSource; + /** + * DownwardMetricsVolumeSource adds a very small disk to VMIs which contains a limited view of host and guest metrics. The disk content is compatible with vhostmd (https://github.com/vhostmd/vhostmd) and vm-dump-metrics. + * @type {object} + * @memberof V1Volume + */ + downwardMetrics?: object; + /** + * + * @type {V1EmptyDiskSource} + * @memberof V1Volume + */ + emptyDisk?: V1EmptyDiskSource; + /** + * + * @type {V1EphemeralVolumeSource} + * @memberof V1Volume + */ + ephemeral?: V1EphemeralVolumeSource; + /** + * + * @type {V1HostDisk} + * @memberof V1Volume + */ + hostDisk?: V1HostDisk; + /** + * + * @type {V1MemoryDumpVolumeSource} + * @memberof V1Volume + */ + memoryDump?: V1MemoryDumpVolumeSource; + /** + * Volume's name. Must be a DNS_LABEL and unique within the vmi. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * @type {string} + * @memberof V1Volume + */ + name: string; + /** + * + * @type {V1PersistentVolumeClaimVolumeSource} + * @memberof V1Volume + */ + persistentVolumeClaim?: V1PersistentVolumeClaimVolumeSource; + /** + * + * @type {V1SecretVolumeSource} + * @memberof V1Volume + */ + secret?: V1SecretVolumeSource; + /** + * + * @type {V1ServiceAccountVolumeSource} + * @memberof V1Volume + */ + serviceAccount?: V1ServiceAccountVolumeSource; + /** + * + * @type {V1SysprepSource} + * @memberof V1Volume + */ + sysprep?: V1SysprepSource; +} + +/** + * Check if a given object implements the V1Volume interface. + */ +export function instanceOfV1Volume(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function V1VolumeFromJSON(json: any): V1Volume { + return V1VolumeFromJSONTyped(json, false); +} + +export function V1VolumeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Volume { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'cloudInitConfigDrive': !exists(json, 'cloudInitConfigDrive') ? undefined : V1CloudInitConfigDriveSourceFromJSON(json['cloudInitConfigDrive']), + 'cloudInitNoCloud': !exists(json, 'cloudInitNoCloud') ? undefined : V1CloudInitNoCloudSourceFromJSON(json['cloudInitNoCloud']), + 'configMap': !exists(json, 'configMap') ? undefined : V1ConfigMapVolumeSourceFromJSON(json['configMap']), + 'containerDisk': !exists(json, 'containerDisk') ? undefined : V1ContainerDiskSourceFromJSON(json['containerDisk']), + 'dataVolume': !exists(json, 'dataVolume') ? undefined : V1DataVolumeSourceFromJSON(json['dataVolume']), + 'downwardAPI': !exists(json, 'downwardAPI') ? undefined : V1DownwardAPIVolumeSourceFromJSON(json['downwardAPI']), + 'downwardMetrics': !exists(json, 'downwardMetrics') ? undefined : json['downwardMetrics'], + 'emptyDisk': !exists(json, 'emptyDisk') ? undefined : V1EmptyDiskSourceFromJSON(json['emptyDisk']), + 'ephemeral': !exists(json, 'ephemeral') ? undefined : V1EphemeralVolumeSourceFromJSON(json['ephemeral']), + 'hostDisk': !exists(json, 'hostDisk') ? undefined : V1HostDiskFromJSON(json['hostDisk']), + 'memoryDump': !exists(json, 'memoryDump') ? undefined : V1MemoryDumpVolumeSourceFromJSON(json['memoryDump']), + 'name': json['name'], + 'persistentVolumeClaim': !exists(json, 'persistentVolumeClaim') ? undefined : V1PersistentVolumeClaimVolumeSourceFromJSON(json['persistentVolumeClaim']), + 'secret': !exists(json, 'secret') ? undefined : V1SecretVolumeSourceFromJSON(json['secret']), + 'serviceAccount': !exists(json, 'serviceAccount') ? undefined : V1ServiceAccountVolumeSourceFromJSON(json['serviceAccount']), + 'sysprep': !exists(json, 'sysprep') ? undefined : V1SysprepSourceFromJSON(json['sysprep']), + }; +} + +export function V1VolumeToJSON(value?: V1Volume | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'cloudInitConfigDrive': V1CloudInitConfigDriveSourceToJSON(value.cloudInitConfigDrive), + 'cloudInitNoCloud': V1CloudInitNoCloudSourceToJSON(value.cloudInitNoCloud), + 'configMap': V1ConfigMapVolumeSourceToJSON(value.configMap), + 'containerDisk': V1ContainerDiskSourceToJSON(value.containerDisk), + 'dataVolume': V1DataVolumeSourceToJSON(value.dataVolume), + 'downwardAPI': V1DownwardAPIVolumeSourceToJSON(value.downwardAPI), + 'downwardMetrics': value.downwardMetrics, + 'emptyDisk': V1EmptyDiskSourceToJSON(value.emptyDisk), + 'ephemeral': V1EphemeralVolumeSourceToJSON(value.ephemeral), + 'hostDisk': V1HostDiskToJSON(value.hostDisk), + 'memoryDump': V1MemoryDumpVolumeSourceToJSON(value.memoryDump), + 'name': value.name, + 'persistentVolumeClaim': V1PersistentVolumeClaimVolumeSourceToJSON(value.persistentVolumeClaim), + 'secret': V1SecretVolumeSourceToJSON(value.secret), + 'serviceAccount': V1ServiceAccountVolumeSourceToJSON(value.serviceAccount), + 'sysprep': V1SysprepSourceToJSON(value.sysprep), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VolumeSnapshotStatus.ts b/packages/types/src/generated/kubevirt/models/V1VolumeSnapshotStatus.ts new file mode 100644 index 000000000..328d45f27 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VolumeSnapshotStatus.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1VolumeSnapshotStatus + */ +export interface V1VolumeSnapshotStatus { + /** + * True if the volume supports snapshotting + * @type {boolean} + * @memberof V1VolumeSnapshotStatus + */ + enabled: boolean; + /** + * Volume name + * @type {string} + * @memberof V1VolumeSnapshotStatus + */ + name: string; + /** + * Empty if snapshotting is enabled, contains reason otherwise + * @type {string} + * @memberof V1VolumeSnapshotStatus + */ + reason?: string; +} + +/** + * Check if a given object implements the V1VolumeSnapshotStatus interface. + */ +export function instanceOfV1VolumeSnapshotStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "enabled" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function V1VolumeSnapshotStatusFromJSON(json: any): V1VolumeSnapshotStatus { + return V1VolumeSnapshotStatusFromJSONTyped(json, false); +} + +export function V1VolumeSnapshotStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VolumeSnapshotStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'enabled': json['enabled'], + 'name': json['name'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + }; +} + +export function V1VolumeSnapshotStatusToJSON(value?: V1VolumeSnapshotStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'enabled': value.enabled, + 'name': value.name, + 'reason': value.reason, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1VolumeStatus.ts b/packages/types/src/generated/kubevirt/models/V1VolumeStatus.ts new file mode 100644 index 000000000..c35223a9b --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1VolumeStatus.ts @@ -0,0 +1,164 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1ContainerDiskInfo } from './V1ContainerDiskInfo'; +import { + V1ContainerDiskInfoFromJSON, + V1ContainerDiskInfoFromJSONTyped, + V1ContainerDiskInfoToJSON, +} from './V1ContainerDiskInfo'; +import type { V1DomainMemoryDumpInfo } from './V1DomainMemoryDumpInfo'; +import { + V1DomainMemoryDumpInfoFromJSON, + V1DomainMemoryDumpInfoFromJSONTyped, + V1DomainMemoryDumpInfoToJSON, +} from './V1DomainMemoryDumpInfo'; +import type { V1HotplugVolumeStatus } from './V1HotplugVolumeStatus'; +import { + V1HotplugVolumeStatusFromJSON, + V1HotplugVolumeStatusFromJSONTyped, + V1HotplugVolumeStatusToJSON, +} from './V1HotplugVolumeStatus'; +import type { V1PersistentVolumeClaimInfo } from './V1PersistentVolumeClaimInfo'; +import { + V1PersistentVolumeClaimInfoFromJSON, + V1PersistentVolumeClaimInfoFromJSONTyped, + V1PersistentVolumeClaimInfoToJSON, +} from './V1PersistentVolumeClaimInfo'; + +/** + * VolumeStatus represents information about the status of volumes attached to the VirtualMachineInstance. + * @export + * @interface V1VolumeStatus + */ +export interface V1VolumeStatus { + /** + * + * @type {V1ContainerDiskInfo} + * @memberof V1VolumeStatus + */ + containerDiskVolume?: V1ContainerDiskInfo; + /** + * + * @type {V1HotplugVolumeStatus} + * @memberof V1VolumeStatus + */ + hotplugVolume?: V1HotplugVolumeStatus; + /** + * + * @type {V1DomainMemoryDumpInfo} + * @memberof V1VolumeStatus + */ + memoryDumpVolume?: V1DomainMemoryDumpInfo; + /** + * Message is a detailed message about the current hotplug volume phase + * @type {string} + * @memberof V1VolumeStatus + */ + message?: string; + /** + * Name is the name of the volume + * @type {string} + * @memberof V1VolumeStatus + */ + name: string; + /** + * + * @type {V1PersistentVolumeClaimInfo} + * @memberof V1VolumeStatus + */ + persistentVolumeClaimInfo?: V1PersistentVolumeClaimInfo; + /** + * Phase is the phase + * @type {string} + * @memberof V1VolumeStatus + */ + phase?: string; + /** + * Reason is a brief description of why we are in the current hotplug volume phase + * @type {string} + * @memberof V1VolumeStatus + */ + reason?: string; + /** + * Represents the size of the volume + * @type {number} + * @memberof V1VolumeStatus + */ + size?: number; + /** + * Target is the target name used when adding the volume to the VM, eg: vda + * @type {string} + * @memberof V1VolumeStatus + */ + target: string; +} + +/** + * Check if a given object implements the V1VolumeStatus interface. + */ +export function instanceOfV1VolumeStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "target" in value; + + return isInstance; +} + +export function V1VolumeStatusFromJSON(json: any): V1VolumeStatus { + return V1VolumeStatusFromJSONTyped(json, false); +} + +export function V1VolumeStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VolumeStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'containerDiskVolume': !exists(json, 'containerDiskVolume') ? undefined : V1ContainerDiskInfoFromJSON(json['containerDiskVolume']), + 'hotplugVolume': !exists(json, 'hotplugVolume') ? undefined : V1HotplugVolumeStatusFromJSON(json['hotplugVolume']), + 'memoryDumpVolume': !exists(json, 'memoryDumpVolume') ? undefined : V1DomainMemoryDumpInfoFromJSON(json['memoryDumpVolume']), + 'message': !exists(json, 'message') ? undefined : json['message'], + 'name': json['name'], + 'persistentVolumeClaimInfo': !exists(json, 'persistentVolumeClaimInfo') ? undefined : V1PersistentVolumeClaimInfoFromJSON(json['persistentVolumeClaimInfo']), + 'phase': !exists(json, 'phase') ? undefined : json['phase'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'size': !exists(json, 'size') ? undefined : json['size'], + 'target': json['target'], + }; +} + +export function V1VolumeStatusToJSON(value?: V1VolumeStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'containerDiskVolume': V1ContainerDiskInfoToJSON(value.containerDiskVolume), + 'hotplugVolume': V1HotplugVolumeStatusToJSON(value.hotplugVolume), + 'memoryDumpVolume': V1DomainMemoryDumpInfoToJSON(value.memoryDumpVolume), + 'message': value.message, + 'name': value.name, + 'persistentVolumeClaimInfo': V1PersistentVolumeClaimInfoToJSON(value.persistentVolumeClaimInfo), + 'phase': value.phase, + 'reason': value.reason, + 'size': value.size, + 'target': value.target, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1Watchdog.ts b/packages/types/src/generated/kubevirt/models/V1Watchdog.ts new file mode 100644 index 000000000..fa5eb2f6e --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1Watchdog.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1I6300ESBWatchdog } from './V1I6300ESBWatchdog'; +import { + V1I6300ESBWatchdogFromJSON, + V1I6300ESBWatchdogFromJSONTyped, + V1I6300ESBWatchdogToJSON, +} from './V1I6300ESBWatchdog'; + +/** + * Named watchdog device. + * @export + * @interface V1Watchdog + */ +export interface V1Watchdog { + /** + * + * @type {V1I6300ESBWatchdog} + * @memberof V1Watchdog + */ + i6300esb?: V1I6300ESBWatchdog; + /** + * Name of the watchdog. + * @type {string} + * @memberof V1Watchdog + */ + name: string; +} + +/** + * Check if a given object implements the V1Watchdog interface. + */ +export function instanceOfV1Watchdog(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function V1WatchdogFromJSON(json: any): V1Watchdog { + return V1WatchdogFromJSONTyped(json, false); +} + +export function V1WatchdogFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Watchdog { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'i6300esb': !exists(json, 'i6300esb') ? undefined : V1I6300ESBWatchdogFromJSON(json['i6300esb']), + 'name': json['name'], + }; +} + +export function V1WatchdogToJSON(value?: V1Watchdog | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'i6300esb': V1I6300ESBWatchdogToJSON(value.i6300esb), + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1Condition.ts b/packages/types/src/generated/kubevirt/models/V1alpha1Condition.ts new file mode 100644 index 000000000..db1d1f814 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1Condition.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Condition defines conditions + * @export + * @interface V1alpha1Condition + */ +export interface V1alpha1Condition { + /** + * + * @type {string} + * @memberof V1alpha1Condition + */ + message?: string; + /** + * + * @type {string} + * @memberof V1alpha1Condition + */ + reason?: string; + /** + * + * @type {string} + * @memberof V1alpha1Condition + */ + status: string; + /** + * + * @type {string} + * @memberof V1alpha1Condition + */ + type: string; +} + +/** + * Check if a given object implements the V1alpha1Condition interface. + */ +export function instanceOfV1alpha1Condition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "status" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function V1alpha1ConditionFromJSON(json: any): V1alpha1Condition { + return V1alpha1ConditionFromJSONTyped(json, false); +} + +export function V1alpha1ConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1Condition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'status': json['status'], + 'type': json['type'], + }; +} + +export function V1alpha1ConditionToJSON(value?: V1alpha1Condition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'message': value.message, + 'reason': value.reason, + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1Error.ts b/packages/types/src/generated/kubevirt/models/V1alpha1Error.ts new file mode 100644 index 000000000..ea17d1fa1 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1Error.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * Error is the last error encountered during the snapshot/restore + * @export + * @interface V1alpha1Error + */ +export interface V1alpha1Error { + /** + * + * @type {string} + * @memberof V1alpha1Error + */ + message?: string; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof V1alpha1Error + */ + time?: string; +} + +/** + * Check if a given object implements the V1alpha1Error interface. + */ +export function instanceOfV1alpha1Error(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1alpha1ErrorFromJSON(json: any): V1alpha1Error { + return V1alpha1ErrorFromJSONTyped(json, false); +} + +export function V1alpha1ErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1Error { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'message': !exists(json, 'message') ? undefined : json['message'], + 'time': !exists(json, 'time') ? undefined : json['time'], + }; +} + +export function V1alpha1ErrorToJSON(value?: V1alpha1Error | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'message': value.message, + 'time': value.time === undefined ? undefined : (value.time), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1MigrationPolicy.ts b/packages/types/src/generated/kubevirt/models/V1alpha1MigrationPolicy.ts new file mode 100644 index 000000000..e4b3a8e03 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1MigrationPolicy.ts @@ -0,0 +1,111 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ObjectMeta } from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import type { V1alpha1MigrationPolicySpec } from './V1alpha1MigrationPolicySpec'; +import { + V1alpha1MigrationPolicySpecFromJSON, + V1alpha1MigrationPolicySpecFromJSONTyped, + V1alpha1MigrationPolicySpecToJSON, +} from './V1alpha1MigrationPolicySpec'; + +/** + * MigrationPolicy holds migration policy (i.e. configurations) to apply to a VM or group of VMs + * @export + * @interface V1alpha1MigrationPolicy + */ +export interface V1alpha1MigrationPolicy { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1alpha1MigrationPolicy + */ + 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 + * @type {string} + * @memberof V1alpha1MigrationPolicy + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ObjectMeta} + * @memberof V1alpha1MigrationPolicy + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {V1alpha1MigrationPolicySpec} + * @memberof V1alpha1MigrationPolicy + */ + spec: V1alpha1MigrationPolicySpec; + /** + * + * @type {object} + * @memberof V1alpha1MigrationPolicy + */ + status?: object; +} + +/** + * Check if a given object implements the V1alpha1MigrationPolicy interface. + */ +export function instanceOfV1alpha1MigrationPolicy(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function V1alpha1MigrationPolicyFromJSON(json: any): V1alpha1MigrationPolicy { + return V1alpha1MigrationPolicyFromJSONTyped(json, false); +} + +export function V1alpha1MigrationPolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1MigrationPolicy { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': V1alpha1MigrationPolicySpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : json['status'], + }; +} + +export function V1alpha1MigrationPolicyToJSON(value?: V1alpha1MigrationPolicy | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': V1alpha1MigrationPolicySpecToJSON(value.spec), + 'status': value.status, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1MigrationPolicyList.ts b/packages/types/src/generated/kubevirt/models/V1alpha1MigrationPolicyList.ts new file mode 100644 index 000000000..3742ef2f1 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1MigrationPolicyList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ListMeta } from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ListMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import type { V1alpha1MigrationPolicy } from './V1alpha1MigrationPolicy'; +import { + V1alpha1MigrationPolicyFromJSON, + V1alpha1MigrationPolicyFromJSONTyped, + V1alpha1MigrationPolicyToJSON, +} from './V1alpha1MigrationPolicy'; + +/** + * MigrationPolicyList is a list of MigrationPolicy + * @export + * @interface V1alpha1MigrationPolicyList + */ +export interface V1alpha1MigrationPolicyList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1alpha1MigrationPolicyList + */ + apiVersion?: string; + /** + * + * @type {Array} + * @memberof V1alpha1MigrationPolicyList + */ + 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 + * @type {string} + * @memberof V1alpha1MigrationPolicyList + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ListMeta} + * @memberof V1alpha1MigrationPolicyList + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the V1alpha1MigrationPolicyList interface. + */ +export function instanceOfV1alpha1MigrationPolicyList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function V1alpha1MigrationPolicyListFromJSON(json: any): V1alpha1MigrationPolicyList { + return V1alpha1MigrationPolicyListFromJSONTyped(json, false); +} + +export function V1alpha1MigrationPolicyListFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1MigrationPolicyList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(V1alpha1MigrationPolicyFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function V1alpha1MigrationPolicyListToJSON(value?: V1alpha1MigrationPolicyList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(V1alpha1MigrationPolicyToJSON)), + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1MigrationPolicySpec.ts b/packages/types/src/generated/kubevirt/models/V1alpha1MigrationPolicySpec.ts new file mode 100644 index 000000000..d31ed0624 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1MigrationPolicySpec.ts @@ -0,0 +1,141 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1alpha1Selectors } from './V1alpha1Selectors'; +import { + V1alpha1SelectorsFromJSON, + V1alpha1SelectorsFromJSONTyped, + V1alpha1SelectorsToJSON, +} from './V1alpha1Selectors'; + +/** + * + * @export + * @interface V1alpha1MigrationPolicySpec + */ +export interface V1alpha1MigrationPolicySpec { + /** + * + * @type {boolean} + * @memberof V1alpha1MigrationPolicySpec + */ + allowAutoConverge?: boolean; + /** + * + * @type {boolean} + * @memberof V1alpha1MigrationPolicySpec + */ + allowPostCopy?: boolean; + /** + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + * + * The serialization format is: + * + * ``` ::= + * + * (Note that may be empty, from the "" case in .) + * + * ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + * + * (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + * + * ::= m | "" | k | M | G | T | P | E + * + * (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + * + * ::= "e" | "E" ``` + * + * No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + * + * When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + * + * Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + * + * - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. + * + * The sign will be omitted unless the number is negative. + * + * Examples: + * + * - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" + * + * Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + * + * Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + * + * This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + * @type {string} + * @memberof V1alpha1MigrationPolicySpec + */ + bandwidthPerMigration?: string; + /** + * + * @type {number} + * @memberof V1alpha1MigrationPolicySpec + */ + completionTimeoutPerGiB?: number; + /** + * + * @type {V1alpha1Selectors} + * @memberof V1alpha1MigrationPolicySpec + */ + selectors: V1alpha1Selectors; +} + +/** + * Check if a given object implements the V1alpha1MigrationPolicySpec interface. + */ +export function instanceOfV1alpha1MigrationPolicySpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "selectors" in value; + + return isInstance; +} + +export function V1alpha1MigrationPolicySpecFromJSON(json: any): V1alpha1MigrationPolicySpec { + return V1alpha1MigrationPolicySpecFromJSONTyped(json, false); +} + +export function V1alpha1MigrationPolicySpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1MigrationPolicySpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'allowAutoConverge': !exists(json, 'allowAutoConverge') ? undefined : json['allowAutoConverge'], + 'allowPostCopy': !exists(json, 'allowPostCopy') ? undefined : json['allowPostCopy'], + 'bandwidthPerMigration': !exists(json, 'bandwidthPerMigration') ? undefined : json['bandwidthPerMigration'], + 'completionTimeoutPerGiB': !exists(json, 'completionTimeoutPerGiB') ? undefined : json['completionTimeoutPerGiB'], + 'selectors': V1alpha1SelectorsFromJSON(json['selectors']), + }; +} + +export function V1alpha1MigrationPolicySpecToJSON(value?: V1alpha1MigrationPolicySpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'allowAutoConverge': value.allowAutoConverge, + 'allowPostCopy': value.allowPostCopy, + 'bandwidthPerMigration': value.bandwidthPerMigration, + 'completionTimeoutPerGiB': value.completionTimeoutPerGiB, + 'selectors': V1alpha1SelectorsToJSON(value.selectors), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1PersistentVolumeClaim.ts b/packages/types/src/generated/kubevirt/models/V1alpha1PersistentVolumeClaim.ts new file mode 100644 index 000000000..79ab04eea --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1PersistentVolumeClaim.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1PersistentVolumeClaimSpec } from './K8sIoApiCoreV1PersistentVolumeClaimSpec'; +import { + K8sIoApiCoreV1PersistentVolumeClaimSpecFromJSON, + K8sIoApiCoreV1PersistentVolumeClaimSpecFromJSONTyped, + K8sIoApiCoreV1PersistentVolumeClaimSpecToJSON, +} from './K8sIoApiCoreV1PersistentVolumeClaimSpec'; +import type { K8sIoApimachineryPkgApisMetaV1ObjectMeta } from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * + * @export + * @interface V1alpha1PersistentVolumeClaim + */ +export interface V1alpha1PersistentVolumeClaim { + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ObjectMeta} + * @memberof V1alpha1PersistentVolumeClaim + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {K8sIoApiCoreV1PersistentVolumeClaimSpec} + * @memberof V1alpha1PersistentVolumeClaim + */ + spec?: K8sIoApiCoreV1PersistentVolumeClaimSpec; +} + +/** + * Check if a given object implements the V1alpha1PersistentVolumeClaim interface. + */ +export function instanceOfV1alpha1PersistentVolumeClaim(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1alpha1PersistentVolumeClaimFromJSON(json: any): V1alpha1PersistentVolumeClaim { + return V1alpha1PersistentVolumeClaimFromJSONTyped(json, false); +} + +export function V1alpha1PersistentVolumeClaimFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1PersistentVolumeClaim { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : K8sIoApiCoreV1PersistentVolumeClaimSpecFromJSON(json['spec']), + }; +} + +export function V1alpha1PersistentVolumeClaimToJSON(value?: V1alpha1PersistentVolumeClaim | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'metadata': K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': K8sIoApiCoreV1PersistentVolumeClaimSpecToJSON(value.spec), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1Selectors.ts b/packages/types/src/generated/kubevirt/models/V1alpha1Selectors.ts new file mode 100644 index 000000000..b8a1fc003 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1Selectors.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1alpha1Selectors + */ +export interface V1alpha1Selectors { + /** + * + * @type {{ [key: string]: string; }} + * @memberof V1alpha1Selectors + */ + namespaceSelector?: { [key: string]: string; }; + /** + * + * @type {{ [key: string]: string; }} + * @memberof V1alpha1Selectors + */ + virtualMachineInstanceSelector?: { [key: string]: string; }; +} + +/** + * Check if a given object implements the V1alpha1Selectors interface. + */ +export function instanceOfV1alpha1Selectors(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1alpha1SelectorsFromJSON(json: any): V1alpha1Selectors { + return V1alpha1SelectorsFromJSONTyped(json, false); +} + +export function V1alpha1SelectorsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1Selectors { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'namespaceSelector': !exists(json, 'namespaceSelector') ? undefined : json['namespaceSelector'], + 'virtualMachineInstanceSelector': !exists(json, 'virtualMachineInstanceSelector') ? undefined : json['virtualMachineInstanceSelector'], + }; +} + +export function V1alpha1SelectorsToJSON(value?: V1alpha1Selectors | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'namespaceSelector': value.namespaceSelector, + 'virtualMachineInstanceSelector': value.virtualMachineInstanceSelector, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1SnapshotVolumesLists.ts b/packages/types/src/generated/kubevirt/models/V1alpha1SnapshotVolumesLists.ts new file mode 100644 index 000000000..4d6e9fb24 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1SnapshotVolumesLists.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * SnapshotVolumesLists includes the list of volumes which were included in the snapshot and volumes which were excluded from the snapshot + * @export + * @interface V1alpha1SnapshotVolumesLists + */ +export interface V1alpha1SnapshotVolumesLists { + /** + * + * @type {Array} + * @memberof V1alpha1SnapshotVolumesLists + */ + excludedVolumes?: Array; + /** + * + * @type {Array} + * @memberof V1alpha1SnapshotVolumesLists + */ + includedVolumes?: Array; +} + +/** + * Check if a given object implements the V1alpha1SnapshotVolumesLists interface. + */ +export function instanceOfV1alpha1SnapshotVolumesLists(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1alpha1SnapshotVolumesListsFromJSON(json: any): V1alpha1SnapshotVolumesLists { + return V1alpha1SnapshotVolumesListsFromJSONTyped(json, false); +} + +export function V1alpha1SnapshotVolumesListsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1SnapshotVolumesLists { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'excludedVolumes': !exists(json, 'excludedVolumes') ? undefined : json['excludedVolumes'], + 'includedVolumes': !exists(json, 'includedVolumes') ? undefined : json['includedVolumes'], + }; +} + +export function V1alpha1SnapshotVolumesListsToJSON(value?: V1alpha1SnapshotVolumesLists | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'excludedVolumes': value.excludedVolumes, + 'includedVolumes': value.includedVolumes, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1SourceSpec.ts b/packages/types/src/generated/kubevirt/models/V1alpha1SourceSpec.ts new file mode 100644 index 000000000..94ccddcf1 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1SourceSpec.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1alpha1VirtualMachine } from './V1alpha1VirtualMachine'; +import { + V1alpha1VirtualMachineFromJSON, + V1alpha1VirtualMachineFromJSONTyped, + V1alpha1VirtualMachineToJSON, +} from './V1alpha1VirtualMachine'; + +/** + * SourceSpec contains the appropriate spec for the resource being snapshotted + * @export + * @interface V1alpha1SourceSpec + */ +export interface V1alpha1SourceSpec { + /** + * + * @type {V1alpha1VirtualMachine} + * @memberof V1alpha1SourceSpec + */ + virtualMachine?: V1alpha1VirtualMachine; +} + +/** + * Check if a given object implements the V1alpha1SourceSpec interface. + */ +export function instanceOfV1alpha1SourceSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1alpha1SourceSpecFromJSON(json: any): V1alpha1SourceSpec { + return V1alpha1SourceSpecFromJSONTyped(json, false); +} + +export function V1alpha1SourceSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1SourceSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'virtualMachine': !exists(json, 'virtualMachine') ? undefined : V1alpha1VirtualMachineFromJSON(json['virtualMachine']), + }; +} + +export function V1alpha1SourceSpecToJSON(value?: V1alpha1SourceSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'virtualMachine': V1alpha1VirtualMachineToJSON(value.virtualMachine), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachine.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachine.ts new file mode 100644 index 000000000..8ad3ee326 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachine.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ObjectMeta } from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import type { V1VirtualMachineSpec } from './V1VirtualMachineSpec'; +import { + V1VirtualMachineSpecFromJSON, + V1VirtualMachineSpecFromJSONTyped, + V1VirtualMachineSpecToJSON, +} from './V1VirtualMachineSpec'; +import type { V1VirtualMachineStatus } from './V1VirtualMachineStatus'; +import { + V1VirtualMachineStatusFromJSON, + V1VirtualMachineStatusFromJSONTyped, + V1VirtualMachineStatusToJSON, +} from './V1VirtualMachineStatus'; + +/** + * + * @export + * @interface V1alpha1VirtualMachine + */ +export interface V1alpha1VirtualMachine { + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ObjectMeta} + * @memberof V1alpha1VirtualMachine + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {V1VirtualMachineSpec} + * @memberof V1alpha1VirtualMachine + */ + spec?: V1VirtualMachineSpec; + /** + * + * @type {V1VirtualMachineStatus} + * @memberof V1alpha1VirtualMachine + */ + status?: V1VirtualMachineStatus; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachine interface. + */ +export function instanceOfV1alpha1VirtualMachine(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1alpha1VirtualMachineFromJSON(json: any): V1alpha1VirtualMachine { + return V1alpha1VirtualMachineFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachineFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachine { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : V1VirtualMachineSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : V1VirtualMachineStatusFromJSON(json['status']), + }; +} + +export function V1alpha1VirtualMachineToJSON(value?: V1alpha1VirtualMachine | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'metadata': K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': V1VirtualMachineSpecToJSON(value.spec), + 'status': V1VirtualMachineStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineClone.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineClone.ts new file mode 100644 index 000000000..2bb9fd5e8 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineClone.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ObjectMeta } from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import type { V1alpha1VirtualMachineCloneSpec } from './V1alpha1VirtualMachineCloneSpec'; +import { + V1alpha1VirtualMachineCloneSpecFromJSON, + V1alpha1VirtualMachineCloneSpecFromJSONTyped, + V1alpha1VirtualMachineCloneSpecToJSON, +} from './V1alpha1VirtualMachineCloneSpec'; +import type { V1alpha1VirtualMachineCloneStatus } from './V1alpha1VirtualMachineCloneStatus'; +import { + V1alpha1VirtualMachineCloneStatusFromJSON, + V1alpha1VirtualMachineCloneStatusFromJSONTyped, + V1alpha1VirtualMachineCloneStatusToJSON, +} from './V1alpha1VirtualMachineCloneStatus'; + +/** + * VirtualMachineClone is a CRD that clones one VM into another. + * @export + * @interface V1alpha1VirtualMachineClone + */ +export interface V1alpha1VirtualMachineClone { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1alpha1VirtualMachineClone + */ + 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 + * @type {string} + * @memberof V1alpha1VirtualMachineClone + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ObjectMeta} + * @memberof V1alpha1VirtualMachineClone + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {V1alpha1VirtualMachineCloneSpec} + * @memberof V1alpha1VirtualMachineClone + */ + spec: V1alpha1VirtualMachineCloneSpec; + /** + * + * @type {V1alpha1VirtualMachineCloneStatus} + * @memberof V1alpha1VirtualMachineClone + */ + status?: V1alpha1VirtualMachineCloneStatus; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachineClone interface. + */ +export function instanceOfV1alpha1VirtualMachineClone(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function V1alpha1VirtualMachineCloneFromJSON(json: any): V1alpha1VirtualMachineClone { + return V1alpha1VirtualMachineCloneFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachineCloneFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachineClone { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': V1alpha1VirtualMachineCloneSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : V1alpha1VirtualMachineCloneStatusFromJSON(json['status']), + }; +} + +export function V1alpha1VirtualMachineCloneToJSON(value?: V1alpha1VirtualMachineClone | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': V1alpha1VirtualMachineCloneSpecToJSON(value.spec), + 'status': V1alpha1VirtualMachineCloneStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineCloneList.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineCloneList.ts new file mode 100644 index 000000000..38954deb3 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineCloneList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ListMeta } from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ListMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import type { V1alpha1VirtualMachineClone } from './V1alpha1VirtualMachineClone'; +import { + V1alpha1VirtualMachineCloneFromJSON, + V1alpha1VirtualMachineCloneFromJSONTyped, + V1alpha1VirtualMachineCloneToJSON, +} from './V1alpha1VirtualMachineClone'; + +/** + * VirtualMachineCloneList is a list of MigrationPolicy + * @export + * @interface V1alpha1VirtualMachineCloneList + */ +export interface V1alpha1VirtualMachineCloneList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1alpha1VirtualMachineCloneList + */ + apiVersion?: string; + /** + * + * @type {Array} + * @memberof V1alpha1VirtualMachineCloneList + */ + 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 + * @type {string} + * @memberof V1alpha1VirtualMachineCloneList + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ListMeta} + * @memberof V1alpha1VirtualMachineCloneList + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachineCloneList interface. + */ +export function instanceOfV1alpha1VirtualMachineCloneList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function V1alpha1VirtualMachineCloneListFromJSON(json: any): V1alpha1VirtualMachineCloneList { + return V1alpha1VirtualMachineCloneListFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachineCloneListFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachineCloneList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(V1alpha1VirtualMachineCloneFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function V1alpha1VirtualMachineCloneListToJSON(value?: V1alpha1VirtualMachineCloneList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(V1alpha1VirtualMachineCloneToJSON)), + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineCloneSpec.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineCloneSpec.ts new file mode 100644 index 000000000..032527cb1 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineCloneSpec.ts @@ -0,0 +1,127 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1TypedLocalObjectReference } from './K8sIoApiCoreV1TypedLocalObjectReference'; +import { + K8sIoApiCoreV1TypedLocalObjectReferenceFromJSON, + K8sIoApiCoreV1TypedLocalObjectReferenceFromJSONTyped, + K8sIoApiCoreV1TypedLocalObjectReferenceToJSON, +} from './K8sIoApiCoreV1TypedLocalObjectReference'; +import type { V1alpha1VirtualMachineCloneTemplateFilters } from './V1alpha1VirtualMachineCloneTemplateFilters'; +import { + V1alpha1VirtualMachineCloneTemplateFiltersFromJSON, + V1alpha1VirtualMachineCloneTemplateFiltersFromJSONTyped, + V1alpha1VirtualMachineCloneTemplateFiltersToJSON, +} from './V1alpha1VirtualMachineCloneTemplateFilters'; + +/** + * + * @export + * @interface V1alpha1VirtualMachineCloneSpec + */ +export interface V1alpha1VirtualMachineCloneSpec { + /** + * Example use: "!some/key*". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. + * @type {Array} + * @memberof V1alpha1VirtualMachineCloneSpec + */ + annotationFilters?: Array; + /** + * Example use: "!some/key*". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. + * @type {Array} + * @memberof V1alpha1VirtualMachineCloneSpec + */ + labelFilters?: Array; + /** + * NewMacAddresses manually sets that target interfaces' mac addresses. The key is the interface name and the value is the new mac address. If this field is not specified, a new MAC address will be generated automatically, as for any interface that is not included in this map. + * @type {{ [key: string]: string; }} + * @memberof V1alpha1VirtualMachineCloneSpec + */ + newMacAddresses?: { [key: string]: string; }; + /** + * NewSMBiosSerial manually sets that target's SMbios serial. If this field is not specified, a new serial will be generated automatically. + * @type {string} + * @memberof V1alpha1VirtualMachineCloneSpec + */ + newSMBiosSerial?: string; + /** + * + * @type {K8sIoApiCoreV1TypedLocalObjectReference} + * @memberof V1alpha1VirtualMachineCloneSpec + */ + source: K8sIoApiCoreV1TypedLocalObjectReference; + /** + * + * @type {K8sIoApiCoreV1TypedLocalObjectReference} + * @memberof V1alpha1VirtualMachineCloneSpec + */ + target?: K8sIoApiCoreV1TypedLocalObjectReference; + /** + * + * @type {V1alpha1VirtualMachineCloneTemplateFilters} + * @memberof V1alpha1VirtualMachineCloneSpec + */ + template?: V1alpha1VirtualMachineCloneTemplateFilters; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachineCloneSpec interface. + */ +export function instanceOfV1alpha1VirtualMachineCloneSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "source" in value; + + return isInstance; +} + +export function V1alpha1VirtualMachineCloneSpecFromJSON(json: any): V1alpha1VirtualMachineCloneSpec { + return V1alpha1VirtualMachineCloneSpecFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachineCloneSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachineCloneSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'annotationFilters': !exists(json, 'annotationFilters') ? undefined : json['annotationFilters'], + 'labelFilters': !exists(json, 'labelFilters') ? undefined : json['labelFilters'], + 'newMacAddresses': !exists(json, 'newMacAddresses') ? undefined : json['newMacAddresses'], + 'newSMBiosSerial': !exists(json, 'newSMBiosSerial') ? undefined : json['newSMBiosSerial'], + 'source': K8sIoApiCoreV1TypedLocalObjectReferenceFromJSON(json['source']), + 'target': !exists(json, 'target') ? undefined : K8sIoApiCoreV1TypedLocalObjectReferenceFromJSON(json['target']), + 'template': !exists(json, 'template') ? undefined : V1alpha1VirtualMachineCloneTemplateFiltersFromJSON(json['template']), + }; +} + +export function V1alpha1VirtualMachineCloneSpecToJSON(value?: V1alpha1VirtualMachineCloneSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'annotationFilters': value.annotationFilters, + 'labelFilters': value.labelFilters, + 'newMacAddresses': value.newMacAddresses, + 'newSMBiosSerial': value.newSMBiosSerial, + 'source': K8sIoApiCoreV1TypedLocalObjectReferenceToJSON(value.source), + 'target': K8sIoApiCoreV1TypedLocalObjectReferenceToJSON(value.target), + 'template': V1alpha1VirtualMachineCloneTemplateFiltersToJSON(value.template), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineCloneStatus.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineCloneStatus.ts new file mode 100644 index 000000000..6a0f8462b --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineCloneStatus.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1alpha1Condition } from './V1alpha1Condition'; +import { + V1alpha1ConditionFromJSON, + V1alpha1ConditionFromJSONTyped, + V1alpha1ConditionToJSON, +} from './V1alpha1Condition'; + +/** + * + * @export + * @interface V1alpha1VirtualMachineCloneStatus + */ +export interface V1alpha1VirtualMachineCloneStatus { + /** + * + * @type {Array} + * @memberof V1alpha1VirtualMachineCloneStatus + */ + conditions?: Array; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof V1alpha1VirtualMachineCloneStatus + */ + creationTime?: string; + /** + * + * @type {string} + * @memberof V1alpha1VirtualMachineCloneStatus + */ + phase?: string; + /** + * + * @type {string} + * @memberof V1alpha1VirtualMachineCloneStatus + */ + restoreName?: string; + /** + * + * @type {string} + * @memberof V1alpha1VirtualMachineCloneStatus + */ + snapshotName?: string; + /** + * + * @type {string} + * @memberof V1alpha1VirtualMachineCloneStatus + */ + targetName?: string; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachineCloneStatus interface. + */ +export function instanceOfV1alpha1VirtualMachineCloneStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1alpha1VirtualMachineCloneStatusFromJSON(json: any): V1alpha1VirtualMachineCloneStatus { + return V1alpha1VirtualMachineCloneStatusFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachineCloneStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachineCloneStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(V1alpha1ConditionFromJSON)), + 'creationTime': !exists(json, 'creationTime') ? undefined : json['creationTime'], + 'phase': !exists(json, 'phase') ? undefined : json['phase'], + 'restoreName': !exists(json, 'restoreName') ? undefined : json['restoreName'], + 'snapshotName': !exists(json, 'snapshotName') ? undefined : json['snapshotName'], + 'targetName': !exists(json, 'targetName') ? undefined : json['targetName'], + }; +} + +export function V1alpha1VirtualMachineCloneStatusToJSON(value?: V1alpha1VirtualMachineCloneStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(V1alpha1ConditionToJSON)), + 'creationTime': value.creationTime === undefined ? undefined : (value.creationTime), + 'phase': value.phase, + 'restoreName': value.restoreName, + 'snapshotName': value.snapshotName, + 'targetName': value.targetName, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineCloneTemplateFilters.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineCloneTemplateFilters.ts new file mode 100644 index 000000000..a9dceee6a --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineCloneTemplateFilters.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1alpha1VirtualMachineCloneTemplateFilters + */ +export interface V1alpha1VirtualMachineCloneTemplateFilters { + /** + * Example use: "!some/key*". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. + * @type {Array} + * @memberof V1alpha1VirtualMachineCloneTemplateFilters + */ + annotationFilters?: Array; + /** + * Example use: "!some/key*". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. + * @type {Array} + * @memberof V1alpha1VirtualMachineCloneTemplateFilters + */ + labelFilters?: Array; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachineCloneTemplateFilters interface. + */ +export function instanceOfV1alpha1VirtualMachineCloneTemplateFilters(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1alpha1VirtualMachineCloneTemplateFiltersFromJSON(json: any): V1alpha1VirtualMachineCloneTemplateFilters { + return V1alpha1VirtualMachineCloneTemplateFiltersFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachineCloneTemplateFiltersFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachineCloneTemplateFilters { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'annotationFilters': !exists(json, 'annotationFilters') ? undefined : json['annotationFilters'], + 'labelFilters': !exists(json, 'labelFilters') ? undefined : json['labelFilters'], + }; +} + +export function V1alpha1VirtualMachineCloneTemplateFiltersToJSON(value?: V1alpha1VirtualMachineCloneTemplateFilters | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'annotationFilters': value.annotationFilters, + 'labelFilters': value.labelFilters, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExport.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExport.ts new file mode 100644 index 000000000..a1a04aeb7 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExport.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ObjectMeta } from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import type { V1alpha1VirtualMachineExportSpec } from './V1alpha1VirtualMachineExportSpec'; +import { + V1alpha1VirtualMachineExportSpecFromJSON, + V1alpha1VirtualMachineExportSpecFromJSONTyped, + V1alpha1VirtualMachineExportSpecToJSON, +} from './V1alpha1VirtualMachineExportSpec'; +import type { V1alpha1VirtualMachineExportStatus } from './V1alpha1VirtualMachineExportStatus'; +import { + V1alpha1VirtualMachineExportStatusFromJSON, + V1alpha1VirtualMachineExportStatusFromJSONTyped, + V1alpha1VirtualMachineExportStatusToJSON, +} from './V1alpha1VirtualMachineExportStatus'; + +/** + * VirtualMachineExport defines the operation of exporting a VM source + * @export + * @interface V1alpha1VirtualMachineExport + */ +export interface V1alpha1VirtualMachineExport { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1alpha1VirtualMachineExport + */ + 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 + * @type {string} + * @memberof V1alpha1VirtualMachineExport + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ObjectMeta} + * @memberof V1alpha1VirtualMachineExport + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {V1alpha1VirtualMachineExportSpec} + * @memberof V1alpha1VirtualMachineExport + */ + spec: V1alpha1VirtualMachineExportSpec; + /** + * + * @type {V1alpha1VirtualMachineExportStatus} + * @memberof V1alpha1VirtualMachineExport + */ + status?: V1alpha1VirtualMachineExportStatus; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachineExport interface. + */ +export function instanceOfV1alpha1VirtualMachineExport(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function V1alpha1VirtualMachineExportFromJSON(json: any): V1alpha1VirtualMachineExport { + return V1alpha1VirtualMachineExportFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachineExportFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachineExport { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': V1alpha1VirtualMachineExportSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : V1alpha1VirtualMachineExportStatusFromJSON(json['status']), + }; +} + +export function V1alpha1VirtualMachineExportToJSON(value?: V1alpha1VirtualMachineExport | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': V1alpha1VirtualMachineExportSpecToJSON(value.spec), + 'status': V1alpha1VirtualMachineExportStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportLink.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportLink.ts new file mode 100644 index 000000000..1d21fd330 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportLink.ts @@ -0,0 +1,95 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1alpha1VirtualMachineExportManifest } from './V1alpha1VirtualMachineExportManifest'; +import { + V1alpha1VirtualMachineExportManifestFromJSON, + V1alpha1VirtualMachineExportManifestFromJSONTyped, + V1alpha1VirtualMachineExportManifestToJSON, +} from './V1alpha1VirtualMachineExportManifest'; +import type { V1alpha1VirtualMachineExportVolume } from './V1alpha1VirtualMachineExportVolume'; +import { + V1alpha1VirtualMachineExportVolumeFromJSON, + V1alpha1VirtualMachineExportVolumeFromJSONTyped, + V1alpha1VirtualMachineExportVolumeToJSON, +} from './V1alpha1VirtualMachineExportVolume'; + +/** + * VirtualMachineExportLink contains a list of volumes available for export, as well as the URLs to obtain these volumes + * @export + * @interface V1alpha1VirtualMachineExportLink + */ +export interface V1alpha1VirtualMachineExportLink { + /** + * Cert is the public CA certificate base64 encoded + * @type {string} + * @memberof V1alpha1VirtualMachineExportLink + */ + cert: string; + /** + * Manifests is a list of available manifests for the export + * @type {Array} + * @memberof V1alpha1VirtualMachineExportLink + */ + manifests?: Array; + /** + * Volumes is a list of available volumes to export + * @type {Array} + * @memberof V1alpha1VirtualMachineExportLink + */ + volumes?: Array; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachineExportLink interface. + */ +export function instanceOfV1alpha1VirtualMachineExportLink(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "cert" in value; + + return isInstance; +} + +export function V1alpha1VirtualMachineExportLinkFromJSON(json: any): V1alpha1VirtualMachineExportLink { + return V1alpha1VirtualMachineExportLinkFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachineExportLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachineExportLink { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'cert': json['cert'], + 'manifests': !exists(json, 'manifests') ? undefined : ((json['manifests'] as Array).map(V1alpha1VirtualMachineExportManifestFromJSON)), + 'volumes': !exists(json, 'volumes') ? undefined : ((json['volumes'] as Array).map(V1alpha1VirtualMachineExportVolumeFromJSON)), + }; +} + +export function V1alpha1VirtualMachineExportLinkToJSON(value?: V1alpha1VirtualMachineExportLink | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'cert': value.cert, + 'manifests': value.manifests === undefined ? undefined : ((value.manifests as Array).map(V1alpha1VirtualMachineExportManifestToJSON)), + 'volumes': value.volumes === undefined ? undefined : ((value.volumes as Array).map(V1alpha1VirtualMachineExportVolumeToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportLinks.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportLinks.ts new file mode 100644 index 000000000..f6952c2d7 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportLinks.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1alpha1VirtualMachineExportLink } from './V1alpha1VirtualMachineExportLink'; +import { + V1alpha1VirtualMachineExportLinkFromJSON, + V1alpha1VirtualMachineExportLinkFromJSONTyped, + V1alpha1VirtualMachineExportLinkToJSON, +} from './V1alpha1VirtualMachineExportLink'; + +/** + * VirtualMachineExportLinks contains the links that point the exported VM resources + * @export + * @interface V1alpha1VirtualMachineExportLinks + */ +export interface V1alpha1VirtualMachineExportLinks { + /** + * + * @type {V1alpha1VirtualMachineExportLink} + * @memberof V1alpha1VirtualMachineExportLinks + */ + external?: V1alpha1VirtualMachineExportLink; + /** + * + * @type {V1alpha1VirtualMachineExportLink} + * @memberof V1alpha1VirtualMachineExportLinks + */ + internal?: V1alpha1VirtualMachineExportLink; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachineExportLinks interface. + */ +export function instanceOfV1alpha1VirtualMachineExportLinks(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1alpha1VirtualMachineExportLinksFromJSON(json: any): V1alpha1VirtualMachineExportLinks { + return V1alpha1VirtualMachineExportLinksFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachineExportLinksFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachineExportLinks { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'external': !exists(json, 'external') ? undefined : V1alpha1VirtualMachineExportLinkFromJSON(json['external']), + 'internal': !exists(json, 'internal') ? undefined : V1alpha1VirtualMachineExportLinkFromJSON(json['internal']), + }; +} + +export function V1alpha1VirtualMachineExportLinksToJSON(value?: V1alpha1VirtualMachineExportLinks | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'external': V1alpha1VirtualMachineExportLinkToJSON(value.external), + 'internal': V1alpha1VirtualMachineExportLinkToJSON(value.internal), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportList.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportList.ts new file mode 100644 index 000000000..b47ec9fc5 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportList.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ListMeta } from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ListMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import type { V1alpha1VirtualMachineExport } from './V1alpha1VirtualMachineExport'; +import { + V1alpha1VirtualMachineExportFromJSON, + V1alpha1VirtualMachineExportFromJSONTyped, + V1alpha1VirtualMachineExportToJSON, +} from './V1alpha1VirtualMachineExport'; + +/** + * VirtualMachineExportList is a list of VirtualMachineExport resources + * @export + * @interface V1alpha1VirtualMachineExportList + */ +export interface V1alpha1VirtualMachineExportList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1alpha1VirtualMachineExportList + */ + apiVersion?: string; + /** + * + * @type {Array} + * @memberof V1alpha1VirtualMachineExportList + */ + 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 + * @type {string} + * @memberof V1alpha1VirtualMachineExportList + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ListMeta} + * @memberof V1alpha1VirtualMachineExportList + */ + metadata: K8sIoApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachineExportList interface. + */ +export function instanceOfV1alpha1VirtualMachineExportList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + isInstance = isInstance && "metadata" in value; + + return isInstance; +} + +export function V1alpha1VirtualMachineExportListFromJSON(json: any): V1alpha1VirtualMachineExportList { + return V1alpha1VirtualMachineExportListFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachineExportListFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachineExportList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(V1alpha1VirtualMachineExportFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function V1alpha1VirtualMachineExportListToJSON(value?: V1alpha1VirtualMachineExportList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(V1alpha1VirtualMachineExportToJSON)), + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportManifest.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportManifest.ts new file mode 100644 index 000000000..786f0fd5a --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportManifest.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * VirtualMachineExportManifest contains the type and URL of the exported manifest + * @export + * @interface V1alpha1VirtualMachineExportManifest + */ +export interface V1alpha1VirtualMachineExportManifest { + /** + * Type is the type of manifest returned + * @type {string} + * @memberof V1alpha1VirtualMachineExportManifest + */ + type: string; + /** + * Url is the url of the endpoint that returns the manifest + * @type {string} + * @memberof V1alpha1VirtualMachineExportManifest + */ + url: string; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachineExportManifest interface. + */ +export function instanceOfV1alpha1VirtualMachineExportManifest(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "type" in value; + isInstance = isInstance && "url" in value; + + return isInstance; +} + +export function V1alpha1VirtualMachineExportManifestFromJSON(json: any): V1alpha1VirtualMachineExportManifest { + return V1alpha1VirtualMachineExportManifestFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachineExportManifestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachineExportManifest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'type': json['type'], + 'url': json['url'], + }; +} + +export function V1alpha1VirtualMachineExportManifestToJSON(value?: V1alpha1VirtualMachineExportManifest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'type': value.type, + 'url': value.url, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportSpec.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportSpec.ts new file mode 100644 index 000000000..f18598173 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportSpec.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1TypedLocalObjectReference } from './K8sIoApiCoreV1TypedLocalObjectReference'; +import { + K8sIoApiCoreV1TypedLocalObjectReferenceFromJSON, + K8sIoApiCoreV1TypedLocalObjectReferenceFromJSONTyped, + K8sIoApiCoreV1TypedLocalObjectReferenceToJSON, +} from './K8sIoApiCoreV1TypedLocalObjectReference'; + +/** + * VirtualMachineExportSpec is the spec for a VirtualMachineExport resource + * @export + * @interface V1alpha1VirtualMachineExportSpec + */ +export interface V1alpha1VirtualMachineExportSpec { + /** + * + * @type {K8sIoApiCoreV1TypedLocalObjectReference} + * @memberof V1alpha1VirtualMachineExportSpec + */ + source: K8sIoApiCoreV1TypedLocalObjectReference; + /** + * TokenSecretRef is the name of the custom-defined secret that contains the token used by the export server pod + * @type {string} + * @memberof V1alpha1VirtualMachineExportSpec + */ + tokenSecretRef?: string; + /** + * Duration is a wrapper around time.Duration which supports correct marshaling to YAML and JSON. In particular, it marshals into strings, which can be used as map keys in json. + * @type {string} + * @memberof V1alpha1VirtualMachineExportSpec + */ + ttlDuration?: string; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachineExportSpec interface. + */ +export function instanceOfV1alpha1VirtualMachineExportSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "source" in value; + + return isInstance; +} + +export function V1alpha1VirtualMachineExportSpecFromJSON(json: any): V1alpha1VirtualMachineExportSpec { + return V1alpha1VirtualMachineExportSpecFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachineExportSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachineExportSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'source': K8sIoApiCoreV1TypedLocalObjectReferenceFromJSON(json['source']), + 'tokenSecretRef': !exists(json, 'tokenSecretRef') ? undefined : json['tokenSecretRef'], + 'ttlDuration': !exists(json, 'ttlDuration') ? undefined : json['ttlDuration'], + }; +} + +export function V1alpha1VirtualMachineExportSpecToJSON(value?: V1alpha1VirtualMachineExportSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'source': K8sIoApiCoreV1TypedLocalObjectReferenceToJSON(value.source), + 'tokenSecretRef': value.tokenSecretRef, + 'ttlDuration': value.ttlDuration, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportStatus.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportStatus.ts new file mode 100644 index 000000000..6669272b5 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportStatus.ts @@ -0,0 +1,126 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1alpha1Condition } from './V1alpha1Condition'; +import { + V1alpha1ConditionFromJSON, + V1alpha1ConditionFromJSONTyped, + V1alpha1ConditionToJSON, +} from './V1alpha1Condition'; +import type { V1alpha1VirtualMachineExportLinks } from './V1alpha1VirtualMachineExportLinks'; +import { + V1alpha1VirtualMachineExportLinksFromJSON, + V1alpha1VirtualMachineExportLinksFromJSONTyped, + V1alpha1VirtualMachineExportLinksToJSON, +} from './V1alpha1VirtualMachineExportLinks'; + +/** + * VirtualMachineExportStatus is the status for a VirtualMachineExport resource + * @export + * @interface V1alpha1VirtualMachineExportStatus + */ +export interface V1alpha1VirtualMachineExportStatus { + /** + * + * @type {Array} + * @memberof V1alpha1VirtualMachineExportStatus + */ + conditions?: Array; + /** + * + * @type {V1alpha1VirtualMachineExportLinks} + * @memberof V1alpha1VirtualMachineExportStatus + */ + links?: V1alpha1VirtualMachineExportLinks; + /** + * + * @type {string} + * @memberof V1alpha1VirtualMachineExportStatus + */ + phase?: string; + /** + * ServiceName is the name of the service created associated with the Virtual Machine export. It will be used to create the internal URLs for downloading the images + * @type {string} + * @memberof V1alpha1VirtualMachineExportStatus + */ + serviceName?: string; + /** + * TokenSecretRef is the name of the secret that contains the token used by the export server pod + * @type {string} + * @memberof V1alpha1VirtualMachineExportStatus + */ + tokenSecretRef?: string; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof V1alpha1VirtualMachineExportStatus + */ + ttlExpirationTime?: string; + /** + * VirtualMachineName shows the name of the source virtual machine if the source is either a VirtualMachine or a VirtualMachineSnapshot. This is mainly to easily identify the source VirtualMachine in case of a VirtualMachineSnapshot + * @type {string} + * @memberof V1alpha1VirtualMachineExportStatus + */ + virtualMachineName?: string; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachineExportStatus interface. + */ +export function instanceOfV1alpha1VirtualMachineExportStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1alpha1VirtualMachineExportStatusFromJSON(json: any): V1alpha1VirtualMachineExportStatus { + return V1alpha1VirtualMachineExportStatusFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachineExportStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachineExportStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(V1alpha1ConditionFromJSON)), + 'links': !exists(json, 'links') ? undefined : V1alpha1VirtualMachineExportLinksFromJSON(json['links']), + 'phase': !exists(json, 'phase') ? undefined : json['phase'], + 'serviceName': !exists(json, 'serviceName') ? undefined : json['serviceName'], + 'tokenSecretRef': !exists(json, 'tokenSecretRef') ? undefined : json['tokenSecretRef'], + 'ttlExpirationTime': !exists(json, 'ttlExpirationTime') ? undefined : json['ttlExpirationTime'], + 'virtualMachineName': !exists(json, 'virtualMachineName') ? undefined : json['virtualMachineName'], + }; +} + +export function V1alpha1VirtualMachineExportStatusToJSON(value?: V1alpha1VirtualMachineExportStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(V1alpha1ConditionToJSON)), + 'links': V1alpha1VirtualMachineExportLinksToJSON(value.links), + 'phase': value.phase, + 'serviceName': value.serviceName, + 'tokenSecretRef': value.tokenSecretRef, + 'ttlExpirationTime': value.ttlExpirationTime === undefined ? undefined : (value.ttlExpirationTime), + 'virtualMachineName': value.virtualMachineName, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportVolume.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportVolume.ts new file mode 100644 index 000000000..83b1c6663 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportVolume.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1alpha1VirtualMachineExportVolumeFormat } from './V1alpha1VirtualMachineExportVolumeFormat'; +import { + V1alpha1VirtualMachineExportVolumeFormatFromJSON, + V1alpha1VirtualMachineExportVolumeFormatFromJSONTyped, + V1alpha1VirtualMachineExportVolumeFormatToJSON, +} from './V1alpha1VirtualMachineExportVolumeFormat'; + +/** + * VirtualMachineExportVolume contains the name and available formats for the exported volume + * @export + * @interface V1alpha1VirtualMachineExportVolume + */ +export interface V1alpha1VirtualMachineExportVolume { + /** + * + * @type {Array} + * @memberof V1alpha1VirtualMachineExportVolume + */ + formats?: Array; + /** + * Name is the name of the exported volume + * @type {string} + * @memberof V1alpha1VirtualMachineExportVolume + */ + name: string; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachineExportVolume interface. + */ +export function instanceOfV1alpha1VirtualMachineExportVolume(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function V1alpha1VirtualMachineExportVolumeFromJSON(json: any): V1alpha1VirtualMachineExportVolume { + return V1alpha1VirtualMachineExportVolumeFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachineExportVolumeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachineExportVolume { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'formats': !exists(json, 'formats') ? undefined : ((json['formats'] as Array).map(V1alpha1VirtualMachineExportVolumeFormatFromJSON)), + 'name': json['name'], + }; +} + +export function V1alpha1VirtualMachineExportVolumeToJSON(value?: V1alpha1VirtualMachineExportVolume | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'formats': value.formats === undefined ? undefined : ((value.formats as Array).map(V1alpha1VirtualMachineExportVolumeFormatToJSON)), + 'name': value.name, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportVolumeFormat.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportVolumeFormat.ts new file mode 100644 index 000000000..cd82cddb8 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineExportVolumeFormat.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * VirtualMachineExportVolumeFormat contains the format type and URL to get the volume in that format + * @export + * @interface V1alpha1VirtualMachineExportVolumeFormat + */ +export interface V1alpha1VirtualMachineExportVolumeFormat { + /** + * Format is the format of the image at the specified URL + * @type {string} + * @memberof V1alpha1VirtualMachineExportVolumeFormat + */ + format: string; + /** + * Url is the url that contains the volume in the format specified + * @type {string} + * @memberof V1alpha1VirtualMachineExportVolumeFormat + */ + url: string; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachineExportVolumeFormat interface. + */ +export function instanceOfV1alpha1VirtualMachineExportVolumeFormat(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "format" in value; + isInstance = isInstance && "url" in value; + + return isInstance; +} + +export function V1alpha1VirtualMachineExportVolumeFormatFromJSON(json: any): V1alpha1VirtualMachineExportVolumeFormat { + return V1alpha1VirtualMachineExportVolumeFormatFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachineExportVolumeFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachineExportVolumeFormat { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'format': json['format'], + 'url': json['url'], + }; +} + +export function V1alpha1VirtualMachineExportVolumeFormatToJSON(value?: V1alpha1VirtualMachineExportVolumeFormat | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'format': value.format, + 'url': value.url, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachinePool.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachinePool.ts new file mode 100644 index 000000000..5c9af0cc5 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachinePool.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ObjectMeta } from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import type { V1alpha1VirtualMachinePoolSpec } from './V1alpha1VirtualMachinePoolSpec'; +import { + V1alpha1VirtualMachinePoolSpecFromJSON, + V1alpha1VirtualMachinePoolSpecFromJSONTyped, + V1alpha1VirtualMachinePoolSpecToJSON, +} from './V1alpha1VirtualMachinePoolSpec'; +import type { V1alpha1VirtualMachinePoolStatus } from './V1alpha1VirtualMachinePoolStatus'; +import { + V1alpha1VirtualMachinePoolStatusFromJSON, + V1alpha1VirtualMachinePoolStatusFromJSONTyped, + V1alpha1VirtualMachinePoolStatusToJSON, +} from './V1alpha1VirtualMachinePoolStatus'; + +/** + * VirtualMachinePool resource contains a VirtualMachine configuration that can be used to replicate multiple VirtualMachine resources. + * @export + * @interface V1alpha1VirtualMachinePool + */ +export interface V1alpha1VirtualMachinePool { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1alpha1VirtualMachinePool + */ + 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 + * @type {string} + * @memberof V1alpha1VirtualMachinePool + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ObjectMeta} + * @memberof V1alpha1VirtualMachinePool + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {V1alpha1VirtualMachinePoolSpec} + * @memberof V1alpha1VirtualMachinePool + */ + spec: V1alpha1VirtualMachinePoolSpec; + /** + * + * @type {V1alpha1VirtualMachinePoolStatus} + * @memberof V1alpha1VirtualMachinePool + */ + status?: V1alpha1VirtualMachinePoolStatus; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachinePool interface. + */ +export function instanceOfV1alpha1VirtualMachinePool(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function V1alpha1VirtualMachinePoolFromJSON(json: any): V1alpha1VirtualMachinePool { + return V1alpha1VirtualMachinePoolFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachinePoolFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachinePool { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': V1alpha1VirtualMachinePoolSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : V1alpha1VirtualMachinePoolStatusFromJSON(json['status']), + }; +} + +export function V1alpha1VirtualMachinePoolToJSON(value?: V1alpha1VirtualMachinePool | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': V1alpha1VirtualMachinePoolSpecToJSON(value.spec), + 'status': V1alpha1VirtualMachinePoolStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachinePoolCondition.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachinePoolCondition.ts new file mode 100644 index 000000000..e2a1d0d77 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachinePoolCondition.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1alpha1VirtualMachinePoolCondition + */ +export interface V1alpha1VirtualMachinePoolCondition { + /** + * + * @type {string} + * @memberof V1alpha1VirtualMachinePoolCondition + */ + message?: string; + /** + * + * @type {string} + * @memberof V1alpha1VirtualMachinePoolCondition + */ + reason?: string; + /** + * + * @type {string} + * @memberof V1alpha1VirtualMachinePoolCondition + */ + status: string; + /** + * + * @type {string} + * @memberof V1alpha1VirtualMachinePoolCondition + */ + type: string; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachinePoolCondition interface. + */ +export function instanceOfV1alpha1VirtualMachinePoolCondition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "status" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function V1alpha1VirtualMachinePoolConditionFromJSON(json: any): V1alpha1VirtualMachinePoolCondition { + return V1alpha1VirtualMachinePoolConditionFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachinePoolConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachinePoolCondition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'message': !exists(json, 'message') ? undefined : json['message'], + 'reason': !exists(json, 'reason') ? undefined : json['reason'], + 'status': json['status'], + 'type': json['type'], + }; +} + +export function V1alpha1VirtualMachinePoolConditionToJSON(value?: V1alpha1VirtualMachinePoolCondition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'message': value.message, + 'reason': value.reason, + 'status': value.status, + 'type': value.type, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachinePoolList.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachinePoolList.ts new file mode 100644 index 000000000..db99e4c47 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachinePoolList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ListMeta } from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ListMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import type { V1alpha1VirtualMachinePool } from './V1alpha1VirtualMachinePool'; +import { + V1alpha1VirtualMachinePoolFromJSON, + V1alpha1VirtualMachinePoolFromJSONTyped, + V1alpha1VirtualMachinePoolToJSON, +} from './V1alpha1VirtualMachinePool'; + +/** + * VirtualMachinePoolList is a list of VirtualMachinePool resources. + * @export + * @interface V1alpha1VirtualMachinePoolList + */ +export interface V1alpha1VirtualMachinePoolList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1alpha1VirtualMachinePoolList + */ + apiVersion?: string; + /** + * + * @type {Array} + * @memberof V1alpha1VirtualMachinePoolList + */ + 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 + * @type {string} + * @memberof V1alpha1VirtualMachinePoolList + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ListMeta} + * @memberof V1alpha1VirtualMachinePoolList + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachinePoolList interface. + */ +export function instanceOfV1alpha1VirtualMachinePoolList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function V1alpha1VirtualMachinePoolListFromJSON(json: any): V1alpha1VirtualMachinePoolList { + return V1alpha1VirtualMachinePoolListFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachinePoolListFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachinePoolList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(V1alpha1VirtualMachinePoolFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function V1alpha1VirtualMachinePoolListToJSON(value?: V1alpha1VirtualMachinePoolList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(V1alpha1VirtualMachinePoolToJSON)), + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachinePoolSpec.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachinePoolSpec.ts new file mode 100644 index 000000000..39a0511f5 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachinePoolSpec.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1LabelSelector } from './K8sIoApimachineryPkgApisMetaV1LabelSelector'; +import { + K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSON, + K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './K8sIoApimachineryPkgApisMetaV1LabelSelector'; +import type { V1alpha1VirtualMachineTemplateSpec } from './V1alpha1VirtualMachineTemplateSpec'; +import { + V1alpha1VirtualMachineTemplateSpecFromJSON, + V1alpha1VirtualMachineTemplateSpecFromJSONTyped, + V1alpha1VirtualMachineTemplateSpecToJSON, +} from './V1alpha1VirtualMachineTemplateSpec'; + +/** + * + * @export + * @interface V1alpha1VirtualMachinePoolSpec + */ +export interface V1alpha1VirtualMachinePoolSpec { + /** + * Indicates that the pool is paused. + * @type {boolean} + * @memberof V1alpha1VirtualMachinePoolSpec + */ + paused?: boolean; + /** + * Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + * @type {number} + * @memberof V1alpha1VirtualMachinePoolSpec + */ + replicas?: number; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1LabelSelector} + * @memberof V1alpha1VirtualMachinePoolSpec + */ + selector: K8sIoApimachineryPkgApisMetaV1LabelSelector; + /** + * + * @type {V1alpha1VirtualMachineTemplateSpec} + * @memberof V1alpha1VirtualMachinePoolSpec + */ + virtualMachineTemplate: V1alpha1VirtualMachineTemplateSpec; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachinePoolSpec interface. + */ +export function instanceOfV1alpha1VirtualMachinePoolSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "selector" in value; + isInstance = isInstance && "virtualMachineTemplate" in value; + + return isInstance; +} + +export function V1alpha1VirtualMachinePoolSpecFromJSON(json: any): V1alpha1VirtualMachinePoolSpec { + return V1alpha1VirtualMachinePoolSpecFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachinePoolSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachinePoolSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'paused': !exists(json, 'paused') ? undefined : json['paused'], + 'replicas': !exists(json, 'replicas') ? undefined : json['replicas'], + 'selector': K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['selector']), + 'virtualMachineTemplate': V1alpha1VirtualMachineTemplateSpecFromJSON(json['virtualMachineTemplate']), + }; +} + +export function V1alpha1VirtualMachinePoolSpecToJSON(value?: V1alpha1VirtualMachinePoolSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'paused': value.paused, + 'replicas': value.replicas, + 'selector': K8sIoApimachineryPkgApisMetaV1LabelSelectorToJSON(value.selector), + 'virtualMachineTemplate': V1alpha1VirtualMachineTemplateSpecToJSON(value.virtualMachineTemplate), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachinePoolStatus.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachinePoolStatus.ts new file mode 100644 index 000000000..a3b39537f --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachinePoolStatus.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1alpha1VirtualMachinePoolCondition } from './V1alpha1VirtualMachinePoolCondition'; +import { + V1alpha1VirtualMachinePoolConditionFromJSON, + V1alpha1VirtualMachinePoolConditionFromJSONTyped, + V1alpha1VirtualMachinePoolConditionToJSON, +} from './V1alpha1VirtualMachinePoolCondition'; + +/** + * + * @export + * @interface V1alpha1VirtualMachinePoolStatus + */ +export interface V1alpha1VirtualMachinePoolStatus { + /** + * + * @type {Array} + * @memberof V1alpha1VirtualMachinePoolStatus + */ + conditions?: Array; + /** + * Canonical form of the label selector for HPA which consumes it through the scale subresource. + * @type {string} + * @memberof V1alpha1VirtualMachinePoolStatus + */ + labelSelector?: string; + /** + * + * @type {number} + * @memberof V1alpha1VirtualMachinePoolStatus + */ + readyReplicas?: number; + /** + * + * @type {number} + * @memberof V1alpha1VirtualMachinePoolStatus + */ + replicas?: number; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachinePoolStatus interface. + */ +export function instanceOfV1alpha1VirtualMachinePoolStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1alpha1VirtualMachinePoolStatusFromJSON(json: any): V1alpha1VirtualMachinePoolStatus { + return V1alpha1VirtualMachinePoolStatusFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachinePoolStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachinePoolStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(V1alpha1VirtualMachinePoolConditionFromJSON)), + 'labelSelector': !exists(json, 'labelSelector') ? undefined : json['labelSelector'], + 'readyReplicas': !exists(json, 'readyReplicas') ? undefined : json['readyReplicas'], + 'replicas': !exists(json, 'replicas') ? undefined : json['replicas'], + }; +} + +export function V1alpha1VirtualMachinePoolStatusToJSON(value?: V1alpha1VirtualMachinePoolStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(V1alpha1VirtualMachinePoolConditionToJSON)), + 'labelSelector': value.labelSelector, + 'readyReplicas': value.readyReplicas, + 'replicas': value.replicas, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineRestore.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineRestore.ts new file mode 100644 index 000000000..3cde36e1e --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineRestore.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ObjectMeta } from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import type { V1alpha1VirtualMachineRestoreSpec } from './V1alpha1VirtualMachineRestoreSpec'; +import { + V1alpha1VirtualMachineRestoreSpecFromJSON, + V1alpha1VirtualMachineRestoreSpecFromJSONTyped, + V1alpha1VirtualMachineRestoreSpecToJSON, +} from './V1alpha1VirtualMachineRestoreSpec'; +import type { V1alpha1VirtualMachineRestoreStatus } from './V1alpha1VirtualMachineRestoreStatus'; +import { + V1alpha1VirtualMachineRestoreStatusFromJSON, + V1alpha1VirtualMachineRestoreStatusFromJSONTyped, + V1alpha1VirtualMachineRestoreStatusToJSON, +} from './V1alpha1VirtualMachineRestoreStatus'; + +/** + * VirtualMachineRestore defines the operation of restoring a VM + * @export + * @interface V1alpha1VirtualMachineRestore + */ +export interface V1alpha1VirtualMachineRestore { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1alpha1VirtualMachineRestore + */ + 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 + * @type {string} + * @memberof V1alpha1VirtualMachineRestore + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ObjectMeta} + * @memberof V1alpha1VirtualMachineRestore + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {V1alpha1VirtualMachineRestoreSpec} + * @memberof V1alpha1VirtualMachineRestore + */ + spec: V1alpha1VirtualMachineRestoreSpec; + /** + * + * @type {V1alpha1VirtualMachineRestoreStatus} + * @memberof V1alpha1VirtualMachineRestore + */ + status?: V1alpha1VirtualMachineRestoreStatus; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachineRestore interface. + */ +export function instanceOfV1alpha1VirtualMachineRestore(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function V1alpha1VirtualMachineRestoreFromJSON(json: any): V1alpha1VirtualMachineRestore { + return V1alpha1VirtualMachineRestoreFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachineRestoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachineRestore { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': V1alpha1VirtualMachineRestoreSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : V1alpha1VirtualMachineRestoreStatusFromJSON(json['status']), + }; +} + +export function V1alpha1VirtualMachineRestoreToJSON(value?: V1alpha1VirtualMachineRestore | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': V1alpha1VirtualMachineRestoreSpecToJSON(value.spec), + 'status': V1alpha1VirtualMachineRestoreStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineRestoreList.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineRestoreList.ts new file mode 100644 index 000000000..c93ab4ff5 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineRestoreList.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ListMeta } from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ListMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import type { V1alpha1VirtualMachineRestore } from './V1alpha1VirtualMachineRestore'; +import { + V1alpha1VirtualMachineRestoreFromJSON, + V1alpha1VirtualMachineRestoreFromJSONTyped, + V1alpha1VirtualMachineRestoreToJSON, +} from './V1alpha1VirtualMachineRestore'; + +/** + * VirtualMachineRestoreList is a list of VirtualMachineRestore resources + * @export + * @interface V1alpha1VirtualMachineRestoreList + */ +export interface V1alpha1VirtualMachineRestoreList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1alpha1VirtualMachineRestoreList + */ + apiVersion?: string; + /** + * + * @type {Array} + * @memberof V1alpha1VirtualMachineRestoreList + */ + 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 + * @type {string} + * @memberof V1alpha1VirtualMachineRestoreList + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ListMeta} + * @memberof V1alpha1VirtualMachineRestoreList + */ + metadata: K8sIoApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachineRestoreList interface. + */ +export function instanceOfV1alpha1VirtualMachineRestoreList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + isInstance = isInstance && "metadata" in value; + + return isInstance; +} + +export function V1alpha1VirtualMachineRestoreListFromJSON(json: any): V1alpha1VirtualMachineRestoreList { + return V1alpha1VirtualMachineRestoreListFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachineRestoreListFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachineRestoreList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(V1alpha1VirtualMachineRestoreFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function V1alpha1VirtualMachineRestoreListToJSON(value?: V1alpha1VirtualMachineRestoreList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(V1alpha1VirtualMachineRestoreToJSON)), + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineRestoreSpec.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineRestoreSpec.ts new file mode 100644 index 000000000..11696dcf8 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineRestoreSpec.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1TypedLocalObjectReference } from './K8sIoApiCoreV1TypedLocalObjectReference'; +import { + K8sIoApiCoreV1TypedLocalObjectReferenceFromJSON, + K8sIoApiCoreV1TypedLocalObjectReferenceFromJSONTyped, + K8sIoApiCoreV1TypedLocalObjectReferenceToJSON, +} from './K8sIoApiCoreV1TypedLocalObjectReference'; + +/** + * VirtualMachineRestoreSpec is the spec for a VirtualMachineRestoreresource + * @export + * @interface V1alpha1VirtualMachineRestoreSpec + */ +export interface V1alpha1VirtualMachineRestoreSpec { + /** + * If the target for the restore does not exist, it will be created. Patches holds JSON patches that would be applied to the target manifest before it's created. Patches should fit the target's Kind. + * + * Example for a patch: {"op": "replace", "path": "/metadata/name", "value": "new-vm-name"} + * @type {Array} + * @memberof V1alpha1VirtualMachineRestoreSpec + */ + patches?: Array; + /** + * + * @type {K8sIoApiCoreV1TypedLocalObjectReference} + * @memberof V1alpha1VirtualMachineRestoreSpec + */ + target: K8sIoApiCoreV1TypedLocalObjectReference; + /** + * + * @type {string} + * @memberof V1alpha1VirtualMachineRestoreSpec + */ + virtualMachineSnapshotName: string; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachineRestoreSpec interface. + */ +export function instanceOfV1alpha1VirtualMachineRestoreSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "target" in value; + isInstance = isInstance && "virtualMachineSnapshotName" in value; + + return isInstance; +} + +export function V1alpha1VirtualMachineRestoreSpecFromJSON(json: any): V1alpha1VirtualMachineRestoreSpec { + return V1alpha1VirtualMachineRestoreSpecFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachineRestoreSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachineRestoreSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'patches': !exists(json, 'patches') ? undefined : json['patches'], + 'target': K8sIoApiCoreV1TypedLocalObjectReferenceFromJSON(json['target']), + 'virtualMachineSnapshotName': json['virtualMachineSnapshotName'], + }; +} + +export function V1alpha1VirtualMachineRestoreSpecToJSON(value?: V1alpha1VirtualMachineRestoreSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'patches': value.patches, + 'target': K8sIoApiCoreV1TypedLocalObjectReferenceToJSON(value.target), + 'virtualMachineSnapshotName': value.virtualMachineSnapshotName, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineRestoreStatus.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineRestoreStatus.ts new file mode 100644 index 000000000..e020701b0 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineRestoreStatus.ts @@ -0,0 +1,110 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1alpha1Condition } from './V1alpha1Condition'; +import { + V1alpha1ConditionFromJSON, + V1alpha1ConditionFromJSONTyped, + V1alpha1ConditionToJSON, +} from './V1alpha1Condition'; +import type { V1alpha1VolumeRestore } from './V1alpha1VolumeRestore'; +import { + V1alpha1VolumeRestoreFromJSON, + V1alpha1VolumeRestoreFromJSONTyped, + V1alpha1VolumeRestoreToJSON, +} from './V1alpha1VolumeRestore'; + +/** + * VirtualMachineRestoreStatus is the spec for a VirtualMachineRestoreresource + * @export + * @interface V1alpha1VirtualMachineRestoreStatus + */ +export interface V1alpha1VirtualMachineRestoreStatus { + /** + * + * @type {boolean} + * @memberof V1alpha1VirtualMachineRestoreStatus + */ + complete?: boolean; + /** + * + * @type {Array} + * @memberof V1alpha1VirtualMachineRestoreStatus + */ + conditions?: Array; + /** + * + * @type {Array} + * @memberof V1alpha1VirtualMachineRestoreStatus + */ + deletedDataVolumes?: Array; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof V1alpha1VirtualMachineRestoreStatus + */ + restoreTime?: string; + /** + * + * @type {Array} + * @memberof V1alpha1VirtualMachineRestoreStatus + */ + restores?: Array; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachineRestoreStatus interface. + */ +export function instanceOfV1alpha1VirtualMachineRestoreStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1alpha1VirtualMachineRestoreStatusFromJSON(json: any): V1alpha1VirtualMachineRestoreStatus { + return V1alpha1VirtualMachineRestoreStatusFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachineRestoreStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachineRestoreStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'complete': !exists(json, 'complete') ? undefined : json['complete'], + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(V1alpha1ConditionFromJSON)), + 'deletedDataVolumes': !exists(json, 'deletedDataVolumes') ? undefined : json['deletedDataVolumes'], + 'restoreTime': !exists(json, 'restoreTime') ? undefined : json['restoreTime'], + 'restores': !exists(json, 'restores') ? undefined : ((json['restores'] as Array).map(V1alpha1VolumeRestoreFromJSON)), + }; +} + +export function V1alpha1VirtualMachineRestoreStatusToJSON(value?: V1alpha1VirtualMachineRestoreStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'complete': value.complete, + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(V1alpha1ConditionToJSON)), + 'deletedDataVolumes': value.deletedDataVolumes, + 'restoreTime': value.restoreTime === undefined ? undefined : (value.restoreTime), + 'restores': value.restores === undefined ? undefined : ((value.restores as Array).map(V1alpha1VolumeRestoreToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshot.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshot.ts new file mode 100644 index 000000000..b65ff677d --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshot.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ObjectMeta } from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import type { V1alpha1VirtualMachineSnapshotSpec } from './V1alpha1VirtualMachineSnapshotSpec'; +import { + V1alpha1VirtualMachineSnapshotSpecFromJSON, + V1alpha1VirtualMachineSnapshotSpecFromJSONTyped, + V1alpha1VirtualMachineSnapshotSpecToJSON, +} from './V1alpha1VirtualMachineSnapshotSpec'; +import type { V1alpha1VirtualMachineSnapshotStatus } from './V1alpha1VirtualMachineSnapshotStatus'; +import { + V1alpha1VirtualMachineSnapshotStatusFromJSON, + V1alpha1VirtualMachineSnapshotStatusFromJSONTyped, + V1alpha1VirtualMachineSnapshotStatusToJSON, +} from './V1alpha1VirtualMachineSnapshotStatus'; + +/** + * VirtualMachineSnapshot defines the operation of snapshotting a VM + * @export + * @interface V1alpha1VirtualMachineSnapshot + */ +export interface V1alpha1VirtualMachineSnapshot { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1alpha1VirtualMachineSnapshot + */ + 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 + * @type {string} + * @memberof V1alpha1VirtualMachineSnapshot + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ObjectMeta} + * @memberof V1alpha1VirtualMachineSnapshot + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {V1alpha1VirtualMachineSnapshotSpec} + * @memberof V1alpha1VirtualMachineSnapshot + */ + spec: V1alpha1VirtualMachineSnapshotSpec; + /** + * + * @type {V1alpha1VirtualMachineSnapshotStatus} + * @memberof V1alpha1VirtualMachineSnapshot + */ + status?: V1alpha1VirtualMachineSnapshotStatus; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachineSnapshot interface. + */ +export function instanceOfV1alpha1VirtualMachineSnapshot(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function V1alpha1VirtualMachineSnapshotFromJSON(json: any): V1alpha1VirtualMachineSnapshot { + return V1alpha1VirtualMachineSnapshotFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachineSnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachineSnapshot { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': V1alpha1VirtualMachineSnapshotSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : V1alpha1VirtualMachineSnapshotStatusFromJSON(json['status']), + }; +} + +export function V1alpha1VirtualMachineSnapshotToJSON(value?: V1alpha1VirtualMachineSnapshot | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': V1alpha1VirtualMachineSnapshotSpecToJSON(value.spec), + 'status': V1alpha1VirtualMachineSnapshotStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshotContent.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshotContent.ts new file mode 100644 index 000000000..f2cced952 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshotContent.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ObjectMeta } from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import type { V1alpha1VirtualMachineSnapshotContentSpec } from './V1alpha1VirtualMachineSnapshotContentSpec'; +import { + V1alpha1VirtualMachineSnapshotContentSpecFromJSON, + V1alpha1VirtualMachineSnapshotContentSpecFromJSONTyped, + V1alpha1VirtualMachineSnapshotContentSpecToJSON, +} from './V1alpha1VirtualMachineSnapshotContentSpec'; +import type { V1alpha1VirtualMachineSnapshotContentStatus } from './V1alpha1VirtualMachineSnapshotContentStatus'; +import { + V1alpha1VirtualMachineSnapshotContentStatusFromJSON, + V1alpha1VirtualMachineSnapshotContentStatusFromJSONTyped, + V1alpha1VirtualMachineSnapshotContentStatusToJSON, +} from './V1alpha1VirtualMachineSnapshotContentStatus'; + +/** + * VirtualMachineSnapshotContent contains the snapshot data + * @export + * @interface V1alpha1VirtualMachineSnapshotContent + */ +export interface V1alpha1VirtualMachineSnapshotContent { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1alpha1VirtualMachineSnapshotContent + */ + 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 + * @type {string} + * @memberof V1alpha1VirtualMachineSnapshotContent + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ObjectMeta} + * @memberof V1alpha1VirtualMachineSnapshotContent + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {V1alpha1VirtualMachineSnapshotContentSpec} + * @memberof V1alpha1VirtualMachineSnapshotContent + */ + spec: V1alpha1VirtualMachineSnapshotContentSpec; + /** + * + * @type {V1alpha1VirtualMachineSnapshotContentStatus} + * @memberof V1alpha1VirtualMachineSnapshotContent + */ + status?: V1alpha1VirtualMachineSnapshotContentStatus; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachineSnapshotContent interface. + */ +export function instanceOfV1alpha1VirtualMachineSnapshotContent(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function V1alpha1VirtualMachineSnapshotContentFromJSON(json: any): V1alpha1VirtualMachineSnapshotContent { + return V1alpha1VirtualMachineSnapshotContentFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachineSnapshotContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachineSnapshotContent { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': V1alpha1VirtualMachineSnapshotContentSpecFromJSON(json['spec']), + 'status': !exists(json, 'status') ? undefined : V1alpha1VirtualMachineSnapshotContentStatusFromJSON(json['status']), + }; +} + +export function V1alpha1VirtualMachineSnapshotContentToJSON(value?: V1alpha1VirtualMachineSnapshotContent | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': V1alpha1VirtualMachineSnapshotContentSpecToJSON(value.spec), + 'status': V1alpha1VirtualMachineSnapshotContentStatusToJSON(value.status), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshotContentList.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshotContentList.ts new file mode 100644 index 000000000..a0526e856 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshotContentList.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ListMeta } from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ListMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import type { V1alpha1VirtualMachineSnapshotContent } from './V1alpha1VirtualMachineSnapshotContent'; +import { + V1alpha1VirtualMachineSnapshotContentFromJSON, + V1alpha1VirtualMachineSnapshotContentFromJSONTyped, + V1alpha1VirtualMachineSnapshotContentToJSON, +} from './V1alpha1VirtualMachineSnapshotContent'; + +/** + * VirtualMachineSnapshotContentList is a list of VirtualMachineSnapshot resources + * @export + * @interface V1alpha1VirtualMachineSnapshotContentList + */ +export interface V1alpha1VirtualMachineSnapshotContentList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1alpha1VirtualMachineSnapshotContentList + */ + apiVersion?: string; + /** + * + * @type {Array} + * @memberof V1alpha1VirtualMachineSnapshotContentList + */ + 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 + * @type {string} + * @memberof V1alpha1VirtualMachineSnapshotContentList + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ListMeta} + * @memberof V1alpha1VirtualMachineSnapshotContentList + */ + metadata: K8sIoApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachineSnapshotContentList interface. + */ +export function instanceOfV1alpha1VirtualMachineSnapshotContentList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + isInstance = isInstance && "metadata" in value; + + return isInstance; +} + +export function V1alpha1VirtualMachineSnapshotContentListFromJSON(json: any): V1alpha1VirtualMachineSnapshotContentList { + return V1alpha1VirtualMachineSnapshotContentListFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachineSnapshotContentListFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachineSnapshotContentList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(V1alpha1VirtualMachineSnapshotContentFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function V1alpha1VirtualMachineSnapshotContentListToJSON(value?: V1alpha1VirtualMachineSnapshotContentList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(V1alpha1VirtualMachineSnapshotContentToJSON)), + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshotContentSpec.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshotContentSpec.ts new file mode 100644 index 000000000..9afef9b44 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshotContentSpec.ts @@ -0,0 +1,95 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1alpha1SourceSpec } from './V1alpha1SourceSpec'; +import { + V1alpha1SourceSpecFromJSON, + V1alpha1SourceSpecFromJSONTyped, + V1alpha1SourceSpecToJSON, +} from './V1alpha1SourceSpec'; +import type { V1alpha1VolumeBackup } from './V1alpha1VolumeBackup'; +import { + V1alpha1VolumeBackupFromJSON, + V1alpha1VolumeBackupFromJSONTyped, + V1alpha1VolumeBackupToJSON, +} from './V1alpha1VolumeBackup'; + +/** + * VirtualMachineSnapshotContentSpec is the spec for a VirtualMachineSnapshotContent resource + * @export + * @interface V1alpha1VirtualMachineSnapshotContentSpec + */ +export interface V1alpha1VirtualMachineSnapshotContentSpec { + /** + * + * @type {V1alpha1SourceSpec} + * @memberof V1alpha1VirtualMachineSnapshotContentSpec + */ + source: V1alpha1SourceSpec; + /** + * + * @type {string} + * @memberof V1alpha1VirtualMachineSnapshotContentSpec + */ + virtualMachineSnapshotName?: string; + /** + * + * @type {Array} + * @memberof V1alpha1VirtualMachineSnapshotContentSpec + */ + volumeBackups?: Array; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachineSnapshotContentSpec interface. + */ +export function instanceOfV1alpha1VirtualMachineSnapshotContentSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "source" in value; + + return isInstance; +} + +export function V1alpha1VirtualMachineSnapshotContentSpecFromJSON(json: any): V1alpha1VirtualMachineSnapshotContentSpec { + return V1alpha1VirtualMachineSnapshotContentSpecFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachineSnapshotContentSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachineSnapshotContentSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'source': V1alpha1SourceSpecFromJSON(json['source']), + 'virtualMachineSnapshotName': !exists(json, 'virtualMachineSnapshotName') ? undefined : json['virtualMachineSnapshotName'], + 'volumeBackups': !exists(json, 'volumeBackups') ? undefined : ((json['volumeBackups'] as Array).map(V1alpha1VolumeBackupFromJSON)), + }; +} + +export function V1alpha1VirtualMachineSnapshotContentSpecToJSON(value?: V1alpha1VirtualMachineSnapshotContentSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'source': V1alpha1SourceSpecToJSON(value.source), + 'virtualMachineSnapshotName': value.virtualMachineSnapshotName, + 'volumeBackups': value.volumeBackups === undefined ? undefined : ((value.volumeBackups as Array).map(V1alpha1VolumeBackupToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshotContentStatus.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshotContentStatus.ts new file mode 100644 index 000000000..b8955e928 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshotContentStatus.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1alpha1Error } from './V1alpha1Error'; +import { + V1alpha1ErrorFromJSON, + V1alpha1ErrorFromJSONTyped, + V1alpha1ErrorToJSON, +} from './V1alpha1Error'; +import type { V1alpha1VolumeSnapshotStatus } from './V1alpha1VolumeSnapshotStatus'; +import { + V1alpha1VolumeSnapshotStatusFromJSON, + V1alpha1VolumeSnapshotStatusFromJSONTyped, + V1alpha1VolumeSnapshotStatusToJSON, +} from './V1alpha1VolumeSnapshotStatus'; + +/** + * VirtualMachineSnapshotContentStatus is the status for a VirtualMachineSnapshotStatus resource + * @export + * @interface V1alpha1VirtualMachineSnapshotContentStatus + */ +export interface V1alpha1VirtualMachineSnapshotContentStatus { + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof V1alpha1VirtualMachineSnapshotContentStatus + */ + creationTime?: string; + /** + * + * @type {V1alpha1Error} + * @memberof V1alpha1VirtualMachineSnapshotContentStatus + */ + error?: V1alpha1Error; + /** + * + * @type {boolean} + * @memberof V1alpha1VirtualMachineSnapshotContentStatus + */ + readyToUse?: boolean; + /** + * + * @type {Array} + * @memberof V1alpha1VirtualMachineSnapshotContentStatus + */ + volumeSnapshotStatus?: Array; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachineSnapshotContentStatus interface. + */ +export function instanceOfV1alpha1VirtualMachineSnapshotContentStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1alpha1VirtualMachineSnapshotContentStatusFromJSON(json: any): V1alpha1VirtualMachineSnapshotContentStatus { + return V1alpha1VirtualMachineSnapshotContentStatusFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachineSnapshotContentStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachineSnapshotContentStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'creationTime': !exists(json, 'creationTime') ? undefined : json['creationTime'], + 'error': !exists(json, 'error') ? undefined : V1alpha1ErrorFromJSON(json['error']), + 'readyToUse': !exists(json, 'readyToUse') ? undefined : json['readyToUse'], + 'volumeSnapshotStatus': !exists(json, 'volumeSnapshotStatus') ? undefined : ((json['volumeSnapshotStatus'] as Array).map(V1alpha1VolumeSnapshotStatusFromJSON)), + }; +} + +export function V1alpha1VirtualMachineSnapshotContentStatusToJSON(value?: V1alpha1VirtualMachineSnapshotContentStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'creationTime': value.creationTime === undefined ? undefined : (value.creationTime), + 'error': V1alpha1ErrorToJSON(value.error), + 'readyToUse': value.readyToUse, + 'volumeSnapshotStatus': value.volumeSnapshotStatus === undefined ? undefined : ((value.volumeSnapshotStatus as Array).map(V1alpha1VolumeSnapshotStatusToJSON)), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshotList.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshotList.ts new file mode 100644 index 000000000..cfcb6400b --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshotList.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ListMeta } from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ListMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import type { V1alpha1VirtualMachineSnapshot } from './V1alpha1VirtualMachineSnapshot'; +import { + V1alpha1VirtualMachineSnapshotFromJSON, + V1alpha1VirtualMachineSnapshotFromJSONTyped, + V1alpha1VirtualMachineSnapshotToJSON, +} from './V1alpha1VirtualMachineSnapshot'; + +/** + * VirtualMachineSnapshotList is a list of VirtualMachineSnapshot resources + * @export + * @interface V1alpha1VirtualMachineSnapshotList + */ +export interface V1alpha1VirtualMachineSnapshotList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1alpha1VirtualMachineSnapshotList + */ + apiVersion?: string; + /** + * + * @type {Array} + * @memberof V1alpha1VirtualMachineSnapshotList + */ + 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 + * @type {string} + * @memberof V1alpha1VirtualMachineSnapshotList + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ListMeta} + * @memberof V1alpha1VirtualMachineSnapshotList + */ + metadata: K8sIoApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachineSnapshotList interface. + */ +export function instanceOfV1alpha1VirtualMachineSnapshotList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + isInstance = isInstance && "metadata" in value; + + return isInstance; +} + +export function V1alpha1VirtualMachineSnapshotListFromJSON(json: any): V1alpha1VirtualMachineSnapshotList { + return V1alpha1VirtualMachineSnapshotListFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachineSnapshotListFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachineSnapshotList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(V1alpha1VirtualMachineSnapshotFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function V1alpha1VirtualMachineSnapshotListToJSON(value?: V1alpha1VirtualMachineSnapshotList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(V1alpha1VirtualMachineSnapshotToJSON)), + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshotSpec.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshotSpec.ts new file mode 100644 index 000000000..20e43c87b --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshotSpec.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1TypedLocalObjectReference } from './K8sIoApiCoreV1TypedLocalObjectReference'; +import { + K8sIoApiCoreV1TypedLocalObjectReferenceFromJSON, + K8sIoApiCoreV1TypedLocalObjectReferenceFromJSONTyped, + K8sIoApiCoreV1TypedLocalObjectReferenceToJSON, +} from './K8sIoApiCoreV1TypedLocalObjectReference'; + +/** + * VirtualMachineSnapshotSpec is the spec for a VirtualMachineSnapshot resource + * @export + * @interface V1alpha1VirtualMachineSnapshotSpec + */ +export interface V1alpha1VirtualMachineSnapshotSpec { + /** + * + * @type {string} + * @memberof V1alpha1VirtualMachineSnapshotSpec + */ + deletionPolicy?: string; + /** + * Duration is a wrapper around time.Duration which supports correct marshaling to YAML and JSON. In particular, it marshals into strings, which can be used as map keys in json. + * @type {string} + * @memberof V1alpha1VirtualMachineSnapshotSpec + */ + failureDeadline?: string; + /** + * + * @type {K8sIoApiCoreV1TypedLocalObjectReference} + * @memberof V1alpha1VirtualMachineSnapshotSpec + */ + source: K8sIoApiCoreV1TypedLocalObjectReference; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachineSnapshotSpec interface. + */ +export function instanceOfV1alpha1VirtualMachineSnapshotSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "source" in value; + + return isInstance; +} + +export function V1alpha1VirtualMachineSnapshotSpecFromJSON(json: any): V1alpha1VirtualMachineSnapshotSpec { + return V1alpha1VirtualMachineSnapshotSpecFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachineSnapshotSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachineSnapshotSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'deletionPolicy': !exists(json, 'deletionPolicy') ? undefined : json['deletionPolicy'], + 'failureDeadline': !exists(json, 'failureDeadline') ? undefined : json['failureDeadline'], + 'source': K8sIoApiCoreV1TypedLocalObjectReferenceFromJSON(json['source']), + }; +} + +export function V1alpha1VirtualMachineSnapshotSpecToJSON(value?: V1alpha1VirtualMachineSnapshotSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'deletionPolicy': value.deletionPolicy, + 'failureDeadline': value.failureDeadline, + 'source': K8sIoApiCoreV1TypedLocalObjectReferenceToJSON(value.source), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshotStatus.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshotStatus.ts new file mode 100644 index 000000000..f07f36e61 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineSnapshotStatus.ts @@ -0,0 +1,148 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1alpha1Condition } from './V1alpha1Condition'; +import { + V1alpha1ConditionFromJSON, + V1alpha1ConditionFromJSONTyped, + V1alpha1ConditionToJSON, +} from './V1alpha1Condition'; +import type { V1alpha1Error } from './V1alpha1Error'; +import { + V1alpha1ErrorFromJSON, + V1alpha1ErrorFromJSONTyped, + V1alpha1ErrorToJSON, +} from './V1alpha1Error'; +import type { V1alpha1SnapshotVolumesLists } from './V1alpha1SnapshotVolumesLists'; +import { + V1alpha1SnapshotVolumesListsFromJSON, + V1alpha1SnapshotVolumesListsFromJSONTyped, + V1alpha1SnapshotVolumesListsToJSON, +} from './V1alpha1SnapshotVolumesLists'; + +/** + * VirtualMachineSnapshotStatus is the status for a VirtualMachineSnapshot resource + * @export + * @interface V1alpha1VirtualMachineSnapshotStatus + */ +export interface V1alpha1VirtualMachineSnapshotStatus { + /** + * + * @type {Array} + * @memberof V1alpha1VirtualMachineSnapshotStatus + */ + conditions?: Array; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof V1alpha1VirtualMachineSnapshotStatus + */ + creationTime?: string; + /** + * + * @type {V1alpha1Error} + * @memberof V1alpha1VirtualMachineSnapshotStatus + */ + error?: V1alpha1Error; + /** + * + * @type {Array} + * @memberof V1alpha1VirtualMachineSnapshotStatus + */ + indications?: Array; + /** + * + * @type {string} + * @memberof V1alpha1VirtualMachineSnapshotStatus + */ + phase?: string; + /** + * + * @type {boolean} + * @memberof V1alpha1VirtualMachineSnapshotStatus + */ + readyToUse?: boolean; + /** + * + * @type {V1alpha1SnapshotVolumesLists} + * @memberof V1alpha1VirtualMachineSnapshotStatus + */ + snapshotVolumes?: V1alpha1SnapshotVolumesLists; + /** + * + * @type {string} + * @memberof V1alpha1VirtualMachineSnapshotStatus + */ + sourceUID?: string; + /** + * + * @type {string} + * @memberof V1alpha1VirtualMachineSnapshotStatus + */ + virtualMachineSnapshotContentName?: string; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachineSnapshotStatus interface. + */ +export function instanceOfV1alpha1VirtualMachineSnapshotStatus(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1alpha1VirtualMachineSnapshotStatusFromJSON(json: any): V1alpha1VirtualMachineSnapshotStatus { + return V1alpha1VirtualMachineSnapshotStatusFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachineSnapshotStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachineSnapshotStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array).map(V1alpha1ConditionFromJSON)), + 'creationTime': !exists(json, 'creationTime') ? undefined : json['creationTime'], + 'error': !exists(json, 'error') ? undefined : V1alpha1ErrorFromJSON(json['error']), + 'indications': !exists(json, 'indications') ? undefined : json['indications'], + 'phase': !exists(json, 'phase') ? undefined : json['phase'], + 'readyToUse': !exists(json, 'readyToUse') ? undefined : json['readyToUse'], + 'snapshotVolumes': !exists(json, 'snapshotVolumes') ? undefined : V1alpha1SnapshotVolumesListsFromJSON(json['snapshotVolumes']), + 'sourceUID': !exists(json, 'sourceUID') ? undefined : json['sourceUID'], + 'virtualMachineSnapshotContentName': !exists(json, 'virtualMachineSnapshotContentName') ? undefined : json['virtualMachineSnapshotContentName'], + }; +} + +export function V1alpha1VirtualMachineSnapshotStatusToJSON(value?: V1alpha1VirtualMachineSnapshotStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array).map(V1alpha1ConditionToJSON)), + 'creationTime': value.creationTime === undefined ? undefined : (value.creationTime), + 'error': V1alpha1ErrorToJSON(value.error), + 'indications': value.indications, + 'phase': value.phase, + 'readyToUse': value.readyToUse, + 'snapshotVolumes': V1alpha1SnapshotVolumesListsToJSON(value.snapshotVolumes), + 'sourceUID': value.sourceUID, + 'virtualMachineSnapshotContentName': value.virtualMachineSnapshotContentName, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineTemplateSpec.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineTemplateSpec.ts new file mode 100644 index 000000000..3ba62b9a3 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VirtualMachineTemplateSpec.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ObjectMeta } from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import type { V1VirtualMachineSpec } from './V1VirtualMachineSpec'; +import { + V1VirtualMachineSpecFromJSON, + V1VirtualMachineSpecFromJSONTyped, + V1VirtualMachineSpecToJSON, +} from './V1VirtualMachineSpec'; + +/** + * + * @export + * @interface V1alpha1VirtualMachineTemplateSpec + */ +export interface V1alpha1VirtualMachineTemplateSpec { + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ObjectMeta} + * @memberof V1alpha1VirtualMachineTemplateSpec + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {V1VirtualMachineSpec} + * @memberof V1alpha1VirtualMachineTemplateSpec + */ + spec?: V1VirtualMachineSpec; +} + +/** + * Check if a given object implements the V1alpha1VirtualMachineTemplateSpec interface. + */ +export function instanceOfV1alpha1VirtualMachineTemplateSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1alpha1VirtualMachineTemplateSpecFromJSON(json: any): V1alpha1VirtualMachineTemplateSpec { + return V1alpha1VirtualMachineTemplateSpecFromJSONTyped(json, false); +} + +export function V1alpha1VirtualMachineTemplateSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VirtualMachineTemplateSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': !exists(json, 'spec') ? undefined : V1VirtualMachineSpecFromJSON(json['spec']), + }; +} + +export function V1alpha1VirtualMachineTemplateSpecToJSON(value?: V1alpha1VirtualMachineTemplateSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'metadata': K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': V1VirtualMachineSpecToJSON(value.spec), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VolumeBackup.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VolumeBackup.ts new file mode 100644 index 000000000..4cb1dee9d --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VolumeBackup.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1alpha1PersistentVolumeClaim } from './V1alpha1PersistentVolumeClaim'; +import { + V1alpha1PersistentVolumeClaimFromJSON, + V1alpha1PersistentVolumeClaimFromJSONTyped, + V1alpha1PersistentVolumeClaimToJSON, +} from './V1alpha1PersistentVolumeClaim'; + +/** + * VolumeBackup contains the data neeed to restore a PVC + * @export + * @interface V1alpha1VolumeBackup + */ +export interface V1alpha1VolumeBackup { + /** + * + * @type {V1alpha1PersistentVolumeClaim} + * @memberof V1alpha1VolumeBackup + */ + persistentVolumeClaim: V1alpha1PersistentVolumeClaim; + /** + * + * @type {string} + * @memberof V1alpha1VolumeBackup + */ + volumeName: string; + /** + * + * @type {string} + * @memberof V1alpha1VolumeBackup + */ + volumeSnapshotName?: string; +} + +/** + * Check if a given object implements the V1alpha1VolumeBackup interface. + */ +export function instanceOfV1alpha1VolumeBackup(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "persistentVolumeClaim" in value; + isInstance = isInstance && "volumeName" in value; + + return isInstance; +} + +export function V1alpha1VolumeBackupFromJSON(json: any): V1alpha1VolumeBackup { + return V1alpha1VolumeBackupFromJSONTyped(json, false); +} + +export function V1alpha1VolumeBackupFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VolumeBackup { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'persistentVolumeClaim': V1alpha1PersistentVolumeClaimFromJSON(json['persistentVolumeClaim']), + 'volumeName': json['volumeName'], + 'volumeSnapshotName': !exists(json, 'volumeSnapshotName') ? undefined : json['volumeSnapshotName'], + }; +} + +export function V1alpha1VolumeBackupToJSON(value?: V1alpha1VolumeBackup | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'persistentVolumeClaim': V1alpha1PersistentVolumeClaimToJSON(value.persistentVolumeClaim), + 'volumeName': value.volumeName, + 'volumeSnapshotName': value.volumeSnapshotName, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VolumeRestore.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VolumeRestore.ts new file mode 100644 index 000000000..d2a53d0a8 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VolumeRestore.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * VolumeRestore contains the data neeed to restore a PVC + * @export + * @interface V1alpha1VolumeRestore + */ +export interface V1alpha1VolumeRestore { + /** + * + * @type {string} + * @memberof V1alpha1VolumeRestore + */ + dataVolumeName?: string; + /** + * + * @type {string} + * @memberof V1alpha1VolumeRestore + */ + persistentVolumeClaim: string; + /** + * + * @type {string} + * @memberof V1alpha1VolumeRestore + */ + volumeName: string; + /** + * + * @type {string} + * @memberof V1alpha1VolumeRestore + */ + volumeSnapshotName: string; +} + +/** + * Check if a given object implements the V1alpha1VolumeRestore interface. + */ +export function instanceOfV1alpha1VolumeRestore(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "persistentVolumeClaim" in value; + isInstance = isInstance && "volumeName" in value; + isInstance = isInstance && "volumeSnapshotName" in value; + + return isInstance; +} + +export function V1alpha1VolumeRestoreFromJSON(json: any): V1alpha1VolumeRestore { + return V1alpha1VolumeRestoreFromJSONTyped(json, false); +} + +export function V1alpha1VolumeRestoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VolumeRestore { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dataVolumeName': !exists(json, 'dataVolumeName') ? undefined : json['dataVolumeName'], + 'persistentVolumeClaim': json['persistentVolumeClaim'], + 'volumeName': json['volumeName'], + 'volumeSnapshotName': json['volumeSnapshotName'], + }; +} + +export function V1alpha1VolumeRestoreToJSON(value?: V1alpha1VolumeRestore | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'dataVolumeName': value.dataVolumeName, + 'persistentVolumeClaim': value.persistentVolumeClaim, + 'volumeName': value.volumeName, + 'volumeSnapshotName': value.volumeSnapshotName, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1alpha1VolumeSnapshotStatus.ts b/packages/types/src/generated/kubevirt/models/V1alpha1VolumeSnapshotStatus.ts new file mode 100644 index 000000000..08e2f2a75 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1alpha1VolumeSnapshotStatus.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1alpha1Error } from './V1alpha1Error'; +import { + V1alpha1ErrorFromJSON, + V1alpha1ErrorFromJSONTyped, + V1alpha1ErrorToJSON, +} from './V1alpha1Error'; + +/** + * VolumeSnapshotStatus is the status of a VolumeSnapshot + * @export + * @interface V1alpha1VolumeSnapshotStatus + */ +export interface V1alpha1VolumeSnapshotStatus { + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof V1alpha1VolumeSnapshotStatus + */ + creationTime?: string; + /** + * + * @type {V1alpha1Error} + * @memberof V1alpha1VolumeSnapshotStatus + */ + error?: V1alpha1Error; + /** + * + * @type {boolean} + * @memberof V1alpha1VolumeSnapshotStatus + */ + readyToUse?: boolean; + /** + * + * @type {string} + * @memberof V1alpha1VolumeSnapshotStatus + */ + volumeSnapshotName: string; +} + +/** + * Check if a given object implements the V1alpha1VolumeSnapshotStatus interface. + */ +export function instanceOfV1alpha1VolumeSnapshotStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "volumeSnapshotName" in value; + + return isInstance; +} + +export function V1alpha1VolumeSnapshotStatusFromJSON(json: any): V1alpha1VolumeSnapshotStatus { + return V1alpha1VolumeSnapshotStatusFromJSONTyped(json, false); +} + +export function V1alpha1VolumeSnapshotStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1VolumeSnapshotStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'creationTime': !exists(json, 'creationTime') ? undefined : json['creationTime'], + 'error': !exists(json, 'error') ? undefined : V1alpha1ErrorFromJSON(json['error']), + 'readyToUse': !exists(json, 'readyToUse') ? undefined : json['readyToUse'], + 'volumeSnapshotName': json['volumeSnapshotName'], + }; +} + +export function V1alpha1VolumeSnapshotStatusToJSON(value?: V1alpha1VolumeSnapshotStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'creationTime': value.creationTime === undefined ? undefined : (value.creationTime), + 'error': V1alpha1ErrorToJSON(value.error), + 'readyToUse': value.readyToUse, + 'volumeSnapshotName': value.volumeSnapshotName, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1CPUInstancetype.ts b/packages/types/src/generated/kubevirt/models/V1beta1CPUInstancetype.ts new file mode 100644 index 000000000..cf7a8e2b9 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1CPUInstancetype.ts @@ -0,0 +1,123 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1NUMA } from './V1NUMA'; +import { + V1NUMAFromJSON, + V1NUMAFromJSONTyped, + V1NUMAToJSON, +} from './V1NUMA'; +import type { V1Realtime } from './V1Realtime'; +import { + V1RealtimeFromJSON, + V1RealtimeFromJSONTyped, + V1RealtimeToJSON, +} from './V1Realtime'; + +/** + * CPUInstancetype contains the CPU related configuration of a given VirtualMachineInstancetypeSpec. + * + * Guest is a required attribute and defines the number of vCPUs to be exposed to the guest by the instancetype. + * @export + * @interface V1beta1CPUInstancetype + */ +export interface V1beta1CPUInstancetype { + /** + * DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. + * @type {boolean} + * @memberof V1beta1CPUInstancetype + */ + dedicatedCPUPlacement?: boolean; + /** + * Required number of vCPUs to expose to the guest. + * + * The resulting CPU topology being derived from the optional PreferredCPUTopology attribute of CPUPreferences that itself defaults to PreferSockets. + * @type {number} + * @memberof V1beta1CPUInstancetype + */ + guest: number; + /** + * IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it. + * @type {boolean} + * @memberof V1beta1CPUInstancetype + */ + isolateEmulatorThread?: boolean; + /** + * Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like "host-passthrough" to get the same CPU as the node and "host-model" to get CPU closest to the node one. Defaults to host-model. + * @type {string} + * @memberof V1beta1CPUInstancetype + */ + model?: string; + /** + * + * @type {V1NUMA} + * @memberof V1beta1CPUInstancetype + */ + numa?: V1NUMA; + /** + * + * @type {V1Realtime} + * @memberof V1beta1CPUInstancetype + */ + realtime?: V1Realtime; +} + +/** + * Check if a given object implements the V1beta1CPUInstancetype interface. + */ +export function instanceOfV1beta1CPUInstancetype(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "guest" in value; + + return isInstance; +} + +export function V1beta1CPUInstancetypeFromJSON(json: any): V1beta1CPUInstancetype { + return V1beta1CPUInstancetypeFromJSONTyped(json, false); +} + +export function V1beta1CPUInstancetypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1CPUInstancetype { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dedicatedCPUPlacement': !exists(json, 'dedicatedCPUPlacement') ? undefined : json['dedicatedCPUPlacement'], + 'guest': json['guest'], + 'isolateEmulatorThread': !exists(json, 'isolateEmulatorThread') ? undefined : json['isolateEmulatorThread'], + 'model': !exists(json, 'model') ? undefined : json['model'], + 'numa': !exists(json, 'numa') ? undefined : V1NUMAFromJSON(json['numa']), + 'realtime': !exists(json, 'realtime') ? undefined : V1RealtimeFromJSON(json['realtime']), + }; +} + +export function V1beta1CPUInstancetypeToJSON(value?: V1beta1CPUInstancetype | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'dedicatedCPUPlacement': value.dedicatedCPUPlacement, + 'guest': value.guest, + 'isolateEmulatorThread': value.isolateEmulatorThread, + 'model': value.model, + 'numa': V1NUMAToJSON(value.numa), + 'realtime': V1RealtimeToJSON(value.realtime), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1CPUPreferenceRequirement.ts b/packages/types/src/generated/kubevirt/models/V1beta1CPUPreferenceRequirement.ts new file mode 100644 index 000000000..ffcbb84d6 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1CPUPreferenceRequirement.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1beta1CPUPreferenceRequirement + */ +export interface V1beta1CPUPreferenceRequirement { + /** + * Minimal number of vCPUs required by the preference. + * @type {number} + * @memberof V1beta1CPUPreferenceRequirement + */ + guest: number; +} + +/** + * Check if a given object implements the V1beta1CPUPreferenceRequirement interface. + */ +export function instanceOfV1beta1CPUPreferenceRequirement(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "guest" in value; + + return isInstance; +} + +export function V1beta1CPUPreferenceRequirementFromJSON(json: any): V1beta1CPUPreferenceRequirement { + return V1beta1CPUPreferenceRequirementFromJSONTyped(json, false); +} + +export function V1beta1CPUPreferenceRequirementFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1CPUPreferenceRequirement { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'guest': json['guest'], + }; +} + +export function V1beta1CPUPreferenceRequirementToJSON(value?: V1beta1CPUPreferenceRequirement | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'guest': value.guest, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1CPUPreferences.ts b/packages/types/src/generated/kubevirt/models/V1beta1CPUPreferences.ts new file mode 100644 index 000000000..41907e31a --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1CPUPreferences.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1CPUFeature } from './V1CPUFeature'; +import { + V1CPUFeatureFromJSON, + V1CPUFeatureFromJSONTyped, + V1CPUFeatureToJSON, +} from './V1CPUFeature'; + +/** + * CPUPreferences contains various optional CPU preferences. + * @export + * @interface V1beta1CPUPreferences + */ +export interface V1beta1CPUPreferences { + /** + * PreferredCPUFeatures optionally defines a slice of preferred CPU features. + * @type {Array} + * @memberof V1beta1CPUPreferences + */ + preferredCPUFeatures?: Array; + /** + * PreferredCPUTopology optionally defines the preferred guest visible CPU topology, defaults to PreferSockets. + * @type {string} + * @memberof V1beta1CPUPreferences + */ + preferredCPUTopology?: string; +} + +/** + * Check if a given object implements the V1beta1CPUPreferences interface. + */ +export function instanceOfV1beta1CPUPreferences(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1beta1CPUPreferencesFromJSON(json: any): V1beta1CPUPreferences { + return V1beta1CPUPreferencesFromJSONTyped(json, false); +} + +export function V1beta1CPUPreferencesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1CPUPreferences { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'preferredCPUFeatures': !exists(json, 'preferredCPUFeatures') ? undefined : ((json['preferredCPUFeatures'] as Array).map(V1CPUFeatureFromJSON)), + 'preferredCPUTopology': !exists(json, 'preferredCPUTopology') ? undefined : json['preferredCPUTopology'], + }; +} + +export function V1beta1CPUPreferencesToJSON(value?: V1beta1CPUPreferences | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'preferredCPUFeatures': value.preferredCPUFeatures === undefined ? undefined : ((value.preferredCPUFeatures as Array).map(V1CPUFeatureToJSON)), + 'preferredCPUTopology': value.preferredCPUTopology, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1ClockPreferences.ts b/packages/types/src/generated/kubevirt/models/V1beta1ClockPreferences.ts new file mode 100644 index 000000000..0d27bdf93 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1ClockPreferences.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1ClockOffset } from './V1ClockOffset'; +import { + V1ClockOffsetFromJSON, + V1ClockOffsetFromJSONTyped, + V1ClockOffsetToJSON, +} from './V1ClockOffset'; +import type { V1Timer } from './V1Timer'; +import { + V1TimerFromJSON, + V1TimerFromJSONTyped, + V1TimerToJSON, +} from './V1Timer'; + +/** + * ClockPreferences contains various optional defaults for Clock. + * @export + * @interface V1beta1ClockPreferences + */ +export interface V1beta1ClockPreferences { + /** + * + * @type {V1ClockOffset} + * @memberof V1beta1ClockPreferences + */ + preferredClockOffset?: V1ClockOffset; + /** + * + * @type {V1Timer} + * @memberof V1beta1ClockPreferences + */ + preferredTimer?: V1Timer; +} + +/** + * Check if a given object implements the V1beta1ClockPreferences interface. + */ +export function instanceOfV1beta1ClockPreferences(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1beta1ClockPreferencesFromJSON(json: any): V1beta1ClockPreferences { + return V1beta1ClockPreferencesFromJSONTyped(json, false); +} + +export function V1beta1ClockPreferencesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1ClockPreferences { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'preferredClockOffset': !exists(json, 'preferredClockOffset') ? undefined : V1ClockOffsetFromJSON(json['preferredClockOffset']), + 'preferredTimer': !exists(json, 'preferredTimer') ? undefined : V1TimerFromJSON(json['preferredTimer']), + }; +} + +export function V1beta1ClockPreferencesToJSON(value?: V1beta1ClockPreferences | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'preferredClockOffset': V1ClockOffsetToJSON(value.preferredClockOffset), + 'preferredTimer': V1TimerToJSON(value.preferredTimer), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeCheckpoint.ts b/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeCheckpoint.ts new file mode 100644 index 000000000..f0ffde726 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeCheckpoint.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * DataVolumeCheckpoint defines a stage in a warm migration. + * @export + * @interface V1beta1DataVolumeCheckpoint + */ +export interface V1beta1DataVolumeCheckpoint { + /** + * Current is the identifier of the snapshot created for this checkpoint. + * @type {string} + * @memberof V1beta1DataVolumeCheckpoint + */ + current: string; + /** + * Previous is the identifier of the snapshot from the previous checkpoint. + * @type {string} + * @memberof V1beta1DataVolumeCheckpoint + */ + previous: string; +} + +/** + * Check if a given object implements the V1beta1DataVolumeCheckpoint interface. + */ +export function instanceOfV1beta1DataVolumeCheckpoint(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "current" in value; + isInstance = isInstance && "previous" in value; + + return isInstance; +} + +export function V1beta1DataVolumeCheckpointFromJSON(json: any): V1beta1DataVolumeCheckpoint { + return V1beta1DataVolumeCheckpointFromJSONTyped(json, false); +} + +export function V1beta1DataVolumeCheckpointFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1DataVolumeCheckpoint { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'current': json['current'], + 'previous': json['previous'], + }; +} + +export function V1beta1DataVolumeCheckpointToJSON(value?: V1beta1DataVolumeCheckpoint | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'current': value.current, + 'previous': value.previous, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSource.ts b/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSource.ts new file mode 100644 index 000000000..115d70385 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSource.ts @@ -0,0 +1,186 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1beta1DataVolumeSourceGCS } from './V1beta1DataVolumeSourceGCS'; +import { + V1beta1DataVolumeSourceGCSFromJSON, + V1beta1DataVolumeSourceGCSFromJSONTyped, + V1beta1DataVolumeSourceGCSToJSON, +} from './V1beta1DataVolumeSourceGCS'; +import type { V1beta1DataVolumeSourceHTTP } from './V1beta1DataVolumeSourceHTTP'; +import { + V1beta1DataVolumeSourceHTTPFromJSON, + V1beta1DataVolumeSourceHTTPFromJSONTyped, + V1beta1DataVolumeSourceHTTPToJSON, +} from './V1beta1DataVolumeSourceHTTP'; +import type { V1beta1DataVolumeSourceImageIO } from './V1beta1DataVolumeSourceImageIO'; +import { + V1beta1DataVolumeSourceImageIOFromJSON, + V1beta1DataVolumeSourceImageIOFromJSONTyped, + V1beta1DataVolumeSourceImageIOToJSON, +} from './V1beta1DataVolumeSourceImageIO'; +import type { V1beta1DataVolumeSourcePVC } from './V1beta1DataVolumeSourcePVC'; +import { + V1beta1DataVolumeSourcePVCFromJSON, + V1beta1DataVolumeSourcePVCFromJSONTyped, + V1beta1DataVolumeSourcePVCToJSON, +} from './V1beta1DataVolumeSourcePVC'; +import type { V1beta1DataVolumeSourceRegistry } from './V1beta1DataVolumeSourceRegistry'; +import { + V1beta1DataVolumeSourceRegistryFromJSON, + V1beta1DataVolumeSourceRegistryFromJSONTyped, + V1beta1DataVolumeSourceRegistryToJSON, +} from './V1beta1DataVolumeSourceRegistry'; +import type { V1beta1DataVolumeSourceS3 } from './V1beta1DataVolumeSourceS3'; +import { + V1beta1DataVolumeSourceS3FromJSON, + V1beta1DataVolumeSourceS3FromJSONTyped, + V1beta1DataVolumeSourceS3ToJSON, +} from './V1beta1DataVolumeSourceS3'; +import type { V1beta1DataVolumeSourceSnapshot } from './V1beta1DataVolumeSourceSnapshot'; +import { + V1beta1DataVolumeSourceSnapshotFromJSON, + V1beta1DataVolumeSourceSnapshotFromJSONTyped, + V1beta1DataVolumeSourceSnapshotToJSON, +} from './V1beta1DataVolumeSourceSnapshot'; +import type { V1beta1DataVolumeSourceVDDK } from './V1beta1DataVolumeSourceVDDK'; +import { + V1beta1DataVolumeSourceVDDKFromJSON, + V1beta1DataVolumeSourceVDDKFromJSONTyped, + V1beta1DataVolumeSourceVDDKToJSON, +} from './V1beta1DataVolumeSourceVDDK'; + +/** + * DataVolumeSource represents the source for our Data Volume, this can be HTTP, Imageio, S3, GCS, Registry or an existing PVC + * @export + * @interface V1beta1DataVolumeSource + */ +export interface V1beta1DataVolumeSource { + /** + * DataVolumeBlankImage provides the parameters to create a new raw blank image for the PVC + * @type {object} + * @memberof V1beta1DataVolumeSource + */ + blank?: object; + /** + * + * @type {V1beta1DataVolumeSourceGCS} + * @memberof V1beta1DataVolumeSource + */ + gcs?: V1beta1DataVolumeSourceGCS; + /** + * + * @type {V1beta1DataVolumeSourceHTTP} + * @memberof V1beta1DataVolumeSource + */ + http?: V1beta1DataVolumeSourceHTTP; + /** + * + * @type {V1beta1DataVolumeSourceImageIO} + * @memberof V1beta1DataVolumeSource + */ + imageio?: V1beta1DataVolumeSourceImageIO; + /** + * + * @type {V1beta1DataVolumeSourcePVC} + * @memberof V1beta1DataVolumeSource + */ + pvc?: V1beta1DataVolumeSourcePVC; + /** + * + * @type {V1beta1DataVolumeSourceRegistry} + * @memberof V1beta1DataVolumeSource + */ + registry?: V1beta1DataVolumeSourceRegistry; + /** + * + * @type {V1beta1DataVolumeSourceS3} + * @memberof V1beta1DataVolumeSource + */ + s3?: V1beta1DataVolumeSourceS3; + /** + * + * @type {V1beta1DataVolumeSourceSnapshot} + * @memberof V1beta1DataVolumeSource + */ + snapshot?: V1beta1DataVolumeSourceSnapshot; + /** + * DataVolumeSourceUpload provides the parameters to create a Data Volume by uploading the source + * @type {object} + * @memberof V1beta1DataVolumeSource + */ + upload?: object; + /** + * + * @type {V1beta1DataVolumeSourceVDDK} + * @memberof V1beta1DataVolumeSource + */ + vddk?: V1beta1DataVolumeSourceVDDK; +} + +/** + * Check if a given object implements the V1beta1DataVolumeSource interface. + */ +export function instanceOfV1beta1DataVolumeSource(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1beta1DataVolumeSourceFromJSON(json: any): V1beta1DataVolumeSource { + return V1beta1DataVolumeSourceFromJSONTyped(json, false); +} + +export function V1beta1DataVolumeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1DataVolumeSource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'blank': !exists(json, 'blank') ? undefined : json['blank'], + 'gcs': !exists(json, 'gcs') ? undefined : V1beta1DataVolumeSourceGCSFromJSON(json['gcs']), + 'http': !exists(json, 'http') ? undefined : V1beta1DataVolumeSourceHTTPFromJSON(json['http']), + 'imageio': !exists(json, 'imageio') ? undefined : V1beta1DataVolumeSourceImageIOFromJSON(json['imageio']), + 'pvc': !exists(json, 'pvc') ? undefined : V1beta1DataVolumeSourcePVCFromJSON(json['pvc']), + 'registry': !exists(json, 'registry') ? undefined : V1beta1DataVolumeSourceRegistryFromJSON(json['registry']), + 's3': !exists(json, 's3') ? undefined : V1beta1DataVolumeSourceS3FromJSON(json['s3']), + 'snapshot': !exists(json, 'snapshot') ? undefined : V1beta1DataVolumeSourceSnapshotFromJSON(json['snapshot']), + 'upload': !exists(json, 'upload') ? undefined : json['upload'], + 'vddk': !exists(json, 'vddk') ? undefined : V1beta1DataVolumeSourceVDDKFromJSON(json['vddk']), + }; +} + +export function V1beta1DataVolumeSourceToJSON(value?: V1beta1DataVolumeSource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'blank': value.blank, + 'gcs': V1beta1DataVolumeSourceGCSToJSON(value.gcs), + 'http': V1beta1DataVolumeSourceHTTPToJSON(value.http), + 'imageio': V1beta1DataVolumeSourceImageIOToJSON(value.imageio), + 'pvc': V1beta1DataVolumeSourcePVCToJSON(value.pvc), + 'registry': V1beta1DataVolumeSourceRegistryToJSON(value.registry), + 's3': V1beta1DataVolumeSourceS3ToJSON(value.s3), + 'snapshot': V1beta1DataVolumeSourceSnapshotToJSON(value.snapshot), + 'upload': value.upload, + 'vddk': V1beta1DataVolumeSourceVDDKToJSON(value.vddk), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceGCS.ts b/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceGCS.ts new file mode 100644 index 000000000..9f8803526 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceGCS.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * DataVolumeSourceGCS provides the parameters to create a Data Volume from an GCS source + * @export + * @interface V1beta1DataVolumeSourceGCS + */ +export interface V1beta1DataVolumeSourceGCS { + /** + * SecretRef provides the secret reference needed to access the GCS source + * @type {string} + * @memberof V1beta1DataVolumeSourceGCS + */ + secretRef?: string; + /** + * URL is the url of the GCS source + * @type {string} + * @memberof V1beta1DataVolumeSourceGCS + */ + url: string; +} + +/** + * Check if a given object implements the V1beta1DataVolumeSourceGCS interface. + */ +export function instanceOfV1beta1DataVolumeSourceGCS(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "url" in value; + + return isInstance; +} + +export function V1beta1DataVolumeSourceGCSFromJSON(json: any): V1beta1DataVolumeSourceGCS { + return V1beta1DataVolumeSourceGCSFromJSONTyped(json, false); +} + +export function V1beta1DataVolumeSourceGCSFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1DataVolumeSourceGCS { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'secretRef': !exists(json, 'secretRef') ? undefined : json['secretRef'], + 'url': json['url'], + }; +} + +export function V1beta1DataVolumeSourceGCSToJSON(value?: V1beta1DataVolumeSourceGCS | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'secretRef': value.secretRef, + 'url': value.url, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceHTTP.ts b/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceHTTP.ts new file mode 100644 index 000000000..c9ea7eb1d --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceHTTP.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * DataVolumeSourceHTTP can be either an http or https endpoint, with an optional basic auth user name and password, and an optional configmap containing additional CAs + * @export + * @interface V1beta1DataVolumeSourceHTTP + */ +export interface V1beta1DataVolumeSourceHTTP { + /** + * CertConfigMap is a configmap reference, containing a Certificate Authority(CA) public key, and a base64 encoded pem certificate + * @type {string} + * @memberof V1beta1DataVolumeSourceHTTP + */ + certConfigMap?: string; + /** + * ExtraHeaders is a list of strings containing extra headers to include with HTTP transfer requests + * @type {Array} + * @memberof V1beta1DataVolumeSourceHTTP + */ + extraHeaders?: Array; + /** + * SecretExtraHeaders is a list of Secret references, each containing an extra HTTP header that may include sensitive information + * @type {Array} + * @memberof V1beta1DataVolumeSourceHTTP + */ + secretExtraHeaders?: Array; + /** + * SecretRef A Secret reference, the secret should contain accessKeyId (user name) base64 encoded, and secretKey (password) also base64 encoded + * @type {string} + * @memberof V1beta1DataVolumeSourceHTTP + */ + secretRef?: string; + /** + * URL is the URL of the http(s) endpoint + * @type {string} + * @memberof V1beta1DataVolumeSourceHTTP + */ + url: string; +} + +/** + * Check if a given object implements the V1beta1DataVolumeSourceHTTP interface. + */ +export function instanceOfV1beta1DataVolumeSourceHTTP(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "url" in value; + + return isInstance; +} + +export function V1beta1DataVolumeSourceHTTPFromJSON(json: any): V1beta1DataVolumeSourceHTTP { + return V1beta1DataVolumeSourceHTTPFromJSONTyped(json, false); +} + +export function V1beta1DataVolumeSourceHTTPFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1DataVolumeSourceHTTP { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'certConfigMap': !exists(json, 'certConfigMap') ? undefined : json['certConfigMap'], + 'extraHeaders': !exists(json, 'extraHeaders') ? undefined : json['extraHeaders'], + 'secretExtraHeaders': !exists(json, 'secretExtraHeaders') ? undefined : json['secretExtraHeaders'], + 'secretRef': !exists(json, 'secretRef') ? undefined : json['secretRef'], + 'url': json['url'], + }; +} + +export function V1beta1DataVolumeSourceHTTPToJSON(value?: V1beta1DataVolumeSourceHTTP | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'certConfigMap': value.certConfigMap, + 'extraHeaders': value.extraHeaders, + 'secretExtraHeaders': value.secretExtraHeaders, + 'secretRef': value.secretRef, + 'url': value.url, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceImageIO.ts b/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceImageIO.ts new file mode 100644 index 000000000..f60e9f6e9 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceImageIO.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * DataVolumeSourceImageIO provides the parameters to create a Data Volume from an imageio source + * @export + * @interface V1beta1DataVolumeSourceImageIO + */ +export interface V1beta1DataVolumeSourceImageIO { + /** + * CertConfigMap provides a reference to the CA cert + * @type {string} + * @memberof V1beta1DataVolumeSourceImageIO + */ + certConfigMap?: string; + /** + * DiskID provides id of a disk to be imported + * @type {string} + * @memberof V1beta1DataVolumeSourceImageIO + */ + diskId: string; + /** + * SecretRef provides the secret reference needed to access the ovirt-engine + * @type {string} + * @memberof V1beta1DataVolumeSourceImageIO + */ + secretRef?: string; + /** + * URL is the URL of the ovirt-engine + * @type {string} + * @memberof V1beta1DataVolumeSourceImageIO + */ + url: string; +} + +/** + * Check if a given object implements the V1beta1DataVolumeSourceImageIO interface. + */ +export function instanceOfV1beta1DataVolumeSourceImageIO(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "diskId" in value; + isInstance = isInstance && "url" in value; + + return isInstance; +} + +export function V1beta1DataVolumeSourceImageIOFromJSON(json: any): V1beta1DataVolumeSourceImageIO { + return V1beta1DataVolumeSourceImageIOFromJSONTyped(json, false); +} + +export function V1beta1DataVolumeSourceImageIOFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1DataVolumeSourceImageIO { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'certConfigMap': !exists(json, 'certConfigMap') ? undefined : json['certConfigMap'], + 'diskId': json['diskId'], + 'secretRef': !exists(json, 'secretRef') ? undefined : json['secretRef'], + 'url': json['url'], + }; +} + +export function V1beta1DataVolumeSourceImageIOToJSON(value?: V1beta1DataVolumeSourceImageIO | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'certConfigMap': value.certConfigMap, + 'diskId': value.diskId, + 'secretRef': value.secretRef, + 'url': value.url, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourcePVC.ts b/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourcePVC.ts new file mode 100644 index 000000000..f821b1894 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourcePVC.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * DataVolumeSourcePVC provides the parameters to create a Data Volume from an existing PVC + * @export + * @interface V1beta1DataVolumeSourcePVC + */ +export interface V1beta1DataVolumeSourcePVC { + /** + * The name of the source PVC + * @type {string} + * @memberof V1beta1DataVolumeSourcePVC + */ + name: string; + /** + * The namespace of the source PVC + * @type {string} + * @memberof V1beta1DataVolumeSourcePVC + */ + namespace: string; +} + +/** + * Check if a given object implements the V1beta1DataVolumeSourcePVC interface. + */ +export function instanceOfV1beta1DataVolumeSourcePVC(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "namespace" in value; + + return isInstance; +} + +export function V1beta1DataVolumeSourcePVCFromJSON(json: any): V1beta1DataVolumeSourcePVC { + return V1beta1DataVolumeSourcePVCFromJSONTyped(json, false); +} + +export function V1beta1DataVolumeSourcePVCFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1DataVolumeSourcePVC { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + 'namespace': json['namespace'], + }; +} + +export function V1beta1DataVolumeSourcePVCToJSON(value?: V1beta1DataVolumeSourcePVC | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'namespace': value.namespace, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceRef.ts b/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceRef.ts new file mode 100644 index 000000000..b1aef9795 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceRef.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * DataVolumeSourceRef defines an indirect reference to the source of data for the DataVolume + * @export + * @interface V1beta1DataVolumeSourceRef + */ +export interface V1beta1DataVolumeSourceRef { + /** + * The kind of the source reference, currently only "DataSource" is supported + * @type {string} + * @memberof V1beta1DataVolumeSourceRef + */ + kind: string; + /** + * The name of the source reference + * @type {string} + * @memberof V1beta1DataVolumeSourceRef + */ + name: string; + /** + * The namespace of the source reference, defaults to the DataVolume namespace + * @type {string} + * @memberof V1beta1DataVolumeSourceRef + */ + namespace?: string; +} + +/** + * Check if a given object implements the V1beta1DataVolumeSourceRef interface. + */ +export function instanceOfV1beta1DataVolumeSourceRef(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "kind" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function V1beta1DataVolumeSourceRefFromJSON(json: any): V1beta1DataVolumeSourceRef { + return V1beta1DataVolumeSourceRefFromJSONTyped(json, false); +} + +export function V1beta1DataVolumeSourceRefFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1DataVolumeSourceRef { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'kind': json['kind'], + 'name': json['name'], + 'namespace': !exists(json, 'namespace') ? undefined : json['namespace'], + }; +} + +export function V1beta1DataVolumeSourceRefToJSON(value?: V1beta1DataVolumeSourceRef | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'kind': value.kind, + 'name': value.name, + 'namespace': value.namespace, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceRegistry.ts b/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceRegistry.ts new file mode 100644 index 000000000..2d078131a --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceRegistry.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * DataVolumeSourceRegistry provides the parameters to create a Data Volume from an registry source + * @export + * @interface V1beta1DataVolumeSourceRegistry + */ +export interface V1beta1DataVolumeSourceRegistry { + /** + * CertConfigMap provides a reference to the Registry certs + * @type {string} + * @memberof V1beta1DataVolumeSourceRegistry + */ + certConfigMap?: string; + /** + * ImageStream is the name of image stream for import + * @type {string} + * @memberof V1beta1DataVolumeSourceRegistry + */ + imageStream?: string; + /** + * PullMethod can be either "pod" (default import), or "node" (node docker cache based import) + * @type {string} + * @memberof V1beta1DataVolumeSourceRegistry + */ + pullMethod?: string; + /** + * SecretRef provides the secret reference needed to access the Registry source + * @type {string} + * @memberof V1beta1DataVolumeSourceRegistry + */ + secretRef?: string; + /** + * URL is the url of the registry source (starting with the scheme: docker, oci-archive) + * @type {string} + * @memberof V1beta1DataVolumeSourceRegistry + */ + url?: string; +} + +/** + * Check if a given object implements the V1beta1DataVolumeSourceRegistry interface. + */ +export function instanceOfV1beta1DataVolumeSourceRegistry(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1beta1DataVolumeSourceRegistryFromJSON(json: any): V1beta1DataVolumeSourceRegistry { + return V1beta1DataVolumeSourceRegistryFromJSONTyped(json, false); +} + +export function V1beta1DataVolumeSourceRegistryFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1DataVolumeSourceRegistry { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'certConfigMap': !exists(json, 'certConfigMap') ? undefined : json['certConfigMap'], + 'imageStream': !exists(json, 'imageStream') ? undefined : json['imageStream'], + 'pullMethod': !exists(json, 'pullMethod') ? undefined : json['pullMethod'], + 'secretRef': !exists(json, 'secretRef') ? undefined : json['secretRef'], + 'url': !exists(json, 'url') ? undefined : json['url'], + }; +} + +export function V1beta1DataVolumeSourceRegistryToJSON(value?: V1beta1DataVolumeSourceRegistry | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'certConfigMap': value.certConfigMap, + 'imageStream': value.imageStream, + 'pullMethod': value.pullMethod, + 'secretRef': value.secretRef, + 'url': value.url, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceS3.ts b/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceS3.ts new file mode 100644 index 000000000..a4378e750 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceS3.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * DataVolumeSourceS3 provides the parameters to create a Data Volume from an S3 source + * @export + * @interface V1beta1DataVolumeSourceS3 + */ +export interface V1beta1DataVolumeSourceS3 { + /** + * CertConfigMap is a configmap reference, containing a Certificate Authority(CA) public key, and a base64 encoded pem certificate + * @type {string} + * @memberof V1beta1DataVolumeSourceS3 + */ + certConfigMap?: string; + /** + * SecretRef provides the secret reference needed to access the S3 source + * @type {string} + * @memberof V1beta1DataVolumeSourceS3 + */ + secretRef?: string; + /** + * URL is the url of the S3 source + * @type {string} + * @memberof V1beta1DataVolumeSourceS3 + */ + url: string; +} + +/** + * Check if a given object implements the V1beta1DataVolumeSourceS3 interface. + */ +export function instanceOfV1beta1DataVolumeSourceS3(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "url" in value; + + return isInstance; +} + +export function V1beta1DataVolumeSourceS3FromJSON(json: any): V1beta1DataVolumeSourceS3 { + return V1beta1DataVolumeSourceS3FromJSONTyped(json, false); +} + +export function V1beta1DataVolumeSourceS3FromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1DataVolumeSourceS3 { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'certConfigMap': !exists(json, 'certConfigMap') ? undefined : json['certConfigMap'], + 'secretRef': !exists(json, 'secretRef') ? undefined : json['secretRef'], + 'url': json['url'], + }; +} + +export function V1beta1DataVolumeSourceS3ToJSON(value?: V1beta1DataVolumeSourceS3 | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'certConfigMap': value.certConfigMap, + 'secretRef': value.secretRef, + 'url': value.url, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceSnapshot.ts b/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceSnapshot.ts new file mode 100644 index 000000000..aefcd83ae --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceSnapshot.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * DataVolumeSourceSnapshot provides the parameters to create a Data Volume from an existing VolumeSnapshot + * @export + * @interface V1beta1DataVolumeSourceSnapshot + */ +export interface V1beta1DataVolumeSourceSnapshot { + /** + * The name of the source VolumeSnapshot + * @type {string} + * @memberof V1beta1DataVolumeSourceSnapshot + */ + name: string; + /** + * The namespace of the source VolumeSnapshot + * @type {string} + * @memberof V1beta1DataVolumeSourceSnapshot + */ + namespace: string; +} + +/** + * Check if a given object implements the V1beta1DataVolumeSourceSnapshot interface. + */ +export function instanceOfV1beta1DataVolumeSourceSnapshot(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "namespace" in value; + + return isInstance; +} + +export function V1beta1DataVolumeSourceSnapshotFromJSON(json: any): V1beta1DataVolumeSourceSnapshot { + return V1beta1DataVolumeSourceSnapshotFromJSONTyped(json, false); +} + +export function V1beta1DataVolumeSourceSnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1DataVolumeSourceSnapshot { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + 'namespace': json['namespace'], + }; +} + +export function V1beta1DataVolumeSourceSnapshotToJSON(value?: V1beta1DataVolumeSourceSnapshot | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'namespace': value.namespace, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceVDDK.ts b/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceVDDK.ts new file mode 100644 index 000000000..383b48b47 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSourceVDDK.ts @@ -0,0 +1,105 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * DataVolumeSourceVDDK provides the parameters to create a Data Volume from a Vmware source + * @export + * @interface V1beta1DataVolumeSourceVDDK + */ +export interface V1beta1DataVolumeSourceVDDK { + /** + * BackingFile is the path to the virtual hard disk to migrate from vCenter/ESXi + * @type {string} + * @memberof V1beta1DataVolumeSourceVDDK + */ + backingFile?: string; + /** + * InitImageURL is an optional URL to an image containing an extracted VDDK library, overrides v2v-vmware config map + * @type {string} + * @memberof V1beta1DataVolumeSourceVDDK + */ + initImageURL?: string; + /** + * SecretRef provides a reference to a secret containing the username and password needed to access the vCenter or ESXi host + * @type {string} + * @memberof V1beta1DataVolumeSourceVDDK + */ + secretRef?: string; + /** + * Thumbprint is the certificate thumbprint of the vCenter or ESXi host + * @type {string} + * @memberof V1beta1DataVolumeSourceVDDK + */ + thumbprint?: string; + /** + * URL is the URL of the vCenter or ESXi host with the VM to migrate + * @type {string} + * @memberof V1beta1DataVolumeSourceVDDK + */ + url?: string; + /** + * UUID is the UUID of the virtual machine that the backing file is attached to in vCenter/ESXi + * @type {string} + * @memberof V1beta1DataVolumeSourceVDDK + */ + uuid?: string; +} + +/** + * Check if a given object implements the V1beta1DataVolumeSourceVDDK interface. + */ +export function instanceOfV1beta1DataVolumeSourceVDDK(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1beta1DataVolumeSourceVDDKFromJSON(json: any): V1beta1DataVolumeSourceVDDK { + return V1beta1DataVolumeSourceVDDKFromJSONTyped(json, false); +} + +export function V1beta1DataVolumeSourceVDDKFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1DataVolumeSourceVDDK { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'backingFile': !exists(json, 'backingFile') ? undefined : json['backingFile'], + 'initImageURL': !exists(json, 'initImageURL') ? undefined : json['initImageURL'], + 'secretRef': !exists(json, 'secretRef') ? undefined : json['secretRef'], + 'thumbprint': !exists(json, 'thumbprint') ? undefined : json['thumbprint'], + 'url': !exists(json, 'url') ? undefined : json['url'], + 'uuid': !exists(json, 'uuid') ? undefined : json['uuid'], + }; +} + +export function V1beta1DataVolumeSourceVDDKToJSON(value?: V1beta1DataVolumeSourceVDDK | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'backingFile': value.backingFile, + 'initImageURL': value.initImageURL, + 'secretRef': value.secretRef, + 'thumbprint': value.thumbprint, + 'url': value.url, + 'uuid': value.uuid, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSpec.ts b/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSpec.ts new file mode 100644 index 000000000..b77d8e2c0 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1DataVolumeSpec.ts @@ -0,0 +1,160 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1PersistentVolumeClaimSpec } from './K8sIoApiCoreV1PersistentVolumeClaimSpec'; +import { + K8sIoApiCoreV1PersistentVolumeClaimSpecFromJSON, + K8sIoApiCoreV1PersistentVolumeClaimSpecFromJSONTyped, + K8sIoApiCoreV1PersistentVolumeClaimSpecToJSON, +} from './K8sIoApiCoreV1PersistentVolumeClaimSpec'; +import type { V1beta1DataVolumeCheckpoint } from './V1beta1DataVolumeCheckpoint'; +import { + V1beta1DataVolumeCheckpointFromJSON, + V1beta1DataVolumeCheckpointFromJSONTyped, + V1beta1DataVolumeCheckpointToJSON, +} from './V1beta1DataVolumeCheckpoint'; +import type { V1beta1DataVolumeSource } from './V1beta1DataVolumeSource'; +import { + V1beta1DataVolumeSourceFromJSON, + V1beta1DataVolumeSourceFromJSONTyped, + V1beta1DataVolumeSourceToJSON, +} from './V1beta1DataVolumeSource'; +import type { V1beta1DataVolumeSourceRef } from './V1beta1DataVolumeSourceRef'; +import { + V1beta1DataVolumeSourceRefFromJSON, + V1beta1DataVolumeSourceRefFromJSONTyped, + V1beta1DataVolumeSourceRefToJSON, +} from './V1beta1DataVolumeSourceRef'; +import type { V1beta1StorageSpec } from './V1beta1StorageSpec'; +import { + V1beta1StorageSpecFromJSON, + V1beta1StorageSpecFromJSONTyped, + V1beta1StorageSpecToJSON, +} from './V1beta1StorageSpec'; + +/** + * DataVolumeSpec defines the DataVolume type specification + * @export + * @interface V1beta1DataVolumeSpec + */ +export interface V1beta1DataVolumeSpec { + /** + * Checkpoints is a list of DataVolumeCheckpoints, representing stages in a multistage import. + * @type {Array} + * @memberof V1beta1DataVolumeSpec + */ + checkpoints?: Array; + /** + * DataVolumeContentType options: "kubevirt", "archive" + * @type {string} + * @memberof V1beta1DataVolumeSpec + */ + contentType?: string; + /** + * FinalCheckpoint indicates whether the current DataVolumeCheckpoint is the final checkpoint. + * @type {boolean} + * @memberof V1beta1DataVolumeSpec + */ + finalCheckpoint?: boolean; + /** + * Preallocation controls whether storage for DataVolumes should be allocated in advance. + * @type {boolean} + * @memberof V1beta1DataVolumeSpec + */ + preallocation?: boolean; + /** + * PriorityClassName for Importer, Cloner and Uploader pod + * @type {string} + * @memberof V1beta1DataVolumeSpec + */ + priorityClassName?: string; + /** + * + * @type {K8sIoApiCoreV1PersistentVolumeClaimSpec} + * @memberof V1beta1DataVolumeSpec + */ + pvc?: K8sIoApiCoreV1PersistentVolumeClaimSpec; + /** + * + * @type {V1beta1DataVolumeSource} + * @memberof V1beta1DataVolumeSpec + */ + source?: V1beta1DataVolumeSource; + /** + * + * @type {V1beta1DataVolumeSourceRef} + * @memberof V1beta1DataVolumeSpec + */ + sourceRef?: V1beta1DataVolumeSourceRef; + /** + * + * @type {V1beta1StorageSpec} + * @memberof V1beta1DataVolumeSpec + */ + storage?: V1beta1StorageSpec; +} + +/** + * Check if a given object implements the V1beta1DataVolumeSpec interface. + */ +export function instanceOfV1beta1DataVolumeSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1beta1DataVolumeSpecFromJSON(json: any): V1beta1DataVolumeSpec { + return V1beta1DataVolumeSpecFromJSONTyped(json, false); +} + +export function V1beta1DataVolumeSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1DataVolumeSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'checkpoints': !exists(json, 'checkpoints') ? undefined : ((json['checkpoints'] as Array).map(V1beta1DataVolumeCheckpointFromJSON)), + 'contentType': !exists(json, 'contentType') ? undefined : json['contentType'], + 'finalCheckpoint': !exists(json, 'finalCheckpoint') ? undefined : json['finalCheckpoint'], + 'preallocation': !exists(json, 'preallocation') ? undefined : json['preallocation'], + 'priorityClassName': !exists(json, 'priorityClassName') ? undefined : json['priorityClassName'], + 'pvc': !exists(json, 'pvc') ? undefined : K8sIoApiCoreV1PersistentVolumeClaimSpecFromJSON(json['pvc']), + 'source': !exists(json, 'source') ? undefined : V1beta1DataVolumeSourceFromJSON(json['source']), + 'sourceRef': !exists(json, 'sourceRef') ? undefined : V1beta1DataVolumeSourceRefFromJSON(json['sourceRef']), + 'storage': !exists(json, 'storage') ? undefined : V1beta1StorageSpecFromJSON(json['storage']), + }; +} + +export function V1beta1DataVolumeSpecToJSON(value?: V1beta1DataVolumeSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'checkpoints': value.checkpoints === undefined ? undefined : ((value.checkpoints as Array).map(V1beta1DataVolumeCheckpointToJSON)), + 'contentType': value.contentType, + 'finalCheckpoint': value.finalCheckpoint, + 'preallocation': value.preallocation, + 'priorityClassName': value.priorityClassName, + 'pvc': K8sIoApiCoreV1PersistentVolumeClaimSpecToJSON(value.pvc), + 'source': V1beta1DataVolumeSourceToJSON(value.source), + 'sourceRef': V1beta1DataVolumeSourceRefToJSON(value.sourceRef), + 'storage': V1beta1StorageSpecToJSON(value.storage), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1DevicePreferences.ts b/packages/types/src/generated/kubevirt/models/V1beta1DevicePreferences.ts new file mode 100644 index 000000000..2e18cd726 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1DevicePreferences.ts @@ -0,0 +1,268 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1BlockSize } from './V1BlockSize'; +import { + V1BlockSizeFromJSON, + V1BlockSizeFromJSONTyped, + V1BlockSizeToJSON, +} from './V1BlockSize'; +import type { V1TPMDevice } from './V1TPMDevice'; +import { + V1TPMDeviceFromJSON, + V1TPMDeviceFromJSONTyped, + V1TPMDeviceToJSON, +} from './V1TPMDevice'; +import type { V1VGPUOptions } from './V1VGPUOptions'; +import { + V1VGPUOptionsFromJSON, + V1VGPUOptionsFromJSONTyped, + V1VGPUOptionsToJSON, +} from './V1VGPUOptions'; + +/** + * DevicePreferences contains various optional Device preferences. + * @export + * @interface V1beta1DevicePreferences + */ +export interface V1beta1DevicePreferences { + /** + * PreferredAutoattachGraphicsDevice optionally defines the preferred value of AutoattachGraphicsDevice + * @type {boolean} + * @memberof V1beta1DevicePreferences + */ + preferredAutoattachGraphicsDevice?: boolean; + /** + * PreferredAutoattachInputDevice optionally defines the preferred value of AutoattachInputDevice + * @type {boolean} + * @memberof V1beta1DevicePreferences + */ + preferredAutoattachInputDevice?: boolean; + /** + * PreferredAutoattachMemBalloon optionally defines the preferred value of AutoattachMemBalloon + * @type {boolean} + * @memberof V1beta1DevicePreferences + */ + preferredAutoattachMemBalloon?: boolean; + /** + * PreferredAutoattachPodInterface optionally defines the preferred value of AutoattachPodInterface + * @type {boolean} + * @memberof V1beta1DevicePreferences + */ + preferredAutoattachPodInterface?: boolean; + /** + * PreferredAutoattachSerialConsole optionally defines the preferred value of AutoattachSerialConsole + * @type {boolean} + * @memberof V1beta1DevicePreferences + */ + preferredAutoattachSerialConsole?: boolean; + /** + * PreferredBlockMultiQueue optionally enables the vhost multiqueue feature for virtio disks. + * @type {boolean} + * @memberof V1beta1DevicePreferences + */ + preferredBlockMultiQueue?: boolean; + /** + * PreferredCdromBus optionally defines the preferred bus for Cdrom Disk devices. + * @type {string} + * @memberof V1beta1DevicePreferences + */ + preferredCdromBus?: string; + /** + * PreferredDisableHotplug optionally defines the preferred value of DisableHotplug + * @type {boolean} + * @memberof V1beta1DevicePreferences + */ + preferredDisableHotplug?: boolean; + /** + * + * @type {V1BlockSize} + * @memberof V1beta1DevicePreferences + */ + preferredDiskBlockSize?: V1BlockSize; + /** + * PreferredDiskBus optionally defines the preferred bus for Disk Disk devices. + * @type {string} + * @memberof V1beta1DevicePreferences + */ + preferredDiskBus?: string; + /** + * PreferredCache optionally defines the DriverCache to be used by Disk devices. + * @type {string} + * @memberof V1beta1DevicePreferences + */ + preferredDiskCache?: string; + /** + * PreferredDedicatedIoThread optionally enables dedicated IO threads for Disk devices. + * @type {boolean} + * @memberof V1beta1DevicePreferences + */ + preferredDiskDedicatedIoThread?: boolean; + /** + * PreferredIo optionally defines the QEMU disk IO mode to be used by Disk devices. + * @type {string} + * @memberof V1beta1DevicePreferences + */ + preferredDiskIO?: string; + /** + * PreferredInputBus optionally defines the preferred bus for Input devices. + * @type {string} + * @memberof V1beta1DevicePreferences + */ + preferredInputBus?: string; + /** + * PreferredInputType optionally defines the preferred type for Input devices. + * @type {string} + * @memberof V1beta1DevicePreferences + */ + preferredInputType?: string; + /** + * InterfaceMasquerade connects to a given network using netfilter rules to nat the traffic. + * @type {object} + * @memberof V1beta1DevicePreferences + */ + preferredInterfaceMasquerade?: object; + /** + * PreferredInterfaceModel optionally defines the preferred model to be used by Interface devices. + * @type {string} + * @memberof V1beta1DevicePreferences + */ + preferredInterfaceModel?: string; + /** + * PreferredLunBus optionally defines the preferred bus for Lun Disk devices. + * @type {string} + * @memberof V1beta1DevicePreferences + */ + preferredLunBus?: string; + /** + * PreferredNetworkInterfaceMultiQueue optionally enables the vhost multiqueue feature for virtio interfaces. + * @type {boolean} + * @memberof V1beta1DevicePreferences + */ + preferredNetworkInterfaceMultiQueue?: boolean; + /** + * Rng represents the random device passed from host + * @type {object} + * @memberof V1beta1DevicePreferences + */ + preferredRng?: object; + /** + * PreferredSoundModel optionally defines the preferred model for Sound devices. + * @type {string} + * @memberof V1beta1DevicePreferences + */ + preferredSoundModel?: string; + /** + * + * @type {V1TPMDevice} + * @memberof V1beta1DevicePreferences + */ + preferredTPM?: V1TPMDevice; + /** + * PreferredUseVirtioTransitional optionally defines the preferred value of UseVirtioTransitional + * @type {boolean} + * @memberof V1beta1DevicePreferences + */ + preferredUseVirtioTransitional?: boolean; + /** + * + * @type {V1VGPUOptions} + * @memberof V1beta1DevicePreferences + */ + preferredVirtualGPUOptions?: V1VGPUOptions; +} + +/** + * Check if a given object implements the V1beta1DevicePreferences interface. + */ +export function instanceOfV1beta1DevicePreferences(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1beta1DevicePreferencesFromJSON(json: any): V1beta1DevicePreferences { + return V1beta1DevicePreferencesFromJSONTyped(json, false); +} + +export function V1beta1DevicePreferencesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1DevicePreferences { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'preferredAutoattachGraphicsDevice': !exists(json, 'preferredAutoattachGraphicsDevice') ? undefined : json['preferredAutoattachGraphicsDevice'], + 'preferredAutoattachInputDevice': !exists(json, 'preferredAutoattachInputDevice') ? undefined : json['preferredAutoattachInputDevice'], + 'preferredAutoattachMemBalloon': !exists(json, 'preferredAutoattachMemBalloon') ? undefined : json['preferredAutoattachMemBalloon'], + 'preferredAutoattachPodInterface': !exists(json, 'preferredAutoattachPodInterface') ? undefined : json['preferredAutoattachPodInterface'], + 'preferredAutoattachSerialConsole': !exists(json, 'preferredAutoattachSerialConsole') ? undefined : json['preferredAutoattachSerialConsole'], + 'preferredBlockMultiQueue': !exists(json, 'preferredBlockMultiQueue') ? undefined : json['preferredBlockMultiQueue'], + 'preferredCdromBus': !exists(json, 'preferredCdromBus') ? undefined : json['preferredCdromBus'], + 'preferredDisableHotplug': !exists(json, 'preferredDisableHotplug') ? undefined : json['preferredDisableHotplug'], + 'preferredDiskBlockSize': !exists(json, 'preferredDiskBlockSize') ? undefined : V1BlockSizeFromJSON(json['preferredDiskBlockSize']), + 'preferredDiskBus': !exists(json, 'preferredDiskBus') ? undefined : json['preferredDiskBus'], + 'preferredDiskCache': !exists(json, 'preferredDiskCache') ? undefined : json['preferredDiskCache'], + 'preferredDiskDedicatedIoThread': !exists(json, 'preferredDiskDedicatedIoThread') ? undefined : json['preferredDiskDedicatedIoThread'], + 'preferredDiskIO': !exists(json, 'preferredDiskIO') ? undefined : json['preferredDiskIO'], + 'preferredInputBus': !exists(json, 'preferredInputBus') ? undefined : json['preferredInputBus'], + 'preferredInputType': !exists(json, 'preferredInputType') ? undefined : json['preferredInputType'], + 'preferredInterfaceMasquerade': !exists(json, 'preferredInterfaceMasquerade') ? undefined : json['preferredInterfaceMasquerade'], + 'preferredInterfaceModel': !exists(json, 'preferredInterfaceModel') ? undefined : json['preferredInterfaceModel'], + 'preferredLunBus': !exists(json, 'preferredLunBus') ? undefined : json['preferredLunBus'], + 'preferredNetworkInterfaceMultiQueue': !exists(json, 'preferredNetworkInterfaceMultiQueue') ? undefined : json['preferredNetworkInterfaceMultiQueue'], + 'preferredRng': !exists(json, 'preferredRng') ? undefined : json['preferredRng'], + 'preferredSoundModel': !exists(json, 'preferredSoundModel') ? undefined : json['preferredSoundModel'], + 'preferredTPM': !exists(json, 'preferredTPM') ? undefined : V1TPMDeviceFromJSON(json['preferredTPM']), + 'preferredUseVirtioTransitional': !exists(json, 'preferredUseVirtioTransitional') ? undefined : json['preferredUseVirtioTransitional'], + 'preferredVirtualGPUOptions': !exists(json, 'preferredVirtualGPUOptions') ? undefined : V1VGPUOptionsFromJSON(json['preferredVirtualGPUOptions']), + }; +} + +export function V1beta1DevicePreferencesToJSON(value?: V1beta1DevicePreferences | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'preferredAutoattachGraphicsDevice': value.preferredAutoattachGraphicsDevice, + 'preferredAutoattachInputDevice': value.preferredAutoattachInputDevice, + 'preferredAutoattachMemBalloon': value.preferredAutoattachMemBalloon, + 'preferredAutoattachPodInterface': value.preferredAutoattachPodInterface, + 'preferredAutoattachSerialConsole': value.preferredAutoattachSerialConsole, + 'preferredBlockMultiQueue': value.preferredBlockMultiQueue, + 'preferredCdromBus': value.preferredCdromBus, + 'preferredDisableHotplug': value.preferredDisableHotplug, + 'preferredDiskBlockSize': V1BlockSizeToJSON(value.preferredDiskBlockSize), + 'preferredDiskBus': value.preferredDiskBus, + 'preferredDiskCache': value.preferredDiskCache, + 'preferredDiskDedicatedIoThread': value.preferredDiskDedicatedIoThread, + 'preferredDiskIO': value.preferredDiskIO, + 'preferredInputBus': value.preferredInputBus, + 'preferredInputType': value.preferredInputType, + 'preferredInterfaceMasquerade': value.preferredInterfaceMasquerade, + 'preferredInterfaceModel': value.preferredInterfaceModel, + 'preferredLunBus': value.preferredLunBus, + 'preferredNetworkInterfaceMultiQueue': value.preferredNetworkInterfaceMultiQueue, + 'preferredRng': value.preferredRng, + 'preferredSoundModel': value.preferredSoundModel, + 'preferredTPM': V1TPMDeviceToJSON(value.preferredTPM), + 'preferredUseVirtioTransitional': value.preferredUseVirtioTransitional, + 'preferredVirtualGPUOptions': V1VGPUOptionsToJSON(value.preferredVirtualGPUOptions), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1FeaturePreferences.ts b/packages/types/src/generated/kubevirt/models/V1beta1FeaturePreferences.ts new file mode 100644 index 000000000..0d971ead0 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1FeaturePreferences.ts @@ -0,0 +1,130 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1FeatureAPIC } from './V1FeatureAPIC'; +import { + V1FeatureAPICFromJSON, + V1FeatureAPICFromJSONTyped, + V1FeatureAPICToJSON, +} from './V1FeatureAPIC'; +import type { V1FeatureHyperv } from './V1FeatureHyperv'; +import { + V1FeatureHypervFromJSON, + V1FeatureHypervFromJSONTyped, + V1FeatureHypervToJSON, +} from './V1FeatureHyperv'; +import type { V1FeatureKVM } from './V1FeatureKVM'; +import { + V1FeatureKVMFromJSON, + V1FeatureKVMFromJSONTyped, + V1FeatureKVMToJSON, +} from './V1FeatureKVM'; +import type { V1FeatureState } from './V1FeatureState'; +import { + V1FeatureStateFromJSON, + V1FeatureStateFromJSONTyped, + V1FeatureStateToJSON, +} from './V1FeatureState'; + +/** + * FeaturePreferences contains various optional defaults for Features. + * @export + * @interface V1beta1FeaturePreferences + */ +export interface V1beta1FeaturePreferences { + /** + * + * @type {V1FeatureState} + * @memberof V1beta1FeaturePreferences + */ + preferredAcpi?: V1FeatureState; + /** + * + * @type {V1FeatureAPIC} + * @memberof V1beta1FeaturePreferences + */ + preferredApic?: V1FeatureAPIC; + /** + * + * @type {V1FeatureHyperv} + * @memberof V1beta1FeaturePreferences + */ + preferredHyperv?: V1FeatureHyperv; + /** + * + * @type {V1FeatureKVM} + * @memberof V1beta1FeaturePreferences + */ + preferredKvm?: V1FeatureKVM; + /** + * + * @type {V1FeatureState} + * @memberof V1beta1FeaturePreferences + */ + preferredPvspinlock?: V1FeatureState; + /** + * + * @type {V1FeatureState} + * @memberof V1beta1FeaturePreferences + */ + preferredSmm?: V1FeatureState; +} + +/** + * Check if a given object implements the V1beta1FeaturePreferences interface. + */ +export function instanceOfV1beta1FeaturePreferences(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1beta1FeaturePreferencesFromJSON(json: any): V1beta1FeaturePreferences { + return V1beta1FeaturePreferencesFromJSONTyped(json, false); +} + +export function V1beta1FeaturePreferencesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1FeaturePreferences { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'preferredAcpi': !exists(json, 'preferredAcpi') ? undefined : V1FeatureStateFromJSON(json['preferredAcpi']), + 'preferredApic': !exists(json, 'preferredApic') ? undefined : V1FeatureAPICFromJSON(json['preferredApic']), + 'preferredHyperv': !exists(json, 'preferredHyperv') ? undefined : V1FeatureHypervFromJSON(json['preferredHyperv']), + 'preferredKvm': !exists(json, 'preferredKvm') ? undefined : V1FeatureKVMFromJSON(json['preferredKvm']), + 'preferredPvspinlock': !exists(json, 'preferredPvspinlock') ? undefined : V1FeatureStateFromJSON(json['preferredPvspinlock']), + 'preferredSmm': !exists(json, 'preferredSmm') ? undefined : V1FeatureStateFromJSON(json['preferredSmm']), + }; +} + +export function V1beta1FeaturePreferencesToJSON(value?: V1beta1FeaturePreferences | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'preferredAcpi': V1FeatureStateToJSON(value.preferredAcpi), + 'preferredApic': V1FeatureAPICToJSON(value.preferredApic), + 'preferredHyperv': V1FeatureHypervToJSON(value.preferredHyperv), + 'preferredKvm': V1FeatureKVMToJSON(value.preferredKvm), + 'preferredPvspinlock': V1FeatureStateToJSON(value.preferredPvspinlock), + 'preferredSmm': V1FeatureStateToJSON(value.preferredSmm), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1FirmwarePreferences.ts b/packages/types/src/generated/kubevirt/models/V1beta1FirmwarePreferences.ts new file mode 100644 index 000000000..918f1ad82 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1FirmwarePreferences.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * FirmwarePreferences contains various optional defaults for Firmware. + * @export + * @interface V1beta1FirmwarePreferences + */ +export interface V1beta1FirmwarePreferences { + /** + * PreferredUseBios optionally enables BIOS + * @type {boolean} + * @memberof V1beta1FirmwarePreferences + */ + preferredUseBios?: boolean; + /** + * PreferredUseBiosSerial optionally transmitts BIOS output over the serial. + * + * Requires PreferredUseBios to be enabled. + * @type {boolean} + * @memberof V1beta1FirmwarePreferences + */ + preferredUseBiosSerial?: boolean; + /** + * PreferredUseEfi optionally enables EFI + * @type {boolean} + * @memberof V1beta1FirmwarePreferences + */ + preferredUseEfi?: boolean; + /** + * PreferredUseSecureBoot optionally enables SecureBoot and the OVMF roms will be swapped for SecureBoot-enabled ones. + * + * Requires PreferredUseEfi and PreferredSmm to be enabled. + * @type {boolean} + * @memberof V1beta1FirmwarePreferences + */ + preferredUseSecureBoot?: boolean; +} + +/** + * Check if a given object implements the V1beta1FirmwarePreferences interface. + */ +export function instanceOfV1beta1FirmwarePreferences(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1beta1FirmwarePreferencesFromJSON(json: any): V1beta1FirmwarePreferences { + return V1beta1FirmwarePreferencesFromJSONTyped(json, false); +} + +export function V1beta1FirmwarePreferencesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1FirmwarePreferences { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'preferredUseBios': !exists(json, 'preferredUseBios') ? undefined : json['preferredUseBios'], + 'preferredUseBiosSerial': !exists(json, 'preferredUseBiosSerial') ? undefined : json['preferredUseBiosSerial'], + 'preferredUseEfi': !exists(json, 'preferredUseEfi') ? undefined : json['preferredUseEfi'], + 'preferredUseSecureBoot': !exists(json, 'preferredUseSecureBoot') ? undefined : json['preferredUseSecureBoot'], + }; +} + +export function V1beta1FirmwarePreferencesToJSON(value?: V1beta1FirmwarePreferences | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'preferredUseBios': value.preferredUseBios, + 'preferredUseBiosSerial': value.preferredUseBiosSerial, + 'preferredUseEfi': value.preferredUseEfi, + 'preferredUseSecureBoot': value.preferredUseSecureBoot, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1MachinePreferences.ts b/packages/types/src/generated/kubevirt/models/V1beta1MachinePreferences.ts new file mode 100644 index 000000000..09087a605 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1MachinePreferences.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * MachinePreferences contains various optional defaults for Machine. + * @export + * @interface V1beta1MachinePreferences + */ +export interface V1beta1MachinePreferences { + /** + * PreferredMachineType optionally defines the preferred machine type to use. + * @type {string} + * @memberof V1beta1MachinePreferences + */ + preferredMachineType?: string; +} + +/** + * Check if a given object implements the V1beta1MachinePreferences interface. + */ +export function instanceOfV1beta1MachinePreferences(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1beta1MachinePreferencesFromJSON(json: any): V1beta1MachinePreferences { + return V1beta1MachinePreferencesFromJSONTyped(json, false); +} + +export function V1beta1MachinePreferencesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1MachinePreferences { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'preferredMachineType': !exists(json, 'preferredMachineType') ? undefined : json['preferredMachineType'], + }; +} + +export function V1beta1MachinePreferencesToJSON(value?: V1beta1MachinePreferences | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'preferredMachineType': value.preferredMachineType, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1MemoryInstancetype.ts b/packages/types/src/generated/kubevirt/models/V1beta1MemoryInstancetype.ts new file mode 100644 index 000000000..ecdcfa86e --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1MemoryInstancetype.ts @@ -0,0 +1,127 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1Hugepages } from './V1Hugepages'; +import { + V1HugepagesFromJSON, + V1HugepagesFromJSONTyped, + V1HugepagesToJSON, +} from './V1Hugepages'; + +/** + * MemoryInstancetype contains the Memory related configuration of a given VirtualMachineInstancetypeSpec. + * + * Guest is a required attribute and defines the amount of RAM to be exposed to the guest by the instancetype. + * @export + * @interface V1beta1MemoryInstancetype + */ +export interface V1beta1MemoryInstancetype { + /** + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + * + * The serialization format is: + * + * ``` ::= + * + * (Note that may be empty, from the "" case in .) + * + * ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + * + * (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + * + * ::= m | "" | k | M | G | T | P | E + * + * (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + * + * ::= "e" | "E" ``` + * + * No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + * + * When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + * + * Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + * + * - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. + * + * The sign will be omitted unless the number is negative. + * + * Examples: + * + * - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" + * + * Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + * + * Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + * + * This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + * @type {string} + * @memberof V1beta1MemoryInstancetype + */ + guest: string; + /** + * + * @type {V1Hugepages} + * @memberof V1beta1MemoryInstancetype + */ + hugepages?: V1Hugepages; + /** + * OvercommitPercent is the percentage of the guest memory which will be overcommitted. This means that the VMIs parent pod (virt-launcher) will request less physical memory by a factor specified by the OvercommitPercent. Overcommits can lead to memory exhaustion, which in turn can lead to crashes. Use carefully. Defaults to 0 + * @type {number} + * @memberof V1beta1MemoryInstancetype + */ + overcommitPercent?: number; +} + +/** + * Check if a given object implements the V1beta1MemoryInstancetype interface. + */ +export function instanceOfV1beta1MemoryInstancetype(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "guest" in value; + + return isInstance; +} + +export function V1beta1MemoryInstancetypeFromJSON(json: any): V1beta1MemoryInstancetype { + return V1beta1MemoryInstancetypeFromJSONTyped(json, false); +} + +export function V1beta1MemoryInstancetypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1MemoryInstancetype { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'guest': json['guest'], + 'hugepages': !exists(json, 'hugepages') ? undefined : V1HugepagesFromJSON(json['hugepages']), + 'overcommitPercent': !exists(json, 'overcommitPercent') ? undefined : json['overcommitPercent'], + }; +} + +export function V1beta1MemoryInstancetypeToJSON(value?: V1beta1MemoryInstancetype | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'guest': value.guest, + 'hugepages': V1HugepagesToJSON(value.hugepages), + 'overcommitPercent': value.overcommitPercent, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1MemoryPreferenceRequirement.ts b/packages/types/src/generated/kubevirt/models/V1beta1MemoryPreferenceRequirement.ts new file mode 100644 index 000000000..33479f8e7 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1MemoryPreferenceRequirement.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1beta1MemoryPreferenceRequirement + */ +export interface V1beta1MemoryPreferenceRequirement { + /** + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + * + * The serialization format is: + * + * ``` ::= + * + * (Note that may be empty, from the "" case in .) + * + * ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + * + * (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + * + * ::= m | "" | k | M | G | T | P | E + * + * (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + * + * ::= "e" | "E" ``` + * + * No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + * + * When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + * + * Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + * + * - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. + * + * The sign will be omitted unless the number is negative. + * + * Examples: + * + * - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" + * + * Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + * + * Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + * + * This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + * @type {string} + * @memberof V1beta1MemoryPreferenceRequirement + */ + guest: string; +} + +/** + * Check if a given object implements the V1beta1MemoryPreferenceRequirement interface. + */ +export function instanceOfV1beta1MemoryPreferenceRequirement(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "guest" in value; + + return isInstance; +} + +export function V1beta1MemoryPreferenceRequirementFromJSON(json: any): V1beta1MemoryPreferenceRequirement { + return V1beta1MemoryPreferenceRequirementFromJSONTyped(json, false); +} + +export function V1beta1MemoryPreferenceRequirementFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1MemoryPreferenceRequirement { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'guest': json['guest'], + }; +} + +export function V1beta1MemoryPreferenceRequirementToJSON(value?: V1beta1MemoryPreferenceRequirement | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'guest': value.guest, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1PreferenceRequirements.ts b/packages/types/src/generated/kubevirt/models/V1beta1PreferenceRequirements.ts new file mode 100644 index 000000000..877986a6f --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1PreferenceRequirements.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1beta1CPUPreferenceRequirement } from './V1beta1CPUPreferenceRequirement'; +import { + V1beta1CPUPreferenceRequirementFromJSON, + V1beta1CPUPreferenceRequirementFromJSONTyped, + V1beta1CPUPreferenceRequirementToJSON, +} from './V1beta1CPUPreferenceRequirement'; +import type { V1beta1MemoryPreferenceRequirement } from './V1beta1MemoryPreferenceRequirement'; +import { + V1beta1MemoryPreferenceRequirementFromJSON, + V1beta1MemoryPreferenceRequirementFromJSONTyped, + V1beta1MemoryPreferenceRequirementToJSON, +} from './V1beta1MemoryPreferenceRequirement'; + +/** + * + * @export + * @interface V1beta1PreferenceRequirements + */ +export interface V1beta1PreferenceRequirements { + /** + * + * @type {V1beta1CPUPreferenceRequirement} + * @memberof V1beta1PreferenceRequirements + */ + cpu?: V1beta1CPUPreferenceRequirement; + /** + * + * @type {V1beta1MemoryPreferenceRequirement} + * @memberof V1beta1PreferenceRequirements + */ + memory?: V1beta1MemoryPreferenceRequirement; +} + +/** + * Check if a given object implements the V1beta1PreferenceRequirements interface. + */ +export function instanceOfV1beta1PreferenceRequirements(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1beta1PreferenceRequirementsFromJSON(json: any): V1beta1PreferenceRequirements { + return V1beta1PreferenceRequirementsFromJSONTyped(json, false); +} + +export function V1beta1PreferenceRequirementsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1PreferenceRequirements { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'cpu': !exists(json, 'cpu') ? undefined : V1beta1CPUPreferenceRequirementFromJSON(json['cpu']), + 'memory': !exists(json, 'memory') ? undefined : V1beta1MemoryPreferenceRequirementFromJSON(json['memory']), + }; +} + +export function V1beta1PreferenceRequirementsToJSON(value?: V1beta1PreferenceRequirements | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'cpu': V1beta1CPUPreferenceRequirementToJSON(value.cpu), + 'memory': V1beta1MemoryPreferenceRequirementToJSON(value.memory), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1StorageSpec.ts b/packages/types/src/generated/kubevirt/models/V1beta1StorageSpec.ts new file mode 100644 index 000000000..dd604ca75 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1StorageSpec.ts @@ -0,0 +1,161 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApiCoreV1ResourceRequirements } from './K8sIoApiCoreV1ResourceRequirements'; +import { + K8sIoApiCoreV1ResourceRequirementsFromJSON, + K8sIoApiCoreV1ResourceRequirementsFromJSONTyped, + K8sIoApiCoreV1ResourceRequirementsToJSON, +} from './K8sIoApiCoreV1ResourceRequirements'; +import type { K8sIoApiCoreV1TypedLocalObjectReference } from './K8sIoApiCoreV1TypedLocalObjectReference'; +import { + K8sIoApiCoreV1TypedLocalObjectReferenceFromJSON, + K8sIoApiCoreV1TypedLocalObjectReferenceFromJSONTyped, + K8sIoApiCoreV1TypedLocalObjectReferenceToJSON, +} from './K8sIoApiCoreV1TypedLocalObjectReference'; +import type { K8sIoApiCoreV1TypedObjectReference } from './K8sIoApiCoreV1TypedObjectReference'; +import { + K8sIoApiCoreV1TypedObjectReferenceFromJSON, + K8sIoApiCoreV1TypedObjectReferenceFromJSONTyped, + K8sIoApiCoreV1TypedObjectReferenceToJSON, +} from './K8sIoApiCoreV1TypedObjectReference'; +import type { K8sIoApimachineryPkgApisMetaV1LabelSelector } from './K8sIoApimachineryPkgApisMetaV1LabelSelector'; +import { + K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSON, + K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1LabelSelectorToJSON, +} from './K8sIoApimachineryPkgApisMetaV1LabelSelector'; + +/** + * StorageSpec defines the Storage type specification + * @export + * @interface V1beta1StorageSpec + */ +export interface V1beta1StorageSpec { + /** + * AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * @type {Array} + * @memberof V1beta1StorageSpec + */ + accessModes?: Array; + /** + * + * @type {K8sIoApiCoreV1TypedLocalObjectReference} + * @memberof V1beta1StorageSpec + */ + dataSource?: K8sIoApiCoreV1TypedLocalObjectReference; + /** + * + * @type {K8sIoApiCoreV1TypedObjectReference} + * @memberof V1beta1StorageSpec + */ + dataSourceRef?: K8sIoApiCoreV1TypedObjectReference; + /** + * + * @type {K8sIoApiCoreV1ResourceRequirements} + * @memberof V1beta1StorageSpec + */ + resources?: K8sIoApiCoreV1ResourceRequirements; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1LabelSelector} + * @memberof V1beta1StorageSpec + */ + selector?: K8sIoApimachineryPkgApisMetaV1LabelSelector; + /** + * Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + * @type {string} + * @memberof V1beta1StorageSpec + */ + storageClassName?: string; + /** + * volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + * + * Possible enum values: + * - `"Block"` means the volume will not be formatted with a filesystem and will remain a raw block device. + * - `"Filesystem"` means the volume will be or is formatted with a filesystem. + * @type {string} + * @memberof V1beta1StorageSpec + */ + volumeMode?: V1beta1StorageSpecVolumeModeEnum; + /** + * VolumeName is the binding reference to the PersistentVolume backing this claim. + * @type {string} + * @memberof V1beta1StorageSpec + */ + volumeName?: string; +} + + +/** + * @export + */ +export const V1beta1StorageSpecVolumeModeEnum = { + Block: 'Block', + Filesystem: 'Filesystem' +} as const; +export type V1beta1StorageSpecVolumeModeEnum = typeof V1beta1StorageSpecVolumeModeEnum[keyof typeof V1beta1StorageSpecVolumeModeEnum]; + + +/** + * Check if a given object implements the V1beta1StorageSpec interface. + */ +export function instanceOfV1beta1StorageSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1beta1StorageSpecFromJSON(json: any): V1beta1StorageSpec { + return V1beta1StorageSpecFromJSONTyped(json, false); +} + +export function V1beta1StorageSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1StorageSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'accessModes': !exists(json, 'accessModes') ? undefined : json['accessModes'], + 'dataSource': !exists(json, 'dataSource') ? undefined : K8sIoApiCoreV1TypedLocalObjectReferenceFromJSON(json['dataSource']), + 'dataSourceRef': !exists(json, 'dataSourceRef') ? undefined : K8sIoApiCoreV1TypedObjectReferenceFromJSON(json['dataSourceRef']), + 'resources': !exists(json, 'resources') ? undefined : K8sIoApiCoreV1ResourceRequirementsFromJSON(json['resources']), + 'selector': !exists(json, 'selector') ? undefined : K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['selector']), + 'storageClassName': !exists(json, 'storageClassName') ? undefined : json['storageClassName'], + 'volumeMode': !exists(json, 'volumeMode') ? undefined : json['volumeMode'], + 'volumeName': !exists(json, 'volumeName') ? undefined : json['volumeName'], + }; +} + +export function V1beta1StorageSpecToJSON(value?: V1beta1StorageSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'accessModes': value.accessModes, + 'dataSource': K8sIoApiCoreV1TypedLocalObjectReferenceToJSON(value.dataSource), + 'dataSourceRef': K8sIoApiCoreV1TypedObjectReferenceToJSON(value.dataSourceRef), + 'resources': K8sIoApiCoreV1ResourceRequirementsToJSON(value.resources), + 'selector': K8sIoApimachineryPkgApisMetaV1LabelSelectorToJSON(value.selector), + 'storageClassName': value.storageClassName, + 'volumeMode': value.volumeMode, + 'volumeName': value.volumeName, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachineClusterInstancetype.ts b/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachineClusterInstancetype.ts new file mode 100644 index 000000000..a9ea8afe2 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachineClusterInstancetype.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ObjectMeta } from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import type { V1beta1VirtualMachineInstancetypeSpec } from './V1beta1VirtualMachineInstancetypeSpec'; +import { + V1beta1VirtualMachineInstancetypeSpecFromJSON, + V1beta1VirtualMachineInstancetypeSpecFromJSONTyped, + V1beta1VirtualMachineInstancetypeSpecToJSON, +} from './V1beta1VirtualMachineInstancetypeSpec'; + +/** + * VirtualMachineClusterInstancetype is a cluster scoped version of VirtualMachineInstancetype resource. + * @export + * @interface V1beta1VirtualMachineClusterInstancetype + */ +export interface V1beta1VirtualMachineClusterInstancetype { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1beta1VirtualMachineClusterInstancetype + */ + 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 + * @type {string} + * @memberof V1beta1VirtualMachineClusterInstancetype + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ObjectMeta} + * @memberof V1beta1VirtualMachineClusterInstancetype + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {V1beta1VirtualMachineInstancetypeSpec} + * @memberof V1beta1VirtualMachineClusterInstancetype + */ + spec: V1beta1VirtualMachineInstancetypeSpec; +} + +/** + * Check if a given object implements the V1beta1VirtualMachineClusterInstancetype interface. + */ +export function instanceOfV1beta1VirtualMachineClusterInstancetype(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function V1beta1VirtualMachineClusterInstancetypeFromJSON(json: any): V1beta1VirtualMachineClusterInstancetype { + return V1beta1VirtualMachineClusterInstancetypeFromJSONTyped(json, false); +} + +export function V1beta1VirtualMachineClusterInstancetypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1VirtualMachineClusterInstancetype { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': V1beta1VirtualMachineInstancetypeSpecFromJSON(json['spec']), + }; +} + +export function V1beta1VirtualMachineClusterInstancetypeToJSON(value?: V1beta1VirtualMachineClusterInstancetype | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': V1beta1VirtualMachineInstancetypeSpecToJSON(value.spec), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachineClusterInstancetypeList.ts b/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachineClusterInstancetypeList.ts new file mode 100644 index 000000000..9be194665 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachineClusterInstancetypeList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ListMeta } from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ListMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import type { V1beta1VirtualMachineClusterInstancetype } from './V1beta1VirtualMachineClusterInstancetype'; +import { + V1beta1VirtualMachineClusterInstancetypeFromJSON, + V1beta1VirtualMachineClusterInstancetypeFromJSONTyped, + V1beta1VirtualMachineClusterInstancetypeToJSON, +} from './V1beta1VirtualMachineClusterInstancetype'; + +/** + * VirtualMachineClusterInstancetypeList is a list of VirtualMachineClusterInstancetype resources. + * @export + * @interface V1beta1VirtualMachineClusterInstancetypeList + */ +export interface V1beta1VirtualMachineClusterInstancetypeList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1beta1VirtualMachineClusterInstancetypeList + */ + apiVersion?: string; + /** + * + * @type {Array} + * @memberof V1beta1VirtualMachineClusterInstancetypeList + */ + 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 + * @type {string} + * @memberof V1beta1VirtualMachineClusterInstancetypeList + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ListMeta} + * @memberof V1beta1VirtualMachineClusterInstancetypeList + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the V1beta1VirtualMachineClusterInstancetypeList interface. + */ +export function instanceOfV1beta1VirtualMachineClusterInstancetypeList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function V1beta1VirtualMachineClusterInstancetypeListFromJSON(json: any): V1beta1VirtualMachineClusterInstancetypeList { + return V1beta1VirtualMachineClusterInstancetypeListFromJSONTyped(json, false); +} + +export function V1beta1VirtualMachineClusterInstancetypeListFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1VirtualMachineClusterInstancetypeList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(V1beta1VirtualMachineClusterInstancetypeFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function V1beta1VirtualMachineClusterInstancetypeListToJSON(value?: V1beta1VirtualMachineClusterInstancetypeList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(V1beta1VirtualMachineClusterInstancetypeToJSON)), + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachineClusterPreference.ts b/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachineClusterPreference.ts new file mode 100644 index 000000000..ab71376b5 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachineClusterPreference.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ObjectMeta } from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import type { V1beta1VirtualMachinePreferenceSpec } from './V1beta1VirtualMachinePreferenceSpec'; +import { + V1beta1VirtualMachinePreferenceSpecFromJSON, + V1beta1VirtualMachinePreferenceSpecFromJSONTyped, + V1beta1VirtualMachinePreferenceSpecToJSON, +} from './V1beta1VirtualMachinePreferenceSpec'; + +/** + * VirtualMachineClusterPreference is a cluster scoped version of the VirtualMachinePreference resource. + * @export + * @interface V1beta1VirtualMachineClusterPreference + */ +export interface V1beta1VirtualMachineClusterPreference { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1beta1VirtualMachineClusterPreference + */ + 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 + * @type {string} + * @memberof V1beta1VirtualMachineClusterPreference + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ObjectMeta} + * @memberof V1beta1VirtualMachineClusterPreference + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {V1beta1VirtualMachinePreferenceSpec} + * @memberof V1beta1VirtualMachineClusterPreference + */ + spec: V1beta1VirtualMachinePreferenceSpec; +} + +/** + * Check if a given object implements the V1beta1VirtualMachineClusterPreference interface. + */ +export function instanceOfV1beta1VirtualMachineClusterPreference(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function V1beta1VirtualMachineClusterPreferenceFromJSON(json: any): V1beta1VirtualMachineClusterPreference { + return V1beta1VirtualMachineClusterPreferenceFromJSONTyped(json, false); +} + +export function V1beta1VirtualMachineClusterPreferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1VirtualMachineClusterPreference { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': V1beta1VirtualMachinePreferenceSpecFromJSON(json['spec']), + }; +} + +export function V1beta1VirtualMachineClusterPreferenceToJSON(value?: V1beta1VirtualMachineClusterPreference | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': V1beta1VirtualMachinePreferenceSpecToJSON(value.spec), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachineClusterPreferenceList.ts b/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachineClusterPreferenceList.ts new file mode 100644 index 000000000..a704db186 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachineClusterPreferenceList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ListMeta } from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ListMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import type { V1beta1VirtualMachineClusterPreference } from './V1beta1VirtualMachineClusterPreference'; +import { + V1beta1VirtualMachineClusterPreferenceFromJSON, + V1beta1VirtualMachineClusterPreferenceFromJSONTyped, + V1beta1VirtualMachineClusterPreferenceToJSON, +} from './V1beta1VirtualMachineClusterPreference'; + +/** + * VirtualMachineClusterPreferenceList is a list of VirtualMachineClusterPreference resources. + * @export + * @interface V1beta1VirtualMachineClusterPreferenceList + */ +export interface V1beta1VirtualMachineClusterPreferenceList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1beta1VirtualMachineClusterPreferenceList + */ + apiVersion?: string; + /** + * + * @type {Array} + * @memberof V1beta1VirtualMachineClusterPreferenceList + */ + 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 + * @type {string} + * @memberof V1beta1VirtualMachineClusterPreferenceList + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ListMeta} + * @memberof V1beta1VirtualMachineClusterPreferenceList + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the V1beta1VirtualMachineClusterPreferenceList interface. + */ +export function instanceOfV1beta1VirtualMachineClusterPreferenceList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function V1beta1VirtualMachineClusterPreferenceListFromJSON(json: any): V1beta1VirtualMachineClusterPreferenceList { + return V1beta1VirtualMachineClusterPreferenceListFromJSONTyped(json, false); +} + +export function V1beta1VirtualMachineClusterPreferenceListFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1VirtualMachineClusterPreferenceList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(V1beta1VirtualMachineClusterPreferenceFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function V1beta1VirtualMachineClusterPreferenceListToJSON(value?: V1beta1VirtualMachineClusterPreferenceList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(V1beta1VirtualMachineClusterPreferenceToJSON)), + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachineInstancetype.ts b/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachineInstancetype.ts new file mode 100644 index 000000000..afecd6481 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachineInstancetype.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ObjectMeta } from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import type { V1beta1VirtualMachineInstancetypeSpec } from './V1beta1VirtualMachineInstancetypeSpec'; +import { + V1beta1VirtualMachineInstancetypeSpecFromJSON, + V1beta1VirtualMachineInstancetypeSpecFromJSONTyped, + V1beta1VirtualMachineInstancetypeSpecToJSON, +} from './V1beta1VirtualMachineInstancetypeSpec'; + +/** + * VirtualMachineInstancetype resource contains quantitative and resource related VirtualMachine configuration that can be used by multiple VirtualMachine resources. + * @export + * @interface V1beta1VirtualMachineInstancetype + */ +export interface V1beta1VirtualMachineInstancetype { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1beta1VirtualMachineInstancetype + */ + 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 + * @type {string} + * @memberof V1beta1VirtualMachineInstancetype + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ObjectMeta} + * @memberof V1beta1VirtualMachineInstancetype + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {V1beta1VirtualMachineInstancetypeSpec} + * @memberof V1beta1VirtualMachineInstancetype + */ + spec: V1beta1VirtualMachineInstancetypeSpec; +} + +/** + * Check if a given object implements the V1beta1VirtualMachineInstancetype interface. + */ +export function instanceOfV1beta1VirtualMachineInstancetype(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function V1beta1VirtualMachineInstancetypeFromJSON(json: any): V1beta1VirtualMachineInstancetype { + return V1beta1VirtualMachineInstancetypeFromJSONTyped(json, false); +} + +export function V1beta1VirtualMachineInstancetypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1VirtualMachineInstancetype { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': V1beta1VirtualMachineInstancetypeSpecFromJSON(json['spec']), + }; +} + +export function V1beta1VirtualMachineInstancetypeToJSON(value?: V1beta1VirtualMachineInstancetype | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': V1beta1VirtualMachineInstancetypeSpecToJSON(value.spec), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachineInstancetypeList.ts b/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachineInstancetypeList.ts new file mode 100644 index 000000000..8ae3f1728 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachineInstancetypeList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ListMeta } from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ListMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import type { V1beta1VirtualMachineInstancetype } from './V1beta1VirtualMachineInstancetype'; +import { + V1beta1VirtualMachineInstancetypeFromJSON, + V1beta1VirtualMachineInstancetypeFromJSONTyped, + V1beta1VirtualMachineInstancetypeToJSON, +} from './V1beta1VirtualMachineInstancetype'; + +/** + * VirtualMachineInstancetypeList is a list of VirtualMachineInstancetype resources. + * @export + * @interface V1beta1VirtualMachineInstancetypeList + */ +export interface V1beta1VirtualMachineInstancetypeList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1beta1VirtualMachineInstancetypeList + */ + apiVersion?: string; + /** + * + * @type {Array} + * @memberof V1beta1VirtualMachineInstancetypeList + */ + 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 + * @type {string} + * @memberof V1beta1VirtualMachineInstancetypeList + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ListMeta} + * @memberof V1beta1VirtualMachineInstancetypeList + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the V1beta1VirtualMachineInstancetypeList interface. + */ +export function instanceOfV1beta1VirtualMachineInstancetypeList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function V1beta1VirtualMachineInstancetypeListFromJSON(json: any): V1beta1VirtualMachineInstancetypeList { + return V1beta1VirtualMachineInstancetypeListFromJSONTyped(json, false); +} + +export function V1beta1VirtualMachineInstancetypeListFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1VirtualMachineInstancetypeList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(V1beta1VirtualMachineInstancetypeFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function V1beta1VirtualMachineInstancetypeListToJSON(value?: V1beta1VirtualMachineInstancetypeList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(V1beta1VirtualMachineInstancetypeToJSON)), + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachineInstancetypeSpec.ts b/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachineInstancetypeSpec.ts new file mode 100644 index 000000000..3cd7e6961 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachineInstancetypeSpec.ts @@ -0,0 +1,168 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1GPU } from './V1GPU'; +import { + V1GPUFromJSON, + V1GPUFromJSONTyped, + V1GPUToJSON, +} from './V1GPU'; +import type { V1HostDevice } from './V1HostDevice'; +import { + V1HostDeviceFromJSON, + V1HostDeviceFromJSONTyped, + V1HostDeviceToJSON, +} from './V1HostDevice'; +import type { V1LaunchSecurity } from './V1LaunchSecurity'; +import { + V1LaunchSecurityFromJSON, + V1LaunchSecurityFromJSONTyped, + V1LaunchSecurityToJSON, +} from './V1LaunchSecurity'; +import type { V1beta1CPUInstancetype } from './V1beta1CPUInstancetype'; +import { + V1beta1CPUInstancetypeFromJSON, + V1beta1CPUInstancetypeFromJSONTyped, + V1beta1CPUInstancetypeToJSON, +} from './V1beta1CPUInstancetype'; +import type { V1beta1MemoryInstancetype } from './V1beta1MemoryInstancetype'; +import { + V1beta1MemoryInstancetypeFromJSON, + V1beta1MemoryInstancetypeFromJSONTyped, + V1beta1MemoryInstancetypeToJSON, +} from './V1beta1MemoryInstancetype'; + +/** + * VirtualMachineInstancetypeSpec is a description of the VirtualMachineInstancetype or VirtualMachineClusterInstancetype. + * + * CPU and Memory are required attributes with both requiring that their Guest attribute is defined, ensuring a number of vCPUs and amount of RAM is always provided by each instancetype. + * @export + * @interface V1beta1VirtualMachineInstancetypeSpec + */ +export interface V1beta1VirtualMachineInstancetypeSpec { + /** + * Optionally defines the required Annotations to be used by the instance type and applied to the VirtualMachineInstance + * @type {{ [key: string]: string; }} + * @memberof V1beta1VirtualMachineInstancetypeSpec + */ + annotations?: { [key: string]: string; }; + /** + * + * @type {V1beta1CPUInstancetype} + * @memberof V1beta1VirtualMachineInstancetypeSpec + */ + cpu: V1beta1CPUInstancetype; + /** + * Optionally defines any GPU devices associated with the instancetype. + * @type {Array} + * @memberof V1beta1VirtualMachineInstancetypeSpec + */ + gpus?: Array; + /** + * Optionally defines any HostDevices associated with the instancetype. + * @type {Array} + * @memberof V1beta1VirtualMachineInstancetypeSpec + */ + hostDevices?: Array; + /** + * Optionally defines the IOThreadsPolicy to be used by the instancetype. + * @type {string} + * @memberof V1beta1VirtualMachineInstancetypeSpec + */ + ioThreadsPolicy?: string; + /** + * + * @type {V1LaunchSecurity} + * @memberof V1beta1VirtualMachineInstancetypeSpec + */ + launchSecurity?: V1LaunchSecurity; + /** + * + * @type {V1beta1MemoryInstancetype} + * @memberof V1beta1VirtualMachineInstancetypeSpec + */ + memory: V1beta1MemoryInstancetype; + /** + * NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * + * NodeSelector is the name of the custom node selector for the instancetype. + * @type {{ [key: string]: string; }} + * @memberof V1beta1VirtualMachineInstancetypeSpec + */ + nodeSelector?: { [key: string]: string; }; + /** + * If specified, the VMI will be dispatched by specified scheduler. If not specified, the VMI will be dispatched by default scheduler. + * + * SchedulerName is the name of the custom K8s scheduler for the instancetype. + * @type {string} + * @memberof V1beta1VirtualMachineInstancetypeSpec + */ + schedulerName?: string; +} + +/** + * Check if a given object implements the V1beta1VirtualMachineInstancetypeSpec interface. + */ +export function instanceOfV1beta1VirtualMachineInstancetypeSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "cpu" in value; + isInstance = isInstance && "memory" in value; + + return isInstance; +} + +export function V1beta1VirtualMachineInstancetypeSpecFromJSON(json: any): V1beta1VirtualMachineInstancetypeSpec { + return V1beta1VirtualMachineInstancetypeSpecFromJSONTyped(json, false); +} + +export function V1beta1VirtualMachineInstancetypeSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1VirtualMachineInstancetypeSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'annotations': !exists(json, 'annotations') ? undefined : json['annotations'], + 'cpu': V1beta1CPUInstancetypeFromJSON(json['cpu']), + 'gpus': !exists(json, 'gpus') ? undefined : ((json['gpus'] as Array).map(V1GPUFromJSON)), + 'hostDevices': !exists(json, 'hostDevices') ? undefined : ((json['hostDevices'] as Array).map(V1HostDeviceFromJSON)), + 'ioThreadsPolicy': !exists(json, 'ioThreadsPolicy') ? undefined : json['ioThreadsPolicy'], + 'launchSecurity': !exists(json, 'launchSecurity') ? undefined : V1LaunchSecurityFromJSON(json['launchSecurity']), + 'memory': V1beta1MemoryInstancetypeFromJSON(json['memory']), + 'nodeSelector': !exists(json, 'nodeSelector') ? undefined : json['nodeSelector'], + 'schedulerName': !exists(json, 'schedulerName') ? undefined : json['schedulerName'], + }; +} + +export function V1beta1VirtualMachineInstancetypeSpecToJSON(value?: V1beta1VirtualMachineInstancetypeSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'annotations': value.annotations, + 'cpu': V1beta1CPUInstancetypeToJSON(value.cpu), + 'gpus': value.gpus === undefined ? undefined : ((value.gpus as Array).map(V1GPUToJSON)), + 'hostDevices': value.hostDevices === undefined ? undefined : ((value.hostDevices as Array).map(V1HostDeviceToJSON)), + 'ioThreadsPolicy': value.ioThreadsPolicy, + 'launchSecurity': V1LaunchSecurityToJSON(value.launchSecurity), + 'memory': V1beta1MemoryInstancetypeToJSON(value.memory), + 'nodeSelector': value.nodeSelector, + 'schedulerName': value.schedulerName, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachinePreference.ts b/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachinePreference.ts new file mode 100644 index 000000000..ba0fe0b6d --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachinePreference.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ObjectMeta } from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +import type { V1beta1VirtualMachinePreferenceSpec } from './V1beta1VirtualMachinePreferenceSpec'; +import { + V1beta1VirtualMachinePreferenceSpecFromJSON, + V1beta1VirtualMachinePreferenceSpecFromJSONTyped, + V1beta1VirtualMachinePreferenceSpecToJSON, +} from './V1beta1VirtualMachinePreferenceSpec'; + +/** + * VirtualMachinePreference resource contains optional preferences related to the VirtualMachine. + * @export + * @interface V1beta1VirtualMachinePreference + */ +export interface V1beta1VirtualMachinePreference { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1beta1VirtualMachinePreference + */ + 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 + * @type {string} + * @memberof V1beta1VirtualMachinePreference + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ObjectMeta} + * @memberof V1beta1VirtualMachinePreference + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {V1beta1VirtualMachinePreferenceSpec} + * @memberof V1beta1VirtualMachinePreference + */ + spec: V1beta1VirtualMachinePreferenceSpec; +} + +/** + * Check if a given object implements the V1beta1VirtualMachinePreference interface. + */ +export function instanceOfV1beta1VirtualMachinePreference(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spec" in value; + + return isInstance; +} + +export function V1beta1VirtualMachinePreferenceFromJSON(json: any): V1beta1VirtualMachinePreference { + return V1beta1VirtualMachinePreferenceFromJSONTyped(json, false); +} + +export function V1beta1VirtualMachinePreferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1VirtualMachinePreference { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': V1beta1VirtualMachinePreferenceSpecFromJSON(json['spec']), + }; +} + +export function V1beta1VirtualMachinePreferenceToJSON(value?: V1beta1VirtualMachinePreference | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), + 'spec': V1beta1VirtualMachinePreferenceSpecToJSON(value.spec), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachinePreferenceList.ts b/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachinePreferenceList.ts new file mode 100644 index 000000000..ae3e55904 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachinePreferenceList.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { K8sIoApimachineryPkgApisMetaV1ListMeta } from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import { + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON, + K8sIoApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + K8sIoApimachineryPkgApisMetaV1ListMetaToJSON, +} from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +import type { V1beta1VirtualMachinePreference } from './V1beta1VirtualMachinePreference'; +import { + V1beta1VirtualMachinePreferenceFromJSON, + V1beta1VirtualMachinePreferenceFromJSONTyped, + V1beta1VirtualMachinePreferenceToJSON, +} from './V1beta1VirtualMachinePreference'; + +/** + * VirtualMachinePreferenceList is a list of VirtualMachinePreference resources. + * @export + * @interface V1beta1VirtualMachinePreferenceList + */ +export interface V1beta1VirtualMachinePreferenceList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof V1beta1VirtualMachinePreferenceList + */ + apiVersion?: string; + /** + * + * @type {Array} + * @memberof V1beta1VirtualMachinePreferenceList + */ + 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 + * @type {string} + * @memberof V1beta1VirtualMachinePreferenceList + */ + kind?: string; + /** + * + * @type {K8sIoApimachineryPkgApisMetaV1ListMeta} + * @memberof V1beta1VirtualMachinePreferenceList + */ + metadata?: K8sIoApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the V1beta1VirtualMachinePreferenceList interface. + */ +export function instanceOfV1beta1VirtualMachinePreferenceList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "items" in value; + + return isInstance; +} + +export function V1beta1VirtualMachinePreferenceListFromJSON(json: any): V1beta1VirtualMachinePreferenceList { + return V1beta1VirtualMachinePreferenceListFromJSONTyped(json, false); +} + +export function V1beta1VirtualMachinePreferenceListFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1VirtualMachinePreferenceList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(V1beta1VirtualMachinePreferenceFromJSON)), + 'kind': !exists(json, 'kind') ? undefined : json['kind'], + 'metadata': !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function V1beta1VirtualMachinePreferenceListToJSON(value?: V1beta1VirtualMachinePreferenceList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'apiVersion': value.apiVersion, + 'items': ((value.items as Array).map(V1beta1VirtualMachinePreferenceToJSON)), + 'kind': value.kind, + 'metadata': K8sIoApimachineryPkgApisMetaV1ListMetaToJSON(value.metadata), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachinePreferenceSpec.ts b/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachinePreferenceSpec.ts new file mode 100644 index 000000000..357bbc409 --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1VirtualMachinePreferenceSpec.ts @@ -0,0 +1,202 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +import type { V1beta1CPUPreferences } from './V1beta1CPUPreferences'; +import { + V1beta1CPUPreferencesFromJSON, + V1beta1CPUPreferencesFromJSONTyped, + V1beta1CPUPreferencesToJSON, +} from './V1beta1CPUPreferences'; +import type { V1beta1ClockPreferences } from './V1beta1ClockPreferences'; +import { + V1beta1ClockPreferencesFromJSON, + V1beta1ClockPreferencesFromJSONTyped, + V1beta1ClockPreferencesToJSON, +} from './V1beta1ClockPreferences'; +import type { V1beta1DevicePreferences } from './V1beta1DevicePreferences'; +import { + V1beta1DevicePreferencesFromJSON, + V1beta1DevicePreferencesFromJSONTyped, + V1beta1DevicePreferencesToJSON, +} from './V1beta1DevicePreferences'; +import type { V1beta1FeaturePreferences } from './V1beta1FeaturePreferences'; +import { + V1beta1FeaturePreferencesFromJSON, + V1beta1FeaturePreferencesFromJSONTyped, + V1beta1FeaturePreferencesToJSON, +} from './V1beta1FeaturePreferences'; +import type { V1beta1FirmwarePreferences } from './V1beta1FirmwarePreferences'; +import { + V1beta1FirmwarePreferencesFromJSON, + V1beta1FirmwarePreferencesFromJSONTyped, + V1beta1FirmwarePreferencesToJSON, +} from './V1beta1FirmwarePreferences'; +import type { V1beta1MachinePreferences } from './V1beta1MachinePreferences'; +import { + V1beta1MachinePreferencesFromJSON, + V1beta1MachinePreferencesFromJSONTyped, + V1beta1MachinePreferencesToJSON, +} from './V1beta1MachinePreferences'; +import type { V1beta1PreferenceRequirements } from './V1beta1PreferenceRequirements'; +import { + V1beta1PreferenceRequirementsFromJSON, + V1beta1PreferenceRequirementsFromJSONTyped, + V1beta1PreferenceRequirementsToJSON, +} from './V1beta1PreferenceRequirements'; +import type { V1beta1VolumePreferences } from './V1beta1VolumePreferences'; +import { + V1beta1VolumePreferencesFromJSON, + V1beta1VolumePreferencesFromJSONTyped, + V1beta1VolumePreferencesToJSON, +} from './V1beta1VolumePreferences'; + +/** + * VirtualMachinePreferenceSpec is a description of the VirtualMachinePreference or VirtualMachineClusterPreference. + * @export + * @interface V1beta1VirtualMachinePreferenceSpec + */ +export interface V1beta1VirtualMachinePreferenceSpec { + /** + * Optionally defines preferred Annotations to be applied to the VirtualMachineInstance + * @type {{ [key: string]: string; }} + * @memberof V1beta1VirtualMachinePreferenceSpec + */ + annotations?: { [key: string]: string; }; + /** + * + * @type {V1beta1ClockPreferences} + * @memberof V1beta1VirtualMachinePreferenceSpec + */ + clock?: V1beta1ClockPreferences; + /** + * + * @type {V1beta1CPUPreferences} + * @memberof V1beta1VirtualMachinePreferenceSpec + */ + cpu?: V1beta1CPUPreferences; + /** + * + * @type {V1beta1DevicePreferences} + * @memberof V1beta1VirtualMachinePreferenceSpec + */ + devices?: V1beta1DevicePreferences; + /** + * + * @type {V1beta1FeaturePreferences} + * @memberof V1beta1VirtualMachinePreferenceSpec + */ + features?: V1beta1FeaturePreferences; + /** + * + * @type {V1beta1FirmwarePreferences} + * @memberof V1beta1VirtualMachinePreferenceSpec + */ + firmware?: V1beta1FirmwarePreferences; + /** + * + * @type {V1beta1MachinePreferences} + * @memberof V1beta1VirtualMachinePreferenceSpec + */ + machine?: V1beta1MachinePreferences; + /** + * PreferSpreadSocketToCoreRatio defines the ratio to spread vCPUs between cores and sockets, it defaults to 2. + * @type {number} + * @memberof V1beta1VirtualMachinePreferenceSpec + */ + preferSpreadSocketToCoreRatio?: number; + /** + * Subdomain of the VirtualMachineInstance + * @type {string} + * @memberof V1beta1VirtualMachinePreferenceSpec + */ + preferredSubdomain?: string; + /** + * Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. + * @type {number} + * @memberof V1beta1VirtualMachinePreferenceSpec + */ + preferredTerminationGracePeriodSeconds?: number; + /** + * + * @type {V1beta1PreferenceRequirements} + * @memberof V1beta1VirtualMachinePreferenceSpec + */ + requirements?: V1beta1PreferenceRequirements; + /** + * + * @type {V1beta1VolumePreferences} + * @memberof V1beta1VirtualMachinePreferenceSpec + */ + volumes?: V1beta1VolumePreferences; +} + +/** + * Check if a given object implements the V1beta1VirtualMachinePreferenceSpec interface. + */ +export function instanceOfV1beta1VirtualMachinePreferenceSpec(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1beta1VirtualMachinePreferenceSpecFromJSON(json: any): V1beta1VirtualMachinePreferenceSpec { + return V1beta1VirtualMachinePreferenceSpecFromJSONTyped(json, false); +} + +export function V1beta1VirtualMachinePreferenceSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1VirtualMachinePreferenceSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'annotations': !exists(json, 'annotations') ? undefined : json['annotations'], + 'clock': !exists(json, 'clock') ? undefined : V1beta1ClockPreferencesFromJSON(json['clock']), + 'cpu': !exists(json, 'cpu') ? undefined : V1beta1CPUPreferencesFromJSON(json['cpu']), + 'devices': !exists(json, 'devices') ? undefined : V1beta1DevicePreferencesFromJSON(json['devices']), + 'features': !exists(json, 'features') ? undefined : V1beta1FeaturePreferencesFromJSON(json['features']), + 'firmware': !exists(json, 'firmware') ? undefined : V1beta1FirmwarePreferencesFromJSON(json['firmware']), + 'machine': !exists(json, 'machine') ? undefined : V1beta1MachinePreferencesFromJSON(json['machine']), + 'preferSpreadSocketToCoreRatio': !exists(json, 'preferSpreadSocketToCoreRatio') ? undefined : json['preferSpreadSocketToCoreRatio'], + 'preferredSubdomain': !exists(json, 'preferredSubdomain') ? undefined : json['preferredSubdomain'], + 'preferredTerminationGracePeriodSeconds': !exists(json, 'preferredTerminationGracePeriodSeconds') ? undefined : json['preferredTerminationGracePeriodSeconds'], + 'requirements': !exists(json, 'requirements') ? undefined : V1beta1PreferenceRequirementsFromJSON(json['requirements']), + 'volumes': !exists(json, 'volumes') ? undefined : V1beta1VolumePreferencesFromJSON(json['volumes']), + }; +} + +export function V1beta1VirtualMachinePreferenceSpecToJSON(value?: V1beta1VirtualMachinePreferenceSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'annotations': value.annotations, + 'clock': V1beta1ClockPreferencesToJSON(value.clock), + 'cpu': V1beta1CPUPreferencesToJSON(value.cpu), + 'devices': V1beta1DevicePreferencesToJSON(value.devices), + 'features': V1beta1FeaturePreferencesToJSON(value.features), + 'firmware': V1beta1FirmwarePreferencesToJSON(value.firmware), + 'machine': V1beta1MachinePreferencesToJSON(value.machine), + 'preferSpreadSocketToCoreRatio': value.preferSpreadSocketToCoreRatio, + 'preferredSubdomain': value.preferredSubdomain, + 'preferredTerminationGracePeriodSeconds': value.preferredTerminationGracePeriodSeconds, + 'requirements': V1beta1PreferenceRequirementsToJSON(value.requirements), + 'volumes': V1beta1VolumePreferencesToJSON(value.volumes), + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/V1beta1VolumePreferences.ts b/packages/types/src/generated/kubevirt/models/V1beta1VolumePreferences.ts new file mode 100644 index 000000000..3060c2d5e --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/V1beta1VolumePreferences.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt API + * This is KubeVirt API an add-on for Kubernetes. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../../runtime'; +/** + * + * @export + * @interface V1beta1VolumePreferences + */ +export interface V1beta1VolumePreferences { + /** + * PreffereedStorageClassName optionally defines the preferred storageClass + * @type {string} + * @memberof V1beta1VolumePreferences + */ + preferredStorageClassName?: string; +} + +/** + * Check if a given object implements the V1beta1VolumePreferences interface. + */ +export function instanceOfV1beta1VolumePreferences(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function V1beta1VolumePreferencesFromJSON(json: any): V1beta1VolumePreferences { + return V1beta1VolumePreferencesFromJSONTyped(json, false); +} + +export function V1beta1VolumePreferencesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1beta1VolumePreferences { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'preferredStorageClassName': !exists(json, 'preferredStorageClassName') ? undefined : json['preferredStorageClassName'], + }; +} + +export function V1beta1VolumePreferencesToJSON(value?: V1beta1VolumePreferences | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'preferredStorageClassName': value.preferredStorageClassName, + }; +} + diff --git a/packages/types/src/generated/kubevirt/models/index.ts b/packages/types/src/generated/kubevirt/models/index.ts new file mode 100644 index 000000000..fee412a6c --- /dev/null +++ b/packages/types/src/generated/kubevirt/models/index.ts @@ -0,0 +1,331 @@ +/* tslint:disable */ +/* eslint-disable */ +export * from './K8sIoApiCoreV1Affinity'; +export * from './K8sIoApiCoreV1DownwardAPIVolumeFile'; +export * from './K8sIoApiCoreV1ExecAction'; +export * from './K8sIoApiCoreV1HTTPGetAction'; +export * from './K8sIoApiCoreV1HTTPHeader'; +export * from './K8sIoApiCoreV1LocalObjectReference'; +export * from './K8sIoApiCoreV1NodeAffinity'; +export * from './K8sIoApiCoreV1NodeSelector'; +export * from './K8sIoApiCoreV1NodeSelectorRequirement'; +export * from './K8sIoApiCoreV1NodeSelectorTerm'; +export * from './K8sIoApiCoreV1ObjectFieldSelector'; +export * from './K8sIoApiCoreV1PersistentVolumeClaimSpec'; +export * from './K8sIoApiCoreV1PersistentVolumeClaimVolumeSource'; +export * from './K8sIoApiCoreV1PodAffinity'; +export * from './K8sIoApiCoreV1PodAffinityTerm'; +export * from './K8sIoApiCoreV1PodAntiAffinity'; +export * from './K8sIoApiCoreV1PodDNSConfig'; +export * from './K8sIoApiCoreV1PodDNSConfigOption'; +export * from './K8sIoApiCoreV1PreferredSchedulingTerm'; +export * from './K8sIoApiCoreV1ResourceClaim'; +export * from './K8sIoApiCoreV1ResourceFieldSelector'; +export * from './K8sIoApiCoreV1ResourceRequirements'; +export * from './K8sIoApiCoreV1TCPSocketAction'; +export * from './K8sIoApiCoreV1Toleration'; +export * from './K8sIoApiCoreV1TopologySpreadConstraint'; +export * from './K8sIoApiCoreV1TypedLocalObjectReference'; +export * from './K8sIoApiCoreV1TypedObjectReference'; +export * from './K8sIoApiCoreV1WeightedPodAffinityTerm'; +export * from './K8sIoApimachineryPkgApisMetaV1APIGroup'; +export * from './K8sIoApimachineryPkgApisMetaV1APIGroupList'; +export * from './K8sIoApimachineryPkgApisMetaV1APIResource'; +export * from './K8sIoApimachineryPkgApisMetaV1APIResourceList'; +export * from './K8sIoApimachineryPkgApisMetaV1DeleteOptions'; +export * from './K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery'; +export * from './K8sIoApimachineryPkgApisMetaV1LabelSelector'; +export * from './K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement'; +export * from './K8sIoApimachineryPkgApisMetaV1ListMeta'; +export * from './K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry'; +export * from './K8sIoApimachineryPkgApisMetaV1ObjectMeta'; +export * from './K8sIoApimachineryPkgApisMetaV1OwnerReference'; +export * from './K8sIoApimachineryPkgApisMetaV1Preconditions'; +export * from './K8sIoApimachineryPkgApisMetaV1RootPaths'; +export * from './K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR'; +export * from './K8sIoApimachineryPkgApisMetaV1Status'; +export * from './K8sIoApimachineryPkgApisMetaV1StatusCause'; +export * from './K8sIoApimachineryPkgApisMetaV1StatusDetails'; +export * from './K8sIoApimachineryPkgApisMetaV1WatchEvent'; +export * from './V1ACPI'; +export * from './V1AccessCredential'; +export * from './V1AccessCredentialSecretSource'; +export * from './V1AddVolumeOptions'; +export * from './V1ArchConfiguration'; +export * from './V1ArchSpecificConfiguration'; +export * from './V1BIOS'; +export * from './V1BlockSize'; +export * from './V1Bootloader'; +export * from './V1CDRomTarget'; +export * from './V1CPU'; +export * from './V1CPUFeature'; +export * from './V1CPUTopology'; +export * from './V1CertConfig'; +export * from './V1Chassis'; +export * from './V1Clock'; +export * from './V1ClockOffset'; +export * from './V1ClockOffsetUTC'; +export * from './V1CloudInitConfigDriveSource'; +export * from './V1CloudInitNoCloudSource'; +export * from './V1ComponentConfig'; +export * from './V1ConfigMapVolumeSource'; +export * from './V1ContainerDiskInfo'; +export * from './V1ContainerDiskSource'; +export * from './V1CustomBlockSize'; +export * from './V1CustomProfile'; +export * from './V1CustomizeComponents'; +export * from './V1CustomizeComponentsPatch'; +export * from './V1DHCPOptions'; +export * from './V1DHCPPrivateOptions'; +export * from './V1DataVolumeSource'; +export * from './V1DataVolumeTemplateSpec'; +export * from './V1DeveloperConfiguration'; +export * from './V1Devices'; +export * from './V1Disk'; +export * from './V1DiskTarget'; +export * from './V1DiskVerification'; +export * from './V1DomainMemoryDumpInfo'; +export * from './V1DomainSpec'; +export * from './V1DownwardAPIVolumeSource'; +export * from './V1EFI'; +export * from './V1EmptyDiskSource'; +export * from './V1EphemeralVolumeSource'; +export * from './V1FeatureAPIC'; +export * from './V1FeatureHyperv'; +export * from './V1FeatureKVM'; +export * from './V1FeatureSpinlocks'; +export * from './V1FeatureState'; +export * from './V1FeatureVendorID'; +export * from './V1Features'; +export * from './V1Filesystem'; +export * from './V1Firmware'; +export * from './V1Flags'; +export * from './V1FreezeUnfreezeTimeout'; +export * from './V1GPU'; +export * from './V1GenerationStatus'; +export * from './V1GuestAgentCommandInfo'; +export * from './V1HPETTimer'; +export * from './V1HostDevice'; +export * from './V1HostDisk'; +export * from './V1HotplugVolumeSource'; +export * from './V1HotplugVolumeStatus'; +export * from './V1Hugepages'; +export * from './V1HypervTimer'; +export * from './V1I6300ESBWatchdog'; +export * from './V1InitrdInfo'; +export * from './V1Input'; +export * from './V1InstancetypeMatcher'; +export * from './V1Interface'; +export * from './V1InterfaceBindingMigration'; +export * from './V1InterfaceBindingPlugin'; +export * from './V1KSMConfiguration'; +export * from './V1KVMTimer'; +export * from './V1KernelBoot'; +export * from './V1KernelBootContainer'; +export * from './V1KernelBootStatus'; +export * from './V1KernelInfo'; +export * from './V1KubeVirt'; +export * from './V1KubeVirtCertificateRotateStrategy'; +export * from './V1KubeVirtCondition'; +export * from './V1KubeVirtConfiguration'; +export * from './V1KubeVirtList'; +export * from './V1KubeVirtSelfSignConfiguration'; +export * from './V1KubeVirtSpec'; +export * from './V1KubeVirtStatus'; +export * from './V1KubeVirtWorkloadUpdateStrategy'; +export * from './V1LaunchSecurity'; +export * from './V1LiveUpdateConfiguration'; +export * from './V1LogVerbosity'; +export * from './V1LunTarget'; +export * from './V1Machine'; +export * from './V1MediatedDevicesConfiguration'; +export * from './V1MediatedHostDevice'; +export * from './V1Memory'; +export * from './V1MemoryDumpVolumeSource'; +export * from './V1MemoryStatus'; +export * from './V1MigrateOptions'; +export * from './V1MigrationConfiguration'; +export * from './V1MultusNetwork'; +export * from './V1NUMA'; +export * from './V1Network'; +export * from './V1NetworkConfiguration'; +export * from './V1NodeMediatedDeviceTypesConfig'; +export * from './V1NodePlacement'; +export * from './V1PITTimer'; +export * from './V1PauseOptions'; +export * from './V1PciHostDevice'; +export * from './V1PermittedHostDevices'; +export * from './V1PersistentVolumeClaimInfo'; +export * from './V1PersistentVolumeClaimVolumeSource'; +export * from './V1PluginBinding'; +export * from './V1PodNetwork'; +export * from './V1Port'; +export * from './V1PreferenceMatcher'; +export * from './V1Probe'; +export * from './V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation'; +export * from './V1RESTClientConfiguration'; +export * from './V1RTCTimer'; +export * from './V1RateLimiter'; +export * from './V1Realtime'; +export * from './V1ReloadableComponentConfiguration'; +export * from './V1RemoveVolumeOptions'; +export * from './V1ResourceRequirements'; +export * from './V1RestartOptions'; +export * from './V1SEV'; +export * from './V1SEVMeasurementInfo'; +export * from './V1SEVPlatformInfo'; +export * from './V1SEVPolicy'; +export * from './V1SEVSecretOptions'; +export * from './V1SEVSessionOptions'; +export * from './V1SMBiosConfiguration'; +export * from './V1SSHPublicKeyAccessCredential'; +export * from './V1SSHPublicKeyAccessCredentialPropagationMethod'; +export * from './V1SSHPublicKeyAccessCredentialSource'; +export * from './V1SeccompConfiguration'; +export * from './V1SecretVolumeSource'; +export * from './V1ServiceAccountVolumeSource'; +export * from './V1SoundDevice'; +export * from './V1StartOptions'; +export * from './V1StopOptions'; +export * from './V1SupportContainerResources'; +export * from './V1SyNICTimer'; +export * from './V1SysprepSource'; +export * from './V1TLSConfiguration'; +export * from './V1TPMDevice'; +export * from './V1Timer'; +export * from './V1TokenBucketRateLimiter'; +export * from './V1TopologyHints'; +export * from './V1USBHostDevice'; +export * from './V1USBSelector'; +export * from './V1UnpauseOptions'; +export * from './V1UserPasswordAccessCredential'; +export * from './V1UserPasswordAccessCredentialPropagationMethod'; +export * from './V1UserPasswordAccessCredentialSource'; +export * from './V1VGPUDisplayOptions'; +export * from './V1VGPUOptions'; +export * from './V1VirtualMachine'; +export * from './V1VirtualMachineCondition'; +export * from './V1VirtualMachineInstance'; +export * from './V1VirtualMachineInstanceCondition'; +export * from './V1VirtualMachineInstanceFileSystem'; +export * from './V1VirtualMachineInstanceFileSystemDisk'; +export * from './V1VirtualMachineInstanceFileSystemInfo'; +export * from './V1VirtualMachineInstanceFileSystemList'; +export * from './V1VirtualMachineInstanceGuestAgentInfo'; +export * from './V1VirtualMachineInstanceGuestOSInfo'; +export * from './V1VirtualMachineInstanceGuestOSUser'; +export * from './V1VirtualMachineInstanceGuestOSUserList'; +export * from './V1VirtualMachineInstanceList'; +export * from './V1VirtualMachineInstanceMigration'; +export * from './V1VirtualMachineInstanceMigrationCondition'; +export * from './V1VirtualMachineInstanceMigrationList'; +export * from './V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp'; +export * from './V1VirtualMachineInstanceMigrationSpec'; +export * from './V1VirtualMachineInstanceMigrationState'; +export * from './V1VirtualMachineInstanceMigrationStatus'; +export * from './V1VirtualMachineInstanceNetworkInterface'; +export * from './V1VirtualMachineInstancePhaseTransitionTimestamp'; +export * from './V1VirtualMachineInstancePreset'; +export * from './V1VirtualMachineInstancePresetList'; +export * from './V1VirtualMachineInstancePresetSpec'; +export * from './V1VirtualMachineInstanceProfile'; +export * from './V1VirtualMachineInstanceReplicaSet'; +export * from './V1VirtualMachineInstanceReplicaSetCondition'; +export * from './V1VirtualMachineInstanceReplicaSetList'; +export * from './V1VirtualMachineInstanceReplicaSetSpec'; +export * from './V1VirtualMachineInstanceReplicaSetStatus'; +export * from './V1VirtualMachineInstanceSpec'; +export * from './V1VirtualMachineInstanceStatus'; +export * from './V1VirtualMachineInstanceTemplateSpec'; +export * from './V1VirtualMachineList'; +export * from './V1VirtualMachineMemoryDumpRequest'; +export * from './V1VirtualMachineOptions'; +export * from './V1VirtualMachineSpec'; +export * from './V1VirtualMachineStartFailure'; +export * from './V1VirtualMachineStateChangeRequest'; +export * from './V1VirtualMachineStatus'; +export * from './V1VirtualMachineVolumeRequest'; +export * from './V1Volume'; +export * from './V1VolumeSnapshotStatus'; +export * from './V1VolumeStatus'; +export * from './V1Watchdog'; +export * from './V1alpha1Condition'; +export * from './V1alpha1Error'; +export * from './V1alpha1MigrationPolicy'; +export * from './V1alpha1MigrationPolicyList'; +export * from './V1alpha1MigrationPolicySpec'; +export * from './V1alpha1PersistentVolumeClaim'; +export * from './V1alpha1Selectors'; +export * from './V1alpha1SnapshotVolumesLists'; +export * from './V1alpha1SourceSpec'; +export * from './V1alpha1VirtualMachine'; +export * from './V1alpha1VirtualMachineClone'; +export * from './V1alpha1VirtualMachineCloneList'; +export * from './V1alpha1VirtualMachineCloneSpec'; +export * from './V1alpha1VirtualMachineCloneStatus'; +export * from './V1alpha1VirtualMachineCloneTemplateFilters'; +export * from './V1alpha1VirtualMachineExport'; +export * from './V1alpha1VirtualMachineExportLink'; +export * from './V1alpha1VirtualMachineExportLinks'; +export * from './V1alpha1VirtualMachineExportList'; +export * from './V1alpha1VirtualMachineExportManifest'; +export * from './V1alpha1VirtualMachineExportSpec'; +export * from './V1alpha1VirtualMachineExportStatus'; +export * from './V1alpha1VirtualMachineExportVolume'; +export * from './V1alpha1VirtualMachineExportVolumeFormat'; +export * from './V1alpha1VirtualMachinePool'; +export * from './V1alpha1VirtualMachinePoolCondition'; +export * from './V1alpha1VirtualMachinePoolList'; +export * from './V1alpha1VirtualMachinePoolSpec'; +export * from './V1alpha1VirtualMachinePoolStatus'; +export * from './V1alpha1VirtualMachineRestore'; +export * from './V1alpha1VirtualMachineRestoreList'; +export * from './V1alpha1VirtualMachineRestoreSpec'; +export * from './V1alpha1VirtualMachineRestoreStatus'; +export * from './V1alpha1VirtualMachineSnapshot'; +export * from './V1alpha1VirtualMachineSnapshotContent'; +export * from './V1alpha1VirtualMachineSnapshotContentList'; +export * from './V1alpha1VirtualMachineSnapshotContentSpec'; +export * from './V1alpha1VirtualMachineSnapshotContentStatus'; +export * from './V1alpha1VirtualMachineSnapshotList'; +export * from './V1alpha1VirtualMachineSnapshotSpec'; +export * from './V1alpha1VirtualMachineSnapshotStatus'; +export * from './V1alpha1VirtualMachineTemplateSpec'; +export * from './V1alpha1VolumeBackup'; +export * from './V1alpha1VolumeRestore'; +export * from './V1alpha1VolumeSnapshotStatus'; +export * from './V1beta1CPUInstancetype'; +export * from './V1beta1CPUPreferenceRequirement'; +export * from './V1beta1CPUPreferences'; +export * from './V1beta1ClockPreferences'; +export * from './V1beta1DataVolumeCheckpoint'; +export * from './V1beta1DataVolumeSource'; +export * from './V1beta1DataVolumeSourceGCS'; +export * from './V1beta1DataVolumeSourceHTTP'; +export * from './V1beta1DataVolumeSourceImageIO'; +export * from './V1beta1DataVolumeSourcePVC'; +export * from './V1beta1DataVolumeSourceRef'; +export * from './V1beta1DataVolumeSourceRegistry'; +export * from './V1beta1DataVolumeSourceS3'; +export * from './V1beta1DataVolumeSourceSnapshot'; +export * from './V1beta1DataVolumeSourceVDDK'; +export * from './V1beta1DataVolumeSpec'; +export * from './V1beta1DevicePreferences'; +export * from './V1beta1FeaturePreferences'; +export * from './V1beta1FirmwarePreferences'; +export * from './V1beta1MachinePreferences'; +export * from './V1beta1MemoryInstancetype'; +export * from './V1beta1MemoryPreferenceRequirement'; +export * from './V1beta1PreferenceRequirements'; +export * from './V1beta1StorageSpec'; +export * from './V1beta1VirtualMachineClusterInstancetype'; +export * from './V1beta1VirtualMachineClusterInstancetypeList'; +export * from './V1beta1VirtualMachineClusterPreference'; +export * from './V1beta1VirtualMachineClusterPreferenceList'; +export * from './V1beta1VirtualMachineInstancetype'; +export * from './V1beta1VirtualMachineInstancetypeList'; +export * from './V1beta1VirtualMachineInstancetypeSpec'; +export * from './V1beta1VirtualMachinePreference'; +export * from './V1beta1VirtualMachinePreferenceList'; +export * from './V1beta1VirtualMachinePreferenceSpec'; +export * from './V1beta1VolumePreferences'; diff --git a/packages/types/src/generated/kubevirt/swagger.json b/packages/types/src/generated/kubevirt/swagger.json new file mode 100644 index 000000000..3b31f218b --- /dev/null +++ b/packages/types/src/generated/kubevirt/swagger.json @@ -0,0 +1,23408 @@ +{ + "swagger": "2.0", + "info": { + "description": "This is KubeVirt API an add-on for Kubernetes.", + "title": "KubeVirt API", + "contact": { + "name": "kubevirt-dev", + "url": "https://github.com/kubevirt/kubevirt", + "email": "kubevirt-dev@googlegroups.com" + }, + "license": { + "name": "Apache 2.0", + "url": "https://www.apache.org/licenses/LICENSE-2.0" + } + }, + "paths": { + "/": { + "get": { + "description": "Get KubeVirt API root paths", + "produces": [ + "application/json" + ], + "operationId": "getRootPaths", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.RootPaths" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis": { + "get": { + "description": "Get a KubeVirt API GroupList", + "produces": [ + "application/json" + ], + "operationId": "getAPIGroupList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.APIGroupList" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/clone.kubevirt.io/": { + "get": { + "description": "Get a KubeVirt API group", + "produces": [ + "application/json" + ], + "operationId": "getAPIGroup-clone.kubevirt.io", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/clone.kubevirt.io/v1alpha1/": { + "get": { + "description": "Get KubeVirt API Resources", + "produces": [ + "application/json" + ], + "operationId": "getAPIResources-clone.kubevirt.io-v1alpha1", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones": { + "get": { + "description": "Get a list of VirtualMachineClone objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listVirtualMachineClone", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineCloneList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "post": { + "description": "Create a VirtualMachineClone object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "createVirtualMachineClone", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineClone" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineClone" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineClone" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineClone" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a collection of VirtualMachineClone objects.", + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteCollectionVirtualMachineClone", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name}": { + "get": { + "description": "Get a VirtualMachineClone object.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "readVirtualMachineClone", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineClone" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "put": { + "description": "Update a VirtualMachineClone object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "replaceVirtualMachineClone", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineClone" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineClone" + } + }, + "201": { + "description": "Create", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineClone" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a VirtualMachineClone object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteVirtualMachineClone", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "patch": { + "description": "Patch a VirtualMachineClone object.", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json" + ], + "produces": [ + "application/json" + ], + "operationId": "patchVirtualMachineClone", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Patch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineClone" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + } + ] + }, + "/apis/clone.kubevirt.io/v1alpha1/watch/virtualmachineclones": { + "get": { + "description": "Watch a VirtualMachineCloneList object.", + "produces": [ + "application/json" + ], + "operationId": "watchVirtualMachineCloneListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/export.kubevirt.io/": { + "get": { + "description": "Get a KubeVirt API group", + "produces": [ + "application/json" + ], + "operationId": "getAPIGroup-export.kubevirt.io", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/export.kubevirt.io/v1alpha1/": { + "get": { + "description": "Get KubeVirt API Resources", + "produces": [ + "application/json" + ], + "operationId": "getAPIResources-export.kubevirt.io-v1alpha1", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports": { + "get": { + "description": "Get a list of VirtualMachineExport objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listNamespacedVirtualMachineExport", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineExportList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "post": { + "description": "Create a VirtualMachineExport object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "createNamespacedVirtualMachineExport", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineExport" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineExport" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineExport" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineExport" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a collection of VirtualMachineExport objects.", + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteCollectionNamespacedVirtualMachineExport", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports/{name}": { + "get": { + "description": "Get a VirtualMachineExport object.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "readNamespacedVirtualMachineExport", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineExport" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "put": { + "description": "Update a VirtualMachineExport object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "replaceNamespacedVirtualMachineExport", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineExport" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineExport" + } + }, + "201": { + "description": "Create", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineExport" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a VirtualMachineExport object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteNamespacedVirtualMachineExport", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "patch": { + "description": "Patch a VirtualMachineExport object.", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json" + ], + "produces": [ + "application/json" + ], + "operationId": "patchNamespacedVirtualMachineExport", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Patch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineExport" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/export.kubevirt.io/v1alpha1/virtualmachineexports": { + "get": { + "description": "Get a list of all VirtualMachineExport objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listVirtualMachineExportForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineExportList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/export.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachineexports": { + "get": { + "description": "Watch a VirtualMachineExport object.", + "produces": [ + "application/json" + ], + "operationId": "watchNamespacedVirtualMachineExport", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/export.kubevirt.io/v1alpha1/watch/virtualmachineexports": { + "get": { + "description": "Watch a VirtualMachineExportList object.", + "produces": [ + "application/json" + ], + "operationId": "watchVirtualMachineExportListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/instancetype.kubevirt.io/": { + "get": { + "description": "Get a KubeVirt API group", + "produces": [ + "application/json" + ], + "operationId": "getAPIGroup-instancetype.kubevirt.io", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/instancetype.kubevirt.io/v1beta1/": { + "get": { + "description": "Get KubeVirt API Resources", + "produces": [ + "application/json" + ], + "operationId": "getAPIResources-instancetype.kubevirt.io-v1beta1", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes": { + "get": { + "description": "Get a list of VirtualMachineInstancetype objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listNamespacedVirtualMachineInstancetype", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineInstancetypeList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "post": { + "description": "Create a VirtualMachineInstancetype object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "createNamespacedVirtualMachineInstancetype", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineInstancetype" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineInstancetype" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineInstancetype" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineInstancetype" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a collection of VirtualMachineInstancetype objects.", + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteCollectionNamespacedVirtualMachineInstancetype", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name}": { + "get": { + "description": "Get a VirtualMachineInstancetype object.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "readNamespacedVirtualMachineInstancetype", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineInstancetype" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "put": { + "description": "Update a VirtualMachineInstancetype object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "replaceNamespacedVirtualMachineInstancetype", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineInstancetype" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineInstancetype" + } + }, + "201": { + "description": "Create", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineInstancetype" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a VirtualMachineInstancetype object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteNamespacedVirtualMachineInstancetype", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "patch": { + "description": "Patch a VirtualMachineInstancetype object.", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json" + ], + "produces": [ + "application/json" + ], + "operationId": "patchNamespacedVirtualMachineInstancetype", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Patch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineInstancetype" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences": { + "get": { + "description": "Get a list of VirtualMachinePreference objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listNamespacedVirtualMachinePreference", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachinePreferenceList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "post": { + "description": "Create a VirtualMachinePreference object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "createNamespacedVirtualMachinePreference", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachinePreference" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachinePreference" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachinePreference" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachinePreference" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a collection of VirtualMachinePreference objects.", + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteCollectionNamespacedVirtualMachinePreference", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name}": { + "get": { + "description": "Get a VirtualMachinePreference object.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "readNamespacedVirtualMachinePreference", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachinePreference" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "put": { + "description": "Update a VirtualMachinePreference object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "replaceNamespacedVirtualMachinePreference", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachinePreference" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachinePreference" + } + }, + "201": { + "description": "Create", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachinePreference" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a VirtualMachinePreference object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteNamespacedVirtualMachinePreference", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "patch": { + "description": "Patch a VirtualMachinePreference object.", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json" + ], + "produces": [ + "application/json" + ], + "operationId": "patchNamespacedVirtualMachinePreference", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Patch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachinePreference" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes": { + "get": { + "description": "Get a list of VirtualMachineClusterInstancetype objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listVirtualMachineClusterInstancetype", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineClusterInstancetypeList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "post": { + "description": "Create a VirtualMachineClusterInstancetype object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "createVirtualMachineClusterInstancetype", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineClusterInstancetype" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineClusterInstancetype" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineClusterInstancetype" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineClusterInstancetype" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a collection of VirtualMachineClusterInstancetype objects.", + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteCollectionVirtualMachineClusterInstancetype", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name}": { + "get": { + "description": "Get a VirtualMachineClusterInstancetype object.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "readVirtualMachineClusterInstancetype", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineClusterInstancetype" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "put": { + "description": "Update a VirtualMachineClusterInstancetype object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "replaceVirtualMachineClusterInstancetype", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineClusterInstancetype" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineClusterInstancetype" + } + }, + "201": { + "description": "Create", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineClusterInstancetype" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a VirtualMachineClusterInstancetype object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteVirtualMachineClusterInstancetype", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "patch": { + "description": "Patch a VirtualMachineClusterInstancetype object.", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json" + ], + "produces": [ + "application/json" + ], + "operationId": "patchVirtualMachineClusterInstancetype", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Patch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineClusterInstancetype" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + } + ] + }, + "/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences": { + "get": { + "description": "Get a list of VirtualMachineClusterPreference objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listVirtualMachineClusterPreference", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineClusterPreferenceList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "post": { + "description": "Create a VirtualMachineClusterPreference object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "createVirtualMachineClusterPreference", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineClusterPreference" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineClusterPreference" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineClusterPreference" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineClusterPreference" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a collection of VirtualMachineClusterPreference objects.", + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteCollectionVirtualMachineClusterPreference", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name}": { + "get": { + "description": "Get a VirtualMachineClusterPreference object.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "readVirtualMachineClusterPreference", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineClusterPreference" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "put": { + "description": "Update a VirtualMachineClusterPreference object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "replaceVirtualMachineClusterPreference", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineClusterPreference" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineClusterPreference" + } + }, + "201": { + "description": "Create", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineClusterPreference" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a VirtualMachineClusterPreference object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteVirtualMachineClusterPreference", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "patch": { + "description": "Patch a VirtualMachineClusterPreference object.", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json" + ], + "produces": [ + "application/json" + ], + "operationId": "patchVirtualMachineClusterPreference", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Patch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineClusterPreference" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + } + ] + }, + "/apis/instancetype.kubevirt.io/v1beta1/virtualmachineinstancetypes": { + "get": { + "description": "Get a list of all VirtualMachineInstancetype objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listVirtualMachineInstancetypeForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachineInstancetypeList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/instancetype.kubevirt.io/v1beta1/virtualmachinepreferences": { + "get": { + "description": "Get a list of all VirtualMachinePreference objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listVirtualMachinePreferenceForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.VirtualMachinePreferenceList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachineinstancetypes": { + "get": { + "description": "Watch a VirtualMachineInstancetype object.", + "produces": [ + "application/json" + ], + "operationId": "watchNamespacedVirtualMachineInstancetype", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinepreferences": { + "get": { + "description": "Watch a VirtualMachinePreference object.", + "produces": [ + "application/json" + ], + "operationId": "watchNamespacedVirtualMachinePreference", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterinstancetypes": { + "get": { + "description": "Watch a VirtualMachineClusterInstancetypeList object.", + "produces": [ + "application/json" + ], + "operationId": "watchVirtualMachineClusterInstancetypeListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterpreferences": { + "get": { + "description": "Watch a VirtualMachineClusterPreferenceList object.", + "produces": [ + "application/json" + ], + "operationId": "watchVirtualMachineClusterPreferenceListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineinstancetypes": { + "get": { + "description": "Watch a VirtualMachineInstancetypeList object.", + "produces": [ + "application/json" + ], + "operationId": "watchVirtualMachineInstancetypeListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachinepreferences": { + "get": { + "description": "Watch a VirtualMachinePreferenceList object.", + "produces": [ + "application/json" + ], + "operationId": "watchVirtualMachinePreferenceListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/kubevirt.io/": { + "get": { + "description": "Get a KubeVirt API group", + "produces": [ + "application/json" + ], + "operationId": "getAPIGroup-kubevirt.io", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/kubevirt.io/v1/": { + "get": { + "description": "Get KubeVirt API Resources", + "produces": [ + "application/json" + ], + "operationId": "getAPIResources-kubevirt.io-v1", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/kubevirt.io/v1/kubevirt": { + "get": { + "description": "Get a list of all KubeVirt objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listKubeVirtForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.KubeVirtList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt": { + "get": { + "description": "Get a list of KubeVirt objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listNamespacedKubeVirt", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.KubeVirtList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "post": { + "description": "Create a KubeVirt object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "createNamespacedKubeVirt", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.KubeVirt" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.KubeVirt" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.KubeVirt" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.KubeVirt" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a collection of KubeVirt objects.", + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteCollectionNamespacedKubeVirt", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name}": { + "get": { + "description": "Get a KubeVirt object.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "readNamespacedKubeVirt", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.KubeVirt" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "put": { + "description": "Update a KubeVirt object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "replaceNamespacedKubeVirt", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.KubeVirt" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.KubeVirt" + } + }, + "201": { + "description": "Create", + "schema": { + "$ref": "#/definitions/v1.KubeVirt" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a KubeVirt object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteNamespacedKubeVirt", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "patch": { + "description": "Patch a KubeVirt object.", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json" + ], + "produces": [ + "application/json" + ], + "operationId": "patchNamespacedKubeVirt", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Patch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.KubeVirt" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations": { + "get": { + "description": "Get a list of VirtualMachineInstanceMigration objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listNamespacedVirtualMachineInstanceMigration", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceMigrationList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "post": { + "description": "Create a VirtualMachineInstanceMigration object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "createNamespacedVirtualMachineInstanceMigration", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceMigration" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceMigration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceMigration" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceMigration" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a collection of VirtualMachineInstanceMigration objects.", + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteCollectionNamespacedVirtualMachineInstanceMigration", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name}": { + "get": { + "description": "Get a VirtualMachineInstanceMigration object.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "readNamespacedVirtualMachineInstanceMigration", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceMigration" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "put": { + "description": "Update a VirtualMachineInstanceMigration object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "replaceNamespacedVirtualMachineInstanceMigration", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceMigration" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceMigration" + } + }, + "201": { + "description": "Create", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceMigration" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a VirtualMachineInstanceMigration object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteNamespacedVirtualMachineInstanceMigration", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "patch": { + "description": "Patch a VirtualMachineInstanceMigration object.", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json" + ], + "produces": [ + "application/json" + ], + "operationId": "patchNamespacedVirtualMachineInstanceMigration", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Patch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceMigration" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets": { + "get": { + "description": "Get a list of VirtualMachineInstancePreset objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listNamespacedVirtualMachineInstancePreset", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstancePresetList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "post": { + "description": "Create a VirtualMachineInstancePreset object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "createNamespacedVirtualMachineInstancePreset", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstancePreset" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstancePreset" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstancePreset" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstancePreset" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a collection of VirtualMachineInstancePreset objects.", + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteCollectionNamespacedVirtualMachineInstancePreset", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name}": { + "get": { + "description": "Get a VirtualMachineInstancePreset object.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "readNamespacedVirtualMachineInstancePreset", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstancePreset" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "put": { + "description": "Update a VirtualMachineInstancePreset object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "replaceNamespacedVirtualMachineInstancePreset", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstancePreset" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstancePreset" + } + }, + "201": { + "description": "Create", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstancePreset" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a VirtualMachineInstancePreset object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteNamespacedVirtualMachineInstancePreset", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "patch": { + "description": "Patch a VirtualMachineInstancePreset object.", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json" + ], + "produces": [ + "application/json" + ], + "operationId": "patchNamespacedVirtualMachineInstancePreset", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Patch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstancePreset" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets": { + "get": { + "description": "Get a list of VirtualMachineInstanceReplicaSet objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listNamespacedVirtualMachineInstanceReplicaSet", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceReplicaSetList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "post": { + "description": "Create a VirtualMachineInstanceReplicaSet object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "createNamespacedVirtualMachineInstanceReplicaSet", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceReplicaSet" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceReplicaSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceReplicaSet" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceReplicaSet" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a collection of VirtualMachineInstanceReplicaSet objects.", + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteCollectionNamespacedVirtualMachineInstanceReplicaSet", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name}": { + "get": { + "description": "Get a VirtualMachineInstanceReplicaSet object.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "readNamespacedVirtualMachineInstanceReplicaSet", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceReplicaSet" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "put": { + "description": "Update a VirtualMachineInstanceReplicaSet object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "replaceNamespacedVirtualMachineInstanceReplicaSet", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceReplicaSet" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceReplicaSet" + } + }, + "201": { + "description": "Create", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceReplicaSet" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a VirtualMachineInstanceReplicaSet object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteNamespacedVirtualMachineInstanceReplicaSet", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "patch": { + "description": "Patch a VirtualMachineInstanceReplicaSet object.", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json" + ], + "produces": [ + "application/json" + ], + "operationId": "patchNamespacedVirtualMachineInstanceReplicaSet", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Patch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceReplicaSet" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances": { + "get": { + "description": "Get a list of VirtualMachineInstance objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listNamespacedVirtualMachineInstance", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "post": { + "description": "Create a VirtualMachineInstance object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "createNamespacedVirtualMachineInstance", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstance" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstance" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstance" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstance" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a collection of VirtualMachineInstance objects.", + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteCollectionNamespacedVirtualMachineInstance", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}": { + "get": { + "description": "Get a VirtualMachineInstance object.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "readNamespacedVirtualMachineInstance", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstance" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "put": { + "description": "Update a VirtualMachineInstance object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "replaceNamespacedVirtualMachineInstance", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstance" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstance" + } + }, + "201": { + "description": "Create", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstance" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a VirtualMachineInstance object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteNamespacedVirtualMachineInstance", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "patch": { + "description": "Patch a VirtualMachineInstance object.", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json" + ], + "produces": [ + "application/json" + ], + "operationId": "patchNamespacedVirtualMachineInstance", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Patch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstance" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines": { + "get": { + "description": "Get a list of VirtualMachine objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listNamespacedVirtualMachine", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "post": { + "description": "Create a VirtualMachine object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "createNamespacedVirtualMachine", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.VirtualMachine" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachine" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.VirtualMachine" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.VirtualMachine" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a collection of VirtualMachine objects.", + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteCollectionNamespacedVirtualMachine", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}": { + "get": { + "description": "Get a VirtualMachine object.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "readNamespacedVirtualMachine", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachine" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "put": { + "description": "Update a VirtualMachine object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "replaceNamespacedVirtualMachine", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.VirtualMachine" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachine" + } + }, + "201": { + "description": "Create", + "schema": { + "$ref": "#/definitions/v1.VirtualMachine" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a VirtualMachine object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteNamespacedVirtualMachine", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "patch": { + "description": "Patch a VirtualMachine object.", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json" + ], + "produces": [ + "application/json" + ], + "operationId": "patchNamespacedVirtualMachine", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Patch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachine" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/kubevirt.io/v1/virtualmachineinstancemigrations": { + "get": { + "description": "Get a list of all VirtualMachineInstanceMigration objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listVirtualMachineInstanceMigrationForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceMigrationList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/kubevirt.io/v1/virtualmachineinstancepresets": { + "get": { + "description": "Get a list of all VirtualMachineInstancePreset objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listVirtualMachineInstancePresetForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstancePresetList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/kubevirt.io/v1/virtualmachineinstancereplicasets": { + "get": { + "description": "Get a list of all VirtualMachineInstanceReplicaSet objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listVirtualMachineInstanceReplicaSetForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceReplicaSetList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/kubevirt.io/v1/virtualmachineinstances": { + "get": { + "description": "Get a list of all VirtualMachineInstance objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listVirtualMachineInstanceForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/kubevirt.io/v1/virtualmachines": { + "get": { + "description": "Get a list of all VirtualMachine objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listVirtualMachineForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/kubevirt.io/v1/watch/kubevirt": { + "get": { + "description": "Watch a KubeVirtList object.", + "produces": [ + "application/json" + ], + "operationId": "watchKubeVirtListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/kubevirt.io/v1/watch/namespaces/{namespace}/kubevirt": { + "get": { + "description": "Watch a KubeVirt object.", + "produces": [ + "application/json" + ], + "operationId": "watchNamespacedKubeVirt", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancemigrations": { + "get": { + "description": "Watch a VirtualMachineInstanceMigration object.", + "produces": [ + "application/json" + ], + "operationId": "watchNamespacedVirtualMachineInstanceMigration", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancepresets": { + "get": { + "description": "Watch a VirtualMachineInstancePreset object.", + "produces": [ + "application/json" + ], + "operationId": "watchNamespacedVirtualMachineInstancePreset", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancereplicasets": { + "get": { + "description": "Watch a VirtualMachineInstanceReplicaSet object.", + "produces": [ + "application/json" + ], + "operationId": "watchNamespacedVirtualMachineInstanceReplicaSet", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstances": { + "get": { + "description": "Watch a VirtualMachineInstance object.", + "produces": [ + "application/json" + ], + "operationId": "watchNamespacedVirtualMachineInstance", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachines": { + "get": { + "description": "Watch a VirtualMachine object.", + "produces": [ + "application/json" + ], + "operationId": "watchNamespacedVirtualMachine", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/kubevirt.io/v1/watch/virtualmachineinstancemigrations": { + "get": { + "description": "Watch a VirtualMachineInstanceMigrationList object.", + "produces": [ + "application/json" + ], + "operationId": "watchVirtualMachineInstanceMigrationListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/kubevirt.io/v1/watch/virtualmachineinstancepresets": { + "get": { + "description": "Watch a VirtualMachineInstancePresetList object.", + "produces": [ + "application/json" + ], + "operationId": "watchVirtualMachineInstancePresetListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/kubevirt.io/v1/watch/virtualmachineinstancereplicasets": { + "get": { + "description": "Watch a VirtualMachineInstanceReplicaSetList object.", + "produces": [ + "application/json" + ], + "operationId": "watchVirtualMachineInstanceReplicaSetListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/kubevirt.io/v1/watch/virtualmachineinstances": { + "get": { + "description": "Watch a VirtualMachineInstanceList object.", + "produces": [ + "application/json" + ], + "operationId": "watchVirtualMachineInstanceListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/kubevirt.io/v1/watch/virtualmachines": { + "get": { + "description": "Watch a VirtualMachineList object.", + "produces": [ + "application/json" + ], + "operationId": "watchVirtualMachineListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/migrations.kubevirt.io/": { + "get": { + "description": "Get a KubeVirt API group", + "produces": [ + "application/json" + ], + "operationId": "getAPIGroup-migrations.kubevirt.io", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/migrations.kubevirt.io/v1alpha1/": { + "get": { + "description": "Get KubeVirt API Resources", + "produces": [ + "application/json" + ], + "operationId": "getAPIResources-migrations.kubevirt.io-v1alpha1", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/migrations.kubevirt.io/v1alpha1/migrationpolicies": { + "get": { + "description": "Get a list of MigrationPolicy objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listMigrationPolicy", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.MigrationPolicyList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "post": { + "description": "Create a MigrationPolicy object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "createMigrationPolicy", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.MigrationPolicy" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.MigrationPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.MigrationPolicy" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha1.MigrationPolicy" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a collection of MigrationPolicy objects.", + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteCollectionMigrationPolicy", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name}": { + "get": { + "description": "Get a MigrationPolicy object.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "readMigrationPolicy", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.MigrationPolicy" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "put": { + "description": "Update a MigrationPolicy object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "replaceMigrationPolicy", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.MigrationPolicy" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.MigrationPolicy" + } + }, + "201": { + "description": "Create", + "schema": { + "$ref": "#/definitions/v1alpha1.MigrationPolicy" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a MigrationPolicy object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteMigrationPolicy", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "patch": { + "description": "Patch a MigrationPolicy object.", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json" + ], + "produces": [ + "application/json" + ], + "operationId": "patchMigrationPolicy", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Patch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.MigrationPolicy" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + } + ] + }, + "/apis/migrations.kubevirt.io/v1alpha1/watch/migrationpolicies": { + "get": { + "description": "Watch a MigrationPolicyList object.", + "produces": [ + "application/json" + ], + "operationId": "watchMigrationPolicyListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/pool.kubevirt.io/": { + "get": { + "description": "Get a KubeVirt API group", + "produces": [ + "application/json" + ], + "operationId": "getAPIGroup-pool.kubevirt.io", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/pool.kubevirt.io/v1alpha1/": { + "get": { + "description": "Get KubeVirt API Resources", + "produces": [ + "application/json" + ], + "operationId": "getAPIResources-pool.kubevirt.io-v1alpha1", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools": { + "get": { + "description": "Get a list of VirtualMachinePool objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listNamespacedVirtualMachinePool", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachinePoolList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "post": { + "description": "Create a VirtualMachinePool object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "createNamespacedVirtualMachinePool", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachinePool" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachinePool" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachinePool" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachinePool" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a collection of VirtualMachinePool objects.", + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteCollectionNamespacedVirtualMachinePool", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name}": { + "get": { + "description": "Get a VirtualMachinePool object.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "readNamespacedVirtualMachinePool", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachinePool" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "put": { + "description": "Update a VirtualMachinePool object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "replaceNamespacedVirtualMachinePool", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachinePool" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachinePool" + } + }, + "201": { + "description": "Create", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachinePool" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a VirtualMachinePool object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteNamespacedVirtualMachinePool", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "patch": { + "description": "Patch a VirtualMachinePool object.", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json" + ], + "produces": [ + "application/json" + ], + "operationId": "patchNamespacedVirtualMachinePool", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Patch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachinePool" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/pool.kubevirt.io/v1alpha1/virtualmachinepools": { + "get": { + "description": "Get a list of all VirtualMachinePool objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listVirtualMachinePoolForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachinePoolList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/pool.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinepools": { + "get": { + "description": "Watch a VirtualMachinePool object.", + "produces": [ + "application/json" + ], + "operationId": "watchNamespacedVirtualMachinePool", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/pool.kubevirt.io/v1alpha1/watch/virtualmachinepools": { + "get": { + "description": "Watch a VirtualMachinePoolList object.", + "produces": [ + "application/json" + ], + "operationId": "watchVirtualMachinePoolListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/snapshot.kubevirt.io/": { + "get": { + "description": "Get a KubeVirt API group", + "produces": [ + "application/json" + ], + "operationId": "getAPIGroup-snapshot.kubevirt.io", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/snapshot.kubevirt.io/v1alpha1/": { + "get": { + "description": "Get KubeVirt API Resources", + "produces": [ + "application/json" + ], + "operationId": "getAPIResources-snapshot.kubevirt.io-v1alpha1", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores": { + "get": { + "description": "Get a list of VirtualMachineRestore objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listNamespacedVirtualMachineRestore", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineRestoreList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "post": { + "description": "Create a VirtualMachineRestore object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "createNamespacedVirtualMachineRestore", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineRestore" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineRestore" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineRestore" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineRestore" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a collection of VirtualMachineRestore objects.", + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteCollectionNamespacedVirtualMachineRestore", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name}": { + "get": { + "description": "Get a VirtualMachineRestore object.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "readNamespacedVirtualMachineRestore", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineRestore" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "put": { + "description": "Update a VirtualMachineRestore object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "replaceNamespacedVirtualMachineRestore", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineRestore" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineRestore" + } + }, + "201": { + "description": "Create", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineRestore" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a VirtualMachineRestore object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteNamespacedVirtualMachineRestore", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "patch": { + "description": "Patch a VirtualMachineRestore object.", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json" + ], + "produces": [ + "application/json" + ], + "operationId": "patchNamespacedVirtualMachineRestore", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Patch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineRestore" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents": { + "get": { + "description": "Get a list of VirtualMachineSnapshotContent objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listNamespacedVirtualMachineSnapshotContent", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineSnapshotContentList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "post": { + "description": "Create a VirtualMachineSnapshotContent object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "createNamespacedVirtualMachineSnapshotContent", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineSnapshotContent" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineSnapshotContent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineSnapshotContent" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineSnapshotContent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a collection of VirtualMachineSnapshotContent objects.", + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteCollectionNamespacedVirtualMachineSnapshotContent", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name}": { + "get": { + "description": "Get a VirtualMachineSnapshotContent object.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "readNamespacedVirtualMachineSnapshotContent", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineSnapshotContent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "put": { + "description": "Update a VirtualMachineSnapshotContent object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "replaceNamespacedVirtualMachineSnapshotContent", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineSnapshotContent" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineSnapshotContent" + } + }, + "201": { + "description": "Create", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineSnapshotContent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a VirtualMachineSnapshotContent object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteNamespacedVirtualMachineSnapshotContent", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "patch": { + "description": "Patch a VirtualMachineSnapshotContent object.", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json" + ], + "produces": [ + "application/json" + ], + "operationId": "patchNamespacedVirtualMachineSnapshotContent", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Patch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineSnapshotContent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots": { + "get": { + "description": "Get a list of VirtualMachineSnapshot objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listNamespacedVirtualMachineSnapshot", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineSnapshotList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "post": { + "description": "Create a VirtualMachineSnapshot object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "createNamespacedVirtualMachineSnapshot", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineSnapshot" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineSnapshot" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineSnapshot" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineSnapshot" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a collection of VirtualMachineSnapshot objects.", + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteCollectionNamespacedVirtualMachineSnapshot", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name}": { + "get": { + "description": "Get a VirtualMachineSnapshot object.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "readNamespacedVirtualMachineSnapshot", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineSnapshot" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "put": { + "description": "Update a VirtualMachineSnapshot object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "replaceNamespacedVirtualMachineSnapshot", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineSnapshot" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineSnapshot" + } + }, + "201": { + "description": "Create", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineSnapshot" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "description": "Delete a VirtualMachineSnapshot object.", + "consumes": [ + "application/json", + "application/yaml" + ], + "produces": [ + "application/json", + "application/yaml" + ], + "operationId": "deleteNamespacedVirtualMachineSnapshot", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "patch": { + "description": "Patch a VirtualMachineSnapshot object.", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json" + ], + "produces": [ + "application/json" + ], + "operationId": "patchNamespacedVirtualMachineSnapshot", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Patch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineSnapshot" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores": { + "get": { + "description": "Get a list of all VirtualMachineRestore objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listVirtualMachineRestoreForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineRestoreList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents": { + "get": { + "description": "Get a list of all VirtualMachineSnapshotContent objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listVirtualMachineSnapshotContentForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineSnapshotContentList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots": { + "get": { + "description": "Get a list of all VirtualMachineSnapshot objects.", + "produces": [ + "application/json", + "application/yaml", + "application/json;stream=watch" + ], + "operationId": "listVirtualMachineSnapshotForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.VirtualMachineSnapshotList" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinerestores": { + "get": { + "description": "Watch a VirtualMachineRestore object.", + "produces": [ + "application/json" + ], + "operationId": "watchNamespacedVirtualMachineRestore", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinesnapshotcontents": { + "get": { + "description": "Watch a VirtualMachineSnapshotContent object.", + "produces": [ + "application/json" + ], + "operationId": "watchNamespacedVirtualMachineSnapshotContent", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinesnapshots": { + "get": { + "description": "Watch a VirtualMachineSnapshot object.", + "produces": [ + "application/json" + ], + "operationId": "watchNamespacedVirtualMachineSnapshot", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinerestores": { + "get": { + "description": "Watch a VirtualMachineRestoreList object.", + "produces": [ + "application/json" + ], + "operationId": "watchVirtualMachineRestoreListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshotcontents": { + "get": { + "description": "Watch a VirtualMachineSnapshotContentList object.", + "produces": [ + "application/json" + ], + "operationId": "watchVirtualMachineSnapshotContentListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshots": { + "get": { + "description": "Watch a VirtualMachineSnapshotList object.", + "produces": [ + "application/json" + ], + "operationId": "watchVirtualMachineSnapshotListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "If true, partially initialized resources are included in the response.", + "name": "includeUninitialized", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "TimeoutSeconds for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/subresources.kubevirt.io": { + "get": { + "description": "Get a KubeVirt API Group", + "produces": [ + "application/json" + ], + "operationId": "v1GetSubAPIGroup", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/subresources.kubevirt.io/v1/": { + "get": { + "description": "Get a KubeVirt API resources", + "produces": [ + "application/json" + ], + "operationId": "v1getAPISubResources", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/subresources.kubevirt.io/v1/dump-cluster-profiler": { + "get": { + "produces": [ + "application/json" + ], + "operationId": "v1dump-cluster-profiler", + "responses": { + "401": { + "description": "Unauthorized" + } + } + } + }, + "/apis/subresources.kubevirt.io/v1/guestfs": { + "get": { + "produces": [ + "application/json" + ], + "operationId": "v1Guestfs", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + } + } + }, + "/apis/subresources.kubevirt.io/v1/healthz": { + "get": { + "description": "Health endpoint", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "operationId": "v1CheckHealth", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + }, + "500": { + "description": "Unhealthy", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/expand-vm-spec": { + "put": { + "description": "Expands instancetype and preference into the passed VirtualMachine object.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "operationId": "v1ExpandSpec", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + }, + "500": { + "description": "Internal Server Error", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/addvolume": { + "put": { + "description": "Add a volume and disk to a running Virtual Machine Instance", + "consumes": [ + "*/*" + ], + "operationId": "v1vmi-addvolume", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.AddVolumeOptions" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/console": { + "get": { + "description": "Open a websocket connection to a serial console on the specified VirtualMachineInstance.", + "operationId": "v1Console", + "responses": { + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/filesystemlist": { + "get": { + "description": "Get list of active filesystems on guest machine via guest agent", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "operationId": "v1Filesystemlist", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceFileSystemList" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/freeze": { + "put": { + "description": "Freeze a VirtualMachineInstance object.", + "consumes": [ + "*/*" + ], + "operationId": "v1Freeze", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.FreezeUnfreezeTimeout" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + }, + "500": { + "description": "Internal Server Error", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/guestosinfo": { + "get": { + "description": "Get guest agent os information", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "operationId": "v1Guestosinfo", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceGuestAgentInfo" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/pause": { + "put": { + "description": "Pause a VirtualMachineInstance object.", + "consumes": [ + "*/*" + ], + "operationId": "v1Pause", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.PauseOptions" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port}": { + "get": { + "description": "Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port.", + "operationId": "v1vmi-PortForward", + "responses": { + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "The target port for portforward on the VirtualMachineInstance.", + "name": "port", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port}/{protocol}": { + "get": { + "description": "Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachineInstance and port.", + "operationId": "v1vmi-PortForwardWithProtocol", + "responses": { + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "The target port for portforward on the VirtualMachineInstance.", + "name": "port", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "The protocol for portforward on the VirtualMachineInstance.", + "name": "protocol", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/removevolume": { + "put": { + "description": "Removes a volume and disk from a running Virtual Machine Instance", + "consumes": [ + "*/*" + ], + "operationId": "v1vmi-removevolume", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.RemoveVolumeOptions" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/sev/fetchcertchain": { + "get": { + "description": "Fetch SEV certificate chain from the node where Virtual Machine is scheduled", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "operationId": "v1SEVFetchCertChain", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.SEVPlatformInfo" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/sev/injectlaunchsecret": { + "put": { + "description": "Inject SEV launch secret into a Virtual Machine", + "consumes": [ + "*/*" + ], + "operationId": "v1SEVInjectLaunchSecret", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.SEVSecretOptions" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/sev/querylaunchmeasurement": { + "get": { + "description": "Query SEV launch measurement from a Virtual Machine", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "operationId": "v1SEVQueryLaunchMeasurement", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.SEVMeasurementInfo" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/sev/setupsession": { + "put": { + "description": "Setup SEV session parameters for a Virtual Machine", + "consumes": [ + "*/*" + ], + "operationId": "v1SEVSetupSession", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.SEVSessionOptions" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/softreboot": { + "put": { + "description": "Soft reboot a VirtualMachineInstance object.", + "operationId": "v1SoftReboot", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + }, + "500": { + "description": "Internal Server Error", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/unfreeze": { + "put": { + "description": "Unfreeze a VirtualMachineInstance object.", + "operationId": "v1Unfreeze", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + }, + "500": { + "description": "Internal Server Error", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/unpause": { + "put": { + "description": "Unpause a VirtualMachineInstance object.", + "consumes": [ + "*/*" + ], + "operationId": "v1Unpause", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.UnpauseOptions" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/usbredir": { + "get": { + "description": "Open a websocket connection to connect to USB device on the specified VirtualMachineInstance.", + "operationId": "v1usbredir", + "responses": { + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/userlist": { + "get": { + "description": "Get list of active users via guest agent", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "operationId": "v1Userlist", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceGuestOSUserList" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vnc": { + "get": { + "description": "Open a websocket connection to connect to VNC on the specified VirtualMachineInstance.", + "operationId": "v1VNC", + "responses": { + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vnc/screenshot": { + "get": { + "description": "Get a PNG VNC screenshot of the specified VirtualMachineInstance.", + "operationId": "v1VNCScreenshot", + "responses": { + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Move the cursor on the VNC display to wake up the screen", + "name": "moveCursor", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vsock": { + "get": { + "description": "Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port via VSOCK.", + "operationId": "v1VSOCK", + "responses": { + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The port which the VSOCK application listens to.", + "name": "port", + "in": "query", + "required": true + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Weather to request a TLS encrypted session from the VSOCK application.", + "name": "tls", + "in": "query" + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/addvolume": { + "put": { + "description": "Add a volume and disk to a running Virtual Machine.", + "consumes": [ + "*/*" + ], + "operationId": "v1vm-addvolume", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.AddVolumeOptions" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/expand-spec": { + "get": { + "description": "Get VirtualMachine object with expanded instancetype and preference.", + "produces": [ + "application/json" + ], + "operationId": "v1vm-ExpandSpec", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/memorydump": { + "put": { + "description": "Dumps a VirtualMachineInstance memory.", + "consumes": [ + "*/*" + ], + "operationId": "v1MemoryDump", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.VirtualMachineMemoryDumpRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + }, + "500": { + "description": "Internal Server Error", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/migrate": { + "put": { + "description": "Migrate a running VirtualMachine to another node.", + "consumes": [ + "*/*" + ], + "operationId": "v1Migrate", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.MigrateOptions" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/portforward/{port}": { + "get": { + "description": "Open a websocket connection forwarding traffic to the running VMI for the specified VirtualMachine and port.", + "operationId": "v1vm-PortForward", + "responses": { + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "The target port for portforward on the VirtualMachineInstance.", + "name": "port", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/portforward/{port}/{protocol}": { + "get": { + "description": "Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachine and port.", + "operationId": "v1vm-PortForwardWithProtocol", + "responses": { + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "The target port for portforward on the VirtualMachineInstance.", + "name": "port", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "The protocol for portforward on the VirtualMachineInstance.", + "name": "protocol", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/removememorydump": { + "put": { + "description": "Remove memory dump association.", + "operationId": "v1RemoveMemoryDump", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + }, + "500": { + "description": "Internal Server Error", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/removevolume": { + "put": { + "description": "Removes a volume and disk from a running Virtual Machine.", + "consumes": [ + "*/*" + ], + "operationId": "v1vm-removevolume", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.RemoveVolumeOptions" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/restart": { + "put": { + "description": "Restart a VirtualMachine object.", + "consumes": [ + "*/*" + ], + "operationId": "v1Restart", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.RestartOptions" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/start": { + "put": { + "description": "Start a VirtualMachine object.", + "consumes": [ + "*/*" + ], + "operationId": "v1Start", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.StartOptions" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/stop": { + "put": { + "description": "Stop a VirtualMachine object.", + "consumes": [ + "*/*" + ], + "operationId": "v1Stop", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.StopOptions" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1/start-cluster-profiler": { + "get": { + "produces": [ + "application/json" + ], + "operationId": "v1start-cluster-profiler", + "responses": { + "401": { + "description": "Unauthorized" + } + } + } + }, + "/apis/subresources.kubevirt.io/v1/stop-cluster-profiler": { + "get": { + "produces": [ + "application/json" + ], + "operationId": "v1stop-cluster-profiler", + "responses": { + "401": { + "description": "Unauthorized" + } + } + } + }, + "/apis/subresources.kubevirt.io/v1/version": { + "get": { + "produces": [ + "application/json" + ], + "operationId": "v1Version", + "responses": { + "401": { + "description": "Unauthorized" + } + } + } + }, + "/apis/subresources.kubevirt.io/v1alpha3/": { + "get": { + "description": "Get a KubeVirt API resources", + "produces": [ + "application/json" + ], + "operationId": "v1alpha3getAPISubResources", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/subresources.kubevirt.io/v1alpha3/dump-cluster-profiler": { + "get": { + "produces": [ + "application/json" + ], + "operationId": "v1alpha3dump-cluster-profiler", + "responses": { + "401": { + "description": "Unauthorized" + } + } + } + }, + "/apis/subresources.kubevirt.io/v1alpha3/guestfs": { + "get": { + "produces": [ + "application/json" + ], + "operationId": "v1alpha3Guestfs", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + } + } + }, + "/apis/subresources.kubevirt.io/v1alpha3/healthz": { + "get": { + "description": "Health endpoint", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "operationId": "v1alpha3CheckHealth", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + }, + "500": { + "description": "Unhealthy", + "schema": { + "type": "string" + } + } + } + } + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/expand-vm-spec": { + "put": { + "description": "Expands instancetype and preference into the passed VirtualMachine object.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "operationId": "v1alpha3ExpandSpec", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + }, + "500": { + "description": "Internal Server Error", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/addvolume": { + "put": { + "description": "Add a volume and disk to a running Virtual Machine Instance", + "consumes": [ + "*/*" + ], + "operationId": "v1alpha3vmi-addvolume", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.AddVolumeOptions" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/console": { + "get": { + "description": "Open a websocket connection to a serial console on the specified VirtualMachineInstance.", + "operationId": "v1alpha3Console", + "responses": { + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/filesystemlist": { + "get": { + "description": "Get list of active filesystems on guest machine via guest agent", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "operationId": "v1alpha3Filesystemlist", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceFileSystemList" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/freeze": { + "put": { + "description": "Freeze a VirtualMachineInstance object.", + "consumes": [ + "*/*" + ], + "operationId": "v1alpha3Freeze", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.FreezeUnfreezeTimeout" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + }, + "500": { + "description": "Internal Server Error", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/guestosinfo": { + "get": { + "description": "Get guest agent os information", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "operationId": "v1alpha3Guestosinfo", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceGuestAgentInfo" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/pause": { + "put": { + "description": "Pause a VirtualMachineInstance object.", + "consumes": [ + "*/*" + ], + "operationId": "v1alpha3Pause", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.PauseOptions" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port}": { + "get": { + "description": "Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port.", + "operationId": "v1alpha3vmi-PortForward", + "responses": { + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "The target port for portforward on the VirtualMachineInstance.", + "name": "port", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port}/{protocol}": { + "get": { + "description": "Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachineInstance and port.", + "operationId": "v1alpha3vmi-PortForwardWithProtocol", + "responses": { + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "The target port for portforward on the VirtualMachineInstance.", + "name": "port", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "The protocol for portforward on the VirtualMachineInstance.", + "name": "protocol", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/removevolume": { + "put": { + "description": "Removes a volume and disk from a running Virtual Machine Instance", + "consumes": [ + "*/*" + ], + "operationId": "v1alpha3vmi-removevolume", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.RemoveVolumeOptions" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/sev/fetchcertchain": { + "get": { + "description": "Fetch SEV certificate chain from the node where Virtual Machine is scheduled", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "operationId": "v1alpha3SEVFetchCertChain", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.SEVPlatformInfo" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/sev/injectlaunchsecret": { + "put": { + "description": "Inject SEV launch secret into a Virtual Machine", + "consumes": [ + "*/*" + ], + "operationId": "v1alpha3SEVInjectLaunchSecret", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.SEVSecretOptions" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/sev/querylaunchmeasurement": { + "get": { + "description": "Query SEV launch measurement from a Virtual Machine", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "operationId": "v1alpha3SEVQueryLaunchMeasurement", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.SEVMeasurementInfo" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/sev/setupsession": { + "put": { + "description": "Setup SEV session parameters for a Virtual Machine", + "consumes": [ + "*/*" + ], + "operationId": "v1alpha3SEVSetupSession", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.SEVSessionOptions" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/softreboot": { + "put": { + "description": "Soft reboot a VirtualMachineInstance object.", + "operationId": "v1alpha3SoftReboot", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + }, + "500": { + "description": "Internal Server Error", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/unfreeze": { + "put": { + "description": "Unfreeze a VirtualMachineInstance object.", + "operationId": "v1alpha3Unfreeze", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + }, + "500": { + "description": "Internal Server Error", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/unpause": { + "put": { + "description": "Unpause a VirtualMachineInstance object.", + "consumes": [ + "*/*" + ], + "operationId": "v1alpha3Unpause", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.UnpauseOptions" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/usbredir": { + "get": { + "description": "Open a websocket connection to connect to USB device on the specified VirtualMachineInstance.", + "operationId": "v1alpha3usbredir", + "responses": { + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/userlist": { + "get": { + "description": "Get list of active users via guest agent", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "operationId": "v1alpha3Userlist", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.VirtualMachineInstanceGuestOSUserList" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/vnc": { + "get": { + "description": "Open a websocket connection to connect to VNC on the specified VirtualMachineInstance.", + "operationId": "v1alpha3VNC", + "responses": { + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/vnc/screenshot": { + "get": { + "description": "Get a PNG VNC screenshot of the specified VirtualMachineInstance.", + "operationId": "v1alpha3VNCScreenshot", + "responses": { + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Move the cursor on the VNC display to wake up the screen", + "name": "moveCursor", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/vsock": { + "get": { + "description": "Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port via VSOCK.", + "operationId": "v1alpha3VSOCK", + "responses": { + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The port which the VSOCK application listens to.", + "name": "port", + "in": "query", + "required": true + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Weather to request a TLS encrypted session from the VSOCK application.", + "name": "tls", + "in": "query" + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/addvolume": { + "put": { + "description": "Add a volume and disk to a running Virtual Machine.", + "consumes": [ + "*/*" + ], + "operationId": "v1alpha3vm-addvolume", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.AddVolumeOptions" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/expand-spec": { + "get": { + "description": "Get VirtualMachine object with expanded instancetype and preference.", + "produces": [ + "application/json" + ], + "operationId": "v1alpha3vm-ExpandSpec", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/memorydump": { + "put": { + "description": "Dumps a VirtualMachineInstance memory.", + "consumes": [ + "*/*" + ], + "operationId": "v1alpha3MemoryDump", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.VirtualMachineMemoryDumpRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + }, + "500": { + "description": "Internal Server Error", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/migrate": { + "put": { + "description": "Migrate a running VirtualMachine to another node.", + "consumes": [ + "*/*" + ], + "operationId": "v1alpha3Migrate", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.MigrateOptions" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/portforward/{port}": { + "get": { + "description": "Open a websocket connection forwarding traffic to the running VMI for the specified VirtualMachine and port.", + "operationId": "v1alpha3vm-PortForward", + "responses": { + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "The target port for portforward on the VirtualMachineInstance.", + "name": "port", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/portforward/{port}/{protocol}": { + "get": { + "description": "Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachine and port.", + "operationId": "v1alpha3vm-PortForwardWithProtocol", + "responses": { + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "The target port for portforward on the VirtualMachineInstance.", + "name": "port", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "The protocol for portforward on the VirtualMachineInstance.", + "name": "protocol", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/removememorydump": { + "put": { + "description": "Remove memory dump association.", + "operationId": "v1alpha3RemoveMemoryDump", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + }, + "500": { + "description": "Internal Server Error", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/removevolume": { + "put": { + "description": "Removes a volume and disk from a running Virtual Machine.", + "consumes": [ + "*/*" + ], + "operationId": "v1alpha3vm-removevolume", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.RemoveVolumeOptions" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/restart": { + "put": { + "description": "Restart a VirtualMachine object.", + "consumes": [ + "*/*" + ], + "operationId": "v1alpha3Restart", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.RestartOptions" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/start": { + "put": { + "description": "Start a VirtualMachine object.", + "consumes": [ + "*/*" + ], + "operationId": "v1alpha3Start", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.StartOptions" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/stop": { + "put": { + "description": "Stop a VirtualMachine object.", + "consumes": [ + "*/*" + ], + "operationId": "v1alpha3Stop", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.StopOptions" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Not Found", + "schema": { + "type": "string" + } + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "Name of the resource", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "Object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + } + ] + }, + "/apis/subresources.kubevirt.io/v1alpha3/start-cluster-profiler": { + "get": { + "produces": [ + "application/json" + ], + "operationId": "v1alpha3start-cluster-profiler", + "responses": { + "401": { + "description": "Unauthorized" + } + } + } + }, + "/apis/subresources.kubevirt.io/v1alpha3/stop-cluster-profiler": { + "get": { + "produces": [ + "application/json" + ], + "operationId": "v1alpha3stop-cluster-profiler", + "responses": { + "401": { + "description": "Unauthorized" + } + } + } + }, + "/apis/subresources.kubevirt.io/v1alpha3/version": { + "get": { + "produces": [ + "application/json" + ], + "operationId": "v1alpha3Version", + "responses": { + "401": { + "description": "Unauthorized" + } + } + } + }, + "/dump-profiler": { + "get": { + "description": "dump profiler results endpoint", + "operationId": "HandleDumpProfiler", + "responses": { + "401": { + "description": "Unauthorized" + } + } + } + }, + "/healthz": { + "get": { + "description": "Health endpoint", + "operationId": "func13", + "responses": { + "401": { + "description": "Unauthorized" + } + } + } + }, + "/openapi/v2": { + "get": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "operationId": "func6", + "responses": { + "401": { + "description": "Unauthorized" + } + } + } + }, + "/start-profiler": { + "get": { + "description": "start profiler endpoint", + "operationId": "HandleStartProfiler", + "responses": { + "401": { + "description": "Unauthorized" + } + } + } + }, + "/stop-profiler": { + "get": { + "description": "stop profiler endpoint", + "operationId": "HandleStopProfiler", + "responses": { + "401": { + "description": "Unauthorized" + } + } + } + } + }, + "definitions": { + "k8s.io.api.core.v1.Affinity": { + "description": "Affinity is a group of affinity scheduling rules.", + "type": "object", + "properties": { + "nodeAffinity": { + "description": "Describes node affinity scheduling rules for the pod.", + "$ref": "#/definitions/k8s.io.api.core.v1.NodeAffinity" + }, + "podAffinity": { + "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).", + "$ref": "#/definitions/k8s.io.api.core.v1.PodAffinity" + }, + "podAntiAffinity": { + "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).", + "$ref": "#/definitions/k8s.io.api.core.v1.PodAntiAffinity" + } + } + }, + "k8s.io.api.core.v1.DownwardAPIVolumeFile": { + "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", + "type": "object", + "required": [ + "path" + ], + "properties": { + "fieldRef": { + "description": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.", + "$ref": "#/definitions/k8s.io.api.core.v1.ObjectFieldSelector" + }, + "mode": { + "description": "Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "type": "integer", + "format": "int32" + }, + "path": { + "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", + "type": "string", + "default": "" + }, + "resourceFieldRef": { + "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", + "$ref": "#/definitions/k8s.io.api.core.v1.ResourceFieldSelector" + } + } + }, + "k8s.io.api.core.v1.ExecAction": { + "description": "ExecAction describes a \"run in container\" action.", + "type": "object", + "properties": { + "command": { + "description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.", + "type": "array", + "items": { + "type": "string", + "default": "" + } + } + } + }, + "k8s.io.api.core.v1.HTTPGetAction": { + "description": "HTTPGetAction describes an action based on HTTP Get requests.", + "type": "object", + "required": [ + "port" + ], + "properties": { + "host": { + "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", + "type": "string" + }, + "httpHeaders": { + "description": "Custom headers to set in the request. HTTP allows repeated headers.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/k8s.io.api.core.v1.HTTPHeader" + } + }, + "path": { + "description": "Path to access on the HTTP server.", + "type": "string" + }, + "port": { + "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", + "type": [ + "string", + "number" + ], + "default": {} + }, + "scheme": { + "description": "Scheme to use for connecting to the host. Defaults to HTTP.\n\nPossible enum values:\n - `\"HTTP\"` means that the scheme used will be http://\n - `\"HTTPS\"` means that the scheme used will be https://", + "type": "string", + "enum": [ + "HTTP", + "HTTPS" + ] + } + } + }, + "k8s.io.api.core.v1.HTTPHeader": { + "description": "HTTPHeader describes a custom header to be used in HTTP probes", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "description": "The header field name", + "type": "string", + "default": "" + }, + "value": { + "description": "The header field value", + "type": "string", + "default": "" + } + } + }, + "k8s.io.api.core.v1.LocalObjectReference": { + "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", + "type": "object", + "properties": { + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "k8s.io.api.core.v1.NodeAffinity": { + "description": "Node affinity is a group of node affinity scheduling rules.", + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/k8s.io.api.core.v1.PreferredSchedulingTerm" + } + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.", + "$ref": "#/definitions/k8s.io.api.core.v1.NodeSelector" + } + } + }, + "k8s.io.api.core.v1.NodeSelector": { + "description": "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.", + "type": "object", + "required": [ + "nodeSelectorTerms" + ], + "properties": { + "nodeSelectorTerms": { + "description": "Required. A list of node selector terms. The terms are ORed.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/k8s.io.api.core.v1.NodeSelectorTerm" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "k8s.io.api.core.v1.NodeSelectorRequirement": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string", + "default": "" + }, + "operator": { + "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.\n\nPossible enum values:\n - `\"DoesNotExist\"`\n - `\"Exists\"`\n - `\"Gt\"`\n - `\"In\"`\n - `\"Lt\"`\n - `\"NotIn\"`", + "type": "string", + "default": "", + "enum": [ + "DoesNotExist", + "Exists", + "Gt", + "In", + "Lt", + "NotIn" + ] + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string", + "default": "" + } + } + } + }, + "k8s.io.api.core.v1.NodeSelectorTerm": { + "description": "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "A list of node selector requirements by node's labels.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/k8s.io.api.core.v1.NodeSelectorRequirement" + } + }, + "matchFields": { + "description": "A list of node selector requirements by node's fields.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/k8s.io.api.core.v1.NodeSelectorRequirement" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "k8s.io.api.core.v1.ObjectFieldSelector": { + "description": "ObjectFieldSelector selects an APIVersioned field of an object.", + "type": "object", + "required": [ + "fieldPath" + ], + "properties": { + "apiVersion": { + "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", + "type": "string" + }, + "fieldPath": { + "description": "Path of the field to select in the specified API version.", + "type": "string", + "default": "" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "k8s.io.api.core.v1.PersistentVolumeClaimSpec": { + "description": "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes", + "type": "object", + "properties": { + "accessModes": { + "description": "accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", + "type": "array", + "items": { + "type": "string", + "default": "" + } + }, + "dataSource": { + "description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource.", + "$ref": "#/definitions/k8s.io.api.core.v1.TypedLocalObjectReference" + }, + "dataSourceRef": { + "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", + "$ref": "#/definitions/k8s.io.api.core.v1.TypedObjectReference" + }, + "resources": { + "description": "resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources", + "default": {}, + "$ref": "#/definitions/k8s.io.api.core.v1.ResourceRequirements" + }, + "selector": { + "description": "selector is a label query over volumes to consider for binding.", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector" + }, + "storageClassName": { + "description": "storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", + "type": "string" + }, + "volumeMode": { + "description": "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.\n\nPossible enum values:\n - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device.\n - `\"Filesystem\"` means the volume will be or is formatted with a filesystem.", + "type": "string", + "enum": [ + "Block", + "Filesystem" + ] + }, + "volumeName": { + "description": "volumeName is the binding reference to the PersistentVolume backing this claim.", + "type": "string" + } + } + }, + "k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource": { + "description": "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).", + "type": "object", + "required": [ + "claimName" + ], + "properties": { + "claimName": { + "description": "claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", + "type": "string", + "default": "" + }, + "readOnly": { + "description": "readOnly Will force the ReadOnly setting in VolumeMounts. Default false.", + "type": "boolean" + } + } + }, + "k8s.io.api.core.v1.PodAffinity": { + "description": "Pod affinity is a group of inter pod affinity scheduling rules.", + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/k8s.io.api.core.v1.WeightedPodAffinityTerm" + } + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/k8s.io.api.core.v1.PodAffinityTerm" + } + } + } + }, + "k8s.io.api.core.v1.PodAffinityTerm": { + "description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key \u003ctopologyKey\u003e matches that of any node on which a pod of the set of pods is running", + "type": "object", + "required": [ + "topologyKey" + ], + "properties": { + "labelSelector": { + "description": "A label query over a set of resources, in this case pods.", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector" + }, + "namespaceSelector": { + "description": "A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces.", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector" + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "type": "array", + "items": { + "type": "string", + "default": "" + } + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.", + "type": "string", + "default": "" + } + } + }, + "k8s.io.api.core.v1.PodAntiAffinity": { + "description": "Pod anti affinity is a group of inter pod anti affinity scheduling rules.", + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/k8s.io.api.core.v1.WeightedPodAffinityTerm" + } + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/k8s.io.api.core.v1.PodAffinityTerm" + } + } + } + }, + "k8s.io.api.core.v1.PodDNSConfig": { + "description": "PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.", + "type": "object", + "properties": { + "nameservers": { + "description": "A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.", + "type": "array", + "items": { + "type": "string", + "default": "" + } + }, + "options": { + "description": "A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/k8s.io.api.core.v1.PodDNSConfigOption" + } + }, + "searches": { + "description": "A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.", + "type": "array", + "items": { + "type": "string", + "default": "" + } + } + } + }, + "k8s.io.api.core.v1.PodDNSConfigOption": { + "description": "PodDNSConfigOption defines DNS resolver options of a pod.", + "type": "object", + "properties": { + "name": { + "description": "Required.", + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "k8s.io.api.core.v1.PreferredSchedulingTerm": { + "description": "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).", + "type": "object", + "required": [ + "weight", + "preference" + ], + "properties": { + "preference": { + "description": "A node selector term, associated with the corresponding weight.", + "default": {}, + "$ref": "#/definitions/k8s.io.api.core.v1.NodeSelectorTerm" + }, + "weight": { + "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", + "type": "integer", + "format": "int32", + "default": 0 + } + } + }, + "k8s.io.api.core.v1.ResourceClaim": { + "description": "ResourceClaim references one entry in PodSpec.ResourceClaims.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "description": "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.", + "type": "string", + "default": "" + } + } + }, + "k8s.io.api.core.v1.ResourceFieldSelector": { + "description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format", + "type": "object", + "required": [ + "resource" + ], + "properties": { + "containerName": { + "description": "Container name: required for volumes, optional for env vars", + "type": "string" + }, + "divisor": { + "description": "Specifies the output format of the exposed resources, defaults to \"1\"", + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.api.resource.Quantity" + }, + "resource": { + "description": "Required: resource to select", + "type": "string", + "default": "" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "k8s.io.api.core.v1.ResourceRequirements": { + "description": "ResourceRequirements describes the compute resource requirements.", + "type": "object", + "properties": { + "claims": { + "description": "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/k8s.io.api.core.v1.ResourceClaim" + }, + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, + "limits": { + "description": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "type": "object", + "additionalProperties": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.api.resource.Quantity" + } + }, + "requests": { + "description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "type": "object", + "additionalProperties": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.api.resource.Quantity" + } + } + } + }, + "k8s.io.api.core.v1.TCPSocketAction": { + "description": "TCPSocketAction describes an action based on opening a socket", + "type": "object", + "required": [ + "port" + ], + "properties": { + "host": { + "description": "Optional: Host name to connect to, defaults to the pod IP.", + "type": "string" + }, + "port": { + "description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", + "type": [ + "string", + "number" + ], + "default": {} + } + } + }, + "k8s.io.api.core.v1.Toleration": { + "description": "The pod this Toleration is attached to tolerates any taint that matches the triple \u003ckey,value,effect\u003e using the matching operator \u003coperator\u003e.", + "type": "object", + "properties": { + "effect": { + "description": "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.\n\nPossible enum values:\n - `\"NoExecute\"` Evict any already-running pods that do not tolerate the taint. Currently enforced by NodeController.\n - `\"NoSchedule\"` Do not allow new pods to schedule onto the node unless they tolerate the taint, but allow all pods submitted to Kubelet without going through the scheduler to start, and allow all already-running pods to continue running. Enforced by the scheduler.\n - `\"PreferNoSchedule\"` Like TaintEffectNoSchedule, but the scheduler tries not to schedule new pods onto the node, rather than prohibiting new pods from scheduling onto the node entirely. Enforced by the scheduler.", + "type": "string", + "enum": [ + "NoExecute", + "NoSchedule", + "PreferNoSchedule" + ] + }, + "key": { + "description": "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.", + "type": "string" + }, + "operator": { + "description": "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 pod can tolerate all taints of a particular category.\n\nPossible enum values:\n - `\"Equal\"`\n - `\"Exists\"`", + "type": "string", + "enum": [ + "Equal", + "Exists" + ] + }, + "tolerationSeconds": { + "description": "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.", + "type": "integer", + "format": "int64" + }, + "value": { + "description": "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.", + "type": "string" + } + } + }, + "k8s.io.api.core.v1.TopologySpreadConstraint": { + "description": "TopologySpreadConstraint specifies how to spread matching pods among the given topology.", + "type": "object", + "required": [ + "maxSkew", + "topologyKey", + "whenUnsatisfiable" + ], + "properties": { + "labelSelector": { + "description": "LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain.", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector" + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector.", + "type": "array", + "items": { + "type": "string", + "default": "" + }, + "x-kubernetes-list-type": "atomic" + }, + "maxSkew": { + "description": "MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed.", + "type": "integer", + "format": "int32", + "default": 0 + }, + "minDomains": { + "description": "MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule.\n\nFor example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew.\n\nThis is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default).", + "type": "integer", + "format": "int32" + }, + "nodeAffinityPolicy": { + "description": "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.\n\nIf this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.\n\nPossible enum values:\n - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew.\n - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew.", + "type": "string", + "enum": [ + "Honor", + "Ignore" + ] + }, + "nodeTaintsPolicy": { + "description": "NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included.\n\nIf this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.\n\nPossible enum values:\n - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew.\n - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew.", + "type": "string", + "enum": [ + "Honor", + "Ignore" + ] + }, + "topologyKey": { + "description": "TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each \u003ckey, value\u003e as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field.", + "type": "string", + "default": "" + }, + "whenUnsatisfiable": { + "description": "WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location,\n but giving higher precedence to topologies that would help reduce the\n skew.\nA constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field.\n\nPossible enum values:\n - `\"DoNotSchedule\"` instructs the scheduler not to schedule the pod when constraints are not satisfied.\n - `\"ScheduleAnyway\"` instructs the scheduler to schedule the pod even if constraints are not satisfied.", + "type": "string", + "default": "", + "enum": [ + "DoNotSchedule", + "ScheduleAnyway" + ] + } + } + }, + "k8s.io.api.core.v1.TypedLocalObjectReference": { + "description": "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.", + "type": "object", + "required": [ + "kind", + "name" + ], + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + "type": "string" + }, + "kind": { + "description": "Kind is the type of resource being referenced", + "type": "string", + "default": "" + }, + "name": { + "description": "Name is the name of resource being referenced", + "type": "string", + "default": "" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "k8s.io.api.core.v1.TypedObjectReference": { + "type": "object", + "required": [ + "kind", + "name" + ], + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + "type": "string" + }, + "kind": { + "description": "Kind is the type of resource being referenced", + "type": "string", + "default": "" + }, + "name": { + "description": "Name is the name of resource being referenced", + "type": "string", + "default": "" + }, + "namespace": { + "description": "Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", + "type": "string" + } + } + }, + "k8s.io.api.core.v1.WeightedPodAffinityTerm": { + "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", + "type": "object", + "required": [ + "weight", + "podAffinityTerm" + ], + "properties": { + "podAffinityTerm": { + "description": "Required. A pod affinity term, associated with the corresponding weight.", + "default": {}, + "$ref": "#/definitions/k8s.io.api.core.v1.PodAffinityTerm" + }, + "weight": { + "description": "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.", + "type": "integer", + "format": "int32", + "default": 0 + } + } + }, + "k8s.io.apimachinery.pkg.api.resource.Quantity": { + "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\n\n\t(Note that \u003csuffix\u003e may be empty, from the \"\" case in \u003cdecimalSI\u003e.)\n\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \"+\" | \"-\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\n\u003cdecimalSI\u003e ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n\u003cdecimalExponent\u003e ::= \"e\" \u003csignedNumber\u003e | \"E\" \u003csignedNumber\u003e ```\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\n\nThe sign will be omitted unless the number is negative.\n\nExamples:\n\n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + "type": "string" + }, + "k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup": { + "description": "APIGroup contains the name, the supported versions, and the preferred version of a group.", + "type": "object", + "required": [ + "name", + "versions" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "name is the name of the group.", + "type": "string", + "default": "" + }, + "preferredVersion": { + "description": "preferredVersion is the version preferred by the API server, which probably is the storage version.", + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery" + }, + "serverAddressByClientCIDRs": { + "description": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR" + } + }, + "versions": { + "description": "versions are the versions supported in this group.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery" + } + } + } + }, + "k8s.io.apimachinery.pkg.apis.meta.v1.APIGroupList": { + "description": "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", + "type": "object", + "required": [ + "groups" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "groups": { + "description": "groups is a list of APIGroup.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + } + } + }, + "k8s.io.apimachinery.pkg.apis.meta.v1.APIResource": { + "description": "APIResource specifies the name of a resource and whether it is namespaced.", + "type": "object", + "required": [ + "name", + "singularName", + "namespaced", + "kind", + "verbs" + ], + "properties": { + "categories": { + "description": "categories is a list of the grouped resources this resource belongs to (e.g. 'all')", + "type": "array", + "items": { + "type": "string", + "default": "" + } + }, + "group": { + "description": "group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\".", + "type": "string" + }, + "kind": { + "description": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", + "type": "string", + "default": "" + }, + "name": { + "description": "name is the plural name of the resource.", + "type": "string", + "default": "" + }, + "namespaced": { + "description": "namespaced indicates if a resource is namespaced or not.", + "type": "boolean", + "default": false + }, + "shortNames": { + "description": "shortNames is a list of suggested short names of the resource.", + "type": "array", + "items": { + "type": "string", + "default": "" + } + }, + "singularName": { + "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.", + "type": "string", + "default": "" + }, + "storageVersionHash": { + "description": "The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.", + "type": "string" + }, + "verbs": { + "description": "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", + "type": "array", + "items": { + "type": "string", + "default": "" + } + }, + "version": { + "description": "version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\".", + "type": "string" + } + } + }, + "k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList": { + "description": "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.", + "type": "object", + "required": [ + "groupVersion", + "resources" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "groupVersion": { + "description": "groupVersion is the group and version this APIResourceList is for.", + "type": "string", + "default": "" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "resources": { + "description": "resources contains the name of the resources and if they are namespaced.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.APIResource" + } + } + } + }, + "k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions": { + "description": "DeleteOptions may be provided when deleting an API object.", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "dryRun": { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "type": "array", + "items": { + "type": "string", + "default": "" + } + }, + "gracePeriodSeconds": { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "type": "integer", + "format": "int64" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "orphanDependents": { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "type": "boolean" + }, + "preconditions": { + "description": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions" + }, + "propagationPolicy": { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "type": "string" + } + } + }, + "k8s.io.apimachinery.pkg.apis.meta.v1.Duration": { + "description": "Duration is a wrapper around time.Duration which supports correct marshaling to YAML and JSON. In particular, it marshals into strings, which can be used as map keys in json.", + "type": "string" + }, + "k8s.io.apimachinery.pkg.apis.meta.v1.FieldsV1": { + "description": "FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\n\nEach key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:\u003cname\u003e', where \u003cname\u003e is the name of a field in a struct, or key in a map 'v:\u003cvalue\u003e', where \u003cvalue\u003e is the exact json formatted value of a list item 'i:\u003cindex\u003e', where \u003cindex\u003e is position of a item in a list 'k:\u003ckeys\u003e', where \u003ckeys\u003e is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.\n\nThe exact format is defined in sigs.k8s.io/structured-merge-diff", + "type": "object" + }, + "k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery": { + "description": "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", + "type": "object", + "required": [ + "groupVersion", + "version" + ], + "properties": { + "groupVersion": { + "description": "groupVersion specifies the API group and version in the form \"group/version\"", + "type": "string", + "default": "" + }, + "version": { + "description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", + "type": "string", + "default": "" + } + } + }, + "k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector": { + "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement" + } + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string", + "default": "" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string", + "default": "", + "x-kubernetes-patch-merge-key": "key", + "x-kubernetes-patch-strategy": "merge" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string", + "default": "" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string", + "default": "" + } + } + } + }, + "k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta": { + "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", + "type": "object", + "properties": { + "continue": { + "description": "continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.", + "type": "string" + }, + "remainingItemCount": { + "description": "remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.", + "type": "integer", + "format": "int64" + }, + "resourceVersion": { + "description": "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": "string" + }, + "selfLink": { + "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", + "type": "string" + } + } + }, + "k8s.io.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry": { + "description": "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.", + "type": "string" + }, + "fieldsType": { + "description": "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"", + "type": "string" + }, + "fieldsV1": { + "description": "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type.", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.FieldsV1" + }, + "manager": { + "description": "Manager is an identifier of the workflow managing these fields.", + "type": "string" + }, + "operation": { + "description": "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.", + "type": "string" + }, + "subresource": { + "description": "Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource.", + "type": "string" + }, + "time": { + "description": "Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over.", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Time" + } + } + }, + "k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta": { + "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", + "type": "object", + "properties": { + "annotations": { + "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations", + "type": "object", + "additionalProperties": { + "type": "string", + "default": "" + } + }, + "creationTimestamp": { + "description": "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + "type": [ + "string", + "null" + ], + "default": {} + }, + "deletionGracePeriodSeconds": { + "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", + "type": "integer", + "format": "int64" + }, + "deletionTimestamp": { + "description": "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Time" + }, + "finalizers": { + "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.", + "type": "array", + "items": { + "type": "string", + "default": "" + }, + "x-kubernetes-patch-strategy": "merge" + }, + "generateName": { + "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", + "type": "string" + }, + "generation": { + "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", + "type": "integer", + "format": "int64" + }, + "labels": { + "description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels", + "type": "object", + "additionalProperties": { + "type": "string", + "default": "" + } + }, + "managedFields": { + "description": "ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry" + } + }, + "name": { + "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "type": "string" + }, + "namespace": { + "description": "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces", + "type": "string" + }, + "ownerReferences": { + "description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference" + }, + "x-kubernetes-patch-merge-key": "uid", + "x-kubernetes-patch-strategy": "merge" + }, + "resourceVersion": { + "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": "string" + }, + "selfLink": { + "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", + "type": "string" + }, + "uid": { + "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", + "type": "string" + } + } + }, + "k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference": { + "description": "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.", + "type": "object", + "required": [ + "apiVersion", + "kind", + "name", + "uid" + ], + "properties": { + "apiVersion": { + "description": "API version of the referent.", + "type": "string", + "default": "" + }, + "blockOwnerDeletion": { + "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", + "type": "boolean" + }, + "controller": { + "description": "If true, this reference points to the managing controller.", + "type": "boolean" + }, + "kind": { + "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string", + "default": "" + }, + "name": { + "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "type": "string", + "default": "" + }, + "uid": { + "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", + "type": "string", + "default": "" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "k8s.io.apimachinery.pkg.apis.meta.v1.Patch": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + }, + "k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions": { + "description": "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", + "type": "object", + "properties": { + "resourceVersion": { + "description": "Specifies the target ResourceVersion", + "type": "string" + }, + "uid": { + "description": "Specifies the target UID.", + "type": "string" + } + } + }, + "k8s.io.apimachinery.pkg.apis.meta.v1.RootPaths": { + "description": "RootPaths lists the paths available at root. For example: \"/healthz\", \"/apis\".", + "type": "object", + "required": [ + "paths" + ], + "properties": { + "paths": { + "description": "paths are the paths available at root.", + "type": "array", + "items": { + "type": "string", + "default": "" + } + } + } + }, + "k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR": { + "description": "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", + "type": "object", + "required": [ + "clientCIDR", + "serverAddress" + ], + "properties": { + "clientCIDR": { + "description": "The CIDR with which clients can match their IP to figure out the server address that they should use.", + "type": "string", + "default": "" + }, + "serverAddress": { + "description": "Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.", + "type": "string", + "default": "" + } + } + }, + "k8s.io.apimachinery.pkg.apis.meta.v1.Status": { + "description": "Status is a return value for calls that don't return other objects.", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "code": { + "description": "Suggested HTTP return code for this status, 0 if not set.", + "type": "integer", + "format": "int32" + }, + "details": { + "description": "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type.", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.StatusDetails" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "message": { + "description": "A human-readable description of the status of this operation.", + "type": "string" + }, + "metadata": { + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta" + }, + "reason": { + "description": "A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.", + "type": "string" + }, + "status": { + "description": "Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + "type": "string" + } + } + }, + "k8s.io.apimachinery.pkg.apis.meta.v1.StatusCause": { + "description": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", + "type": "object", + "properties": { + "field": { + "description": "The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"", + "type": "string" + }, + "message": { + "description": "A human-readable description of the cause of the error. This field may be presented as-is to a reader.", + "type": "string" + }, + "reason": { + "description": "A machine-readable description of the cause of the error. If this value is empty there is no information available.", + "type": "string" + } + } + }, + "k8s.io.apimachinery.pkg.apis.meta.v1.StatusDetails": { + "description": "StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.", + "type": "object", + "properties": { + "causes": { + "description": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.StatusCause" + } + }, + "group": { + "description": "The group attribute of the resource associated with the status StatusReason.", + "type": "string" + }, + "kind": { + "description": "The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).", + "type": "string" + }, + "retryAfterSeconds": { + "description": "If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.", + "type": "integer", + "format": "int32" + }, + "uid": { + "description": "UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids", + "type": "string" + } + } + }, + "k8s.io.apimachinery.pkg.apis.meta.v1.Time": { + "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", + "type": "string", + "format": "date-time" + }, + "k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent": { + "description": "Event represents a single event to a watched resource.", + "type": "object", + "required": [ + "type", + "object" + ], + "properties": { + "object": { + "description": "Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *Status is recommended; other types may make sense\n depending on context.", + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.runtime.RawExtension" + }, + "type": { + "type": "string", + "default": "" + } + } + }, + "k8s.io.apimachinery.pkg.runtime.RawExtension": { + "description": "RawExtension is used to hold extensions in external versions.\n\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\n\n// Internal package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.Object `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// External package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.RawExtension `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// On the wire, the JSON will look something like this:\n\n\t{\n\t\t\"kind\":\"MyAPIObject\",\n\t\t\"apiVersion\":\"v1\",\n\t\t\"myPlugin\": {\n\t\t\t\"kind\":\"PluginA\",\n\t\t\t\"aOption\":\"foo\",\n\t\t},\n\t}\n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)", + "type": "object" + }, + "k8s.io.apimachinery.pkg.util.intstr.IntOrString": { + "description": "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.", + "type": "string", + "format": "int-or-string" + }, + "v1.ACPI": { + "type": "object", + "properties": { + "slicNameRef": { + "description": "SlicNameRef should match the volume name of a secret object. The data in the secret should be a binary blob that follows the ACPI SLIC standard, see: https://learn.microsoft.com/en-us/previous-versions/windows/hardware/design/dn653305(v=vs.85)", + "type": "string" + } + } + }, + "v1.AccessCredential": { + "description": "AccessCredential represents a credential source that can be used to authorize remote access to the vm guest Only one of its members may be specified.", + "type": "object", + "properties": { + "sshPublicKey": { + "description": "SSHPublicKey represents the source and method of applying a ssh public key into a guest virtual machine.", + "$ref": "#/definitions/v1.SSHPublicKeyAccessCredential" + }, + "userPassword": { + "description": "UserPassword represents the source and method for applying a guest user's password", + "$ref": "#/definitions/v1.UserPasswordAccessCredential" + } + } + }, + "v1.AccessCredentialSecretSource": { + "type": "object", + "required": [ + "secretName" + ], + "properties": { + "secretName": { + "description": "SecretName represents the name of the secret in the VMI's namespace", + "type": "string", + "default": "" + } + } + }, + "v1.AddVolumeOptions": { + "description": "AddVolumeOptions is provided when dynamically hot plugging a volume and disk", + "type": "object", + "required": [ + "name", + "disk", + "volumeSource" + ], + "properties": { + "disk": { + "description": "Disk represents the hotplug disk that will be plugged into the running VMI", + "$ref": "#/definitions/v1.Disk" + }, + "dryRun": { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "type": "array", + "items": { + "type": "string", + "default": "" + }, + "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "Name represents the name that will be used to map the disk to the corresponding volume. This overrides any name set inside the Disk struct itself.", + "type": "string", + "default": "" + }, + "volumeSource": { + "description": "VolumeSource represents the source of the volume to map to the disk.", + "$ref": "#/definitions/v1.HotplugVolumeSource" + } + } + }, + "v1.ArchConfiguration": { + "type": "object", + "properties": { + "amd64": { + "$ref": "#/definitions/v1.ArchSpecificConfiguration" + }, + "arm64": { + "$ref": "#/definitions/v1.ArchSpecificConfiguration" + }, + "defaultArchitecture": { + "type": "string" + }, + "ppc64le": { + "$ref": "#/definitions/v1.ArchSpecificConfiguration" + } + } + }, + "v1.ArchSpecificConfiguration": { + "type": "object", + "properties": { + "emulatedMachines": { + "type": "array", + "items": { + "type": "string", + "default": "" + }, + "x-kubernetes-list-type": "atomic" + }, + "machineType": { + "type": "string" + }, + "ovmfPath": { + "type": "string" + } + } + }, + "v1.BIOS": { + "description": "If set (default), BIOS will be used.", + "type": "object", + "properties": { + "useSerial": { + "description": "If set, the BIOS output will be transmitted over serial", + "type": "boolean" + } + } + }, + "v1.BlockSize": { + "description": "BlockSize provides the option to change the block size presented to the VM for a disk. Only one of its members may be specified.", + "type": "object", + "properties": { + "custom": { + "$ref": "#/definitions/v1.CustomBlockSize" + }, + "matchVolume": { + "$ref": "#/definitions/v1.FeatureState" + } + } + }, + "v1.Bootloader": { + "description": "Represents the firmware blob used to assist in the domain creation process. Used for setting the QEMU BIOS file path for the libvirt domain.", + "type": "object", + "properties": { + "bios": { + "description": "If set (default), BIOS will be used.", + "$ref": "#/definitions/v1.BIOS" + }, + "efi": { + "description": "If set, EFI will be used instead of BIOS.", + "$ref": "#/definitions/v1.EFI" + } + } + }, + "v1.CDRomTarget": { + "type": "object", + "properties": { + "bus": { + "description": "Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi.", + "type": "string" + }, + "readonly": { + "description": "ReadOnly. Defaults to true.", + "type": "boolean" + }, + "tray": { + "description": "Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\". Defaults to closed.", + "type": "string" + } + } + }, + "v1.CPU": { + "description": "CPU allows specifying the CPU topology.", + "type": "object", + "properties": { + "cores": { + "description": "Cores specifies the number of cores inside the vmi. Must be a value greater or equal 1.", + "type": "integer", + "format": "int64" + }, + "dedicatedCpuPlacement": { + "description": "DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it.", + "type": "boolean" + }, + "features": { + "description": "Features specifies the CPU features list inside the VMI.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.CPUFeature" + } + }, + "isolateEmulatorThread": { + "description": "IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it.", + "type": "boolean" + }, + "maxSockets": { + "description": "MaxSockets specifies the maximum amount of sockets that can be hotplugged", + "type": "integer", + "format": "int64" + }, + "model": { + "description": "Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model.", + "type": "string" + }, + "numa": { + "description": "NUMA allows specifying settings for the guest NUMA topology", + "$ref": "#/definitions/v1.NUMA" + }, + "realtime": { + "description": "Realtime instructs the virt-launcher to tune the VMI for lower latency, optional for real time workloads", + "$ref": "#/definitions/v1.Realtime" + }, + "sockets": { + "description": "Sockets specifies the number of sockets inside the vmi. Must be a value greater or equal 1.", + "type": "integer", + "format": "int64" + }, + "threads": { + "description": "Threads specifies the number of threads inside the vmi. Must be a value greater or equal 1.", + "type": "integer", + "format": "int64" + } + } + }, + "v1.CPUFeature": { + "description": "CPUFeature allows specifying a CPU feature.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "description": "Name of the CPU feature", + "type": "string", + "default": "" + }, + "policy": { + "description": "Policy is the CPU feature attribute which can have the following attributes: force - The virtual CPU will claim the feature is supported regardless of it being supported by host CPU. require - Guest creation will fail unless the feature is supported by the host CPU or the hypervisor is able to emulate it. optional - The feature will be supported by virtual CPU if and only if it is supported by host CPU. disable - The feature will not be supported by virtual CPU. forbid - Guest creation will fail if the feature is supported by host CPU. Defaults to require", + "type": "string" + } + } + }, + "v1.CPUTopology": { + "description": "CPUTopology allows specifying the amount of cores, sockets and threads.", + "type": "object", + "properties": { + "cores": { + "description": "Cores specifies the number of cores inside the vmi. Must be a value greater or equal 1.", + "type": "integer", + "format": "int64" + }, + "sockets": { + "description": "Sockets specifies the number of sockets inside the vmi. Must be a value greater or equal 1.", + "type": "integer", + "format": "int64" + }, + "threads": { + "description": "Threads specifies the number of threads inside the vmi. Must be a value greater or equal 1.", + "type": "integer", + "format": "int64" + } + } + }, + "v1.CertConfig": { + "description": "CertConfig contains the tunables for TLS certificates", + "type": "object", + "properties": { + "duration": { + "description": "The requested 'duration' (i.e. lifetime) of the Certificate.", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Duration" + }, + "renewBefore": { + "description": "The amount of time before the currently issued certificate's \"notAfter\" time that we will begin to attempt to renew the certificate.", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Duration" + } + } + }, + "v1.Chassis": { + "description": "Chassis specifies the chassis info passed to the domain.", + "type": "object", + "properties": { + "asset": { + "type": "string" + }, + "manufacturer": { + "type": "string" + }, + "serial": { + "type": "string" + }, + "sku": { + "type": "string" + }, + "version": { + "type": "string" + } + } + }, + "v1.ClientPassthroughDevices": { + "description": "Represent a subset of client devices that can be accessed by VMI. At the moment only, USB devices using Usbredir's library and tooling. Another fit would be a smartcard with libcacard.\n\nThe struct is currently empty as there is no immediate request for user-facing APIs. This structure simply turns on USB redirection of UsbClientPassthroughMaxNumberOf devices.", + "type": "object" + }, + "v1.Clock": { + "description": "Represents the clock and timers of a vmi.", + "type": "object", + "properties": { + "timer": { + "description": "Timer specifies whih timers are attached to the vmi.", + "$ref": "#/definitions/v1.Timer" + }, + "timezone": { + "description": "Timezone sets the guest clock to the specified timezone. Zone name follows the TZ environment variable format (e.g. 'America/New_York').", + "type": "string" + }, + "utc": { + "description": "UTC sets the guest clock to UTC on each boot. If an offset is specified, guest changes to the clock will be kept during reboots and are not reset.", + "$ref": "#/definitions/v1.ClockOffsetUTC" + } + } + }, + "v1.ClockOffset": { + "description": "Exactly one of its members must be set.", + "type": "object", + "properties": { + "timezone": { + "description": "Timezone sets the guest clock to the specified timezone. Zone name follows the TZ environment variable format (e.g. 'America/New_York').", + "type": "string" + }, + "utc": { + "description": "UTC sets the guest clock to UTC on each boot. If an offset is specified, guest changes to the clock will be kept during reboots and are not reset.", + "$ref": "#/definitions/v1.ClockOffsetUTC" + } + } + }, + "v1.ClockOffsetUTC": { + "description": "UTC sets the guest clock to UTC on each boot.", + "type": "object", + "properties": { + "offsetSeconds": { + "description": "OffsetSeconds specifies an offset in seconds, relative to UTC. If set, guest changes to the clock will be kept during reboots and not reset.", + "type": "integer", + "format": "int32" + } + } + }, + "v1.CloudInitConfigDriveSource": { + "description": "Represents a cloud-init config drive user data source. More info: https://cloudinit.readthedocs.io/en/latest/topics/datasources/configdrive.html", + "type": "object", + "properties": { + "networkData": { + "description": "NetworkData contains config drive inline cloud-init networkdata.", + "type": "string" + }, + "networkDataBase64": { + "description": "NetworkDataBase64 contains config drive cloud-init networkdata as a base64 encoded string.", + "type": "string" + }, + "networkDataSecretRef": { + "description": "NetworkDataSecretRef references a k8s secret that contains config drive networkdata.", + "$ref": "#/definitions/k8s.io.api.core.v1.LocalObjectReference" + }, + "secretRef": { + "description": "UserDataSecretRef references a k8s secret that contains config drive userdata.", + "$ref": "#/definitions/k8s.io.api.core.v1.LocalObjectReference" + }, + "userData": { + "description": "UserData contains config drive inline cloud-init userdata.", + "type": "string" + }, + "userDataBase64": { + "description": "UserDataBase64 contains config drive cloud-init userdata as a base64 encoded string.", + "type": "string" + } + } + }, + "v1.CloudInitNoCloudSource": { + "description": "Represents a cloud-init nocloud user data source. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html", + "type": "object", + "properties": { + "networkData": { + "description": "NetworkData contains NoCloud inline cloud-init networkdata.", + "type": "string" + }, + "networkDataBase64": { + "description": "NetworkDataBase64 contains NoCloud cloud-init networkdata as a base64 encoded string.", + "type": "string" + }, + "networkDataSecretRef": { + "description": "NetworkDataSecretRef references a k8s secret that contains NoCloud networkdata.", + "$ref": "#/definitions/k8s.io.api.core.v1.LocalObjectReference" + }, + "secretRef": { + "description": "UserDataSecretRef references a k8s secret that contains NoCloud userdata.", + "$ref": "#/definitions/k8s.io.api.core.v1.LocalObjectReference" + }, + "userData": { + "description": "UserData contains NoCloud inline cloud-init userdata.", + "type": "string" + }, + "userDataBase64": { + "description": "UserDataBase64 contains NoCloud cloud-init userdata as a base64 encoded string.", + "type": "string" + } + } + }, + "v1.ComponentConfig": { + "type": "object", + "properties": { + "nodePlacement": { + "description": "nodePlacement describes scheduling configuration for specific KubeVirt components", + "$ref": "#/definitions/v1.NodePlacement" + }, + "replicas": { + "description": "replicas indicates how many replicas should be created for each KubeVirt infrastructure component (like virt-api or virt-controller). Defaults to 2. WARNING: this is an advanced feature that prevents auto-scaling for core kubevirt components. Please use with caution!", + "type": "integer", + "format": "byte" + } + } + }, + "v1.ConfigDriveSSHPublicKeyAccessCredentialPropagation": { + "type": "object" + }, + "v1.ConfigMapVolumeSource": { + "description": "ConfigMapVolumeSource adapts a ConfigMap into a volume. More info: https://kubernetes.io/docs/concepts/storage/volumes/#configmap", + "type": "object", + "properties": { + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the ConfigMap or it's keys must be defined", + "type": "boolean" + }, + "volumeLabel": { + "description": "The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart).", + "type": "string" + } + } + }, + "v1.ContainerDiskInfo": { + "description": "ContainerDiskInfo shows info about the containerdisk", + "type": "object", + "properties": { + "checksum": { + "description": "Checksum is the checksum of the rootdisk or kernel artifacts inside the containerdisk", + "type": "integer", + "format": "int64" + } + } + }, + "v1.ContainerDiskSource": { + "description": "Represents a docker image with an embedded disk.", + "type": "object", + "required": [ + "image" + ], + "properties": { + "image": { + "description": "Image is the name of the image with the embedded disk.", + "type": "string", + "default": "" + }, + "imagePullPolicy": { + "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images\n\nPossible enum values:\n - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails.\n - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails.\n - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present", + "type": "string", + "enum": [ + "Always", + "IfNotPresent", + "Never" + ] + }, + "imagePullSecret": { + "description": "ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist.", + "type": "string" + }, + "path": { + "description": "Path defines the path to disk file in the container", + "type": "string" + } + } + }, + "v1.CustomBlockSize": { + "description": "CustomBlockSize represents the desired logical and physical block size for a VM disk.", + "type": "object", + "required": [ + "logical", + "physical" + ], + "properties": { + "logical": { + "type": "integer", + "format": "int32", + "default": 0 + }, + "physical": { + "type": "integer", + "format": "int32", + "default": 0 + } + } + }, + "v1.CustomProfile": { + "type": "object", + "properties": { + "localhostProfile": { + "type": "string" + }, + "runtimeDefaultProfile": { + "type": "boolean" + } + } + }, + "v1.CustomizeComponents": { + "type": "object", + "properties": { + "flags": { + "description": "Configure the value used for deployment and daemonset resources", + "$ref": "#/definitions/v1.Flags" + }, + "patches": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.CustomizeComponentsPatch" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "v1.CustomizeComponentsPatch": { + "type": "object", + "required": [ + "resourceName", + "resourceType", + "patch", + "type" + ], + "properties": { + "patch": { + "type": "string", + "default": "" + }, + "resourceName": { + "type": "string", + "default": "" + }, + "resourceType": { + "type": "string", + "default": "" + }, + "type": { + "type": "string", + "default": "" + } + } + }, + "v1.DHCPOptions": { + "description": "Extra DHCP options to use in the interface.", + "type": "object", + "properties": { + "bootFileName": { + "description": "If specified will pass option 67 to interface's DHCP server", + "type": "string" + }, + "ntpServers": { + "description": "If specified will pass the configured NTP server to the VM via DHCP option 042.", + "type": "array", + "items": { + "type": "string", + "default": "" + } + }, + "privateOptions": { + "description": "If specified will pass extra DHCP options for private use, range: 224-254", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.DHCPPrivateOptions" + } + }, + "tftpServerName": { + "description": "If specified will pass option 66 to interface's DHCP server", + "type": "string" + } + } + }, + "v1.DHCPPrivateOptions": { + "description": "DHCPExtraOptions defines Extra DHCP options for a VM.", + "type": "object", + "required": [ + "option", + "value" + ], + "properties": { + "option": { + "description": "Option is an Integer value from 224-254 Required.", + "type": "integer", + "format": "int32", + "default": 0 + }, + "value": { + "description": "Value is a String value for the Option provided Required.", + "type": "string", + "default": "" + } + } + }, + "v1.DataVolumeSource": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "hotpluggable": { + "description": "Hotpluggable indicates whether the volume can be hotplugged and hotunplugged.", + "type": "boolean" + }, + "name": { + "description": "Name of both the DataVolume and the PVC in the same namespace. After PVC population the DataVolume is garbage collected by default.", + "type": "string", + "default": "" + } + } + }, + "v1.DataVolumeTemplateDummyStatus": { + "type": "object", + "nullable": true + }, + "v1.DataVolumeTemplateSpec": { + "type": "object", + "required": [ + "spec" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "description": "DataVolumeSpec contains the DataVolume specification.", + "default": {}, + "$ref": "#/definitions/v1beta1.DataVolumeSpec" + }, + "status": { + "description": "DataVolumeTemplateDummyStatus is here simply for backwards compatibility with a previous API.", + "$ref": "#/definitions/v1.DataVolumeTemplateDummyStatus" + } + } + }, + "v1.DeveloperConfiguration": { + "description": "DeveloperConfiguration holds developer options", + "type": "object", + "properties": { + "cpuAllocationRatio": { + "description": "For each requested virtual CPU, CPUAllocationRatio defines how much physical CPU to request per VMI from the hosting node. The value is in fraction of a CPU thread (or core on non-hyperthreaded nodes). For example, a value of 1 means 1 physical CPU thread per VMI CPU thread. A value of 100 would be 1% of a physical thread allocated for each requested VMI thread. This option has no effect on VMIs that request dedicated CPUs. More information at: https://kubevirt.io/user-guide/operations/node_overcommit/#node-cpu-allocation-ratio Defaults to 10", + "type": "integer", + "format": "int32" + }, + "diskVerification": { + "$ref": "#/definitions/v1.DiskVerification" + }, + "featureGates": { + "description": "FeatureGates is the list of experimental features to enable. Defaults to none", + "type": "array", + "items": { + "type": "string", + "default": "" + } + }, + "logVerbosity": { + "$ref": "#/definitions/v1.LogVerbosity" + }, + "memoryOvercommit": { + "description": "MemoryOvercommit is the percentage of memory we want to give VMIs compared to the amount given to its parent pod (virt-launcher). For example, a value of 102 means the VMI will \"see\" 2% more memory than its parent pod. Values under 100 are effectively \"undercommits\". Overcommits can lead to memory exhaustion, which in turn can lead to crashes. Use carefully. Defaults to 100", + "type": "integer", + "format": "int32" + }, + "minimumClusterTSCFrequency": { + "description": "Allow overriding the automatically determined minimum TSC frequency of the cluster and fixate the minimum to this frequency.", + "type": "integer", + "format": "int64" + }, + "minimumReservePVCBytes": { + "description": "MinimumReservePVCBytes is the amount of space, in bytes, to leave unused on disks. Defaults to 131072 (128KiB)", + "type": "integer", + "format": "int64" + }, + "nodeSelectors": { + "description": "NodeSelectors allows restricting VMI creation to nodes that match a set of labels. Defaults to none", + "type": "object", + "additionalProperties": { + "type": "string", + "default": "" + } + }, + "pvcTolerateLessSpaceUpToPercent": { + "description": "LessPVCSpaceToleration determines how much smaller, in percentage, disk PVCs are allowed to be compared to the requested size (to account for various overheads). Defaults to 10", + "type": "integer", + "format": "int32" + }, + "useEmulation": { + "description": "UseEmulation can be set to true to allow fallback to software emulation in case hardware-assisted emulation is not available. Defaults to false", + "type": "boolean" + } + } + }, + "v1.Devices": { + "type": "object", + "properties": { + "autoattachGraphicsDevice": { + "description": "Whether to attach the default graphics device or not. VNC will not be available if set to false. Defaults to true.", + "type": "boolean" + }, + "autoattachInputDevice": { + "description": "Whether to attach an Input Device. Defaults to false.", + "type": "boolean" + }, + "autoattachMemBalloon": { + "description": "Whether to attach the Memory balloon device with default period. Period can be adjusted in virt-config. Defaults to true.", + "type": "boolean" + }, + "autoattachPodInterface": { + "description": "Whether to attach a pod network interface. Defaults to true.", + "type": "boolean" + }, + "autoattachSerialConsole": { + "description": "Whether to attach the default virtio-serial console or not. Serial console access will not be available if set to false. Defaults to true.", + "type": "boolean" + }, + "autoattachVSOCK": { + "description": "Whether to attach the VSOCK CID to the VM or not. VSOCK access will be available if set to true. Defaults to false.", + "type": "boolean" + }, + "blockMultiQueue": { + "description": "Whether or not to enable virtio multi-queue for block devices. Defaults to false.", + "type": "boolean" + }, + "clientPassthrough": { + "description": "To configure and access client devices such as redirecting USB", + "$ref": "#/definitions/v1.ClientPassthroughDevices" + }, + "disableHotplug": { + "description": "DisableHotplug disabled the ability to hotplug disks.", + "type": "boolean" + }, + "disks": { + "description": "Disks describes disks, cdroms and luns which are connected to the vmi.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.Disk" + } + }, + "downwardMetrics": { + "description": "DownwardMetrics creates a virtio serials for exposing the downward metrics to the vmi.", + "$ref": "#/definitions/v1.DownwardMetrics" + }, + "filesystems": { + "description": "Filesystems describes filesystem which is connected to the vmi.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.Filesystem" + }, + "x-kubernetes-list-type": "atomic" + }, + "gpus": { + "description": "Whether to attach a GPU device to the vmi.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.GPU" + }, + "x-kubernetes-list-type": "atomic" + }, + "hostDevices": { + "description": "Whether to attach a host device to the vmi.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.HostDevice" + }, + "x-kubernetes-list-type": "atomic" + }, + "inputs": { + "description": "Inputs describe input devices", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.Input" + } + }, + "interfaces": { + "description": "Interfaces describe network interfaces which are added to the vmi.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.Interface" + } + }, + "logSerialConsole": { + "description": "Whether to log the auto-attached default serial console or not. Serial console logs will be collect to a file and then streamed from a named `guest-console-log`. Not relevant if autoattachSerialConsole is disabled. Defaults to cluster wide setting on VirtualMachineOptions.", + "type": "boolean" + }, + "networkInterfaceMultiqueue": { + "description": "If specified, virtual network interfaces configured with a virtio bus will also enable the vhost multiqueue feature for network devices. The number of queues created depends on additional factors of the VirtualMachineInstance, like the number of guest CPUs.", + "type": "boolean" + }, + "rng": { + "description": "Whether to have random number generator from host", + "$ref": "#/definitions/v1.Rng" + }, + "sound": { + "description": "Whether to emulate a sound device.", + "$ref": "#/definitions/v1.SoundDevice" + }, + "tpm": { + "description": "Whether to emulate a TPM device.", + "$ref": "#/definitions/v1.TPMDevice" + }, + "useVirtioTransitional": { + "description": "Fall back to legacy virtio 0.9 support if virtio bus is selected on devices. This is helpful for old machines like CentOS6 or RHEL6 which do not understand virtio_non_transitional (virtio 1.0).", + "type": "boolean" + }, + "watchdog": { + "description": "Watchdog describes a watchdog device which can be added to the vmi.", + "$ref": "#/definitions/v1.Watchdog" + } + } + }, + "v1.DisableFreePageReporting": { + "type": "object" + }, + "v1.DisableSerialConsoleLog": { + "type": "object" + }, + "v1.Disk": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "blockSize": { + "description": "If specified, the virtual disk will be presented with the given block sizes.", + "$ref": "#/definitions/v1.BlockSize" + }, + "bootOrder": { + "description": "BootOrder is an integer value \u003e 0, used to determine ordering of boot devices. Lower values take precedence. Each disk or interface that has a boot order must have a unique value. Disks without a boot order are not tried if a disk with a boot order exists.", + "type": "integer", + "format": "int32" + }, + "cache": { + "description": "Cache specifies which kvm disk cache mode should be used. Supported values are: CacheNone, CacheWriteThrough.", + "type": "string" + }, + "cdrom": { + "description": "Attach a volume as a cdrom to the vmi.", + "$ref": "#/definitions/v1.CDRomTarget" + }, + "dedicatedIOThread": { + "description": "dedicatedIOThread indicates this disk should have an exclusive IO Thread. Enabling this implies useIOThreads = true. Defaults to false.", + "type": "boolean" + }, + "disk": { + "description": "Attach a volume as a disk to the vmi.", + "$ref": "#/definitions/v1.DiskTarget" + }, + "errorPolicy": { + "description": "If specified, it can change the default error policy (stop) for the disk", + "type": "string" + }, + "io": { + "description": "IO specifies which QEMU disk IO mode should be used. Supported values are: native, default, threads.", + "type": "string" + }, + "lun": { + "description": "Attach a volume as a LUN to the vmi.", + "$ref": "#/definitions/v1.LunTarget" + }, + "name": { + "description": "Name is the device name", + "type": "string", + "default": "" + }, + "serial": { + "description": "Serial provides the ability to specify a serial number for the disk device.", + "type": "string" + }, + "shareable": { + "description": "If specified the disk is made sharable and multiple write from different VMs are permitted", + "type": "boolean" + }, + "tag": { + "description": "If specified, disk address and its tag will be provided to the guest via config drive metadata", + "type": "string" + } + } + }, + "v1.DiskTarget": { + "type": "object", + "properties": { + "bus": { + "description": "Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, usb.", + "type": "string" + }, + "pciAddress": { + "description": "If specified, the virtual disk will be placed on the guests pci address with the specified PCI address. For example: 0000:81:01.10", + "type": "string" + }, + "readonly": { + "description": "ReadOnly. Defaults to false.", + "type": "boolean" + } + } + }, + "v1.DiskVerification": { + "description": "DiskVerification holds container disks verification limits", + "type": "object", + "required": [ + "memoryLimit" + ], + "properties": { + "memoryLimit": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.api.resource.Quantity" + } + } + }, + "v1.DomainMemoryDumpInfo": { + "description": "DomainMemoryDumpInfo represents the memory dump information", + "type": "object", + "properties": { + "claimName": { + "description": "ClaimName is the name of the pvc the memory was dumped to", + "type": "string" + }, + "endTimestamp": { + "description": "EndTimestamp is the time when the memory dump completed", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Time" + }, + "startTimestamp": { + "description": "StartTimestamp is the time when the memory dump started", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Time" + }, + "targetFileName": { + "description": "TargetFileName is the name of the memory dump output", + "type": "string" + } + } + }, + "v1.DomainSpec": { + "type": "object", + "required": [ + "devices" + ], + "properties": { + "chassis": { + "description": "Chassis specifies the chassis info passed to the domain.", + "$ref": "#/definitions/v1.Chassis" + }, + "clock": { + "description": "Clock sets the clock and timers of the vmi.", + "$ref": "#/definitions/v1.Clock" + }, + "cpu": { + "description": "CPU allow specified the detailed CPU topology inside the vmi.", + "$ref": "#/definitions/v1.CPU" + }, + "devices": { + "description": "Devices allows adding disks, network interfaces, and others", + "default": {}, + "$ref": "#/definitions/v1.Devices" + }, + "features": { + "description": "Features like acpi, apic, hyperv, smm.", + "$ref": "#/definitions/v1.Features" + }, + "firmware": { + "description": "Firmware.", + "$ref": "#/definitions/v1.Firmware" + }, + "ioThreadsPolicy": { + "description": "Controls whether or not disks will share IOThreads. Omitting IOThreadsPolicy disables use of IOThreads. One of: shared, auto", + "type": "string" + }, + "launchSecurity": { + "description": "Launch Security setting of the vmi.", + "$ref": "#/definitions/v1.LaunchSecurity" + }, + "machine": { + "description": "Machine type.", + "$ref": "#/definitions/v1.Machine" + }, + "memory": { + "description": "Memory allow specifying the VMI memory features.", + "$ref": "#/definitions/v1.Memory" + }, + "resources": { + "description": "Resources describes the Compute Resources required by this vmi.", + "default": {}, + "$ref": "#/definitions/v1.ResourceRequirements" + } + } + }, + "v1.DownwardAPIVolumeSource": { + "description": "DownwardAPIVolumeSource represents a volume containing downward API info.", + "type": "object", + "properties": { + "fields": { + "description": "Fields is a list of downward API volume file", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/k8s.io.api.core.v1.DownwardAPIVolumeFile" + } + }, + "volumeLabel": { + "description": "The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart).", + "type": "string" + } + } + }, + "v1.DownwardMetrics": { + "type": "object" + }, + "v1.DownwardMetricsVolumeSource": { + "description": "DownwardMetricsVolumeSource adds a very small disk to VMIs which contains a limited view of host and guest metrics. The disk content is compatible with vhostmd (https://github.com/vhostmd/vhostmd) and vm-dump-metrics.", + "type": "object" + }, + "v1.EFI": { + "description": "If set, EFI will be used instead of BIOS.", + "type": "object", + "properties": { + "persistent": { + "description": "If set to true, Persistent will persist the EFI NVRAM across reboots. Defaults to false", + "type": "boolean" + }, + "secureBoot": { + "description": "If set, SecureBoot will be enabled and the OVMF roms will be swapped for SecureBoot-enabled ones. Requires SMM to be enabled. Defaults to true", + "type": "boolean" + } + } + }, + "v1.EmptyDiskSource": { + "description": "EmptyDisk represents a temporary disk which shares the vmis lifecycle.", + "type": "object", + "required": [ + "capacity" + ], + "properties": { + "capacity": { + "description": "Capacity of the sparse disk.", + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.api.resource.Quantity" + } + } + }, + "v1.EphemeralVolumeSource": { + "type": "object", + "properties": { + "persistentVolumeClaim": { + "description": "PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", + "$ref": "#/definitions/k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource" + } + } + }, + "v1.FeatureAPIC": { + "type": "object", + "properties": { + "enabled": { + "description": "Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true.", + "type": "boolean" + }, + "endOfInterrupt": { + "description": "EndOfInterrupt enables the end of interrupt notification in the guest. Defaults to false.", + "type": "boolean" + } + } + }, + "v1.FeatureHyperv": { + "description": "Hyperv specific features.", + "type": "object", + "properties": { + "evmcs": { + "description": "EVMCS Speeds up L2 vmexits, but disables other virtualization features. Requires vapic. Defaults to the machine type setting.", + "$ref": "#/definitions/v1.FeatureState" + }, + "frequencies": { + "description": "Frequencies improves the TSC clock source handling for Hyper-V on KVM. Defaults to the machine type setting.", + "$ref": "#/definitions/v1.FeatureState" + }, + "ipi": { + "description": "IPI improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting.", + "$ref": "#/definitions/v1.FeatureState" + }, + "reenlightenment": { + "description": "Reenlightenment enables the notifications on TSC frequency changes. Defaults to the machine type setting.", + "$ref": "#/definitions/v1.FeatureState" + }, + "relaxed": { + "description": "Relaxed instructs the guest OS to disable watchdog timeouts. Defaults to the machine type setting.", + "$ref": "#/definitions/v1.FeatureState" + }, + "reset": { + "description": "Reset enables Hyperv reboot/reset for the vmi. Requires synic. Defaults to the machine type setting.", + "$ref": "#/definitions/v1.FeatureState" + }, + "runtime": { + "description": "Runtime improves the time accounting to improve scheduling in the guest. Defaults to the machine type setting.", + "$ref": "#/definitions/v1.FeatureState" + }, + "spinlocks": { + "description": "Spinlocks allows to configure the spinlock retry attempts.", + "$ref": "#/definitions/v1.FeatureSpinlocks" + }, + "synic": { + "description": "SyNIC enables the Synthetic Interrupt Controller. Defaults to the machine type setting.", + "$ref": "#/definitions/v1.FeatureState" + }, + "synictimer": { + "description": "SyNICTimer enables Synthetic Interrupt Controller Timers, reducing CPU load. Defaults to the machine type setting.", + "$ref": "#/definitions/v1.SyNICTimer" + }, + "tlbflush": { + "description": "TLBFlush improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting.", + "$ref": "#/definitions/v1.FeatureState" + }, + "vapic": { + "description": "VAPIC improves the paravirtualized handling of interrupts. Defaults to the machine type setting.", + "$ref": "#/definitions/v1.FeatureState" + }, + "vendorid": { + "description": "VendorID allows setting the hypervisor vendor id. Defaults to the machine type setting.", + "$ref": "#/definitions/v1.FeatureVendorID" + }, + "vpindex": { + "description": "VPIndex enables the Virtual Processor Index to help windows identifying virtual processors. Defaults to the machine type setting.", + "$ref": "#/definitions/v1.FeatureState" + } + } + }, + "v1.FeatureKVM": { + "type": "object", + "properties": { + "hidden": { + "description": "Hide the KVM hypervisor from standard MSR based discovery. Defaults to false", + "type": "boolean" + } + } + }, + "v1.FeatureSpinlocks": { + "type": "object", + "properties": { + "enabled": { + "description": "Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true.", + "type": "boolean" + }, + "spinlocks": { + "description": "Retries indicates the number of retries. Must be a value greater or equal 4096. Defaults to 4096.", + "type": "integer", + "format": "int64" + } + } + }, + "v1.FeatureState": { + "description": "Represents if a feature is enabled or disabled.", + "type": "object", + "properties": { + "enabled": { + "description": "Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true.", + "type": "boolean" + } + } + }, + "v1.FeatureVendorID": { + "type": "object", + "properties": { + "enabled": { + "description": "Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true.", + "type": "boolean" + }, + "vendorid": { + "description": "VendorID sets the hypervisor vendor id, visible to the vmi. String up to twelve characters.", + "type": "string" + } + } + }, + "v1.Features": { + "type": "object", + "properties": { + "acpi": { + "description": "ACPI enables/disables ACPI inside the guest. Defaults to enabled.", + "default": {}, + "$ref": "#/definitions/v1.FeatureState" + }, + "apic": { + "description": "Defaults to the machine type setting.", + "$ref": "#/definitions/v1.FeatureAPIC" + }, + "hyperv": { + "description": "Defaults to the machine type setting.", + "$ref": "#/definitions/v1.FeatureHyperv" + }, + "kvm": { + "description": "Configure how KVM presence is exposed to the guest.", + "$ref": "#/definitions/v1.FeatureKVM" + }, + "pvspinlock": { + "description": "Notify the guest that the host supports paravirtual spinlocks. For older kernels this feature should be explicitly disabled.", + "$ref": "#/definitions/v1.FeatureState" + }, + "smm": { + "description": "SMM enables/disables System Management Mode. TSEG not yet implemented.", + "$ref": "#/definitions/v1.FeatureState" + } + } + }, + "v1.Filesystem": { + "type": "object", + "required": [ + "name", + "virtiofs" + ], + "properties": { + "name": { + "description": "Name is the device name", + "type": "string", + "default": "" + }, + "virtiofs": { + "description": "Virtiofs is supported", + "$ref": "#/definitions/v1.FilesystemVirtiofs" + } + } + }, + "v1.FilesystemVirtiofs": { + "type": "object" + }, + "v1.Firmware": { + "type": "object", + "properties": { + "acpi": { + "description": "Information that can be set in the ACPI table", + "$ref": "#/definitions/v1.ACPI" + }, + "bootloader": { + "description": "Settings to control the bootloader that is used.", + "$ref": "#/definitions/v1.Bootloader" + }, + "kernelBoot": { + "description": "Settings to set the kernel for booting.", + "$ref": "#/definitions/v1.KernelBoot" + }, + "serial": { + "description": "The system-serial-number in SMBIOS", + "type": "string" + }, + "uuid": { + "description": "UUID reported by the vmi bios. Defaults to a random generated uid.", + "type": "string" + } + } + }, + "v1.Flags": { + "description": "Flags will create a patch that will replace all flags for the container's command field. The only flags that will be used are those define. There are no guarantees around forward/backward compatibility. If set incorrectly this will cause the resource when rolled out to error until flags are updated.", + "type": "object", + "properties": { + "api": { + "type": "object", + "additionalProperties": { + "type": "string", + "default": "" + } + }, + "controller": { + "type": "object", + "additionalProperties": { + "type": "string", + "default": "" + } + }, + "handler": { + "type": "object", + "additionalProperties": { + "type": "string", + "default": "" + } + } + } + }, + "v1.FreezeUnfreezeTimeout": { + "description": "FreezeUnfreezeTimeout represent the time unfreeze will be triggered if guest was not unfrozen by unfreeze command", + "type": "object", + "required": [ + "unfreezeTimeout" + ], + "properties": { + "unfreezeTimeout": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Duration" + } + } + }, + "v1.GPU": { + "type": "object", + "required": [ + "name", + "deviceName" + ], + "properties": { + "deviceName": { + "type": "string", + "default": "" + }, + "name": { + "description": "Name of the GPU device as exposed by a device plugin", + "type": "string", + "default": "" + }, + "tag": { + "description": "If specified, the virtual network interface address and its tag will be provided to the guest via config drive", + "type": "string" + }, + "virtualGPUOptions": { + "$ref": "#/definitions/v1.VGPUOptions" + } + } + }, + "v1.GenerationStatus": { + "description": "GenerationStatus keeps track of the generation for a given resource so that decisions about forced updates can be made.", + "type": "object", + "required": [ + "group", + "resource", + "name", + "lastGeneration" + ], + "properties": { + "group": { + "description": "group is the group of the thing you're tracking", + "type": "string", + "default": "" + }, + "hash": { + "description": "hash is an optional field set for resources without generation that are content sensitive like secrets and configmaps", + "type": "string" + }, + "lastGeneration": { + "description": "lastGeneration is the last generation of the workload controller involved", + "type": "integer", + "format": "int64", + "default": 0 + }, + "name": { + "description": "name is the name of the thing you're tracking", + "type": "string", + "default": "" + }, + "namespace": { + "description": "namespace is where the thing you're tracking is", + "type": "string" + }, + "resource": { + "description": "resource is the resource type of the thing you're tracking", + "type": "string", + "default": "" + } + } + }, + "v1.GuestAgentCommandInfo": { + "description": "List of commands that QEMU guest agent supports", + "type": "object", + "required": [ + "name" + ], + "properties": { + "enabled": { + "type": "boolean" + }, + "name": { + "type": "string", + "default": "" + } + } + }, + "v1.GuestAgentPing": { + "description": "GuestAgentPing configures the guest-agent based ping probe", + "type": "object" + }, + "v1.HPETTimer": { + "type": "object", + "properties": { + "present": { + "description": "Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true.", + "type": "boolean" + }, + "tickPolicy": { + "description": "TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest. One of \"delay\", \"catchup\", \"merge\", \"discard\".", + "type": "string" + } + } + }, + "v1.HostDevice": { + "type": "object", + "required": [ + "name", + "deviceName" + ], + "properties": { + "deviceName": { + "description": "DeviceName is the resource name of the host device exposed by a device plugin", + "type": "string", + "default": "" + }, + "name": { + "type": "string", + "default": "" + }, + "tag": { + "description": "If specified, the virtual network interface address and its tag will be provided to the guest via config drive", + "type": "string" + } + } + }, + "v1.HostDisk": { + "description": "Represents a disk created on the cluster level", + "type": "object", + "required": [ + "path", + "type" + ], + "properties": { + "capacity": { + "description": "Capacity of the sparse disk", + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.api.resource.Quantity" + }, + "path": { + "description": "The path to HostDisk image located on the cluster", + "type": "string", + "default": "" + }, + "shared": { + "description": "Shared indicate whether the path is shared between nodes", + "type": "boolean" + }, + "type": { + "description": "Contains information if disk.img exists or should be created allowed options are 'Disk' and 'DiskOrCreate'", + "type": "string", + "default": "" + } + } + }, + "v1.HotplugVolumeSource": { + "description": "HotplugVolumeSource Represents the source of a volume to mount which are capable of being hotplugged on a live running VMI. Only one of its members may be specified.", + "type": "object", + "properties": { + "dataVolume": { + "description": "DataVolume represents the dynamic creation a PVC for this volume as well as the process of populating that PVC with a disk image.", + "$ref": "#/definitions/v1.DataVolumeSource" + }, + "persistentVolumeClaim": { + "description": "PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", + "$ref": "#/definitions/v1.PersistentVolumeClaimVolumeSource" + } + } + }, + "v1.HotplugVolumeStatus": { + "description": "HotplugVolumeStatus represents the hotplug status of the volume", + "type": "object", + "properties": { + "attachPodName": { + "description": "AttachPodName is the name of the pod used to attach the volume to the node.", + "type": "string" + }, + "attachPodUID": { + "description": "AttachPodUID is the UID of the pod used to attach the volume to the node.", + "type": "string" + } + } + }, + "v1.Hugepages": { + "description": "Hugepages allow to use hugepages for the VirtualMachineInstance instead of regular memory.", + "type": "object", + "properties": { + "pageSize": { + "description": "PageSize specifies the hugepage size, for x86_64 architecture valid values are 1Gi and 2Mi.", + "type": "string" + } + } + }, + "v1.HypervTimer": { + "type": "object", + "properties": { + "present": { + "description": "Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true.", + "type": "boolean" + } + } + }, + "v1.I6300ESBWatchdog": { + "description": "i6300esb watchdog device.", + "type": "object", + "properties": { + "action": { + "description": "The action to take. Valid values are poweroff, reset, shutdown. Defaults to reset.", + "type": "string" + } + } + }, + "v1.InitrdInfo": { + "description": "InitrdInfo show info about the initrd file", + "type": "object", + "properties": { + "checksum": { + "description": "Checksum is the checksum of the initrd file", + "type": "integer", + "format": "int64" + } + } + }, + "v1.Input": { + "type": "object", + "required": [ + "type", + "name" + ], + "properties": { + "bus": { + "description": "Bus indicates the bus of input device to emulate. Supported values: virtio, usb.", + "type": "string" + }, + "name": { + "description": "Name is the device name", + "type": "string", + "default": "" + }, + "type": { + "description": "Type indicated the type of input device. Supported values: tablet.", + "type": "string", + "default": "" + } + } + }, + "v1.InstancetypeMatcher": { + "description": "InstancetypeMatcher references a instancetype that is used to fill fields in the VMI template.", + "type": "object", + "properties": { + "inferFromVolume": { + "description": "InferFromVolume lists the name of a volume that should be used to infer or discover the instancetype to be used through known annotations on the underlying resource. Once applied to the InstancetypeMatcher this field is removed.", + "type": "string" + }, + "inferFromVolumeFailurePolicy": { + "description": "InferFromVolumeFailurePolicy controls what should happen on failure when inferring the instancetype. Allowed values are: \"RejectInferFromVolumeFailure\" and \"IgnoreInferFromVolumeFailure\". If not specified, \"RejectInferFromVolumeFailure\" is used by default.", + "type": "string" + }, + "kind": { + "description": "Kind specifies which instancetype resource is referenced. Allowed values are: \"VirtualMachineInstancetype\" and \"VirtualMachineClusterInstancetype\". If not specified, \"VirtualMachineClusterInstancetype\" is used by default.", + "type": "string" + }, + "name": { + "description": "Name is the name of the VirtualMachineInstancetype or VirtualMachineClusterInstancetype", + "type": "string" + }, + "revisionName": { + "description": "RevisionName specifies a ControllerRevision containing a specific copy of the VirtualMachineInstancetype or VirtualMachineClusterInstancetype to be used. This is initially captured the first time the instancetype is applied to the VirtualMachineInstance.", + "type": "string" + } + } + }, + "v1.Interface": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "acpiIndex": { + "description": "If specified, the ACPI index is used to provide network interface device naming, that is stable across changes in PCI addresses assigned to the device. This value is required to be unique across all devices and be between 1 and (16*1024-1).", + "type": "integer", + "format": "int32" + }, + "binding": { + "description": "Binding specifies the binding plugin that will be used to connect the interface to the guest. It provides an alternative to InterfaceBindingMethod. version: 1alphav1", + "$ref": "#/definitions/v1.PluginBinding" + }, + "bootOrder": { + "description": "BootOrder is an integer value \u003e 0, used to determine ordering of boot devices. Lower values take precedence. Each interface or disk that has a boot order must have a unique value. Interfaces without a boot order are not tried.", + "type": "integer", + "format": "int32" + }, + "bridge": { + "$ref": "#/definitions/v1.InterfaceBridge" + }, + "dhcpOptions": { + "description": "If specified the network interface will pass additional DHCP options to the VMI", + "$ref": "#/definitions/v1.DHCPOptions" + }, + "macAddress": { + "description": "Interface MAC address. For example: de:ad:00:00:be:af or DE-AD-00-00-BE-AF.", + "type": "string" + }, + "macvtap": { + "description": "Deprecated, please refer to Kubevirt user guide for alternatives.", + "$ref": "#/definitions/v1.InterfaceMacvtap" + }, + "masquerade": { + "$ref": "#/definitions/v1.InterfaceMasquerade" + }, + "model": { + "description": "Interface model. One of: e1000, e1000e, ne2k_pci, pcnet, rtl8139, virtio. Defaults to virtio.", + "type": "string" + }, + "name": { + "description": "Logical name of the interface as well as a reference to the associated networks. Must match the Name of a Network.", + "type": "string", + "default": "" + }, + "passt": { + "description": "Deprecated, please refer to Kubevirt user guide for alternatives.", + "$ref": "#/definitions/v1.InterfacePasst" + }, + "pciAddress": { + "description": "If specified, the virtual network interface will be placed on the guests pci address with the specified PCI address. For example: 0000:81:01.10", + "type": "string" + }, + "ports": { + "description": "List of ports to be forwarded to the virtual machine.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.Port" + } + }, + "slirp": { + "$ref": "#/definitions/v1.InterfaceSlirp" + }, + "sriov": { + "$ref": "#/definitions/v1.InterfaceSRIOV" + }, + "state": { + "description": "State represents the requested operational state of the interface. The (only) value supported is `absent`, expressing a request to remove the interface.", + "type": "string" + }, + "tag": { + "description": "If specified, the virtual network interface address and its tag will be provided to the guest via config drive", + "type": "string" + } + } + }, + "v1.InterfaceBindingMigration": { + "type": "object", + "properties": { + "method": { + "description": "Method defines a pre-defined migration methodology version: 1alphav1", + "type": "string" + } + } + }, + "v1.InterfaceBindingPlugin": { + "type": "object", + "properties": { + "domainAttachmentType": { + "description": "DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: \"tap\". The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1", + "type": "string" + }, + "migration": { + "description": "Migration means the VM using the plugin can be safely migrated version: 1alphav1", + "$ref": "#/definitions/v1.InterfaceBindingMigration" + }, + "networkAttachmentDefinition": { + "description": "NetworkAttachmentDefinition references to a NetworkAttachmentDefinition CR object. Format: \u003cname\u003e, \u003cnamespace\u003e/\u003cname\u003e. If namespace is not specified, VMI namespace is assumed. version: 1alphav1", + "type": "string" + }, + "sidecarImage": { + "description": "SidecarImage references a container image that runs in the virt-launcher pod. The sidecar handles (libvirt) domain configuration and optional services. version: 1alphav1", + "type": "string" + } + } + }, + "v1.InterfaceBridge": { + "description": "InterfaceBridge connects to a given network via a linux bridge.", + "type": "object" + }, + "v1.InterfaceMacvtap": { + "description": "InterfaceMacvtap connects to a given network by extending the Kubernetes node's L2 networks via a macvtap interface.", + "type": "object" + }, + "v1.InterfaceMasquerade": { + "description": "InterfaceMasquerade connects to a given network using netfilter rules to nat the traffic.", + "type": "object" + }, + "v1.InterfacePasst": { + "description": "InterfacePasst connects to a given network.", + "type": "object" + }, + "v1.InterfaceSRIOV": { + "description": "InterfaceSRIOV connects to a given network by passing-through an SR-IOV PCI device via vfio.", + "type": "object" + }, + "v1.InterfaceSlirp": { + "description": "InterfaceSlirp connects to a given network using QEMU user networking mode.", + "type": "object" + }, + "v1.KSMConfiguration": { + "description": "KSMConfiguration holds information about KSM.", + "type": "object", + "properties": { + "nodeLabelSelector": { + "description": "NodeLabelSelector is a selector that filters in which nodes the KSM will be enabled. Empty NodeLabelSelector will enable ksm for every node.", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector" + } + } + }, + "v1.KVMTimer": { + "type": "object", + "properties": { + "present": { + "description": "Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true.", + "type": "boolean" + } + } + }, + "v1.KernelBoot": { + "description": "Represents the firmware blob used to assist in the kernel boot process. Used for setting the kernel, initrd and command line arguments", + "type": "object", + "properties": { + "container": { + "description": "Container defines the container that containes kernel artifacts", + "$ref": "#/definitions/v1.KernelBootContainer" + }, + "kernelArgs": { + "description": "Arguments to be passed to the kernel at boot time", + "type": "string" + } + } + }, + "v1.KernelBootContainer": { + "description": "If set, the VM will be booted from the defined kernel / initrd.", + "type": "object", + "required": [ + "image" + ], + "properties": { + "image": { + "description": "Image that contains initrd / kernel files.", + "type": "string", + "default": "" + }, + "imagePullPolicy": { + "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images\n\nPossible enum values:\n - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails.\n - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails.\n - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present", + "type": "string", + "enum": [ + "Always", + "IfNotPresent", + "Never" + ] + }, + "imagePullSecret": { + "description": "ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist.", + "type": "string" + }, + "initrdPath": { + "description": "the fully-qualified path to the ramdisk image in the host OS", + "type": "string" + }, + "kernelPath": { + "description": "The fully-qualified path to the kernel image in the host OS", + "type": "string" + } + } + }, + "v1.KernelBootStatus": { + "description": "KernelBootStatus contains info about the kernelBootContainer", + "type": "object", + "properties": { + "initrdInfo": { + "description": "InitrdInfo show info about the initrd file", + "$ref": "#/definitions/v1.InitrdInfo" + }, + "kernelInfo": { + "description": "KernelInfo show info about the kernel image", + "$ref": "#/definitions/v1.KernelInfo" + } + } + }, + "v1.KernelInfo": { + "description": "KernelInfo show info about the kernel image", + "type": "object", + "properties": { + "checksum": { + "description": "Checksum is the checksum of the kernel image", + "type": "integer", + "format": "int64" + } + } + }, + "v1.KubeVirt": { + "description": "KubeVirt represents the object deploying all KubeVirt resources", + "type": "object", + "required": [ + "spec" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "default": {}, + "$ref": "#/definitions/v1.KubeVirtSpec" + }, + "status": { + "default": {}, + "$ref": "#/definitions/v1.KubeVirtStatus" + } + } + }, + "v1.KubeVirtCertificateRotateStrategy": { + "type": "object", + "properties": { + "selfSigned": { + "$ref": "#/definitions/v1.KubeVirtSelfSignConfiguration" + } + } + }, + "v1.KubeVirtCondition": { + "description": "KubeVirtCondition represents a condition of a KubeVirt deployment", + "type": "object", + "required": [ + "type", + "status" + ], + "properties": { + "lastProbeTime": { + "type": [ + "string", + "null" + ], + "default": {} + }, + "lastTransitionTime": { + "type": [ + "string", + "null" + ], + "default": {} + }, + "message": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "status": { + "type": "string", + "default": "" + }, + "type": { + "type": "string", + "default": "" + } + } + }, + "v1.KubeVirtConfiguration": { + "description": "KubeVirtConfiguration holds all kubevirt configurations", + "type": "object", + "properties": { + "additionalGuestMemoryOverheadRatio": { + "description": "AdditionalGuestMemoryOverheadRatio can be used to increase the virtualization infrastructure overhead. This is useful, since the calculation of this overhead is not accurate and cannot be entirely known in advance. The ratio that is being set determines by which factor to increase the overhead calculated by Kubevirt. A higher ratio means that the VMs would be less compromised by node pressures, but would mean that fewer VMs could be scheduled to a node. If not set, the default is 1.", + "type": "string" + }, + "apiConfiguration": { + "$ref": "#/definitions/v1.ReloadableComponentConfiguration" + }, + "architectureConfiguration": { + "$ref": "#/definitions/v1.ArchConfiguration" + }, + "autoCPULimitNamespaceLabelSelector": { + "description": "When set, AutoCPULimitNamespaceLabelSelector will set a CPU limit on virt-launcher for VMIs running inside namespaces that match the label selector. The CPU limit will equal the number of requested vCPUs. This setting does not apply to VMIs with dedicated CPUs.", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector" + }, + "controllerConfiguration": { + "$ref": "#/definitions/v1.ReloadableComponentConfiguration" + }, + "cpuModel": { + "type": "string" + }, + "cpuRequest": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.api.resource.Quantity" + }, + "defaultRuntimeClass": { + "type": "string" + }, + "developerConfiguration": { + "$ref": "#/definitions/v1.DeveloperConfiguration" + }, + "emulatedMachines": { + "type": "array", + "items": { + "type": "string", + "default": "" + } + }, + "evictionStrategy": { + "description": "EvictionStrategy defines at the cluster level if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain. If the VirtualMachineInstance specific field is set it overrides the cluster level one.", + "type": "string" + }, + "handlerConfiguration": { + "$ref": "#/definitions/v1.ReloadableComponentConfiguration" + }, + "imagePullPolicy": { + "description": "Possible enum values:\n - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails.\n - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails.\n - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present", + "type": "string", + "enum": [ + "Always", + "IfNotPresent", + "Never" + ] + }, + "ksmConfiguration": { + "description": "KSMConfiguration holds the information regarding the enabling the KSM in the nodes (if available).", + "$ref": "#/definitions/v1.KSMConfiguration" + }, + "liveUpdateConfiguration": { + "description": "LiveUpdateConfiguration holds defaults for live update features", + "$ref": "#/definitions/v1.LiveUpdateConfiguration" + }, + "machineType": { + "description": "Deprecated. Use architectureConfiguration instead.", + "type": "string" + }, + "mediatedDevicesConfiguration": { + "$ref": "#/definitions/v1.MediatedDevicesConfiguration" + }, + "memBalloonStatsPeriod": { + "type": "integer", + "format": "int64" + }, + "migrations": { + "$ref": "#/definitions/v1.MigrationConfiguration" + }, + "minCPUModel": { + "type": "string" + }, + "network": { + "$ref": "#/definitions/v1.NetworkConfiguration" + }, + "obsoleteCPUModels": { + "type": "object", + "additionalProperties": { + "type": "boolean", + "default": false + } + }, + "ovmfPath": { + "type": "string" + }, + "permittedHostDevices": { + "$ref": "#/definitions/v1.PermittedHostDevices" + }, + "seccompConfiguration": { + "$ref": "#/definitions/v1.SeccompConfiguration" + }, + "selinuxLauncherType": { + "type": "string" + }, + "smbios": { + "$ref": "#/definitions/v1.SMBiosConfiguration" + }, + "supportContainerResources": { + "description": "SupportContainerResources specifies the resource requirements for various types of supporting containers such as container disks/virtiofs/sidecars and hotplug attachment pods. If omitted a sensible default will be supplied.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.SupportContainerResources" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + }, + "supportedGuestAgentVersions": { + "description": "deprecated", + "type": "array", + "items": { + "type": "string", + "default": "" + } + }, + "tlsConfiguration": { + "$ref": "#/definitions/v1.TLSConfiguration" + }, + "virtualMachineInstancesPerNode": { + "type": "integer", + "format": "int32" + }, + "virtualMachineOptions": { + "$ref": "#/definitions/v1.VirtualMachineOptions" + }, + "vmRolloutStrategy": { + "description": "VMRolloutStrategy defines how changes to a VM object propagate to its VMI", + "type": "string" + }, + "vmStateStorageClass": { + "description": "VMStateStorageClass is the name of the storage class to use for the PVCs created to preserve VM state, like TPM. The storage class must support RWX in filesystem mode.", + "type": "string" + }, + "webhookConfiguration": { + "$ref": "#/definitions/v1.ReloadableComponentConfiguration" + } + } + }, + "v1.KubeVirtList": { + "description": "KubeVirtList is a list of KubeVirts", + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.KubeVirt" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta" + } + } + }, + "v1.KubeVirtSelfSignConfiguration": { + "type": "object", + "properties": { + "ca": { + "description": "CA configuration CA certs are kept in the CA bundle as long as they are valid", + "$ref": "#/definitions/v1.CertConfig" + }, + "caOverlapInterval": { + "description": "Deprecated. Use CA.Duration and CA.RenewBefore instead", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Duration" + }, + "caRotateInterval": { + "description": "Deprecated. Use CA.Duration instead", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Duration" + }, + "certRotateInterval": { + "description": "Deprecated. Use Server.Duration instead", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Duration" + }, + "server": { + "description": "Server configuration Certs are rotated and discarded", + "$ref": "#/definitions/v1.CertConfig" + } + } + }, + "v1.KubeVirtSpec": { + "type": "object", + "properties": { + "certificateRotateStrategy": { + "default": {}, + "$ref": "#/definitions/v1.KubeVirtCertificateRotateStrategy" + }, + "configuration": { + "description": "holds kubevirt configurations. same as the virt-configMap", + "default": {}, + "$ref": "#/definitions/v1.KubeVirtConfiguration" + }, + "customizeComponents": { + "default": {}, + "$ref": "#/definitions/v1.CustomizeComponents" + }, + "imagePullPolicy": { + "description": "The ImagePullPolicy to use.\n\nPossible enum values:\n - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails.\n - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails.\n - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present", + "type": "string", + "enum": [ + "Always", + "IfNotPresent", + "Never" + ] + }, + "imagePullSecrets": { + "description": "The imagePullSecrets to pull the container images from Defaults to none", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/k8s.io.api.core.v1.LocalObjectReference" + }, + "x-kubernetes-list-type": "atomic" + }, + "imageRegistry": { + "description": "The image registry to pull the container images from Defaults to the same registry the operator's container image is pulled from.", + "type": "string" + }, + "imageTag": { + "description": "The image tag to use for the continer images installed. Defaults to the same tag as the operator's container image.", + "type": "string" + }, + "infra": { + "description": "selectors and tolerations that should apply to KubeVirt infrastructure components", + "$ref": "#/definitions/v1.ComponentConfig" + }, + "monitorAccount": { + "description": "The name of the Prometheus service account that needs read-access to KubeVirt endpoints Defaults to prometheus-k8s", + "type": "string" + }, + "monitorNamespace": { + "description": "The namespace Prometheus is deployed in Defaults to openshift-monitor", + "type": "string" + }, + "productComponent": { + "description": "Designate the apps.kubevirt.io/component label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductComponent is not specified, the component label default value is kubevirt.", + "type": "string" + }, + "productName": { + "description": "Designate the apps.kubevirt.io/part-of label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductName is not specified, the part-of label will be omitted.", + "type": "string" + }, + "productVersion": { + "description": "Designate the apps.kubevirt.io/version label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductVersion is not specified, KubeVirt's version will be used.", + "type": "string" + }, + "serviceMonitorNamespace": { + "description": "The namespace the service monitor will be deployed\n When ServiceMonitorNamespace is set, then we'll install the service monitor object in that namespace\notherwise we will use the monitoring namespace.", + "type": "string" + }, + "uninstallStrategy": { + "description": "Specifies if kubevirt can be deleted if workloads are still present. This is mainly a precaution to avoid accidental data loss", + "type": "string" + }, + "workloadUpdateStrategy": { + "description": "WorkloadUpdateStrategy defines at the cluster level how to handle automated workload updates", + "default": {}, + "$ref": "#/definitions/v1.KubeVirtWorkloadUpdateStrategy" + }, + "workloads": { + "description": "selectors and tolerations that should apply to KubeVirt workloads", + "$ref": "#/definitions/v1.ComponentConfig" + } + } + }, + "v1.KubeVirtStatus": { + "description": "KubeVirtStatus represents information pertaining to a KubeVirt deployment.", + "type": "object", + "nullable": true, + "properties": { + "conditions": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.KubeVirtCondition" + } + }, + "defaultArchitecture": { + "type": "string" + }, + "generations": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.GenerationStatus" + }, + "x-kubernetes-list-type": "atomic" + }, + "observedDeploymentConfig": { + "type": "string" + }, + "observedDeploymentID": { + "type": "string" + }, + "observedGeneration": { + "type": "integer", + "format": "int64" + }, + "observedKubeVirtRegistry": { + "type": "string" + }, + "observedKubeVirtVersion": { + "type": "string" + }, + "operatorVersion": { + "type": "string" + }, + "outdatedVirtualMachineInstanceWorkloads": { + "type": "integer", + "format": "int32" + }, + "phase": { + "type": "string" + }, + "targetDeploymentConfig": { + "type": "string" + }, + "targetDeploymentID": { + "type": "string" + }, + "targetKubeVirtRegistry": { + "type": "string" + }, + "targetKubeVirtVersion": { + "type": "string" + } + } + }, + "v1.KubeVirtWorkloadUpdateStrategy": { + "description": "KubeVirtWorkloadUpdateStrategy defines options related to updating a KubeVirt install", + "type": "object", + "properties": { + "batchEvictionInterval": { + "description": "BatchEvictionInterval Represents the interval to wait before issuing the next batch of shutdowns\n\nDefaults to 1 minute", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Duration" + }, + "batchEvictionSize": { + "description": "BatchEvictionSize Represents the number of VMIs that can be forced updated per the BatchShutdownInteral interval\n\nDefaults to 10", + "type": "integer", + "format": "int32" + }, + "workloadUpdateMethods": { + "description": "WorkloadUpdateMethods defines the methods that can be used to disrupt workloads during automated workload updates. When multiple methods are present, the least disruptive method takes precedence over more disruptive methods. For example if both LiveMigrate and Shutdown methods are listed, only VMs which are not live migratable will be restarted/shutdown\n\nAn empty list defaults to no automated workload updating", + "type": "array", + "items": { + "type": "string", + "default": "" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "v1.LaunchSecurity": { + "type": "object", + "properties": { + "sev": { + "description": "AMD Secure Encrypted Virtualization (SEV).", + "$ref": "#/definitions/v1.SEV" + } + } + }, + "v1.LiveUpdateConfiguration": { + "type": "object", + "properties": { + "maxCpuSockets": { + "description": "MaxCpuSockets holds the maximum amount of sockets that can be hotplugged", + "type": "integer", + "format": "int64" + }, + "maxGuest": { + "description": "MaxGuest defines the maximum amount memory that can be allocated to the guest using hotplug.", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.api.resource.Quantity" + }, + "maxHotplugRatio": { + "description": "MaxHotplugRatio is the ratio used to define the max amount of a hotplug resource that can be made available to a VM when the specific Max* setting is not defined (MaxCpuSockets, MaxGuest) Example: VM is configured with 512Mi of guest memory, if MaxGuest is not defined and MaxHotplugRatio is 2 then MaxGuest = 1Gi defaults to 4", + "type": "integer", + "format": "int64" + } + } + }, + "v1.LogVerbosity": { + "description": "LogVerbosity sets log verbosity level of various components", + "type": "object", + "properties": { + "nodeVerbosity": { + "description": "NodeVerbosity represents a map of nodes with a specific verbosity level", + "type": "object", + "additionalProperties": { + "type": "integer", + "format": "int32", + "default": 0 + } + }, + "virtAPI": { + "type": "integer", + "format": "int32" + }, + "virtController": { + "type": "integer", + "format": "int32" + }, + "virtHandler": { + "type": "integer", + "format": "int32" + }, + "virtLauncher": { + "type": "integer", + "format": "int32" + }, + "virtOperator": { + "type": "integer", + "format": "int32" + } + } + }, + "v1.LunTarget": { + "type": "object", + "properties": { + "bus": { + "description": "Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi.", + "type": "string" + }, + "readonly": { + "description": "ReadOnly. Defaults to false.", + "type": "boolean" + }, + "reservation": { + "description": "Reservation indicates if the disk needs to support the persistent reservation for the SCSI disk", + "type": "boolean" + } + } + }, + "v1.Machine": { + "type": "object", + "properties": { + "type": { + "description": "QEMU machine type is the actual chipset of the VirtualMachineInstance.", + "type": "string", + "default": "" + } + } + }, + "v1.MediatedDevicesConfiguration": { + "description": "MediatedDevicesConfiguration holds information about MDEV types to be defined, if available", + "type": "object", + "properties": { + "mediatedDeviceTypes": { + "type": "array", + "items": { + "type": "string", + "default": "" + }, + "x-kubernetes-list-type": "atomic" + }, + "mediatedDevicesTypes": { + "description": "Deprecated. Use mediatedDeviceTypes instead.", + "type": "array", + "items": { + "type": "string", + "default": "" + }, + "x-kubernetes-list-type": "atomic" + }, + "nodeMediatedDeviceTypes": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.NodeMediatedDeviceTypesConfig" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "v1.MediatedHostDevice": { + "description": "MediatedHostDevice represents a host mediated device allowed for passthrough", + "type": "object", + "required": [ + "mdevNameSelector", + "resourceName" + ], + "properties": { + "externalResourceProvider": { + "type": "boolean" + }, + "mdevNameSelector": { + "type": "string", + "default": "" + }, + "resourceName": { + "type": "string", + "default": "" + } + } + }, + "v1.Memory": { + "description": "Memory allows specifying the VirtualMachineInstance memory features.", + "type": "object", + "properties": { + "guest": { + "description": "Guest allows to specifying the amount of memory which is visible inside the Guest OS. The Guest must lie between Requests and Limits from the resources section. Defaults to the requested memory in the resources section if not specified.", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.api.resource.Quantity" + }, + "hugepages": { + "description": "Hugepages allow to use hugepages for the VirtualMachineInstance instead of regular memory.", + "$ref": "#/definitions/v1.Hugepages" + }, + "maxGuest": { + "description": "MaxGuest allows to specify the maximum amount of memory which is visible inside the Guest OS. The delta between MaxGuest and Guest is the amount of memory that can be hot(un)plugged.", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.api.resource.Quantity" + } + } + }, + "v1.MemoryDumpVolumeSource": { + "type": "object", + "required": [ + "claimName" + ], + "properties": { + "claimName": { + "description": "claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", + "type": "string", + "default": "" + }, + "hotpluggable": { + "description": "Hotpluggable indicates whether the volume can be hotplugged and hotunplugged.", + "type": "boolean" + }, + "readOnly": { + "description": "readOnly Will force the ReadOnly setting in VolumeMounts. Default false.", + "type": "boolean" + } + } + }, + "v1.MemoryStatus": { + "type": "object", + "properties": { + "guestAtBoot": { + "description": "GuestAtBoot specifies with how much memory the VirtualMachine intiallly booted with.", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.api.resource.Quantity" + }, + "guestCurrent": { + "description": "GuestCurrent specifies how much memory is currently available for the VirtualMachine.", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.api.resource.Quantity" + }, + "guestRequested": { + "description": "GuestRequested specifies how much memory was requested (hotplug) for the VirtualMachine.", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.api.resource.Quantity" + } + } + }, + "v1.MigrateOptions": { + "description": "MigrateOptions may be provided on migrate request.", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "dryRun": { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "type": "array", + "items": { + "type": "string", + "default": "" + }, + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + } + } + }, + "v1.MigrationConfiguration": { + "description": "MigrationConfiguration holds migration options. Can be overridden for specific groups of VMs though migration policies. Visit https://kubevirt.io/user-guide/operations/migration_policies/ for more information.", + "type": "object", + "properties": { + "allowAutoConverge": { + "description": "AllowAutoConverge allows the platform to compromise performance/availability of VMIs to guarantee successful VMI live migrations. Defaults to false", + "type": "boolean" + }, + "allowPostCopy": { + "description": "AllowPostCopy enables post-copy live migrations. Such migrations allow even the busiest VMIs to successfully live-migrate. However, events like a network failure can cause a VMI crash. If set to true, migrations will still start in pre-copy, but switch to post-copy when CompletionTimeoutPerGiB triggers. Defaults to false", + "type": "boolean" + }, + "bandwidthPerMigration": { + "description": "BandwidthPerMigration limits the amount of network bandwidth live migrations are allowed to use. The value is in quantity per second. Defaults to 0 (no limit)", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.api.resource.Quantity" + }, + "completionTimeoutPerGiB": { + "description": "CompletionTimeoutPerGiB is the maximum number of seconds per GiB a migration is allowed to take. If a live-migration takes longer to migrate than this value multiplied by the size of the VMI, the migration will be cancelled, unless AllowPostCopy is true. Defaults to 800", + "type": "integer", + "format": "int64" + }, + "disableTLS": { + "description": "When set to true, DisableTLS will disable the additional layer of live migration encryption provided by KubeVirt. This is usually a bad idea. Defaults to false", + "type": "boolean" + }, + "matchSELinuxLevelOnMigration": { + "description": "By default, the SELinux level of target virt-launcher pods is forced to the level of the source virt-launcher. When set to true, MatchSELinuxLevelOnMigration lets the CRI auto-assign a random level to the target. That will ensure the target virt-launcher doesn't share categories with another pod on the node. However, migrations will fail when using RWX volumes that don't automatically deal with SELinux levels.", + "type": "boolean" + }, + "network": { + "description": "Network is the name of the CNI network to use for live migrations. By default, migrations go through the pod network.", + "type": "string" + }, + "nodeDrainTaintKey": { + "description": "NodeDrainTaintKey defines the taint key that indicates a node should be drained. Note: this option relies on the deprecated node taint feature. Default: kubevirt.io/drain", + "type": "string" + }, + "parallelMigrationsPerCluster": { + "description": "ParallelMigrationsPerCluster is the total number of concurrent live migrations allowed cluster-wide. Defaults to 5", + "type": "integer", + "format": "int64" + }, + "parallelOutboundMigrationsPerNode": { + "description": "ParallelOutboundMigrationsPerNode is the maximum number of concurrent outgoing live migrations allowed per node. Defaults to 2", + "type": "integer", + "format": "int64" + }, + "progressTimeout": { + "description": "ProgressTimeout is the maximum number of seconds a live migration is allowed to make no progress. Hitting this timeout means a migration transferred 0 data for that many seconds. The migration is then considered stuck and therefore cancelled. Defaults to 150", + "type": "integer", + "format": "int64" + }, + "unsafeMigrationOverride": { + "description": "UnsafeMigrationOverride allows live migrations to occur even if the compatibility check indicates the migration will be unsafe to the guest. Defaults to false", + "type": "boolean" + } + } + }, + "v1.MultusNetwork": { + "description": "Represents the multus cni network.", + "type": "object", + "required": [ + "networkName" + ], + "properties": { + "default": { + "description": "Select the default network and add it to the multus-cni.io/default-network annotation.", + "type": "boolean" + }, + "networkName": { + "description": "References to a NetworkAttachmentDefinition CRD object. Format: \u003cnetworkName\u003e, \u003cnamespace\u003e/\u003cnetworkName\u003e. If namespace is not specified, VMI namespace is assumed.", + "type": "string", + "default": "" + } + } + }, + "v1.NUMA": { + "type": "object", + "properties": { + "guestMappingPassthrough": { + "description": "GuestMappingPassthrough will create an efficient guest topology based on host CPUs exclusively assigned to a pod. The created topology ensures that memory and CPUs on the virtual numa nodes never cross boundaries of host numa nodes.", + "$ref": "#/definitions/v1.NUMAGuestMappingPassthrough" + } + } + }, + "v1.NUMAGuestMappingPassthrough": { + "description": "NUMAGuestMappingPassthrough instructs kubevirt to model numa topology which is compatible with the CPU pinning on the guest. This will result in a subset of the node numa topology being passed through, ensuring that virtual numa nodes and their memory never cross boundaries coming from the node numa mapping.", + "type": "object" + }, + "v1.Network": { + "description": "Network represents a network type and a resource that should be connected to the vm.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "multus": { + "$ref": "#/definitions/v1.MultusNetwork" + }, + "name": { + "description": "Network name. Must be a DNS_LABEL and unique within the vm. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string", + "default": "" + }, + "pod": { + "$ref": "#/definitions/v1.PodNetwork" + } + } + }, + "v1.NetworkConfiguration": { + "description": "NetworkConfiguration holds network options", + "type": "object", + "properties": { + "binding": { + "type": "object", + "additionalProperties": { + "default": {}, + "$ref": "#/definitions/v1.InterfaceBindingPlugin" + } + }, + "defaultNetworkInterface": { + "type": "string" + }, + "permitBridgeInterfaceOnPodNetwork": { + "type": "boolean" + }, + "permitSlirpInterface": { + "type": "boolean" + } + } + }, + "v1.NoCloudSSHPublicKeyAccessCredentialPropagation": { + "type": "object" + }, + "v1.NodeMediatedDeviceTypesConfig": { + "description": "NodeMediatedDeviceTypesConfig holds information about MDEV types to be defined in a specific node that matches the NodeSelector field.", + "type": "object", + "required": [ + "nodeSelector" + ], + "properties": { + "mediatedDeviceTypes": { + "type": "array", + "items": { + "type": "string", + "default": "" + }, + "x-kubernetes-list-type": "atomic" + }, + "mediatedDevicesTypes": { + "description": "Deprecated. Use mediatedDeviceTypes instead.", + "type": "array", + "items": { + "type": "string", + "default": "" + }, + "x-kubernetes-list-type": "atomic" + }, + "nodeSelector": { + "description": "NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/", + "type": "object", + "additionalProperties": { + "type": "string", + "default": "" + } + } + } + }, + "v1.NodePlacement": { + "description": "NodePlacement describes node scheduling configuration.", + "type": "object", + "properties": { + "affinity": { + "description": "affinity enables pod affinity/anti-affinity placement expanding the types of constraints that can be expressed with nodeSelector. affinity is going to be applied to the relevant kind of pods in parallel with nodeSelector See https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity", + "$ref": "#/definitions/k8s.io.api.core.v1.Affinity" + }, + "nodeSelector": { + "description": "nodeSelector is the node selector applied to the relevant kind of pods It specifies a map of key-value pairs: for the pod to be eligible to run on a node, the node must have each of the indicated key-value pairs as labels (it can have additional labels as well). See https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector", + "type": "object", + "additionalProperties": { + "type": "string", + "default": "" + } + }, + "tolerations": { + "description": "tolerations is a list of tolerations applied to the relevant kind of pods See https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ for more info. These are additional tolerations other than default ones.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/k8s.io.api.core.v1.Toleration" + } + } + } + }, + "v1.PITTimer": { + "type": "object", + "properties": { + "present": { + "description": "Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true.", + "type": "boolean" + }, + "tickPolicy": { + "description": "TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest. One of \"delay\", \"catchup\", \"discard\".", + "type": "string" + } + } + }, + "v1.PauseOptions": { + "description": "PauseOptions may be provided on pause request.", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "dryRun": { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "type": "array", + "items": { + "type": "string", + "default": "" + }, + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + } + } + }, + "v1.PciHostDevice": { + "description": "PciHostDevice represents a host PCI device allowed for passthrough", + "type": "object", + "required": [ + "pciVendorSelector", + "resourceName" + ], + "properties": { + "externalResourceProvider": { + "description": "If true, KubeVirt will leave the allocation and monitoring to an external device plugin", + "type": "boolean" + }, + "pciVendorSelector": { + "description": "The vendor_id:product_id tuple of the PCI device", + "type": "string", + "default": "" + }, + "resourceName": { + "description": "The name of the resource that is representing the device. Exposed by a device plugin and requested by VMs. Typically of the form vendor.com/product_name", + "type": "string", + "default": "" + } + } + }, + "v1.PermittedHostDevices": { + "description": "PermittedHostDevices holds information about devices allowed for passthrough", + "type": "object", + "properties": { + "mediatedDevices": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.MediatedHostDevice" + }, + "x-kubernetes-list-type": "atomic" + }, + "pciHostDevices": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.PciHostDevice" + }, + "x-kubernetes-list-type": "atomic" + }, + "usb": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.USBHostDevice" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "v1.PersistentVolumeClaimInfo": { + "description": "PersistentVolumeClaimInfo contains the relavant information virt-handler needs cached about a PVC", + "type": "object", + "properties": { + "accessModes": { + "description": "AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", + "type": "array", + "items": { + "type": "string", + "default": "" + }, + "x-kubernetes-list-type": "atomic" + }, + "capacity": { + "description": "Capacity represents the capacity set on the corresponding PVC status", + "type": "object", + "additionalProperties": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.api.resource.Quantity" + } + }, + "filesystemOverhead": { + "description": "Percentage of filesystem's size to be reserved when resizing the PVC", + "type": "string" + }, + "preallocated": { + "description": "Preallocated indicates if the PVC's storage is preallocated or not", + "type": "boolean" + }, + "requests": { + "description": "Requests represents the resources requested by the corresponding PVC spec", + "type": "object", + "additionalProperties": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.api.resource.Quantity" + } + }, + "volumeMode": { + "description": "VolumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.\n\nPossible enum values:\n - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device.\n - `\"Filesystem\"` means the volume will be or is formatted with a filesystem.", + "type": "string", + "enum": [ + "Block", + "Filesystem" + ] + } + } + }, + "v1.PersistentVolumeClaimVolumeSource": { + "description": "PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", + "type": "object", + "required": [ + "claimName" + ], + "properties": { + "claimName": { + "description": "claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", + "type": "string", + "default": "" + }, + "hotpluggable": { + "description": "Hotpluggable indicates whether the volume can be hotplugged and hotunplugged.", + "type": "boolean" + }, + "readOnly": { + "description": "readOnly Will force the ReadOnly setting in VolumeMounts. Default false.", + "type": "boolean" + } + } + }, + "v1.PluginBinding": { + "description": "PluginBinding represents a binding implemented in a plugin.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "description": "Name references to the binding name as denined in the kubevirt CR. version: 1alphav1", + "type": "string", + "default": "" + } + } + }, + "v1.PodNetwork": { + "description": "Represents the stock pod network interface.", + "type": "object", + "properties": { + "vmIPv6NetworkCIDR": { + "description": "IPv6 CIDR for the vm network. Defaults to fd10:0:2::/120 if not specified.", + "type": "string" + }, + "vmNetworkCIDR": { + "description": "CIDR for vm network. Default 10.0.2.0/24 if not specified.", + "type": "string" + } + } + }, + "v1.Port": { + "description": "Port represents a port to expose from the virtual machine. Default protocol TCP. The port field is mandatory", + "type": "object", + "required": [ + "port" + ], + "properties": { + "name": { + "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.", + "type": "string" + }, + "port": { + "description": "Number of port to expose for the virtual machine. This must be a valid port number, 0 \u003c x \u003c 65536.", + "type": "integer", + "format": "int32", + "default": 0 + }, + "protocol": { + "description": "Protocol for port. Must be UDP or TCP. Defaults to \"TCP\".", + "type": "string" + } + } + }, + "v1.PreferenceMatcher": { + "description": "PreferenceMatcher references a set of preference that is used to fill fields in the VMI template.", + "type": "object", + "properties": { + "inferFromVolume": { + "description": "InferFromVolume lists the name of a volume that should be used to infer or discover the preference to be used through known annotations on the underlying resource. Once applied to the PreferenceMatcher this field is removed.", + "type": "string" + }, + "inferFromVolumeFailurePolicy": { + "description": "InferFromVolumeFailurePolicy controls what should happen on failure when preference the instancetype. Allowed values are: \"RejectInferFromVolumeFailure\" and \"IgnoreInferFromVolumeFailure\". If not specified, \"RejectInferFromVolumeFailure\" is used by default.", + "type": "string" + }, + "kind": { + "description": "Kind specifies which preference resource is referenced. Allowed values are: \"VirtualMachinePreference\" and \"VirtualMachineClusterPreference\". If not specified, \"VirtualMachineClusterPreference\" is used by default.", + "type": "string" + }, + "name": { + "description": "Name is the name of the VirtualMachinePreference or VirtualMachineClusterPreference", + "type": "string" + }, + "revisionName": { + "description": "RevisionName specifies a ControllerRevision containing a specific copy of the VirtualMachinePreference or VirtualMachineClusterPreference to be used. This is initially captured the first time the instancetype is applied to the VirtualMachineInstance.", + "type": "string" + } + } + }, + "v1.Probe": { + "description": "Probe describes a health check to be performed against a VirtualMachineInstance to determine whether it is alive or ready to receive traffic.", + "type": "object", + "properties": { + "exec": { + "description": "One and only one of the following should be specified. Exec specifies the action to take, it will be executed on the guest through the qemu-guest-agent. If the guest agent is not available, this probe will fail.", + "$ref": "#/definitions/k8s.io.api.core.v1.ExecAction" + }, + "failureThreshold": { + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", + "type": "integer", + "format": "int32" + }, + "guestAgentPing": { + "description": "GuestAgentPing contacts the qemu-guest-agent for availability checks.", + "$ref": "#/definitions/v1.GuestAgentPing" + }, + "httpGet": { + "description": "HTTPGet specifies the http request to perform.", + "$ref": "#/definitions/k8s.io.api.core.v1.HTTPGetAction" + }, + "initialDelaySeconds": { + "description": "Number of seconds after the VirtualMachineInstance has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "type": "integer", + "format": "int32" + }, + "periodSeconds": { + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", + "type": "integer", + "format": "int32" + }, + "successThreshold": { + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1.", + "type": "integer", + "format": "int32" + }, + "tcpSocket": { + "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported", + "$ref": "#/definitions/k8s.io.api.core.v1.TCPSocketAction" + }, + "timeoutSeconds": { + "description": "Number of seconds after which the probe times out. For exec probes the timeout fails the probe but does not terminate the command running on the guest. This means a blocking command can result in an increasing load on the guest. A small buffer will be added to the resulting workload exec probe to compensate for delays caused by the qemu guest exec mechanism. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "type": "integer", + "format": "int32" + } + } + }, + "v1.QemuGuestAgentSSHPublicKeyAccessCredentialPropagation": { + "type": "object", + "required": [ + "users" + ], + "properties": { + "users": { + "description": "Users represents a list of guest users that should have the ssh public keys added to their authorized_keys file.", + "type": "array", + "items": { + "type": "string", + "default": "" + }, + "x-kubernetes-list-type": "set" + } + } + }, + "v1.QemuGuestAgentUserPasswordAccessCredentialPropagation": { + "type": "object" + }, + "v1.RESTClientConfiguration": { + "description": "RESTClientConfiguration allows configuring certain aspects of the k8s rest client.", + "type": "object", + "properties": { + "rateLimiter": { + "description": "RateLimiter allows selecting and configuring different rate limiters for the k8s client.", + "$ref": "#/definitions/v1.RateLimiter" + } + } + }, + "v1.RTCTimer": { + "type": "object", + "properties": { + "present": { + "description": "Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true.", + "type": "boolean" + }, + "tickPolicy": { + "description": "TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest. One of \"delay\", \"catchup\".", + "type": "string" + }, + "track": { + "description": "Track the guest or the wall clock.", + "type": "string" + } + } + }, + "v1.RateLimiter": { + "type": "object", + "properties": { + "tokenBucketRateLimiter": { + "$ref": "#/definitions/v1.TokenBucketRateLimiter" + } + } + }, + "v1.Realtime": { + "description": "Realtime holds the tuning knobs specific for realtime workloads.", + "type": "object", + "properties": { + "mask": { + "description": "Mask defines the vcpu mask expression that defines which vcpus are used for realtime. Format matches libvirt's expressions. Example: \"0-3,^1\",\"0,2,3\",\"2-3\"", + "type": "string" + } + } + }, + "v1.ReloadableComponentConfiguration": { + "description": "ReloadableComponentConfiguration holds all generic k8s configuration options which can be reloaded by components without requiring a restart.", + "type": "object", + "properties": { + "restClient": { + "description": "RestClient can be used to tune certain aspects of the k8s client in use.", + "$ref": "#/definitions/v1.RESTClientConfiguration" + } + } + }, + "v1.RemoveVolumeOptions": { + "description": "RemoveVolumeOptions is provided when dynamically hot unplugging volume and disk", + "type": "object", + "required": [ + "name" + ], + "properties": { + "dryRun": { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "type": "array", + "items": { + "type": "string", + "default": "" + }, + "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "Name represents the name that maps to both the disk and volume that should be removed", + "type": "string", + "default": "" + } + } + }, + "v1.ResourceRequirements": { + "type": "object", + "properties": { + "limits": { + "description": "Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\".", + "type": "object" + }, + "overcommitGuestOverhead": { + "description": "Don't ask the scheduler to take the guest-management overhead into account. Instead put the overhead only into the container's memory limit. This can lead to crashes if all memory is in use on a node. Defaults to false.", + "type": "boolean" + }, + "requests": { + "description": "Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\".", + "type": "object" + } + } + }, + "v1.RestartOptions": { + "description": "RestartOptions may be provided when deleting an API object.", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "dryRun": { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "type": "array", + "items": { + "type": "string", + "default": "" + }, + "x-kubernetes-list-type": "atomic" + }, + "gracePeriodSeconds": { + "description": "The duration in seconds before the object should be force-restarted. Value must be non-negative integer. The value zero indicates, restart immediately. If this value is nil, the default grace period for deletion of the corresponding VMI for the specified type will be used to determine on how much time to give the VMI to restart. Defaults to a per object value if not specified. zero means restart immediately. Allowed Values: nil and 0", + "type": "integer", + "format": "int64" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + } + } + }, + "v1.Rng": { + "description": "Rng represents the random device passed from host", + "type": "object" + }, + "v1.SEV": { + "type": "object", + "properties": { + "attestation": { + "description": "If specified, run the attestation process for a vmi.", + "$ref": "#/definitions/v1.SEVAttestation" + }, + "dhCert": { + "description": "Base64 encoded guest owner's Diffie-Hellman key.", + "type": "string" + }, + "policy": { + "description": "Guest policy flags as defined in AMD SEV API specification. Note: due to security reasons it is not allowed to enable guest debugging. Therefore NoDebug flag is not exposed to users and is always true.", + "$ref": "#/definitions/v1.SEVPolicy" + }, + "session": { + "description": "Base64 encoded session blob.", + "type": "string" + } + } + }, + "v1.SEVAttestation": { + "type": "object" + }, + "v1.SEVMeasurementInfo": { + "description": "SEVMeasurementInfo contains information about the guest launch measurement.", + "type": "object", + "properties": { + "apiMajor": { + "description": "API major version of the SEV host.", + "type": "integer", + "format": "int32" + }, + "apiMinor": { + "description": "API minor version of the SEV host.", + "type": "integer", + "format": "int32" + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "buildID": { + "description": "Build ID of the SEV host.", + "type": "integer", + "format": "int32" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "loaderSHA": { + "description": "SHA256 of the loader binary", + "type": "string" + }, + "measurement": { + "description": "Base64 encoded launch measurement of the SEV guest.", + "type": "string" + }, + "policy": { + "description": "Policy of the SEV guest.", + "type": "integer", + "format": "int32" + } + } + }, + "v1.SEVPlatformInfo": { + "description": "SEVPlatformInfo contains information about the AMD SEV features for the node.", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "certChain": { + "description": "Base64 encoded SEV certificate chain.", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "pdh": { + "description": "Base64 encoded platform Diffie-Hellman key.", + "type": "string" + } + } + }, + "v1.SEVPolicy": { + "type": "object", + "properties": { + "encryptedState": { + "description": "SEV-ES is required. Defaults to false.", + "type": "boolean" + } + } + }, + "v1.SEVSecretOptions": { + "description": "SEVSecretOptions is used to provide a secret for a running guest.", + "type": "object", + "properties": { + "header": { + "description": "Base64 encoded header needed to decrypt the secret.", + "type": "string" + }, + "secret": { + "description": "Base64 encoded encrypted launch secret.", + "type": "string" + } + } + }, + "v1.SEVSessionOptions": { + "description": "SEVSessionOptions is used to provide SEV session parameters.", + "type": "object", + "properties": { + "dhCert": { + "description": "Base64 encoded guest owner's Diffie-Hellman key.", + "type": "string" + }, + "session": { + "description": "Base64 encoded session blob.", + "type": "string" + } + } + }, + "v1.SMBiosConfiguration": { + "type": "object", + "properties": { + "family": { + "type": "string" + }, + "manufacturer": { + "type": "string" + }, + "product": { + "type": "string" + }, + "sku": { + "type": "string" + }, + "version": { + "type": "string" + } + } + }, + "v1.SSHPublicKeyAccessCredential": { + "description": "SSHPublicKeyAccessCredential represents a source and propagation method for injecting ssh public keys into a vm guest", + "type": "object", + "required": [ + "source", + "propagationMethod" + ], + "properties": { + "propagationMethod": { + "description": "PropagationMethod represents how the public key is injected into the vm guest.", + "default": {}, + "$ref": "#/definitions/v1.SSHPublicKeyAccessCredentialPropagationMethod" + }, + "source": { + "description": "Source represents where the public keys are pulled from", + "default": {}, + "$ref": "#/definitions/v1.SSHPublicKeyAccessCredentialSource" + } + } + }, + "v1.SSHPublicKeyAccessCredentialPropagationMethod": { + "description": "SSHPublicKeyAccessCredentialPropagationMethod represents the method used to inject a ssh public key into the vm guest. Only one of its members may be specified.", + "type": "object", + "properties": { + "configDrive": { + "description": "ConfigDrivePropagation means that the ssh public keys are injected into the VM using metadata using the configDrive cloud-init provider", + "$ref": "#/definitions/v1.ConfigDriveSSHPublicKeyAccessCredentialPropagation" + }, + "noCloud": { + "description": "NoCloudPropagation means that the ssh public keys are injected into the VM using metadata using the noCloud cloud-init provider", + "$ref": "#/definitions/v1.NoCloudSSHPublicKeyAccessCredentialPropagation" + }, + "qemuGuestAgent": { + "description": "QemuGuestAgentAccessCredentailPropagation means ssh public keys are dynamically injected into the vm at runtime via the qemu guest agent. This feature requires the qemu guest agent to be running within the guest.", + "$ref": "#/definitions/v1.QemuGuestAgentSSHPublicKeyAccessCredentialPropagation" + } + } + }, + "v1.SSHPublicKeyAccessCredentialSource": { + "description": "SSHPublicKeyAccessCredentialSource represents where to retrieve the ssh key credentials Only one of its members may be specified.", + "type": "object", + "properties": { + "secret": { + "description": "Secret means that the access credential is pulled from a kubernetes secret", + "$ref": "#/definitions/v1.AccessCredentialSecretSource" + } + } + }, + "v1.SeccompConfiguration": { + "description": "SeccompConfiguration holds Seccomp configuration for Kubevirt components", + "type": "object", + "properties": { + "virtualMachineInstanceProfile": { + "description": "VirtualMachineInstanceProfile defines what profile should be used with virt-launcher. Defaults to none", + "$ref": "#/definitions/v1.VirtualMachineInstanceProfile" + } + } + }, + "v1.SecretVolumeSource": { + "description": "SecretVolumeSource adapts a Secret into a volume.", + "type": "object", + "properties": { + "optional": { + "description": "Specify whether the Secret or it's keys must be defined", + "type": "boolean" + }, + "secretName": { + "description": "Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", + "type": "string" + }, + "volumeLabel": { + "description": "The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart).", + "type": "string" + } + } + }, + "v1.ServiceAccountVolumeSource": { + "description": "ServiceAccountVolumeSource adapts a ServiceAccount into a volume.", + "type": "object", + "properties": { + "serviceAccountName": { + "description": "Name of the service account in the pod's namespace to use. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", + "type": "string" + } + } + }, + "v1.SoundDevice": { + "description": "Represents the user's configuration to emulate sound cards in the VMI.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "model": { + "description": "We only support ich9 or ac97. If SoundDevice is not set: No sound card is emulated. If SoundDevice is set but Model is not: ich9", + "type": "string" + }, + "name": { + "description": "User's defined name for this sound device", + "type": "string", + "default": "" + } + } + }, + "v1.StartOptions": { + "description": "StartOptions may be provided on start request.", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "dryRun": { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "type": "array", + "items": { + "type": "string", + "default": "" + }, + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "paused": { + "description": "Indicates that VM will be started in paused state.", + "type": "boolean" + } + } + }, + "v1.StopOptions": { + "description": "StopOptions may be provided when deleting an API object.", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "dryRun": { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "type": "array", + "items": { + "type": "string", + "default": "" + }, + "x-kubernetes-list-type": "atomic" + }, + "gracePeriod": { + "description": "this updates the VMIs terminationGracePeriodSeconds during shutdown", + "type": "integer", + "format": "int64" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + } + } + }, + "v1.SupportContainerResources": { + "description": "SupportContainerResources are used to specify the cpu/memory request and limits for the containers that support various features of Virtual Machines. These containers are usually idle and don't require a lot of memory or cpu.", + "type": "object", + "required": [ + "type", + "resources" + ], + "properties": { + "resources": { + "default": {}, + "$ref": "#/definitions/k8s.io.api.core.v1.ResourceRequirements" + }, + "type": { + "type": "string", + "default": "" + } + } + }, + "v1.SyNICTimer": { + "type": "object", + "properties": { + "direct": { + "$ref": "#/definitions/v1.FeatureState" + }, + "enabled": { + "type": "boolean" + } + } + }, + "v1.SysprepSource": { + "description": "Represents a Sysprep volume source.", + "type": "object", + "properties": { + "configMap": { + "description": "ConfigMap references a ConfigMap that contains Sysprep answer file named autounattend.xml that should be attached as disk of CDROM type.", + "$ref": "#/definitions/k8s.io.api.core.v1.LocalObjectReference" + }, + "secret": { + "description": "Secret references a k8s Secret that contains Sysprep answer file named autounattend.xml that should be attached as disk of CDROM type.", + "$ref": "#/definitions/k8s.io.api.core.v1.LocalObjectReference" + } + } + }, + "v1.TLSConfiguration": { + "description": "TLSConfiguration holds TLS options", + "type": "object", + "properties": { + "ciphers": { + "type": "array", + "items": { + "type": "string", + "default": "" + }, + "x-kubernetes-list-type": "set" + }, + "minTLSVersion": { + "description": "MinTLSVersion is a way to specify the minimum protocol version that is acceptable for TLS connections. Protocol versions are based on the following most common TLS configurations:\n\n https://ssl-config.mozilla.org/\n\nNote that SSLv3.0 is not a supported protocol version due to well known vulnerabilities such as POODLE: https://en.wikipedia.org/wiki/POODLE", + "type": "string" + } + } + }, + "v1.TPMDevice": { + "type": "object", + "properties": { + "persistent": { + "description": "Persistent indicates the state of the TPM device should be kept accross reboots Defaults to false", + "type": "boolean" + } + } + }, + "v1.Timer": { + "description": "Represents all available timers in a vmi.", + "type": "object", + "properties": { + "hpet": { + "description": "HPET (High Precision Event Timer) - multiple timers with periodic interrupts.", + "$ref": "#/definitions/v1.HPETTimer" + }, + "hyperv": { + "description": "Hyperv (Hypervclock) - lets guests read the host’s wall clock time (paravirtualized). For windows guests.", + "$ref": "#/definitions/v1.HypervTimer" + }, + "kvm": { + "description": "KVM \t(KVM clock) - lets guests read the host’s wall clock time (paravirtualized). For linux guests.", + "$ref": "#/definitions/v1.KVMTimer" + }, + "pit": { + "description": "PIT (Programmable Interval Timer) - a timer with periodic interrupts.", + "$ref": "#/definitions/v1.PITTimer" + }, + "rtc": { + "description": "RTC (Real Time Clock) - a continuously running timer with periodic interrupts.", + "$ref": "#/definitions/v1.RTCTimer" + } + } + }, + "v1.TokenBucketRateLimiter": { + "type": "object", + "required": [ + "qps", + "burst" + ], + "properties": { + "burst": { + "description": "Maximum burst for throttle. If it's zero, the component default will be used", + "type": "integer", + "format": "int32", + "default": 0 + }, + "qps": { + "description": "QPS indicates the maximum QPS to the apiserver from this client. If it's zero, the component default will be used", + "type": "number", + "format": "float", + "default": 0 + } + } + }, + "v1.TopologyHints": { + "type": "object", + "properties": { + "tscFrequency": { + "type": "integer", + "format": "int64" + } + } + }, + "v1.USBHostDevice": { + "type": "object", + "required": [ + "resourceName" + ], + "properties": { + "externalResourceProvider": { + "description": "If true, KubeVirt will leave the allocation and monitoring to an external device plugin", + "type": "boolean" + }, + "resourceName": { + "description": "Identifies the list of USB host devices. e.g: kubevirt.io/storage, kubevirt.io/bootable-usb, etc", + "type": "string", + "default": "" + }, + "selectors": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.USBSelector" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "v1.USBSelector": { + "type": "object", + "required": [ + "vendor", + "product" + ], + "properties": { + "product": { + "type": "string", + "default": "" + }, + "vendor": { + "type": "string", + "default": "" + } + } + }, + "v1.UnpauseOptions": { + "description": "UnpauseOptions may be provided on unpause request.", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "dryRun": { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "type": "array", + "items": { + "type": "string", + "default": "" + }, + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + } + } + }, + "v1.UserPasswordAccessCredential": { + "description": "UserPasswordAccessCredential represents a source and propagation method for injecting user passwords into a vm guest Only one of its members may be specified.", + "type": "object", + "required": [ + "source", + "propagationMethod" + ], + "properties": { + "propagationMethod": { + "description": "propagationMethod represents how the user passwords are injected into the vm guest.", + "default": {}, + "$ref": "#/definitions/v1.UserPasswordAccessCredentialPropagationMethod" + }, + "source": { + "description": "Source represents where the user passwords are pulled from", + "default": {}, + "$ref": "#/definitions/v1.UserPasswordAccessCredentialSource" + } + } + }, + "v1.UserPasswordAccessCredentialPropagationMethod": { + "description": "UserPasswordAccessCredentialPropagationMethod represents the method used to inject a user passwords into the vm guest. Only one of its members may be specified.", + "type": "object", + "properties": { + "qemuGuestAgent": { + "description": "QemuGuestAgentAccessCredentailPropagation means passwords are dynamically injected into the vm at runtime via the qemu guest agent. This feature requires the qemu guest agent to be running within the guest.", + "$ref": "#/definitions/v1.QemuGuestAgentUserPasswordAccessCredentialPropagation" + } + } + }, + "v1.UserPasswordAccessCredentialSource": { + "description": "UserPasswordAccessCredentialSource represents where to retrieve the user password credentials Only one of its members may be specified.", + "type": "object", + "properties": { + "secret": { + "description": "Secret means that the access credential is pulled from a kubernetes secret", + "$ref": "#/definitions/v1.AccessCredentialSecretSource" + } + } + }, + "v1.VGPUDisplayOptions": { + "type": "object", + "properties": { + "enabled": { + "description": "Enabled determines if a display addapter backed by a vGPU should be enabled or disabled on the guest. Defaults to true.", + "type": "boolean" + }, + "ramFB": { + "description": "Enables a boot framebuffer, until the guest OS loads a real GPU driver Defaults to true.", + "$ref": "#/definitions/v1.FeatureState" + } + } + }, + "v1.VGPUOptions": { + "type": "object", + "properties": { + "display": { + "$ref": "#/definitions/v1.VGPUDisplayOptions" + } + } + }, + "v1.VirtualMachine": { + "description": "VirtualMachine handles the VirtualMachines that are not running or are in a stopped state The VirtualMachine contains the template to create the VirtualMachineInstance. It also mirrors the running state of the created VirtualMachineInstance in its status.", + "type": "object", + "required": [ + "spec" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "description": "Spec contains the specification of VirtualMachineInstance created", + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineSpec" + }, + "status": { + "description": "Status holds the current state of the controller and brief information about its associated VirtualMachineInstance", + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineStatus" + } + } + }, + "v1.VirtualMachineCondition": { + "description": "VirtualMachineCondition represents the state of VirtualMachine", + "type": "object", + "required": [ + "type", + "status" + ], + "properties": { + "lastProbeTime": { + "type": [ + "string", + "null" + ], + "default": {} + }, + "lastTransitionTime": { + "type": [ + "string", + "null" + ], + "default": {} + }, + "message": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "status": { + "type": "string", + "default": "" + }, + "type": { + "type": "string", + "default": "" + } + } + }, + "v1.VirtualMachineInstance": { + "description": "VirtualMachineInstance is *the* VirtualMachineInstance Definition. It represents a virtual machine in the runtime environment of kubernetes.", + "type": "object", + "required": [ + "spec" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "description": "VirtualMachineInstance Spec contains the VirtualMachineInstance specification.", + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineInstanceSpec" + }, + "status": { + "description": "Status is the high level overview of how the VirtualMachineInstance is doing. It contains information available to controllers and users.", + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineInstanceStatus" + } + } + }, + "v1.VirtualMachineInstanceCondition": { + "type": "object", + "required": [ + "type", + "status" + ], + "properties": { + "lastProbeTime": { + "type": [ + "string", + "null" + ], + "default": {} + }, + "lastTransitionTime": { + "type": [ + "string", + "null" + ], + "default": {} + }, + "message": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "status": { + "type": "string", + "default": "" + }, + "type": { + "type": "string", + "default": "" + } + } + }, + "v1.VirtualMachineInstanceFileSystem": { + "description": "VirtualMachineInstanceFileSystem represents guest os disk", + "type": "object", + "required": [ + "diskName", + "mountPoint", + "fileSystemType", + "usedBytes", + "totalBytes" + ], + "properties": { + "disk": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineInstanceFileSystemDisk" + } + }, + "diskName": { + "type": "string", + "default": "" + }, + "fileSystemType": { + "type": "string", + "default": "" + }, + "mountPoint": { + "type": "string", + "default": "" + }, + "totalBytes": { + "type": "integer", + "format": "int32", + "default": 0 + }, + "usedBytes": { + "type": "integer", + "format": "int32", + "default": 0 + } + } + }, + "v1.VirtualMachineInstanceFileSystemDisk": { + "description": "VirtualMachineInstanceFileSystemDisk represents the guest os FS disks", + "type": "object", + "required": [ + "serial", + "bus-type" + ], + "properties": { + "bus-type": { + "type": "string", + "default": "" + }, + "serial": { + "type": "string", + "default": "" + } + } + }, + "v1.VirtualMachineInstanceFileSystemInfo": { + "description": "VirtualMachineInstanceFileSystemInfo represents information regarding single guest os filesystem", + "type": "object", + "required": [ + "disks" + ], + "properties": { + "disks": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineInstanceFileSystem" + } + } + } + }, + "v1.VirtualMachineInstanceFileSystemList": { + "description": "VirtualMachineInstanceFileSystemList comprises the list of all filesystems on guest machine", + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineInstanceFileSystem" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta" + } + } + }, + "v1.VirtualMachineInstanceGuestAgentInfo": { + "description": "VirtualMachineInstanceGuestAgentInfo represents information from the installed guest agent", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "fsFreezeStatus": { + "description": "FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed", + "type": "string" + }, + "fsInfo": { + "description": "FSInfo is a guest os filesystem information containing the disk mapping and disk mounts with usage", + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineInstanceFileSystemInfo" + }, + "guestAgentVersion": { + "description": "GAVersion is a version of currently installed guest agent", + "type": "string" + }, + "hostname": { + "description": "Hostname represents FQDN of a guest", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "os": { + "description": "OS contains the guest operating system information", + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineInstanceGuestOSInfo" + }, + "supportedCommands": { + "description": "Return command list the guest agent supports", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.GuestAgentCommandInfo" + }, + "x-kubernetes-list-type": "atomic" + }, + "timezone": { + "description": "Timezone is guest os current timezone", + "type": "string" + }, + "userList": { + "description": "UserList is a list of active guest OS users", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineInstanceGuestOSUser" + } + } + } + }, + "v1.VirtualMachineInstanceGuestOSInfo": { + "type": "object", + "properties": { + "id": { + "description": "Guest OS Id", + "type": "string" + }, + "kernelRelease": { + "description": "Guest OS Kernel Release", + "type": "string" + }, + "kernelVersion": { + "description": "Kernel version of the Guest OS", + "type": "string" + }, + "machine": { + "description": "Machine type of the Guest OS", + "type": "string" + }, + "name": { + "description": "Name of the Guest OS", + "type": "string" + }, + "prettyName": { + "description": "Guest OS Pretty Name", + "type": "string" + }, + "version": { + "description": "Guest OS Version", + "type": "string" + }, + "versionId": { + "description": "Version ID of the Guest OS", + "type": "string" + } + } + }, + "v1.VirtualMachineInstanceGuestOSUser": { + "description": "VirtualMachineGuestOSUser is the single user of the guest os", + "type": "object", + "required": [ + "userName" + ], + "properties": { + "domain": { + "type": "string" + }, + "loginTime": { + "type": "number", + "format": "double" + }, + "userName": { + "type": "string", + "default": "" + } + } + }, + "v1.VirtualMachineInstanceGuestOSUserList": { + "description": "VirtualMachineInstanceGuestOSUserList comprises the list of all active users on guest machine", + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineInstanceGuestOSUser" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta" + } + } + }, + "v1.VirtualMachineInstanceList": { + "description": "VirtualMachineInstanceList is a list of VirtualMachines", + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineInstance" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta" + } + } + }, + "v1.VirtualMachineInstanceMigration": { + "description": "VirtualMachineInstanceMigration represents the object tracking a VMI's migration to another host in the cluster", + "type": "object", + "required": [ + "spec" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineInstanceMigrationSpec" + }, + "status": { + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineInstanceMigrationStatus" + } + } + }, + "v1.VirtualMachineInstanceMigrationCondition": { + "type": "object", + "required": [ + "type", + "status" + ], + "properties": { + "lastProbeTime": { + "type": [ + "string", + "null" + ], + "default": {} + }, + "lastTransitionTime": { + "type": [ + "string", + "null" + ], + "default": {} + }, + "message": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "status": { + "type": "string", + "default": "" + }, + "type": { + "type": "string", + "default": "" + } + } + }, + "v1.VirtualMachineInstanceMigrationList": { + "description": "VirtualMachineInstanceMigrationList is a list of VirtualMachineMigrations", + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineInstanceMigration" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta" + } + } + }, + "v1.VirtualMachineInstanceMigrationPhaseTransitionTimestamp": { + "description": "VirtualMachineInstanceMigrationPhaseTransitionTimestamp gives a timestamp in relation to when a phase is set on a vmi", + "type": "object", + "properties": { + "phase": { + "description": "Phase is the status of the VirtualMachineInstanceMigrationPhase in kubernetes world. It is not the VirtualMachineInstanceMigrationPhase status, but partially correlates to it.", + "type": "string" + }, + "phaseTransitionTimestamp": { + "description": "PhaseTransitionTimestamp is the timestamp of when the phase change occurred", + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Time" + } + } + }, + "v1.VirtualMachineInstanceMigrationSpec": { + "type": "object", + "properties": { + "vmiName": { + "description": "The name of the VMI to perform the migration on. VMI must exist in the migration objects namespace", + "type": "string" + } + } + }, + "v1.VirtualMachineInstanceMigrationState": { + "type": "object", + "properties": { + "abortRequested": { + "description": "Indicates that the migration has been requested to abort", + "type": "boolean" + }, + "abortStatus": { + "description": "Indicates the final status of the live migration abortion", + "type": "string" + }, + "completed": { + "description": "Indicates the migration completed", + "type": "boolean" + }, + "endTimestamp": { + "description": "The time the migration action ended", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Time" + }, + "failed": { + "description": "Indicates that the migration failed", + "type": "boolean" + }, + "migrationConfiguration": { + "description": "Migration configurations to apply", + "$ref": "#/definitions/v1.MigrationConfiguration" + }, + "migrationPolicyName": { + "description": "Name of the migration policy. If string is empty, no policy is matched", + "type": "string" + }, + "migrationUid": { + "description": "The VirtualMachineInstanceMigration object associated with this migration", + "type": "string" + }, + "mode": { + "description": "Lets us know if the vmi is currently running pre or post copy migration", + "type": "string" + }, + "sourceNode": { + "description": "The source node that the VMI originated on", + "type": "string" + }, + "startTimestamp": { + "description": "The time the migration action began", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Time" + }, + "targetAttachmentPodUID": { + "description": "The UID of the target attachment pod for hotplug volumes", + "type": "string" + }, + "targetCPUSet": { + "description": "If the VMI requires dedicated CPUs, this field will hold the dedicated CPU set on the target node", + "type": "array", + "items": { + "type": "integer", + "format": "int32", + "default": 0 + }, + "x-kubernetes-list-type": "atomic" + }, + "targetDirectMigrationNodePorts": { + "description": "The list of ports opened for live migration on the destination node", + "type": "object", + "additionalProperties": { + "type": "integer", + "format": "int32", + "default": 0 + } + }, + "targetNode": { + "description": "The target node that the VMI is moving to", + "type": "string" + }, + "targetNodeAddress": { + "description": "The address of the target node to use for the migration", + "type": "string" + }, + "targetNodeDomainDetected": { + "description": "The Target Node has seen the Domain Start Event", + "type": "boolean" + }, + "targetNodeDomainReadyTimestamp": { + "description": "The timestamp at which the target node detects the domain is active", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Time" + }, + "targetNodeTopology": { + "description": "If the VMI requires dedicated CPUs, this field will hold the numa topology on the target node", + "type": "string" + }, + "targetPod": { + "description": "The target pod that the VMI is moving to", + "type": "string" + } + } + }, + "v1.VirtualMachineInstanceMigrationStatus": { + "description": "VirtualMachineInstanceMigration reprents information pertaining to a VMI's migration.", + "type": "object", + "nullable": true, + "properties": { + "conditions": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineInstanceMigrationCondition" + } + }, + "migrationState": { + "description": "Represents the status of a live migration", + "$ref": "#/definitions/v1.VirtualMachineInstanceMigrationState" + }, + "phase": { + "type": "string" + }, + "phaseTransitionTimestamps": { + "description": "PhaseTransitionTimestamp is the timestamp of when the last phase change occurred", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineInstanceMigrationPhaseTransitionTimestamp" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "v1.VirtualMachineInstanceNetworkInterface": { + "type": "object", + "properties": { + "infoSource": { + "description": "Specifies the origin of the interface data collected. values: domain, guest-agent, multus-status.", + "type": "string" + }, + "interfaceName": { + "description": "The interface name inside the Virtual Machine", + "type": "string" + }, + "ipAddress": { + "description": "IP address of a Virtual Machine interface. It is always the first item of IPs", + "type": "string" + }, + "ipAddresses": { + "description": "List of all IP addresses of a Virtual Machine interface", + "type": "array", + "items": { + "type": "string", + "default": "" + } + }, + "mac": { + "description": "Hardware address of a Virtual Machine interface", + "type": "string" + }, + "name": { + "description": "Name of the interface, corresponds to name of the network assigned to the interface", + "type": "string" + }, + "queueCount": { + "description": "Specifies how many queues are allocated by MultiQueue", + "type": "integer", + "format": "int32" + } + } + }, + "v1.VirtualMachineInstancePhaseTransitionTimestamp": { + "description": "VirtualMachineInstancePhaseTransitionTimestamp gives a timestamp in relation to when a phase is set on a vmi", + "type": "object", + "properties": { + "phase": { + "description": "Phase is the status of the VirtualMachineInstance in kubernetes world. It is not the VirtualMachineInstance status, but partially correlates to it.", + "type": "string" + }, + "phaseTransitionTimestamp": { + "description": "PhaseTransitionTimestamp is the timestamp of when the phase change occurred", + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Time" + } + } + }, + "v1.VirtualMachineInstancePreset": { + "description": "Deprecated for removal in v2, please use VirtualMachineInstanceType and VirtualMachinePreference instead.\n\nVirtualMachineInstancePreset defines a VMI spec.domain to be applied to all VMIs that match the provided label selector More info: https://kubevirt.io/user-guide/virtual_machines/presets/#overrides", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "description": "VirtualMachineInstance Spec contains the VirtualMachineInstance specification.", + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineInstancePresetSpec" + } + } + }, + "v1.VirtualMachineInstancePresetList": { + "description": "VirtualMachineInstancePresetList is a list of VirtualMachinePresets", + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineInstancePreset" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta" + } + } + }, + "v1.VirtualMachineInstancePresetSpec": { + "type": "object", + "required": [ + "selector" + ], + "properties": { + "domain": { + "description": "Domain is the same object type as contained in VirtualMachineInstanceSpec", + "$ref": "#/definitions/v1.DomainSpec" + }, + "selector": { + "description": "Selector is a label query over a set of VMIs. Required.", + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector" + } + } + }, + "v1.VirtualMachineInstanceProfile": { + "type": "object", + "properties": { + "customProfile": { + "description": "CustomProfile allows to request arbitrary profile for virt-launcher", + "$ref": "#/definitions/v1.CustomProfile" + } + } + }, + "v1.VirtualMachineInstanceReplicaSet": { + "description": "VirtualMachineInstance is *the* VirtualMachineInstance Definition. It represents a virtual machine in the runtime environment of kubernetes.", + "type": "object", + "required": [ + "spec" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "description": "VirtualMachineInstance Spec contains the VirtualMachineInstance specification.", + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineInstanceReplicaSetSpec" + }, + "status": { + "description": "Status is the high level overview of how the VirtualMachineInstance is doing. It contains information available to controllers and users.", + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineInstanceReplicaSetStatus" + } + } + }, + "v1.VirtualMachineInstanceReplicaSetCondition": { + "type": "object", + "required": [ + "type", + "status" + ], + "properties": { + "lastProbeTime": { + "type": [ + "string", + "null" + ], + "default": {} + }, + "lastTransitionTime": { + "type": [ + "string", + "null" + ], + "default": {} + }, + "message": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "status": { + "type": "string", + "default": "" + }, + "type": { + "type": "string", + "default": "" + } + } + }, + "v1.VirtualMachineInstanceReplicaSetList": { + "description": "VMIList is a list of VMIs", + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineInstanceReplicaSet" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta" + } + } + }, + "v1.VirtualMachineInstanceReplicaSetSpec": { + "type": "object", + "required": [ + "selector", + "template" + ], + "properties": { + "paused": { + "description": "Indicates that the replica set is paused.", + "type": "boolean" + }, + "replicas": { + "description": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", + "type": "integer", + "format": "int32" + }, + "selector": { + "description": "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector" + }, + "template": { + "description": "Template describes the pods that will be created.", + "$ref": "#/definitions/v1.VirtualMachineInstanceTemplateSpec" + } + } + }, + "v1.VirtualMachineInstanceReplicaSetStatus": { + "type": "object", + "nullable": true, + "properties": { + "conditions": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineInstanceReplicaSetCondition" + } + }, + "labelSelector": { + "description": "Canonical form of the label selector for HPA which consumes it through the scale subresource.", + "type": "string" + }, + "readyReplicas": { + "description": "The number of ready replicas for this replica set.", + "type": "integer", + "format": "int32" + }, + "replicas": { + "description": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", + "type": "integer", + "format": "int32" + } + } + }, + "v1.VirtualMachineInstanceSpec": { + "description": "VirtualMachineInstanceSpec is a description of a VirtualMachineInstance.", + "type": "object", + "required": [ + "domain" + ], + "properties": { + "accessCredentials": { + "description": "Specifies a set of public keys to inject into the vm guest", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.AccessCredential" + }, + "x-kubernetes-list-type": "atomic" + }, + "affinity": { + "description": "If affinity is specifies, obey all the affinity rules", + "$ref": "#/definitions/k8s.io.api.core.v1.Affinity" + }, + "architecture": { + "description": "Specifies the architecture of the vm guest you are attempting to run. Defaults to the compiled architecture of the KubeVirt components", + "type": "string" + }, + "dnsConfig": { + "description": "Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy.", + "$ref": "#/definitions/k8s.io.api.core.v1.PodDNSConfig" + }, + "dnsPolicy": { + "description": "Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.\n\nPossible enum values:\n - `\"ClusterFirst\"` indicates that the pod should use cluster DNS first unless hostNetwork is true, if it is available, then fall back on the default (as determined by kubelet) DNS settings.\n - `\"ClusterFirstWithHostNet\"` indicates that the pod should use cluster DNS first, if it is available, then fall back on the default (as determined by kubelet) DNS settings.\n - `\"Default\"` indicates that the pod should use the default (as determined by kubelet) DNS settings.\n - `\"None\"` indicates that the pod should use empty DNS settings. DNS parameters such as nameservers and search paths should be defined via DNSConfig.", + "type": "string", + "enum": [ + "ClusterFirst", + "ClusterFirstWithHostNet", + "Default", + "None" + ] + }, + "domain": { + "description": "Specification of the desired behavior of the VirtualMachineInstance on the host.", + "default": {}, + "$ref": "#/definitions/v1.DomainSpec" + }, + "evictionStrategy": { + "description": "EvictionStrategy describes the strategy to follow when a node drain occurs. The possible options are: - \"None\": No action will be taken, according to the specified 'RunStrategy' the VirtualMachine will be restarted or shutdown. - \"LiveMigrate\": the VirtualMachineInstance will be migrated instead of being shutdown. - \"LiveMigrateIfPossible\": the same as \"LiveMigrate\" but only if the VirtualMachine is Live-Migratable, otherwise it will behave as \"None\". - \"External\": the VirtualMachineInstance will be protected by a PDB and `vmi.Status.EvacuationNodeName` will be set on eviction. This is mainly useful for cluster-api-provider-kubevirt (capk) which needs a way for VMI's to be blocked from eviction, yet signal capk that eviction has been called on the VMI so the capk controller can handle tearing the VMI down. Details can be found in the commit description https://github.com/kubevirt/kubevirt/commit/c1d77face705c8b126696bac9a3ee3825f27f1fa.", + "type": "string" + }, + "hostname": { + "description": "Specifies the hostname of the vmi If not specified, the hostname will be set to the name of the vmi, if dhcp or cloud-init is configured properly.", + "type": "string" + }, + "livenessProbe": { + "description": "Periodic probe of VirtualMachineInstance liveness. VirtualmachineInstances will be stopped if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "$ref": "#/definitions/v1.Probe" + }, + "networks": { + "description": "List of networks that can be attached to a vm's virtual interface.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.Network" + } + }, + "nodeSelector": { + "description": "NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/", + "type": "object", + "additionalProperties": { + "type": "string", + "default": "" + } + }, + "priorityClassName": { + "description": "If specified, indicates the pod's priority. If not specified, the pod priority will be default or zero if there is no default.", + "type": "string" + }, + "readinessProbe": { + "description": "Periodic probe of VirtualMachineInstance service readiness. VirtualmachineInstances will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "$ref": "#/definitions/v1.Probe" + }, + "schedulerName": { + "description": "If specified, the VMI will be dispatched by specified scheduler. If not specified, the VMI will be dispatched by default scheduler.", + "type": "string" + }, + "startStrategy": { + "description": "StartStrategy can be set to \"Paused\" if Virtual Machine should be started in paused state.", + "type": "string" + }, + "subdomain": { + "description": "If specified, the fully qualified vmi hostname will be \"\u003chostname\u003e.\u003csubdomain\u003e.\u003cpod namespace\u003e.svc.\u003ccluster domain\u003e\". If not specified, the vmi will not have a domainname at all. The DNS entry will resolve to the vmi, no matter if the vmi itself can pick up a hostname.", + "type": "string" + }, + "terminationGracePeriodSeconds": { + "description": "Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated.", + "type": "integer", + "format": "int64" + }, + "tolerations": { + "description": "If toleration is specified, obey all the toleration rules.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/k8s.io.api.core.v1.Toleration" + } + }, + "topologySpreadConstraints": { + "description": "TopologySpreadConstraints describes how a group of VMIs will be spread across a given topology domains. K8s scheduler will schedule VMI pods in a way which abides by the constraints.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/k8s.io.api.core.v1.TopologySpreadConstraint" + }, + "x-kubernetes-list-map-keys": [ + "topologyKey", + "whenUnsatisfiable" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "topologyKey", + "x-kubernetes-patch-strategy": "merge" + }, + "volumes": { + "description": "List of volumes that can be mounted by disks belonging to the vmi.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.Volume" + } + } + } + }, + "v1.VirtualMachineInstanceStatus": { + "description": "VirtualMachineInstanceStatus represents information about the status of a VirtualMachineInstance. Status may trail the actual state of a system.", + "type": "object", + "nullable": true, + "properties": { + "VSOCKCID": { + "description": "VSOCKCID is used to track the allocated VSOCK CID in the VM.", + "type": "integer", + "format": "int64" + }, + "activePods": { + "description": "ActivePods is a mapping of pod UID to node name. It is possible for multiple pods to be running for a single VMI during migration.", + "type": "object", + "additionalProperties": { + "type": "string", + "default": "" + } + }, + "conditions": { + "description": "Conditions are specific points in VirtualMachineInstance's pod runtime.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineInstanceCondition" + } + }, + "currentCPUTopology": { + "description": "CurrentCPUTopology specifies the current CPU topology used by the VM workload. Current topology may differ from the desired topology in the spec while CPU hotplug takes place.", + "$ref": "#/definitions/v1.CPUTopology" + }, + "evacuationNodeName": { + "description": "EvacuationNodeName is used to track the eviction process of a VMI. It stores the name of the node that we want to evacuate. It is meant to be used by KubeVirt core components only and can't be set or modified by users.", + "type": "string" + }, + "fsFreezeStatus": { + "description": "FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed", + "type": "string" + }, + "guestOSInfo": { + "description": "Guest OS Information", + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineInstanceGuestOSInfo" + }, + "interfaces": { + "description": "Interfaces represent the details of available network interfaces.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineInstanceNetworkInterface" + } + }, + "kernelBootStatus": { + "description": "KernelBootStatus contains info about the kernelBootContainer", + "$ref": "#/definitions/v1.KernelBootStatus" + }, + "launcherContainerImageVersion": { + "description": "LauncherContainerImageVersion indicates what container image is currently active for the vmi.", + "type": "string" + }, + "machine": { + "description": "Machine shows the final resulting qemu machine type. This can be different than the machine type selected in the spec, due to qemus machine type alias mechanism.", + "$ref": "#/definitions/v1.Machine" + }, + "memory": { + "description": "Memory shows various informations about the VirtualMachine memory.", + "$ref": "#/definitions/v1.MemoryStatus" + }, + "migrationMethod": { + "description": "Represents the method using which the vmi can be migrated: live migration or block migration", + "type": "string" + }, + "migrationState": { + "description": "Represents the status of a live migration", + "$ref": "#/definitions/v1.VirtualMachineInstanceMigrationState" + }, + "migrationTransport": { + "description": "This represents the migration transport", + "type": "string" + }, + "nodeName": { + "description": "NodeName is the name where the VirtualMachineInstance is currently running.", + "type": "string" + }, + "phase": { + "description": "Phase is the status of the VirtualMachineInstance in kubernetes world. It is not the VirtualMachineInstance status, but partially correlates to it.", + "type": "string" + }, + "phaseTransitionTimestamps": { + "description": "PhaseTransitionTimestamp is the timestamp of when the last phase change occurred", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineInstancePhaseTransitionTimestamp" + }, + "x-kubernetes-list-type": "atomic" + }, + "qosClass": { + "description": "The Quality of Service (QOS) classification assigned to the virtual machine instance based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md\n\nPossible enum values:\n - `\"BestEffort\"` is the BestEffort qos class.\n - `\"Burstable\"` is the Burstable qos class.\n - `\"Guaranteed\"` is the Guaranteed qos class.", + "type": "string", + "enum": [ + "BestEffort", + "Burstable", + "Guaranteed" + ] + }, + "reason": { + "description": "A brief CamelCase message indicating details about why the VMI is in this state. e.g. 'NodeUnresponsive'", + "type": "string" + }, + "runtimeUser": { + "description": "RuntimeUser is used to determine what user will be used in launcher", + "type": "integer", + "format": "int64", + "default": 0 + }, + "selinuxContext": { + "description": "SELinuxContext is the actual SELinux context of the virt-launcher pod", + "type": "string" + }, + "topologyHints": { + "$ref": "#/definitions/v1.TopologyHints" + }, + "virtualMachineRevisionName": { + "description": "VirtualMachineRevisionName is used to get the vm revision of the vmi when doing an online vm snapshot", + "type": "string" + }, + "volumeStatus": { + "description": "VolumeStatus contains the statuses of all the volumes", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.VolumeStatus" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "v1.VirtualMachineInstanceTemplateSpec": { + "type": "object", + "properties": { + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "description": "VirtualMachineInstance Spec contains the VirtualMachineInstance specification.", + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineInstanceSpec" + } + } + }, + "v1.VirtualMachineList": { + "description": "VirtualMachineList is a list of virtualmachines", + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.VirtualMachine" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta" + } + } + }, + "v1.VirtualMachineMemoryDumpRequest": { + "description": "VirtualMachineMemoryDumpRequest represent the memory dump request phase and info", + "type": "object", + "required": [ + "claimName", + "phase" + ], + "properties": { + "claimName": { + "description": "ClaimName is the name of the pvc that will contain the memory dump", + "type": "string", + "default": "" + }, + "endTimestamp": { + "description": "EndTimestamp represents the time the memory dump was completed", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Time" + }, + "fileName": { + "description": "FileName represents the name of the output file", + "type": "string" + }, + "message": { + "description": "Message is a detailed message about failure of the memory dump", + "type": "string" + }, + "phase": { + "description": "Phase represents the memory dump phase", + "type": "string", + "default": "" + }, + "remove": { + "description": "Remove represents request of dissociating the memory dump pvc", + "type": "boolean" + }, + "startTimestamp": { + "description": "StartTimestamp represents the time the memory dump started", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Time" + } + } + }, + "v1.VirtualMachineOptions": { + "description": "VirtualMachineOptions holds the cluster level information regarding the virtual machine.", + "type": "object", + "properties": { + "disableFreePageReporting": { + "description": "DisableFreePageReporting disable the free page reporting of memory balloon device https://libvirt.org/formatdomain.html#memory-balloon-device. This will have effect only if AutoattachMemBalloon is not false and the vmi is not requesting any high performance feature (dedicatedCPU/realtime/hugePages), in which free page reporting is always disabled.", + "$ref": "#/definitions/v1.DisableFreePageReporting" + }, + "disableSerialConsoleLog": { + "description": "DisableSerialConsoleLog disables logging the auto-attached default serial console. If not set, serial console logs will be written to a file and then streamed from a container named `guest-console-log`. The value can be individually overridden for each VM, not relevant if AutoattachSerialConsole is disabled.", + "$ref": "#/definitions/v1.DisableSerialConsoleLog" + } + } + }, + "v1.VirtualMachineSpec": { + "description": "VirtualMachineSpec describes how the proper VirtualMachine should look like", + "type": "object", + "required": [ + "template" + ], + "properties": { + "dataVolumeTemplates": { + "description": "dataVolumeTemplates is a list of dataVolumes that the VirtualMachineInstance template can reference. DataVolumes in this list are dynamically created for the VirtualMachine and are tied to the VirtualMachine's life-cycle.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.DataVolumeTemplateSpec" + } + }, + "instancetype": { + "description": "InstancetypeMatcher references a instancetype that is used to fill fields in Template", + "$ref": "#/definitions/v1.InstancetypeMatcher" + }, + "preference": { + "description": "PreferenceMatcher references a set of preference that is used to fill fields in Template", + "$ref": "#/definitions/v1.PreferenceMatcher" + }, + "runStrategy": { + "description": "Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running", + "type": "string" + }, + "running": { + "description": "Running controls whether the associatied VirtualMachineInstance is created or not Mutually exclusive with RunStrategy", + "type": "boolean" + }, + "template": { + "description": "Template is the direct specification of VirtualMachineInstance", + "$ref": "#/definitions/v1.VirtualMachineInstanceTemplateSpec" + } + } + }, + "v1.VirtualMachineStartFailure": { + "description": "VirtualMachineStartFailure tracks VMIs which failed to transition successfully to running using the VM status", + "type": "object", + "properties": { + "consecutiveFailCount": { + "type": "integer", + "format": "int32" + }, + "lastFailedVMIUID": { + "type": "string" + }, + "retryAfterTimestamp": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Time" + } + } + }, + "v1.VirtualMachineStateChangeRequest": { + "type": "object", + "required": [ + "action" + ], + "properties": { + "action": { + "description": "Indicates the type of action that is requested. e.g. Start or Stop", + "type": "string", + "default": "" + }, + "data": { + "description": "Provides additional data in order to perform the Action", + "type": "object", + "additionalProperties": { + "type": "string", + "default": "" + } + }, + "uid": { + "description": "Indicates the UUID of an existing Virtual Machine Instance that this change request applies to -- if applicable", + "type": "string" + } + } + }, + "v1.VirtualMachineStatus": { + "description": "VirtualMachineStatus represents the status returned by the controller to describe how the VirtualMachine is doing", + "type": "object", + "nullable": true, + "properties": { + "conditions": { + "description": "Hold the state information of the VirtualMachine and its VirtualMachineInstance", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineCondition" + } + }, + "created": { + "description": "Created indicates if the virtual machine is created in the cluster", + "type": "boolean" + }, + "desiredGeneration": { + "description": "DesiredGeneration is the generation which is desired for the VMI. This will be used in comparisons with ObservedGeneration to understand when the VMI is out of sync. This will be changed at the same time as ObservedGeneration to remove errors which could occur if Generation is updated through an Update() before ObservedGeneration in Status.", + "type": "integer", + "format": "int64" + }, + "memoryDumpRequest": { + "description": "MemoryDumpRequest tracks memory dump request phase and info of getting a memory dump to the given pvc", + "$ref": "#/definitions/v1.VirtualMachineMemoryDumpRequest" + }, + "observedGeneration": { + "description": "ObservedGeneration is the generation observed by the vmi when started.", + "type": "integer", + "format": "int64" + }, + "printableStatus": { + "description": "PrintableStatus is a human readable, high-level representation of the status of the virtual machine", + "type": "string" + }, + "ready": { + "description": "Ready indicates if the virtual machine is running and ready", + "type": "boolean" + }, + "restoreInProgress": { + "description": "RestoreInProgress is the name of the VirtualMachineRestore currently executing", + "type": "string" + }, + "snapshotInProgress": { + "description": "SnapshotInProgress is the name of the VirtualMachineSnapshot currently executing", + "type": "string" + }, + "startFailure": { + "description": "StartFailure tracks consecutive VMI startup failures for the purposes of crash loop backoffs", + "$ref": "#/definitions/v1.VirtualMachineStartFailure" + }, + "stateChangeRequests": { + "description": "StateChangeRequests indicates a list of actions that should be taken on a VMI e.g. stop a specific VMI then start a new one.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineStateChangeRequest" + } + }, + "volumeRequests": { + "description": "VolumeRequests indicates a list of volumes add or remove from the VMI template and hotplug on an active running VMI.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineVolumeRequest" + }, + "x-kubernetes-list-type": "atomic" + }, + "volumeSnapshotStatuses": { + "description": "VolumeSnapshotStatuses indicates a list of statuses whether snapshotting is supported by each volume.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.VolumeSnapshotStatus" + } + } + } + }, + "v1.VirtualMachineVolumeRequest": { + "type": "object", + "properties": { + "addVolumeOptions": { + "description": "AddVolumeOptions when set indicates a volume should be added. The details within this field specify how to add the volume", + "$ref": "#/definitions/v1.AddVolumeOptions" + }, + "removeVolumeOptions": { + "description": "RemoveVolumeOptions when set indicates a volume should be removed. The details within this field specify how to add the volume", + "$ref": "#/definitions/v1.RemoveVolumeOptions" + } + } + }, + "v1.Volume": { + "description": "Volume represents a named volume in a vmi.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "cloudInitConfigDrive": { + "description": "CloudInitConfigDrive represents a cloud-init Config Drive user-data source. The Config Drive data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: https://cloudinit.readthedocs.io/en/latest/topics/datasources/configdrive.html", + "$ref": "#/definitions/v1.CloudInitConfigDriveSource" + }, + "cloudInitNoCloud": { + "description": "CloudInitNoCloud represents a cloud-init NoCloud user-data source. The NoCloud data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html", + "$ref": "#/definitions/v1.CloudInitNoCloudSource" + }, + "configMap": { + "description": "ConfigMapSource represents a reference to a ConfigMap in the same namespace. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/", + "$ref": "#/definitions/v1.ConfigMapVolumeSource" + }, + "containerDisk": { + "description": "ContainerDisk references a docker image, embedding a qcow or raw disk. More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html", + "$ref": "#/definitions/v1.ContainerDiskSource" + }, + "dataVolume": { + "description": "DataVolume represents the dynamic creation a PVC for this volume as well as the process of populating that PVC with a disk image.", + "$ref": "#/definitions/v1.DataVolumeSource" + }, + "downwardAPI": { + "description": "DownwardAPI represents downward API about the pod that should populate this volume", + "$ref": "#/definitions/v1.DownwardAPIVolumeSource" + }, + "downwardMetrics": { + "description": "DownwardMetrics adds a very small disk to VMIs which contains a limited view of host and guest metrics. The disk content is compatible with vhostmd (https://github.com/vhostmd/vhostmd) and vm-dump-metrics.", + "$ref": "#/definitions/v1.DownwardMetricsVolumeSource" + }, + "emptyDisk": { + "description": "EmptyDisk represents a temporary disk which shares the vmis lifecycle. More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html", + "$ref": "#/definitions/v1.EmptyDiskSource" + }, + "ephemeral": { + "description": "Ephemeral is a special volume source that \"wraps\" specified source and provides copy-on-write image on top of it.", + "$ref": "#/definitions/v1.EphemeralVolumeSource" + }, + "hostDisk": { + "description": "HostDisk represents a disk created on the cluster level", + "$ref": "#/definitions/v1.HostDisk" + }, + "memoryDump": { + "description": "MemoryDump is attached to the virt launcher and is populated with a memory dump of the vmi", + "$ref": "#/definitions/v1.MemoryDumpVolumeSource" + }, + "name": { + "description": "Volume's name. Must be a DNS_LABEL and unique within the vmi. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string", + "default": "" + }, + "persistentVolumeClaim": { + "description": "PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", + "$ref": "#/definitions/v1.PersistentVolumeClaimVolumeSource" + }, + "secret": { + "description": "SecretVolumeSource represents a reference to a secret data in the same namespace. More info: https://kubernetes.io/docs/concepts/configuration/secret/", + "$ref": "#/definitions/v1.SecretVolumeSource" + }, + "serviceAccount": { + "description": "ServiceAccountVolumeSource represents a reference to a service account. There can only be one volume of this type! More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", + "$ref": "#/definitions/v1.ServiceAccountVolumeSource" + }, + "sysprep": { + "description": "Represents a Sysprep volume source.", + "$ref": "#/definitions/v1.SysprepSource" + } + } + }, + "v1.VolumeSnapshotStatus": { + "type": "object", + "required": [ + "name", + "enabled" + ], + "properties": { + "enabled": { + "description": "True if the volume supports snapshotting", + "type": "boolean", + "default": false + }, + "name": { + "description": "Volume name", + "type": "string", + "default": "" + }, + "reason": { + "description": "Empty if snapshotting is enabled, contains reason otherwise", + "type": "string" + } + } + }, + "v1.VolumeStatus": { + "description": "VolumeStatus represents information about the status of volumes attached to the VirtualMachineInstance.", + "type": "object", + "required": [ + "name", + "target" + ], + "properties": { + "containerDiskVolume": { + "description": "ContainerDiskVolume shows info about the containerdisk, if the volume is a containerdisk", + "$ref": "#/definitions/v1.ContainerDiskInfo" + }, + "hotplugVolume": { + "description": "If the volume is hotplug, this will contain the hotplug status.", + "$ref": "#/definitions/v1.HotplugVolumeStatus" + }, + "memoryDumpVolume": { + "description": "If the volume is memorydump volume, this will contain the memorydump info.", + "$ref": "#/definitions/v1.DomainMemoryDumpInfo" + }, + "message": { + "description": "Message is a detailed message about the current hotplug volume phase", + "type": "string" + }, + "name": { + "description": "Name is the name of the volume", + "type": "string", + "default": "" + }, + "persistentVolumeClaimInfo": { + "description": "PersistentVolumeClaimInfo is information about the PVC that handler requires during start flow", + "$ref": "#/definitions/v1.PersistentVolumeClaimInfo" + }, + "phase": { + "description": "Phase is the phase", + "type": "string" + }, + "reason": { + "description": "Reason is a brief description of why we are in the current hotplug volume phase", + "type": "string" + }, + "size": { + "description": "Represents the size of the volume", + "type": "integer", + "format": "int64" + }, + "target": { + "description": "Target is the target name used when adding the volume to the VM, eg: vda", + "type": "string", + "default": "" + } + } + }, + "v1.Watchdog": { + "description": "Named watchdog device.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "i6300esb": { + "description": "i6300esb watchdog device.", + "$ref": "#/definitions/v1.I6300ESBWatchdog" + }, + "name": { + "description": "Name of the watchdog.", + "type": "string", + "default": "" + } + } + }, + "v1alpha1.Condition": { + "description": "Condition defines conditions", + "type": "object", + "required": [ + "type", + "status" + ], + "properties": { + "lastProbeTime": { + "type": [ + "string", + "null" + ], + "default": {} + }, + "lastTransitionTime": { + "type": [ + "string", + "null" + ], + "default": {} + }, + "message": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "status": { + "type": "string", + "default": "" + }, + "type": { + "type": "string", + "default": "" + } + } + }, + "v1alpha1.Error": { + "description": "Error is the last error encountered during the snapshot/restore", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "time": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Time" + } + } + }, + "v1alpha1.MigrationPolicy": { + "description": "MigrationPolicy holds migration policy (i.e. configurations) to apply to a VM or group of VMs", + "type": "object", + "required": [ + "spec" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "default": {}, + "$ref": "#/definitions/v1alpha1.MigrationPolicySpec" + }, + "status": { + "default": {}, + "$ref": "#/definitions/v1alpha1.MigrationPolicyStatus" + } + } + }, + "v1alpha1.MigrationPolicyList": { + "description": "MigrationPolicyList is a list of MigrationPolicy", + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1alpha1.MigrationPolicy" + }, + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta" + } + } + }, + "v1alpha1.MigrationPolicySpec": { + "type": "object", + "required": [ + "selectors" + ], + "properties": { + "allowAutoConverge": { + "type": "boolean" + }, + "allowPostCopy": { + "type": "boolean" + }, + "bandwidthPerMigration": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.api.resource.Quantity" + }, + "completionTimeoutPerGiB": { + "type": "integer", + "format": "int64" + }, + "selectors": { + "$ref": "#/definitions/v1alpha1.Selectors" + } + } + }, + "v1alpha1.MigrationPolicyStatus": { + "type": "object", + "nullable": true + }, + "v1alpha1.PersistentVolumeClaim": { + "type": "object", + "properties": { + "metadata": { + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "description": "Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", + "default": {}, + "$ref": "#/definitions/k8s.io.api.core.v1.PersistentVolumeClaimSpec" + } + } + }, + "v1alpha1.Selectors": { + "type": "object", + "properties": { + "namespaceSelector": { + "type": "object", + "additionalProperties": { + "type": "string", + "default": "" + } + }, + "virtualMachineInstanceSelector": { + "type": "object", + "additionalProperties": { + "type": "string", + "default": "" + } + } + } + }, + "v1alpha1.SnapshotVolumesLists": { + "description": "SnapshotVolumesLists includes the list of volumes which were included in the snapshot and volumes which were excluded from the snapshot", + "type": "object", + "properties": { + "excludedVolumes": { + "type": "array", + "items": { + "type": "string", + "default": "" + }, + "x-kubernetes-list-type": "set" + }, + "includedVolumes": { + "type": "array", + "items": { + "type": "string", + "default": "" + }, + "x-kubernetes-list-type": "set" + } + } + }, + "v1alpha1.SourceSpec": { + "description": "SourceSpec contains the appropriate spec for the resource being snapshotted", + "type": "object", + "properties": { + "virtualMachine": { + "$ref": "#/definitions/v1alpha1.VirtualMachine" + } + } + }, + "v1alpha1.VirtualMachine": { + "type": "object", + "properties": { + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "description": "VirtualMachineSpec contains the VirtualMachine specification.", + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineSpec" + }, + "status": { + "description": "Status holds the current state of the controller and brief information about its associated VirtualMachineInstance", + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineStatus" + } + } + }, + "v1alpha1.VirtualMachineClone": { + "description": "VirtualMachineClone is a CRD that clones one VM into another.", + "type": "object", + "required": [ + "spec" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "default": {}, + "$ref": "#/definitions/v1alpha1.VirtualMachineCloneSpec" + }, + "status": { + "default": {}, + "$ref": "#/definitions/v1alpha1.VirtualMachineCloneStatus" + } + } + }, + "v1alpha1.VirtualMachineCloneList": { + "description": "VirtualMachineCloneList is a list of MigrationPolicy", + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1alpha1.VirtualMachineClone" + }, + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta" + } + } + }, + "v1alpha1.VirtualMachineCloneSpec": { + "type": "object", + "required": [ + "source" + ], + "properties": { + "annotationFilters": { + "description": "Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters.", + "type": "array", + "items": { + "type": "string", + "default": "" + }, + "x-kubernetes-list-type": "atomic" + }, + "labelFilters": { + "description": "Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters.", + "type": "array", + "items": { + "type": "string", + "default": "" + }, + "x-kubernetes-list-type": "atomic" + }, + "newMacAddresses": { + "description": "NewMacAddresses manually sets that target interfaces' mac addresses. The key is the interface name and the value is the new mac address. If this field is not specified, a new MAC address will be generated automatically, as for any interface that is not included in this map.", + "type": "object", + "additionalProperties": { + "type": "string", + "default": "" + } + }, + "newSMBiosSerial": { + "description": "NewSMBiosSerial manually sets that target's SMbios serial. If this field is not specified, a new serial will be generated automatically.", + "type": "string" + }, + "source": { + "description": "Source is the object that would be cloned. Currently supported source types are: VirtualMachine of kubevirt.io API group, VirtualMachineSnapshot of snapshot.kubevirt.io API group", + "$ref": "#/definitions/k8s.io.api.core.v1.TypedLocalObjectReference" + }, + "target": { + "description": "Target is the outcome of the cloning process. Currently supported source types are: - VirtualMachine of kubevirt.io API group - Empty (nil). If the target is not provided, the target type would default to VirtualMachine and a random name would be generated for the target. The target's name can be viewed by inspecting status \"TargetName\" field below.", + "$ref": "#/definitions/k8s.io.api.core.v1.TypedLocalObjectReference" + }, + "template": { + "description": "For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters.", + "default": {}, + "$ref": "#/definitions/v1alpha1.VirtualMachineCloneTemplateFilters" + } + } + }, + "v1alpha1.VirtualMachineCloneStatus": { + "type": "object", + "nullable": true, + "properties": { + "conditions": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1alpha1.Condition" + }, + "x-kubernetes-list-type": "atomic" + }, + "creationTime": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Time" + }, + "phase": { + "type": "string" + }, + "restoreName": { + "type": "string" + }, + "snapshotName": { + "type": "string" + }, + "targetName": { + "type": "string" + } + } + }, + "v1alpha1.VirtualMachineCloneTemplateFilters": { + "type": "object", + "properties": { + "annotationFilters": { + "description": "Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters.", + "type": "array", + "items": { + "type": "string", + "default": "" + }, + "x-kubernetes-list-type": "atomic" + }, + "labelFilters": { + "description": "Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters.", + "type": "array", + "items": { + "type": "string", + "default": "" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "v1alpha1.VirtualMachineExport": { + "description": "VirtualMachineExport defines the operation of exporting a VM source", + "type": "object", + "required": [ + "spec" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "default": {}, + "$ref": "#/definitions/v1alpha1.VirtualMachineExportSpec" + }, + "status": { + "$ref": "#/definitions/v1alpha1.VirtualMachineExportStatus" + } + } + }, + "v1alpha1.VirtualMachineExportLink": { + "description": "VirtualMachineExportLink contains a list of volumes available for export, as well as the URLs to obtain these volumes", + "type": "object", + "required": [ + "cert" + ], + "properties": { + "cert": { + "description": "Cert is the public CA certificate base64 encoded", + "type": "string", + "default": "" + }, + "manifests": { + "description": "Manifests is a list of available manifests for the export", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1alpha1.VirtualMachineExportManifest" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + }, + "volumes": { + "description": "Volumes is a list of available volumes to export", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1alpha1.VirtualMachineExportVolume" + }, + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + } + } + }, + "v1alpha1.VirtualMachineExportLinks": { + "description": "VirtualMachineExportLinks contains the links that point the exported VM resources", + "type": "object", + "properties": { + "external": { + "$ref": "#/definitions/v1alpha1.VirtualMachineExportLink" + }, + "internal": { + "$ref": "#/definitions/v1alpha1.VirtualMachineExportLink" + } + } + }, + "v1alpha1.VirtualMachineExportList": { + "description": "VirtualMachineExportList is a list of VirtualMachineExport resources", + "type": "object", + "required": [ + "metadata", + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1alpha1.VirtualMachineExport" + }, + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta" + } + } + }, + "v1alpha1.VirtualMachineExportManifest": { + "description": "VirtualMachineExportManifest contains the type and URL of the exported manifest", + "type": "object", + "required": [ + "type", + "url" + ], + "properties": { + "type": { + "description": "Type is the type of manifest returned", + "type": "string", + "default": "" + }, + "url": { + "description": "Url is the url of the endpoint that returns the manifest", + "type": "string", + "default": "" + } + } + }, + "v1alpha1.VirtualMachineExportSpec": { + "description": "VirtualMachineExportSpec is the spec for a VirtualMachineExport resource", + "type": "object", + "required": [ + "source" + ], + "properties": { + "source": { + "default": {}, + "$ref": "#/definitions/k8s.io.api.core.v1.TypedLocalObjectReference" + }, + "tokenSecretRef": { + "description": "TokenSecretRef is the name of the custom-defined secret that contains the token used by the export server pod", + "type": "string" + }, + "ttlDuration": { + "description": "ttlDuration limits the lifetime of an export If this field is set, after this duration has passed from counting from CreationTimestamp, the export is eligible to be automatically deleted. If this field is omitted, a reasonable default is applied.", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Duration" + } + } + }, + "v1alpha1.VirtualMachineExportStatus": { + "description": "VirtualMachineExportStatus is the status for a VirtualMachineExport resource", + "type": "object", + "nullable": true, + "properties": { + "conditions": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1alpha1.Condition" + }, + "x-kubernetes-list-type": "atomic" + }, + "links": { + "$ref": "#/definitions/v1alpha1.VirtualMachineExportLinks" + }, + "phase": { + "type": "string" + }, + "serviceName": { + "description": "ServiceName is the name of the service created associated with the Virtual Machine export. It will be used to create the internal URLs for downloading the images", + "type": "string" + }, + "tokenSecretRef": { + "description": "TokenSecretRef is the name of the secret that contains the token used by the export server pod", + "type": "string" + }, + "ttlExpirationTime": { + "description": "The time at which the VM Export will be completely removed according to specified TTL Formula is CreationTimestamp + TTL", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Time" + }, + "virtualMachineName": { + "description": "VirtualMachineName shows the name of the source virtual machine if the source is either a VirtualMachine or a VirtualMachineSnapshot. This is mainly to easily identify the source VirtualMachine in case of a VirtualMachineSnapshot", + "type": "string" + } + } + }, + "v1alpha1.VirtualMachineExportVolume": { + "description": "VirtualMachineExportVolume contains the name and available formats for the exported volume", + "type": "object", + "required": [ + "name" + ], + "properties": { + "formats": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1alpha1.VirtualMachineExportVolumeFormat" + }, + "x-kubernetes-list-map-keys": [ + "format" + ], + "x-kubernetes-list-type": "map" + }, + "name": { + "description": "Name is the name of the exported volume", + "type": "string", + "default": "" + } + } + }, + "v1alpha1.VirtualMachineExportVolumeFormat": { + "description": "VirtualMachineExportVolumeFormat contains the format type and URL to get the volume in that format", + "type": "object", + "required": [ + "format", + "url" + ], + "properties": { + "format": { + "description": "Format is the format of the image at the specified URL", + "type": "string", + "default": "" + }, + "url": { + "description": "Url is the url that contains the volume in the format specified", + "type": "string", + "default": "" + } + } + }, + "v1alpha1.VirtualMachinePool": { + "description": "VirtualMachinePool resource contains a VirtualMachine configuration that can be used to replicate multiple VirtualMachine resources.", + "type": "object", + "required": [ + "spec" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "default": {}, + "$ref": "#/definitions/v1alpha1.VirtualMachinePoolSpec" + }, + "status": { + "default": {}, + "$ref": "#/definitions/v1alpha1.VirtualMachinePoolStatus" + } + } + }, + "v1alpha1.VirtualMachinePoolCondition": { + "type": "object", + "required": [ + "type", + "status" + ], + "properties": { + "lastProbeTime": { + "type": [ + "string", + "null" + ], + "default": {} + }, + "lastTransitionTime": { + "type": [ + "string", + "null" + ], + "default": {} + }, + "message": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "status": { + "type": "string", + "default": "" + }, + "type": { + "type": "string", + "default": "" + } + } + }, + "v1alpha1.VirtualMachinePoolList": { + "description": "VirtualMachinePoolList is a list of VirtualMachinePool resources.", + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1alpha1.VirtualMachinePool" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta" + } + } + }, + "v1alpha1.VirtualMachinePoolSpec": { + "type": "object", + "required": [ + "selector", + "virtualMachineTemplate" + ], + "properties": { + "paused": { + "description": "Indicates that the pool is paused.", + "type": "boolean" + }, + "replicas": { + "description": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", + "type": "integer", + "format": "int32" + }, + "selector": { + "description": "Label selector for pods. Existing Poolss whose pods are selected by this will be the ones affected by this deployment.", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector" + }, + "virtualMachineTemplate": { + "description": "Template describes the VM that will be created.", + "$ref": "#/definitions/v1alpha1.VirtualMachineTemplateSpec" + } + } + }, + "v1alpha1.VirtualMachinePoolStatus": { + "type": "object", + "nullable": true, + "properties": { + "conditions": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1alpha1.VirtualMachinePoolCondition" + }, + "x-kubernetes-list-type": "atomic" + }, + "labelSelector": { + "description": "Canonical form of the label selector for HPA which consumes it through the scale subresource.", + "type": "string" + }, + "readyReplicas": { + "type": "integer", + "format": "int32" + }, + "replicas": { + "type": "integer", + "format": "int32" + } + } + }, + "v1alpha1.VirtualMachineRestore": { + "description": "VirtualMachineRestore defines the operation of restoring a VM", + "type": "object", + "required": [ + "spec" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "default": {}, + "$ref": "#/definitions/v1alpha1.VirtualMachineRestoreSpec" + }, + "status": { + "$ref": "#/definitions/v1alpha1.VirtualMachineRestoreStatus" + } + } + }, + "v1alpha1.VirtualMachineRestoreList": { + "description": "VirtualMachineRestoreList is a list of VirtualMachineRestore resources", + "type": "object", + "required": [ + "metadata", + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1alpha1.VirtualMachineRestore" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta" + } + } + }, + "v1alpha1.VirtualMachineRestoreSpec": { + "description": "VirtualMachineRestoreSpec is the spec for a VirtualMachineRestoreresource", + "type": "object", + "required": [ + "target", + "virtualMachineSnapshotName" + ], + "properties": { + "patches": { + "description": "If the target for the restore does not exist, it will be created. Patches holds JSON patches that would be applied to the target manifest before it's created. Patches should fit the target's Kind.\n\nExample for a patch: {\"op\": \"replace\", \"path\": \"/metadata/name\", \"value\": \"new-vm-name\"}", + "type": "array", + "items": { + "type": "string", + "default": "" + }, + "x-kubernetes-list-type": "atomic" + }, + "target": { + "description": "initially only VirtualMachine type supported", + "default": {}, + "$ref": "#/definitions/k8s.io.api.core.v1.TypedLocalObjectReference" + }, + "virtualMachineSnapshotName": { + "type": "string", + "default": "" + } + } + }, + "v1alpha1.VirtualMachineRestoreStatus": { + "description": "VirtualMachineRestoreStatus is the spec for a VirtualMachineRestoreresource", + "type": "object", + "nullable": true, + "properties": { + "complete": { + "type": "boolean" + }, + "conditions": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1alpha1.Condition" + } + }, + "deletedDataVolumes": { + "type": "array", + "items": { + "type": "string", + "default": "" + } + }, + "restoreTime": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Time" + }, + "restores": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1alpha1.VolumeRestore" + } + } + } + }, + "v1alpha1.VirtualMachineSnapshot": { + "description": "VirtualMachineSnapshot defines the operation of snapshotting a VM", + "type": "object", + "required": [ + "spec" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "default": {}, + "$ref": "#/definitions/v1alpha1.VirtualMachineSnapshotSpec" + }, + "status": { + "$ref": "#/definitions/v1alpha1.VirtualMachineSnapshotStatus" + } + } + }, + "v1alpha1.VirtualMachineSnapshotContent": { + "description": "VirtualMachineSnapshotContent contains the snapshot data", + "type": "object", + "required": [ + "spec" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "default": {}, + "$ref": "#/definitions/v1alpha1.VirtualMachineSnapshotContentSpec" + }, + "status": { + "$ref": "#/definitions/v1alpha1.VirtualMachineSnapshotContentStatus" + } + } + }, + "v1alpha1.VirtualMachineSnapshotContentList": { + "description": "VirtualMachineSnapshotContentList is a list of VirtualMachineSnapshot resources", + "type": "object", + "required": [ + "metadata", + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1alpha1.VirtualMachineSnapshotContent" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta" + } + } + }, + "v1alpha1.VirtualMachineSnapshotContentSpec": { + "description": "VirtualMachineSnapshotContentSpec is the spec for a VirtualMachineSnapshotContent resource", + "type": "object", + "required": [ + "source" + ], + "properties": { + "source": { + "default": {}, + "$ref": "#/definitions/v1alpha1.SourceSpec" + }, + "virtualMachineSnapshotName": { + "type": "string" + }, + "volumeBackups": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1alpha1.VolumeBackup" + } + } + } + }, + "v1alpha1.VirtualMachineSnapshotContentStatus": { + "description": "VirtualMachineSnapshotContentStatus is the status for a VirtualMachineSnapshotStatus resource", + "type": "object", + "nullable": true, + "properties": { + "creationTime": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Time" + }, + "error": { + "$ref": "#/definitions/v1alpha1.Error" + }, + "readyToUse": { + "type": "boolean" + }, + "volumeSnapshotStatus": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1alpha1.VolumeSnapshotStatus" + } + } + } + }, + "v1alpha1.VirtualMachineSnapshotList": { + "description": "VirtualMachineSnapshotList is a list of VirtualMachineSnapshot resources", + "type": "object", + "required": [ + "metadata", + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1alpha1.VirtualMachineSnapshot" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta" + } + } + }, + "v1alpha1.VirtualMachineSnapshotSpec": { + "description": "VirtualMachineSnapshotSpec is the spec for a VirtualMachineSnapshot resource", + "type": "object", + "required": [ + "source" + ], + "properties": { + "deletionPolicy": { + "type": "string" + }, + "failureDeadline": { + "description": "This time represents the number of seconds we permit the vm snapshot to take. In case we pass this deadline we mark this snapshot as failed. Defaults to DefaultFailureDeadline - 5min", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Duration" + }, + "source": { + "default": {}, + "$ref": "#/definitions/k8s.io.api.core.v1.TypedLocalObjectReference" + } + } + }, + "v1alpha1.VirtualMachineSnapshotStatus": { + "description": "VirtualMachineSnapshotStatus is the status for a VirtualMachineSnapshot resource", + "type": "object", + "nullable": true, + "properties": { + "conditions": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1alpha1.Condition" + } + }, + "creationTime": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Time" + }, + "error": { + "$ref": "#/definitions/v1alpha1.Error" + }, + "indications": { + "type": "array", + "items": { + "type": "string", + "default": "" + }, + "x-kubernetes-list-type": "set" + }, + "phase": { + "type": "string" + }, + "readyToUse": { + "type": "boolean" + }, + "snapshotVolumes": { + "$ref": "#/definitions/v1alpha1.SnapshotVolumesLists" + }, + "sourceUID": { + "type": "string" + }, + "virtualMachineSnapshotContentName": { + "type": "string" + } + } + }, + "v1alpha1.VirtualMachineTemplateSpec": { + "type": "object", + "properties": { + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "description": "VirtualMachineSpec contains the VirtualMachine specification.", + "default": {}, + "$ref": "#/definitions/v1.VirtualMachineSpec" + } + } + }, + "v1alpha1.VolumeBackup": { + "description": "VolumeBackup contains the data neeed to restore a PVC", + "type": "object", + "required": [ + "volumeName", + "persistentVolumeClaim" + ], + "properties": { + "persistentVolumeClaim": { + "default": {}, + "$ref": "#/definitions/v1alpha1.PersistentVolumeClaim" + }, + "volumeName": { + "type": "string", + "default": "" + }, + "volumeSnapshotName": { + "type": "string" + } + } + }, + "v1alpha1.VolumeRestore": { + "description": "VolumeRestore contains the data neeed to restore a PVC", + "type": "object", + "required": [ + "volumeName", + "persistentVolumeClaim", + "volumeSnapshotName" + ], + "properties": { + "dataVolumeName": { + "type": "string" + }, + "persistentVolumeClaim": { + "type": "string", + "default": "" + }, + "volumeName": { + "type": "string", + "default": "" + }, + "volumeSnapshotName": { + "type": "string", + "default": "" + } + } + }, + "v1alpha1.VolumeSnapshotStatus": { + "description": "VolumeSnapshotStatus is the status of a VolumeSnapshot", + "type": "object", + "required": [ + "volumeSnapshotName" + ], + "properties": { + "creationTime": { + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Time" + }, + "error": { + "$ref": "#/definitions/v1alpha1.Error" + }, + "readyToUse": { + "type": "boolean" + }, + "volumeSnapshotName": { + "type": "string", + "default": "" + } + } + }, + "v1beta1.CPUInstancetype": { + "description": "CPUInstancetype contains the CPU related configuration of a given VirtualMachineInstancetypeSpec.\n\nGuest is a required attribute and defines the number of vCPUs to be exposed to the guest by the instancetype.", + "type": "object", + "required": [ + "guest" + ], + "properties": { + "dedicatedCPUPlacement": { + "description": "DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it.", + "type": "boolean" + }, + "guest": { + "description": "Required number of vCPUs to expose to the guest.\n\nThe resulting CPU topology being derived from the optional PreferredCPUTopology attribute of CPUPreferences that itself defaults to PreferSockets.", + "type": "integer", + "format": "int64", + "default": 0 + }, + "isolateEmulatorThread": { + "description": "IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it.", + "type": "boolean" + }, + "model": { + "description": "Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model.", + "type": "string" + }, + "numa": { + "description": "NUMA allows specifying settings for the guest NUMA topology", + "$ref": "#/definitions/v1.NUMA" + }, + "realtime": { + "description": "Realtime instructs the virt-launcher to tune the VMI for lower latency, optional for real time workloads", + "$ref": "#/definitions/v1.Realtime" + } + } + }, + "v1beta1.CPUPreferenceRequirement": { + "type": "object", + "required": [ + "guest" + ], + "properties": { + "guest": { + "description": "Minimal number of vCPUs required by the preference.", + "type": "integer", + "format": "int64", + "default": 0 + } + } + }, + "v1beta1.CPUPreferences": { + "description": "CPUPreferences contains various optional CPU preferences.", + "type": "object", + "properties": { + "preferredCPUFeatures": { + "description": "PreferredCPUFeatures optionally defines a slice of preferred CPU features.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.CPUFeature" + } + }, + "preferredCPUTopology": { + "description": "PreferredCPUTopology optionally defines the preferred guest visible CPU topology, defaults to PreferSockets.", + "type": "string" + } + } + }, + "v1beta1.ClockPreferences": { + "description": "ClockPreferences contains various optional defaults for Clock.", + "type": "object", + "properties": { + "preferredClockOffset": { + "description": "ClockOffset allows specifying the UTC offset or the timezone of the guest clock.", + "$ref": "#/definitions/v1.ClockOffset" + }, + "preferredTimer": { + "description": "Timer specifies whih timers are attached to the vmi.", + "$ref": "#/definitions/v1.Timer" + } + } + }, + "v1beta1.DataVolumeBlankImage": { + "description": "DataVolumeBlankImage provides the parameters to create a new raw blank image for the PVC", + "type": "object" + }, + "v1beta1.DataVolumeCheckpoint": { + "description": "DataVolumeCheckpoint defines a stage in a warm migration.", + "type": "object", + "required": [ + "previous", + "current" + ], + "properties": { + "current": { + "description": "Current is the identifier of the snapshot created for this checkpoint.", + "type": "string", + "default": "" + }, + "previous": { + "description": "Previous is the identifier of the snapshot from the previous checkpoint.", + "type": "string", + "default": "" + } + } + }, + "v1beta1.DataVolumeSource": { + "description": "DataVolumeSource represents the source for our Data Volume, this can be HTTP, Imageio, S3, GCS, Registry or an existing PVC", + "type": "object", + "properties": { + "blank": { + "$ref": "#/definitions/v1beta1.DataVolumeBlankImage" + }, + "gcs": { + "$ref": "#/definitions/v1beta1.DataVolumeSourceGCS" + }, + "http": { + "$ref": "#/definitions/v1beta1.DataVolumeSourceHTTP" + }, + "imageio": { + "$ref": "#/definitions/v1beta1.DataVolumeSourceImageIO" + }, + "pvc": { + "$ref": "#/definitions/v1beta1.DataVolumeSourcePVC" + }, + "registry": { + "$ref": "#/definitions/v1beta1.DataVolumeSourceRegistry" + }, + "s3": { + "$ref": "#/definitions/v1beta1.DataVolumeSourceS3" + }, + "snapshot": { + "$ref": "#/definitions/v1beta1.DataVolumeSourceSnapshot" + }, + "upload": { + "$ref": "#/definitions/v1beta1.DataVolumeSourceUpload" + }, + "vddk": { + "$ref": "#/definitions/v1beta1.DataVolumeSourceVDDK" + } + } + }, + "v1beta1.DataVolumeSourceGCS": { + "description": "DataVolumeSourceGCS provides the parameters to create a Data Volume from an GCS source", + "type": "object", + "required": [ + "url" + ], + "properties": { + "secretRef": { + "description": "SecretRef provides the secret reference needed to access the GCS source", + "type": "string" + }, + "url": { + "description": "URL is the url of the GCS source", + "type": "string", + "default": "" + } + } + }, + "v1beta1.DataVolumeSourceHTTP": { + "description": "DataVolumeSourceHTTP can be either an http or https endpoint, with an optional basic auth user name and password, and an optional configmap containing additional CAs", + "type": "object", + "required": [ + "url" + ], + "properties": { + "certConfigMap": { + "description": "CertConfigMap is a configmap reference, containing a Certificate Authority(CA) public key, and a base64 encoded pem certificate", + "type": "string" + }, + "extraHeaders": { + "description": "ExtraHeaders is a list of strings containing extra headers to include with HTTP transfer requests", + "type": "array", + "items": { + "type": "string", + "default": "" + } + }, + "secretExtraHeaders": { + "description": "SecretExtraHeaders is a list of Secret references, each containing an extra HTTP header that may include sensitive information", + "type": "array", + "items": { + "type": "string", + "default": "" + } + }, + "secretRef": { + "description": "SecretRef A Secret reference, the secret should contain accessKeyId (user name) base64 encoded, and secretKey (password) also base64 encoded", + "type": "string" + }, + "url": { + "description": "URL is the URL of the http(s) endpoint", + "type": "string", + "default": "" + } + } + }, + "v1beta1.DataVolumeSourceImageIO": { + "description": "DataVolumeSourceImageIO provides the parameters to create a Data Volume from an imageio source", + "type": "object", + "required": [ + "url", + "diskId" + ], + "properties": { + "certConfigMap": { + "description": "CertConfigMap provides a reference to the CA cert", + "type": "string" + }, + "diskId": { + "description": "DiskID provides id of a disk to be imported", + "type": "string", + "default": "" + }, + "secretRef": { + "description": "SecretRef provides the secret reference needed to access the ovirt-engine", + "type": "string" + }, + "url": { + "description": "URL is the URL of the ovirt-engine", + "type": "string", + "default": "" + } + } + }, + "v1beta1.DataVolumeSourcePVC": { + "description": "DataVolumeSourcePVC provides the parameters to create a Data Volume from an existing PVC", + "type": "object", + "required": [ + "namespace", + "name" + ], + "properties": { + "name": { + "description": "The name of the source PVC", + "type": "string", + "default": "" + }, + "namespace": { + "description": "The namespace of the source PVC", + "type": "string", + "default": "" + } + } + }, + "v1beta1.DataVolumeSourceRef": { + "description": "DataVolumeSourceRef defines an indirect reference to the source of data for the DataVolume", + "type": "object", + "required": [ + "kind", + "name" + ], + "properties": { + "kind": { + "description": "The kind of the source reference, currently only \"DataSource\" is supported", + "type": "string", + "default": "" + }, + "name": { + "description": "The name of the source reference", + "type": "string", + "default": "" + }, + "namespace": { + "description": "The namespace of the source reference, defaults to the DataVolume namespace", + "type": "string" + } + } + }, + "v1beta1.DataVolumeSourceRegistry": { + "description": "DataVolumeSourceRegistry provides the parameters to create a Data Volume from an registry source", + "type": "object", + "properties": { + "certConfigMap": { + "description": "CertConfigMap provides a reference to the Registry certs", + "type": "string" + }, + "imageStream": { + "description": "ImageStream is the name of image stream for import", + "type": "string" + }, + "pullMethod": { + "description": "PullMethod can be either \"pod\" (default import), or \"node\" (node docker cache based import)", + "type": "string" + }, + "secretRef": { + "description": "SecretRef provides the secret reference needed to access the Registry source", + "type": "string" + }, + "url": { + "description": "URL is the url of the registry source (starting with the scheme: docker, oci-archive)", + "type": "string" + } + } + }, + "v1beta1.DataVolumeSourceS3": { + "description": "DataVolumeSourceS3 provides the parameters to create a Data Volume from an S3 source", + "type": "object", + "required": [ + "url" + ], + "properties": { + "certConfigMap": { + "description": "CertConfigMap is a configmap reference, containing a Certificate Authority(CA) public key, and a base64 encoded pem certificate", + "type": "string" + }, + "secretRef": { + "description": "SecretRef provides the secret reference needed to access the S3 source", + "type": "string" + }, + "url": { + "description": "URL is the url of the S3 source", + "type": "string", + "default": "" + } + } + }, + "v1beta1.DataVolumeSourceSnapshot": { + "description": "DataVolumeSourceSnapshot provides the parameters to create a Data Volume from an existing VolumeSnapshot", + "type": "object", + "required": [ + "namespace", + "name" + ], + "properties": { + "name": { + "description": "The name of the source VolumeSnapshot", + "type": "string", + "default": "" + }, + "namespace": { + "description": "The namespace of the source VolumeSnapshot", + "type": "string", + "default": "" + } + } + }, + "v1beta1.DataVolumeSourceUpload": { + "description": "DataVolumeSourceUpload provides the parameters to create a Data Volume by uploading the source", + "type": "object" + }, + "v1beta1.DataVolumeSourceVDDK": { + "description": "DataVolumeSourceVDDK provides the parameters to create a Data Volume from a Vmware source", + "type": "object", + "properties": { + "backingFile": { + "description": "BackingFile is the path to the virtual hard disk to migrate from vCenter/ESXi", + "type": "string" + }, + "initImageURL": { + "description": "InitImageURL is an optional URL to an image containing an extracted VDDK library, overrides v2v-vmware config map", + "type": "string" + }, + "secretRef": { + "description": "SecretRef provides a reference to a secret containing the username and password needed to access the vCenter or ESXi host", + "type": "string" + }, + "thumbprint": { + "description": "Thumbprint is the certificate thumbprint of the vCenter or ESXi host", + "type": "string" + }, + "url": { + "description": "URL is the URL of the vCenter or ESXi host with the VM to migrate", + "type": "string" + }, + "uuid": { + "description": "UUID is the UUID of the virtual machine that the backing file is attached to in vCenter/ESXi", + "type": "string" + } + } + }, + "v1beta1.DataVolumeSpec": { + "description": "DataVolumeSpec defines the DataVolume type specification", + "type": "object", + "properties": { + "checkpoints": { + "description": "Checkpoints is a list of DataVolumeCheckpoints, representing stages in a multistage import.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1beta1.DataVolumeCheckpoint" + } + }, + "contentType": { + "description": "DataVolumeContentType options: \"kubevirt\", \"archive\"", + "type": "string" + }, + "finalCheckpoint": { + "description": "FinalCheckpoint indicates whether the current DataVolumeCheckpoint is the final checkpoint.", + "type": "boolean" + }, + "preallocation": { + "description": "Preallocation controls whether storage for DataVolumes should be allocated in advance.", + "type": "boolean" + }, + "priorityClassName": { + "description": "PriorityClassName for Importer, Cloner and Uploader pod", + "type": "string" + }, + "pvc": { + "description": "PVC is the PVC specification", + "$ref": "#/definitions/k8s.io.api.core.v1.PersistentVolumeClaimSpec" + }, + "source": { + "description": "Source is the src of the data for the requested DataVolume", + "$ref": "#/definitions/v1beta1.DataVolumeSource" + }, + "sourceRef": { + "description": "SourceRef is an indirect reference to the source of data for the requested DataVolume", + "$ref": "#/definitions/v1beta1.DataVolumeSourceRef" + }, + "storage": { + "description": "Storage is the requested storage specification", + "$ref": "#/definitions/v1beta1.StorageSpec" + } + } + }, + "v1beta1.DevicePreferences": { + "description": "DevicePreferences contains various optional Device preferences.", + "type": "object", + "properties": { + "preferredAutoattachGraphicsDevice": { + "description": "PreferredAutoattachGraphicsDevice optionally defines the preferred value of AutoattachGraphicsDevice", + "type": "boolean" + }, + "preferredAutoattachInputDevice": { + "description": "PreferredAutoattachInputDevice optionally defines the preferred value of AutoattachInputDevice", + "type": "boolean" + }, + "preferredAutoattachMemBalloon": { + "description": "PreferredAutoattachMemBalloon optionally defines the preferred value of AutoattachMemBalloon", + "type": "boolean" + }, + "preferredAutoattachPodInterface": { + "description": "PreferredAutoattachPodInterface optionally defines the preferred value of AutoattachPodInterface", + "type": "boolean" + }, + "preferredAutoattachSerialConsole": { + "description": "PreferredAutoattachSerialConsole optionally defines the preferred value of AutoattachSerialConsole", + "type": "boolean" + }, + "preferredBlockMultiQueue": { + "description": "PreferredBlockMultiQueue optionally enables the vhost multiqueue feature for virtio disks.", + "type": "boolean" + }, + "preferredCdromBus": { + "description": "PreferredCdromBus optionally defines the preferred bus for Cdrom Disk devices.", + "type": "string" + }, + "preferredDisableHotplug": { + "description": "PreferredDisableHotplug optionally defines the preferred value of DisableHotplug", + "type": "boolean" + }, + "preferredDiskBlockSize": { + "description": "PreferredBlockSize optionally defines the block size of Disk devices.", + "$ref": "#/definitions/v1.BlockSize" + }, + "preferredDiskBus": { + "description": "PreferredDiskBus optionally defines the preferred bus for Disk Disk devices.", + "type": "string" + }, + "preferredDiskCache": { + "description": "PreferredCache optionally defines the DriverCache to be used by Disk devices.", + "type": "string" + }, + "preferredDiskDedicatedIoThread": { + "description": "PreferredDedicatedIoThread optionally enables dedicated IO threads for Disk devices.", + "type": "boolean" + }, + "preferredDiskIO": { + "description": "PreferredIo optionally defines the QEMU disk IO mode to be used by Disk devices.", + "type": "string" + }, + "preferredInputBus": { + "description": "PreferredInputBus optionally defines the preferred bus for Input devices.", + "type": "string" + }, + "preferredInputType": { + "description": "PreferredInputType optionally defines the preferred type for Input devices.", + "type": "string" + }, + "preferredInterfaceMasquerade": { + "description": "PreferredInterfaceMasquerade optionally defines the preferred masquerade configuration to use with each network interface.", + "$ref": "#/definitions/v1.InterfaceMasquerade" + }, + "preferredInterfaceModel": { + "description": "PreferredInterfaceModel optionally defines the preferred model to be used by Interface devices.", + "type": "string" + }, + "preferredLunBus": { + "description": "PreferredLunBus optionally defines the preferred bus for Lun Disk devices.", + "type": "string" + }, + "preferredNetworkInterfaceMultiQueue": { + "description": "PreferredNetworkInterfaceMultiQueue optionally enables the vhost multiqueue feature for virtio interfaces.", + "type": "boolean" + }, + "preferredRng": { + "description": "PreferredRng optionally defines the preferred rng device to be used.", + "$ref": "#/definitions/v1.Rng" + }, + "preferredSoundModel": { + "description": "PreferredSoundModel optionally defines the preferred model for Sound devices.", + "type": "string" + }, + "preferredTPM": { + "description": "PreferredTPM optionally defines the preferred TPM device to be used.", + "$ref": "#/definitions/v1.TPMDevice" + }, + "preferredUseVirtioTransitional": { + "description": "PreferredUseVirtioTransitional optionally defines the preferred value of UseVirtioTransitional", + "type": "boolean" + }, + "preferredVirtualGPUOptions": { + "description": "PreferredVirtualGPUOptions optionally defines the preferred value of VirtualGPUOptions", + "$ref": "#/definitions/v1.VGPUOptions" + } + } + }, + "v1beta1.FeaturePreferences": { + "description": "FeaturePreferences contains various optional defaults for Features.", + "type": "object", + "properties": { + "preferredAcpi": { + "description": "PreferredAcpi optionally enables the ACPI feature", + "$ref": "#/definitions/v1.FeatureState" + }, + "preferredApic": { + "description": "PreferredApic optionally enables and configures the APIC feature", + "$ref": "#/definitions/v1.FeatureAPIC" + }, + "preferredHyperv": { + "description": "PreferredHyperv optionally enables and configures HyperV features", + "$ref": "#/definitions/v1.FeatureHyperv" + }, + "preferredKvm": { + "description": "PreferredKvm optionally enables and configures KVM features", + "$ref": "#/definitions/v1.FeatureKVM" + }, + "preferredPvspinlock": { + "description": "PreferredPvspinlock optionally enables the Pvspinlock feature", + "$ref": "#/definitions/v1.FeatureState" + }, + "preferredSmm": { + "description": "PreferredSmm optionally enables the SMM feature", + "$ref": "#/definitions/v1.FeatureState" + } + } + }, + "v1beta1.FirmwarePreferences": { + "description": "FirmwarePreferences contains various optional defaults for Firmware.", + "type": "object", + "properties": { + "preferredUseBios": { + "description": "PreferredUseBios optionally enables BIOS", + "type": "boolean" + }, + "preferredUseBiosSerial": { + "description": "PreferredUseBiosSerial optionally transmitts BIOS output over the serial.\n\nRequires PreferredUseBios to be enabled.", + "type": "boolean" + }, + "preferredUseEfi": { + "description": "PreferredUseEfi optionally enables EFI", + "type": "boolean" + }, + "preferredUseSecureBoot": { + "description": "PreferredUseSecureBoot optionally enables SecureBoot and the OVMF roms will be swapped for SecureBoot-enabled ones.\n\nRequires PreferredUseEfi and PreferredSmm to be enabled.", + "type": "boolean" + } + } + }, + "v1beta1.MachinePreferences": { + "description": "MachinePreferences contains various optional defaults for Machine.", + "type": "object", + "properties": { + "preferredMachineType": { + "description": "PreferredMachineType optionally defines the preferred machine type to use.", + "type": "string" + } + } + }, + "v1beta1.MemoryInstancetype": { + "description": "MemoryInstancetype contains the Memory related configuration of a given VirtualMachineInstancetypeSpec.\n\nGuest is a required attribute and defines the amount of RAM to be exposed to the guest by the instancetype.", + "type": "object", + "required": [ + "guest" + ], + "properties": { + "guest": { + "description": "Required amount of memory which is visible inside the guest OS.", + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.api.resource.Quantity" + }, + "hugepages": { + "description": "Optionally enables the use of hugepages for the VirtualMachineInstance instead of regular memory.", + "$ref": "#/definitions/v1.Hugepages" + }, + "overcommitPercent": { + "description": "OvercommitPercent is the percentage of the guest memory which will be overcommitted. This means that the VMIs parent pod (virt-launcher) will request less physical memory by a factor specified by the OvercommitPercent. Overcommits can lead to memory exhaustion, which in turn can lead to crashes. Use carefully. Defaults to 0", + "type": "integer", + "format": "int32" + } + } + }, + "v1beta1.MemoryPreferenceRequirement": { + "type": "object", + "required": [ + "guest" + ], + "properties": { + "guest": { + "description": "Minimal amount of memory required by the preference.", + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.api.resource.Quantity" + } + } + }, + "v1beta1.PreferenceRequirements": { + "type": "object", + "properties": { + "cpu": { + "description": "Required CPU related attributes of the instancetype.", + "$ref": "#/definitions/v1beta1.CPUPreferenceRequirement" + }, + "memory": { + "description": "Required Memory related attributes of the instancetype.", + "$ref": "#/definitions/v1beta1.MemoryPreferenceRequirement" + } + } + }, + "v1beta1.StorageSpec": { + "description": "StorageSpec defines the Storage type specification", + "type": "object", + "properties": { + "accessModes": { + "description": "AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", + "type": "array", + "items": { + "type": "string", + "default": "" + } + }, + "dataSource": { + "description": "This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) * An existing custom resource that implements data population (Alpha) In order to use custom resource types that implement data population, the AnyVolumeDataSource feature gate must be enabled. If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field.", + "$ref": "#/definitions/k8s.io.api.core.v1.TypedLocalObjectReference" + }, + "dataSourceRef": { + "description": "Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.", + "$ref": "#/definitions/k8s.io.api.core.v1.TypedObjectReference" + }, + "resources": { + "description": "Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources", + "default": {}, + "$ref": "#/definitions/k8s.io.api.core.v1.ResourceRequirements" + }, + "selector": { + "description": "A label query over volumes to consider for binding.", + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector" + }, + "storageClassName": { + "description": "Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", + "type": "string" + }, + "volumeMode": { + "description": "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.\n\nPossible enum values:\n - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device.\n - `\"Filesystem\"` means the volume will be or is formatted with a filesystem.", + "type": "string", + "enum": [ + "Block", + "Filesystem" + ] + }, + "volumeName": { + "description": "VolumeName is the binding reference to the PersistentVolume backing this claim.", + "type": "string" + } + } + }, + "v1beta1.VirtualMachineClusterInstancetype": { + "description": "VirtualMachineClusterInstancetype is a cluster scoped version of VirtualMachineInstancetype resource.", + "type": "object", + "required": [ + "spec" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "description": "Required spec describing the instancetype", + "default": {}, + "$ref": "#/definitions/v1beta1.VirtualMachineInstancetypeSpec" + } + } + }, + "v1beta1.VirtualMachineClusterInstancetypeList": { + "description": "VirtualMachineClusterInstancetypeList is a list of VirtualMachineClusterInstancetype resources.", + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1beta1.VirtualMachineClusterInstancetype" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta" + } + } + }, + "v1beta1.VirtualMachineClusterPreference": { + "description": "VirtualMachineClusterPreference is a cluster scoped version of the VirtualMachinePreference resource.", + "type": "object", + "required": [ + "spec" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "description": "Required spec describing the preferences", + "default": {}, + "$ref": "#/definitions/v1beta1.VirtualMachinePreferenceSpec" + } + } + }, + "v1beta1.VirtualMachineClusterPreferenceList": { + "description": "VirtualMachineClusterPreferenceList is a list of VirtualMachineClusterPreference resources.", + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1beta1.VirtualMachineClusterPreference" + }, + "x-kubernetes-list-type": "set" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta" + } + } + }, + "v1beta1.VirtualMachineInstancetype": { + "description": "VirtualMachineInstancetype resource contains quantitative and resource related VirtualMachine configuration that can be used by multiple VirtualMachine resources.", + "type": "object", + "required": [ + "spec" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "description": "Required spec describing the instancetype", + "default": {}, + "$ref": "#/definitions/v1beta1.VirtualMachineInstancetypeSpec" + } + } + }, + "v1beta1.VirtualMachineInstancetypeList": { + "description": "VirtualMachineInstancetypeList is a list of VirtualMachineInstancetype resources.", + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1beta1.VirtualMachineInstancetype" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta" + } + } + }, + "v1beta1.VirtualMachineInstancetypeSpec": { + "description": "VirtualMachineInstancetypeSpec is a description of the VirtualMachineInstancetype or VirtualMachineClusterInstancetype.\n\nCPU and Memory are required attributes with both requiring that their Guest attribute is defined, ensuring a number of vCPUs and amount of RAM is always provided by each instancetype.", + "type": "object", + "required": [ + "cpu", + "memory" + ], + "properties": { + "annotations": { + "description": "Optionally defines the required Annotations to be used by the instance type and applied to the VirtualMachineInstance", + "type": "object", + "additionalProperties": { + "type": "string", + "default": "" + } + }, + "cpu": { + "description": "Required CPU related attributes of the instancetype.", + "default": {}, + "$ref": "#/definitions/v1beta1.CPUInstancetype" + }, + "gpus": { + "description": "Optionally defines any GPU devices associated with the instancetype.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.GPU" + }, + "x-kubernetes-list-type": "atomic" + }, + "hostDevices": { + "description": "Optionally defines any HostDevices associated with the instancetype.", + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1.HostDevice" + }, + "x-kubernetes-list-type": "atomic" + }, + "ioThreadsPolicy": { + "description": "Optionally defines the IOThreadsPolicy to be used by the instancetype.", + "type": "string" + }, + "launchSecurity": { + "description": "Optionally defines the LaunchSecurity to be used by the instancetype.", + "$ref": "#/definitions/v1.LaunchSecurity" + }, + "memory": { + "description": "Required Memory related attributes of the instancetype.", + "default": {}, + "$ref": "#/definitions/v1beta1.MemoryInstancetype" + }, + "nodeSelector": { + "description": "NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\n\nNodeSelector is the name of the custom node selector for the instancetype.", + "type": "object", + "additionalProperties": { + "type": "string", + "default": "" + } + }, + "schedulerName": { + "description": "If specified, the VMI will be dispatched by specified scheduler. If not specified, the VMI will be dispatched by default scheduler.\n\nSchedulerName is the name of the custom K8s scheduler for the instancetype.", + "type": "string" + } + } + }, + "v1beta1.VirtualMachinePreference": { + "description": "VirtualMachinePreference resource contains optional preferences related to the VirtualMachine.", + "type": "object", + "required": [ + "spec" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "description": "Required spec describing the preferences", + "default": {}, + "$ref": "#/definitions/v1beta1.VirtualMachinePreferenceSpec" + } + } + }, + "v1beta1.VirtualMachinePreferenceList": { + "description": "VirtualMachinePreferenceList is a list of VirtualMachinePreference resources.", + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "default": {}, + "$ref": "#/definitions/v1beta1.VirtualMachinePreference" + }, + "x-kubernetes-list-type": "set" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "default": {}, + "$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta" + } + } + }, + "v1beta1.VirtualMachinePreferenceSpec": { + "description": "VirtualMachinePreferenceSpec is a description of the VirtualMachinePreference or VirtualMachineClusterPreference.", + "type": "object", + "properties": { + "annotations": { + "description": "Optionally defines preferred Annotations to be applied to the VirtualMachineInstance", + "type": "object", + "additionalProperties": { + "type": "string", + "default": "" + } + }, + "clock": { + "description": "Clock optionally defines preferences associated with the Clock attribute of a VirtualMachineInstance DomainSpec", + "$ref": "#/definitions/v1beta1.ClockPreferences" + }, + "cpu": { + "description": "CPU optionally defines preferences associated with the CPU attribute of a VirtualMachineInstance DomainSpec", + "$ref": "#/definitions/v1beta1.CPUPreferences" + }, + "devices": { + "description": "Devices optionally defines preferences associated with the Devices attribute of a VirtualMachineInstance DomainSpec", + "$ref": "#/definitions/v1beta1.DevicePreferences" + }, + "features": { + "description": "Features optionally defines preferences associated with the Features attribute of a VirtualMachineInstance DomainSpec", + "$ref": "#/definitions/v1beta1.FeaturePreferences" + }, + "firmware": { + "description": "Firmware optionally defines preferences associated with the Firmware attribute of a VirtualMachineInstance DomainSpec", + "$ref": "#/definitions/v1beta1.FirmwarePreferences" + }, + "machine": { + "description": "Machine optionally defines preferences associated with the Machine attribute of a VirtualMachineInstance DomainSpec", + "$ref": "#/definitions/v1beta1.MachinePreferences" + }, + "preferSpreadSocketToCoreRatio": { + "description": "PreferSpreadSocketToCoreRatio defines the ratio to spread vCPUs between cores and sockets, it defaults to 2.", + "type": "integer", + "format": "int64" + }, + "preferredSubdomain": { + "description": "Subdomain of the VirtualMachineInstance", + "type": "string" + }, + "preferredTerminationGracePeriodSeconds": { + "description": "Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated.", + "type": "integer", + "format": "int64" + }, + "requirements": { + "description": "Requirements defines the minium amount of instance type defined resources required by a set of preferences", + "$ref": "#/definitions/v1beta1.PreferenceRequirements" + }, + "volumes": { + "description": "Volumes optionally defines preferences associated with the Volumes attribute of a VirtualMachineInstace DomainSpec", + "$ref": "#/definitions/v1beta1.VolumePreferences" + } + } + }, + "v1beta1.VolumePreferences": { + "type": "object", + "properties": { + "preferredStorageClassName": { + "description": "PreffereedStorageClassName optionally defines the preferred storageClass", + "type": "string" + } + } + } + }, + "securityDefinitions": { + "BearerToken": { + "description": "Bearer Token authentication", + "type": "apiKey", + "name": "authorization", + "in": "header" + } + } + } \ No newline at end of file diff --git a/packages/types/src/generated/runtime.ts b/packages/types/src/generated/runtime.ts new file mode 100644 index 000000000..3f1a7df88 --- /dev/null +++ b/packages/types/src/generated/runtime.ts @@ -0,0 +1,431 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * KubeVirt Containerized Data Importer API + * Containerized Data Importer for KubeVirt. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: kubevirt-dev@googlegroups.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export const BASE_PATH = "http://localhost".replace(/\/+$/, ""); + +export interface ConfigurationParameters { + basePath?: string; // override base path + fetchApi?: FetchAPI; // override for fetch implementation + middleware?: Middleware[]; // middleware to apply before/after fetch requests + queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings + username?: string; // parameter for basic security + password?: string; // parameter for basic security + apiKey?: string | Promise | ((name: string) => string | Promise); // parameter for apiKey security + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise); // parameter for oauth2 security + headers?: HTTPHeaders; //header params we want to use on every request + credentials?: RequestCredentials; //value for the credentials param we want to use on each request +} + +export class Configuration { + constructor(private configuration: ConfigurationParameters = {}) {} + + set config(configuration: Configuration) { + this.configuration = configuration; + } + + get basePath(): string { + return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH; + } + + get fetchApi(): FetchAPI | undefined { + return this.configuration.fetchApi; + } + + get middleware(): Middleware[] { + return this.configuration.middleware || []; + } + + get queryParamsStringify(): (params: HTTPQuery) => string { + return this.configuration.queryParamsStringify || querystring; + } + + get username(): string | undefined { + return this.configuration.username; + } + + get password(): string | undefined { + return this.configuration.password; + } + + get apiKey(): ((name: string) => string | Promise) | undefined { + const apiKey = this.configuration.apiKey; + if (apiKey) { + return typeof apiKey === 'function' ? apiKey : () => apiKey; + } + return undefined; + } + + get accessToken(): ((name?: string, scopes?: string[]) => string | Promise) | undefined { + const accessToken = this.configuration.accessToken; + if (accessToken) { + return typeof accessToken === 'function' ? accessToken : async () => accessToken; + } + return undefined; + } + + get headers(): HTTPHeaders | undefined { + return this.configuration.headers; + } + + get credentials(): RequestCredentials | undefined { + return this.configuration.credentials; + } +} + +export const DefaultConfig = new Configuration(); + +/** + * This is the base class for all generated API classes. + */ +export class BaseAPI { + + private static readonly jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i'); + private middleware: Middleware[]; + + constructor(protected configuration = DefaultConfig) { + this.middleware = configuration.middleware; + } + + withMiddleware(this: T, ...middlewares: Middleware[]) { + const next = this.clone(); + next.middleware = next.middleware.concat(...middlewares); + return next; + } + + withPreMiddleware(this: T, ...preMiddlewares: Array) { + const middlewares = preMiddlewares.map((pre) => ({ pre })); + return this.withMiddleware(...middlewares); + } + + withPostMiddleware(this: T, ...postMiddlewares: Array) { + const middlewares = postMiddlewares.map((post) => ({ post })); + return this.withMiddleware(...middlewares); + } + + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + protected isJsonMime(mime: string | null | undefined): boolean { + if (!mime) { + return false; + } + return BaseAPI.jsonRegex.test(mime); + } + + protected async request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise { + const { url, init } = await this.createFetchParams(context, initOverrides); + const response = await this.fetchApi(url, init); + if (response && (response.status >= 200 && response.status < 300)) { + return response; + } + throw new ResponseError(response, 'Response returned an error code'); + } + + private async createFetchParams(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction) { + let url = this.configuration.basePath + context.path; + if (context.query !== undefined && Object.keys(context.query).length !== 0) { + // only add the querystring to the URL if there are query parameters. + // this is done to avoid urls ending with a "?" character which buggy webservers + // do not handle correctly sometimes. + url += '?' + this.configuration.queryParamsStringify(context.query); + } + + const headers = Object.assign({}, this.configuration.headers, context.headers); + Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {}); + + const initOverrideFn = + typeof initOverrides === "function" + ? initOverrides + : async () => initOverrides; + + const initParams = { + method: context.method, + headers, + body: context.body, + credentials: this.configuration.credentials, + }; + + const overriddenInit: RequestInit = { + ...initParams, + ...(await initOverrideFn({ + init: initParams, + context, + })) + }; + + let body: any; + if (isFormData(overriddenInit.body) + || (overriddenInit.body instanceof URLSearchParams) + || isBlob(overriddenInit.body)) { + body = overriddenInit.body; + } else if (this.isJsonMime(headers['Content-Type'])) { + body = JSON.stringify(overriddenInit.body); + } else { + body = overriddenInit.body; + } + + const init: RequestInit = { + ...overriddenInit, + body + }; + + return { url, init }; + } + + private fetchApi = async (url: string, init: RequestInit) => { + let fetchParams = { url, init }; + for (const middleware of this.middleware) { + if (middleware.pre) { + fetchParams = await middleware.pre({ + fetch: this.fetchApi, + ...fetchParams, + }) || fetchParams; + } + } + let response: Response | undefined = undefined; + try { + response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init); + } catch (e) { + for (const middleware of this.middleware) { + if (middleware.onError) { + response = await middleware.onError({ + fetch: this.fetchApi, + url: fetchParams.url, + init: fetchParams.init, + error: e, + response: response ? response.clone() : undefined, + }) || response; + } + } + if (response === undefined) { + if (e instanceof Error) { + throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); + } else { + throw e; + } + } + } + for (const middleware of this.middleware) { + if (middleware.post) { + response = await middleware.post({ + fetch: this.fetchApi, + url: fetchParams.url, + init: fetchParams.init, + response: response.clone(), + }) || response; + } + } + return response; + } + + /** + * Create a shallow clone of `this` by constructing a new instance + * and then shallow cloning data members. + */ + private clone(this: T): T { + const constructor = this.constructor as any; + const next = new constructor(this.configuration); + next.middleware = this.middleware.slice(); + return next; + } +}; + +function isBlob(value: any): value is Blob { + return typeof Blob !== 'undefined' && value instanceof Blob; +} + +function isFormData(value: any): value is FormData { + return typeof FormData !== "undefined" && value instanceof FormData; +} + +export class ResponseError extends Error { + override name: "ResponseError" = "ResponseError"; + constructor(public response: Response, msg?: string) { + super(msg); + } +} + +export class FetchError extends Error { + override name: "FetchError" = "FetchError"; + constructor(public cause: Error, msg?: string) { + super(msg); + } +} + +export class RequiredError extends Error { + override name: "RequiredError" = "RequiredError"; + constructor(public field: string, msg?: string) { + super(msg); + } +} + +export const COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; + +export type FetchAPI = WindowOrWorkerGlobalScope['fetch']; + +export type Json = any; +export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; +export type HTTPHeaders = { [key: string]: string }; +export type HTTPQuery = { [key: string]: string | number | null | boolean | Array | Set | HTTPQuery }; +export type HTTPBody = Json | FormData | URLSearchParams; +export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody }; +export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original'; + +export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise + +export interface FetchParams { + url: string; + init: RequestInit; +} + +export interface RequestOpts { + path: string; + method: HTTPMethod; + headers: HTTPHeaders; + query?: HTTPQuery; + body?: HTTPBody; +} + +export function exists(json: any, key: string) { + const value = json[key]; + return value !== null && value !== undefined; +} + +export function querystring(params: HTTPQuery, prefix: string = ''): string { + return Object.keys(params) + .map(key => querystringSingleKey(key, params[key], prefix)) + .filter(part => part.length > 0) + .join('&'); +} + +function querystringSingleKey(key: string, value: string | number | null | undefined | boolean | Array | Set | HTTPQuery, keyPrefix: string = ''): string { + const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key); + if (value instanceof Array) { + const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue))) + .join(`&${encodeURIComponent(fullKey)}=`); + return `${encodeURIComponent(fullKey)}=${multiValue}`; + } + if (value instanceof Set) { + const valueAsArray = Array.from(value); + return querystringSingleKey(key, valueAsArray, keyPrefix); + } + if (value instanceof Date) { + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`; + } + if (value instanceof Object) { + return querystring(value as HTTPQuery, fullKey); + } + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`; +} + +export function mapValues(data: any, fn: (item: any) => any) { + return Object.keys(data).reduce( + (acc, key) => ({ ...acc, [key]: fn(data[key]) }), + {} + ); +} + +export function canConsumeForm(consumes: Consume[]): boolean { + for (const consume of consumes) { + if ('multipart/form-data' === consume.contentType) { + return true; + } + } + return false; +} + +export interface Consume { + contentType: string; +} + +export interface RequestContext { + fetch: FetchAPI; + url: string; + init: RequestInit; +} + +export interface ResponseContext { + fetch: FetchAPI; + url: string; + init: RequestInit; + response: Response; +} + +export interface ErrorContext { + fetch: FetchAPI; + url: string; + init: RequestInit; + error: unknown; + response?: Response; +} + +export interface Middleware { + pre?(context: RequestContext): Promise; + post?(context: ResponseContext): Promise; + onError?(context: ErrorContext): Promise; +} + +export interface ApiResponse { + raw: Response; + value(): Promise; +} + +export interface ResponseTransformer { + (json: any): T; +} + +export class JSONApiResponse { + constructor(public raw: Response, private transformer: ResponseTransformer = (jsonValue: any) => jsonValue) {} + + async value(): Promise { + return this.transformer(await this.raw.json()); + } +} + +export class VoidApiResponse { + constructor(public raw: Response) {} + + async value(): Promise { + return undefined; + } +} + +export class BlobApiResponse { + constructor(public raw: Response) {} + + async value(): Promise { + return await this.raw.blob(); + }; +} + +export class TextApiResponse { + constructor(public raw: Response) {} + + async value(): Promise { + return await this.raw.text(); + }; +} diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index 156cc619f..f7c9f1719 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -1,5 +1,4 @@ // @index('./*', f => `export * from '${f.path}';`) -export * from './constants'; -export * from './models'; +export * from './generated'; export * from './types'; // @endindex diff --git a/packages/types/src/models/README.md b/packages/types/src/models/README.md deleted file mode 100644 index ae31f6cbb..000000000 --- a/packages/types/src/models/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# models - -Auto generated typescript interfaces for Forlklift k8s resources - -Example: - -```ts -import { V1beta1Provider } from `@kubev2v/types`; -``` - -source: /ci/yaml/crds diff --git a/packages/types/src/models/index.ts b/packages/types/src/models/index.ts deleted file mode 100644 index aa5410a4b..000000000 --- a/packages/types/src/models/index.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Forklift API - * Migration toolkit for virtualization (Forklift) API definitions. - * - * The version of the OpenAPI document: 2.4.0 - * Contact Email: kubev2v-dev@redhat.com - * License: Apache-2.0 - * - * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/). - * https://github.com/yaacov/crdtoapi/README.crdtotypes - */ - -export * from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; -export * from './V1beta1ForkliftController'; -export * from './V1beta1Hook'; -export * from './V1beta1Host'; -export * from './V1beta1Migration'; -export * from './V1beta1NetworkMap'; -export * from './V1beta1NetworkMapStatusConditions'; -export * from './V1beta1OvirtVolumePopulator'; -export * from './V1beta1Plan'; -export * from './V1beta1PlanStatusMigrationVms'; -export * from './V1beta1Provider'; -export * from './V1beta1ProviderStatus'; -export * from './V1beta1ProviderStatusConditions'; -export * from './V1beta1StorageMap'; -export * from './V1beta1StorageMapStatusConditions'; diff --git a/packages/types/src/types/k8s/IoK8sApiStorageV1StorageClass.ts b/packages/types/src/types/k8s/IoK8sApiStorageV1StorageClass.ts deleted file mode 100644 index 6bc650743..000000000 --- a/packages/types/src/types/k8s/IoK8sApiStorageV1StorageClass.ts +++ /dev/null @@ -1,71 +0,0 @@ -import { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from '../../models/IoK8sApimachineryPkgApisMetaV1ObjectMeta'; - -/** - * StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. - * - * StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. - * @export - * @interface IoK8sApiStorageV1StorageClass - */ -export interface IoK8sApiStorageV1StorageClass { - /** - * AllowVolumeExpansion shows whether the storage class allow volume expand - * @type {boolean} - * @memberof IoK8sApiStorageV1StorageClass - */ - allowVolumeExpansion?: boolean; - /** - * Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. - * @type {Array} - * @memberof IoK8sApiStorageV1StorageClass - */ - allowedTopologies?: Array; - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - * @type {string} - * @memberof IoK8sApiStorageV1StorageClass - */ - 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 - * @type {string} - * @memberof IoK8sApiStorageV1StorageClass - */ - kind?: string; - /** - * - * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} - * @memberof IoK8sApiStorageV1StorageClass - */ - metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; - /** - * Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. - * @type {Array} - * @memberof IoK8sApiStorageV1StorageClass - */ - mountOptions?: Array; - /** - * Parameters holds the parameters for the provisioner that should create volumes of this storage class. - * @type {{ [key: string]: string; }} - * @memberof IoK8sApiStorageV1StorageClass - */ - parameters?: { [key: string]: string }; - /** - * Provisioner indicates the type of the provisioner. - * @type {string} - * @memberof IoK8sApiStorageV1StorageClass - */ - provisioner: string; - /** - * Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. - * @type {string} - * @memberof IoK8sApiStorageV1StorageClass - */ - reclaimPolicy?: string; - /** - * VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. - * @type {string} - * @memberof IoK8sApiStorageV1StorageClass - */ - volumeBindingMode?: string; -} diff --git a/packages/types/src/types/k8s/K8sResourceCommon.ts b/packages/types/src/types/k8s/K8sResourceCommon.ts index ba13a1a64..356ba7728 100644 --- a/packages/types/src/types/k8s/K8sResourceCommon.ts +++ b/packages/types/src/types/k8s/K8sResourceCommon.ts @@ -1,4 +1,4 @@ -import { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from '../../models'; +import { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from '../../generated'; export interface K8sResourceCommon { apiVersion?: string; diff --git a/packages/types/src/types/k8s/V1Namespace.ts b/packages/types/src/types/k8s/V1Namespace.ts deleted file mode 100644 index ae97281da..000000000 --- a/packages/types/src/types/k8s/V1Namespace.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from '../../models'; - -export interface V1Namespace { - kind: 'Namespace'; - apiVersion: string; - - metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; -} diff --git a/packages/types/src/types/k8s/V1NetworkAttachmentDefinition.ts b/packages/types/src/types/k8s/V1NetworkAttachmentDefinition.ts index c1a5de712..f0e8df3a6 100644 --- a/packages/types/src/types/k8s/V1NetworkAttachmentDefinition.ts +++ b/packages/types/src/types/k8s/V1NetworkAttachmentDefinition.ts @@ -1,4 +1,4 @@ -import { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from '../../models'; +import { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from '../../generated'; export interface V1NetworkAttachmentDefinition { kind: 'NetworkAttachmentDefinition'; diff --git a/packages/types/src/types/k8s/V1Secret.ts b/packages/types/src/types/k8s/V1Secret.ts deleted file mode 100644 index 6a27ee5e2..000000000 --- a/packages/types/src/types/k8s/V1Secret.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from '../../models'; - -export interface V1Secret { - apiVersion?: string; - kind?: string; - immutable?: boolean; - data?: Record; - metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; - type?: string; -} diff --git a/packages/types/src/types/k8s/V1VirtualMachine.ts b/packages/types/src/types/k8s/V1VirtualMachine.ts deleted file mode 100644 index 68ae44e8e..000000000 --- a/packages/types/src/types/k8s/V1VirtualMachine.ts +++ /dev/null @@ -1,433 +0,0 @@ -// https://github.com/kubev2v/forklift/blob/main/vendor/kubevirt.io/api/export/v1alpha1/types.go - -import { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from '../../models'; - -// https://kubevirt.io/api-reference/master/definitions.html#_v1_virtualmachine -export interface V1VirtualMachine { - kind: 'VirtualMachine'; - apiVersion: 'kubevirt.io/v1'; - metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; - spec?: { - // Mutually exclusive with RunStrategy - // Running *bool `json:"running,omitempty" optional:"true"` - running?: boolean; - - // Running state indicates the requested running state of the VirtualMachineInstance - // mutually exclusive with Running - // RunStrategy *VirtualMachineRunStrategy `json:"runStrategy,omitempty" optional:"true"` - - // Template is the direct specification of VirtualMachineInstance - // Template *VirtualMachineInstanceTemplateSpec `json:"template"` - template: V1VirtualMachineInstanceTemplateSpec; - - // dataVolumeTemplates is a list of dataVolumes that the VirtualMachineInstance template can reference. - // DataVolumes in this list are dynamically created for the VirtualMachine and are tied to the VirtualMachine's life-cycle. - // DataVolumeTemplates []DataVolumeTemplateSpec `json:"dataVolumeTemplates,omitempty"` - dataVolumeTemplates: { - apiVersion: 'cdi.kubevirt.io/v1beta1'; - kind: 'DataVolume'; - metadata: IoK8sApimachineryPkgApisMetaV1ObjectMeta; - spec: { - pvc?: { - accessModes: string[]; - resources: { - requests: { - storage: string; - }; - }; - }; - source?: { - pvc: { - name: string; - namespace: string; - }; - }; - sourceRef?: { - kind: string; - name: string; - namespace: string; - }; - storage?: { - resources: { - requests: { - storage: string; - }; - }; - }; - }; - }[]; - }; - status?: { - // SnapshotInProgress is the name of the VirtualMachineSnapshot currently executing - // SnapshotInProgress *string `json:"snapshotInProgress,omitempty"` - // Created indicates if the virtual machine is created in the cluster - // Created bool `json:"created,omitempty"` - created?: boolean; - // Ready indicates if the virtual machine is running and ready - // Ready bool `json:"ready,omitempty"` - ready?: boolean; - // PrintableStatus is a human readable, high-level representation of the status of the virtual machine - // PrintableStatus VirtualMachinePrintableStatus `json:"printableStatus,omitempty"` - printableStatus: VirtualMachinePrintableStatus; - // Hold the state information of the VirtualMachine and its VirtualMachineInstance - // Conditions []VirtualMachineCondition `json:"conditions,omitempty" optional:"true"` - conditions?: { - lastProbeTime: string; - lastTransitionTime: string; - message: string; - reason: string; - status: string; - type: string; - }[]; - - // StateChangeRequests indicates a list of actions that should be taken on a VMI - // e.g. stop a specific VMI then start a new one. - // StateChangeRequests []VirtualMachineStateChangeRequest `json:"stateChangeRequests,omitempty" optional:"true"` - // VolumeRequests indicates a list of volumes add or remove from the VMI template and - // hotplug on an active running VMI. - // +listType=atomic - // VolumeRequests []VirtualMachineVolumeRequest `json:"volumeRequests,omitempty" optional:"true"` - - // VolumeSnapshotStatuses indicates a list of statuses whether snapshotting is - // supported by each volume. - // VolumeSnapshotStatuses []VolumeSnapshotStatus `json:"volumeSnapshotStatuses,omitempty" optional:"true"` - volumeSnapshotStatuses?: { - enabled: boolean; - name: string; - reason?: string; - }[]; - }; -} - -export type VirtualMachinePrintableStatus = - // VirtualMachineStatusStopped indicates that the virtual machine is currently stopped and isn't expected to start. - | 'Stopped' - // VirtualMachineStatusProvisioning indicates that cluster resources associated with the virtual machine - // (e.g., DataVolumes) are being provisioned and prepared. - | 'Provisioning' - // VirtualMachineStatusStarting indicates that the virtual machine is being prepared for running. - | 'Starting' - // VirtualMachineStatusRunning indicates that the virtual machine is running. - | 'Running' - // VirtualMachineStatusPaused indicates that the virtual machine is paused. - | 'Paused' - // VirtualMachineStatusStopping indicates that the virtual machine is in the process of being stopped. - | 'Stopping' - // VirtualMachineStatusTerminating indicates that the virtual machine is in the process of deletion, - // as well as its associated resources (VirtualMachineInstance, DataVolumes, …). - | 'Terminating' - // VirtualMachineStatusMigrating indicates that the virtual machine is in the process of being migrated - // to another host. - | 'Migrating' - // VirtualMachineStatusUnknown indicates that the state of the virtual machine could not be obtained, - // typically due to an error in communicating with the host on which it's running. - | 'Unknown'; - -export interface V1VirtualMachineInstanceTemplateSpec { - // ObjectMeta metav1.ObjectMeta `json:"metadata,omitempty"` - metadata: IoK8sApimachineryPkgApisMetaV1ObjectMeta; - // VirtualMachineInstance Spec contains the VirtualMachineInstance specification. - // Spec VirtualMachineInstanceSpec `json:"spec,omitempty" valid:"required"` - spec: V1VirtualMachineInstanceSpec; -} - -interface V1VirtualMachineInstanceSpec { - // If specified, indicates the pod's priority. - // If not specified, the pod priority will be default or zero if there is no - // default. - // +optional - // PriorityClassName string `json:"priorityClassName,omitempty"` - - // Specification of the desired behavior of the VirtualMachineInstance on the host. - // Domain DomainSpec `json:"domain"` - domain: V1DomainSpec; - - // NodeSelector is a selector which must be true for the vmi to fit on a node. - // Selector which must match a node's labels for the vmi to be scheduled on that node. - // More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - // +optional - // NodeSelector map[string]string `json:"nodeSelector,omitempty"` - - // If affinity is specifies, obey all the affinity rules - // Affinity *k8sv1.Affinity `json:"affinity,omitempty"` - - // If specified, the VMI will be dispatched by specified scheduler. - // If not specified, the VMI will be dispatched by default scheduler. - // +optional - // SchedulerName string `json:"schedulerName,omitempty"` - - // If toleration is specified, obey all the toleration rules. - // Tolerations []k8sv1.Toleration `json:"tolerations,omitempty"` - - // EvictionStrategy can be set to "LiveMigrate" if the VirtualMachineInstance should be - // migrated instead of shut-off in case of a node drain. - // - // +optional - // EvictionStrategy *EvictionStrategy `json:"evictionStrategy,omitempty"` - evictionStrategy?: string; - - // StartStrategy can be set to "Paused" if Virtual Machine should be started in paused state. - // - // +optional - // StartStrategy *StartStrategy `json:"startStrategy,omitempty"` - - // Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. - //TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"` - terminationGracePeriodSeconds?: number; - - // List of volumes that can be mounted by disks belonging to the vmi. - // Volumes []Volume `json:"volumes,omitempty"` - volumes: { - // Volume represents a named volume in a vmi. - - // Volume's name. - // Must be a DNS_LABEL and unique within the vmi. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - // Name string `json:"name"` - name: string; - // VolumeSource represents the location and type of the mounted volume. - // Defaults to Disk, if no type is specified. - // VolumeSource `json:",inline"` - cloudInitNoCloud?: { - userData: string; - }; - - // DataVolume represents the dynamic creation a PVC for this volume as well as - // the process of populating that PVC with a disk image. - // +optional - // DataVolume *DataVolumeSource `json:"dataVolume,omitempty"` - dataVolume?: { - // Name represents the name of the DataVolume in the same namespace - // Name string `json:"name"` - name: string; - }; - }[]; - - // Periodic probe of VirtualMachineInstance liveness. - // VirtualmachineInstances will be stopped if the probe fails. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // +optional - // LivenessProbe *Probe `json:"livenessProbe,omitempty"` - - // Periodic probe of VirtualMachineInstance service readiness. - // VirtualmachineInstances will be removed from service endpoints if the probe fails. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // +optional - // ReadinessProbe *Probe `json:"readinessProbe,omitempty"` - - // Specifies the hostname of the vmi - // If not specified, the hostname will be set to the name of the vmi, if dhcp or cloud-init is configured properly. - // +optional - // Hostname string `json:"hostname,omitempty"` - - // If specified, the fully qualified vmi hostname will be "...svc.". - // If not specified, the vmi will not have a domainname at all. The DNS entry will resolve to the vmi, - // no matter if the vmi itself can pick up a hostname. - // +optional - // Subdomain string `json:"subdomain,omitempty"` - - // List of networks that can be attached to a vm's virtual interface. - // Networks []Network `json:"networks,omitempty"` - networks: { - // Network represents a network type and a resource that should be connected to the vm. - // Network name. - // Must be a DNS_LABEL and unique within the vm. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - // Name string `json:"name"` - name: string; - // NetworkSource represents the network type and the source interface that should be connected to the virtual machine. - // Defaults to Pod, if no type is specified. - // NetworkSource `json:",inline"` - pod?: object; - multus?: { - // References to a NetworkAttachmentDefinition CRD object. Format: - // , /. If namespace is not - // specified, VMI namespace is assumed. - // NetworkName string `json:"networkName"` - networkName: string; - - // Select the default network and add it to the - // multus-cni.io/default-network annotation. - // Default bool `json:"default,omitempty"` - default?: boolean; - }; - }[]; - - // Set DNS policy for the pod. - // Defaults to "ClusterFirst". - // Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. - // DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. - // To have DNS options set along with hostNetwork, you have to specify DNS policy - // explicitly to 'ClusterFirstWithHostNet'. - // +optional - // DNSPolicy k8sv1.DNSPolicy `json:"dnsPolicy,omitempty" protobuf:"bytes,6,opt,name=dnsPolicy,casttype=DNSPolicy"` - - // Specifies the DNS parameters of a pod. - // Parameters specified here will be merged to the generated DNS - // configuration based on DNSPolicy. - // +optional - // DNSConfig *k8sv1.PodDNSConfig `json:"dnsConfig,omitempty" protobuf:"bytes,26,opt,name=dnsConfig"` - - // Specifies a set of public keys to inject into the vm guest - // +listType=atomic - // +optional - //AccessCredentials []AccessCredential `json:"accessCredentials,omitempty"` -} - -export interface V1DomainSpec { - // Resources describes the Compute Resources required by this vmi. - // Resources ResourceRequirements `json:"resources,omitempty"` - resources?: { - requests?: { - memory: string; - }; - }; - - // CPU allow specified the detailed CPU topology inside the vmi. - // +optional - // CPU *CPU `json:"cpu,omitempty"` - cpu?: { - cores: number; - sockets: number; - threads: number; - dedicatedCpuPlacement?: boolean; - numa?: unknown; - }; - - // Memory allow specifying the VMI memory features. - // +optional - // Memory *Memory `json:"memory,omitempty"` - - // Machine type. - // +optional - // Machine *Machine `json:"machine,omitempty"` - machine?: { - type: string; - }; - - // Firmware. - // +optional - // Firmware *Firmware `json:"firmware,omitempty"` - firmware?: { - bootloader?: { - efi?: { - persistent?: boolean; - }; - }; - }; - - // Clock sets the clock and timers of the vmi. - // +optional - // Clock *Clock `json:"clock,omitempty"` - - // Features like acpi, apic, hyperv, smm. - // +optional - // Features *Features `json:"features,omitempty"` - features?: { - acpi?: unknown; - smm?: unknown; - }; - - // Devices allows adding disks, network interfaces, and others - // Devices Devices `json:"devices"` - devices: Devices; - - // Controls whether or not disks will share IOThreads. - // Omitting IOThreadsPolicy disables use of IOThreads. - // One of: shared, auto - // +optional - // IOThreadsPolicy *IOThreadsPolicy `json:"ioThreadsPolicy,omitempty"` - - // Chassis specifies the chassis info passed to the domain. - // +optional - // Chassis *Chassis `json:"chassis,omitempty"` -} - -interface Devices { - // Fall back to legacy virtio 0.9 support if virtio bus is selected on devices. - // This is helpful for old machines like CentOS6 or RHEL6 which - // do not understand virtio_non_transitional (virtio 1.0). - // UseVirtioTransitional *bool `json:"useVirtioTransitional,omitempty"` - - // DisableHotplug disabled the ability to hotplug disks. - // DisableHotplug bool `json:"disableHotplug,omitempty"` - - // Disks describes disks, cdroms, floppy and luns which are connected to the vmi. - // Disks []Disk `json:"disks,omitempty"` - disks: { - disk?: { - bus?: string; - }; - name: string; - }[]; - - // Watchdog describes a watchdog device which can be added to the vmi. - // Watchdog *Watchdog `json:"watchdog,omitempty"` - - // Interfaces describe network interfaces which are added to the vmi. - // Interfaces []Interface `json:"interfaces,omitempty"` - interfaces: { - name: string; - masquerade?: object; - macAddress?: string; - model?: string; - }[]; - - // Inputs describe input devices - // Inputs []Input `json:"inputs,omitempty"` - - // Whether to attach a pod network interface. Defaults to true. - // AutoattachPodInterface *bool `json:"autoattachPodInterface,omitempty"` - - // Whether to attach the default graphics device or not. - // VNC will not be available if set to false. Defaults to true. - // AutoattachGraphicsDevice *bool `json:"autoattachGraphicsDevice,omitempty"` - - // Whether to attach the default serial console or not. - // Serial console access will not be available if set to false. Defaults to true. - // AutoattachSerialConsole *bool `json:"autoattachSerialConsole,omitempty"` - - // Whether to attach the Memory balloon device with default period. - // Period can be adjusted in virt-config. - // Defaults to true. - // +optional - // AutoattachMemBalloon *bool `json:"autoattachMemBalloon,omitempty"` - - // Whether to have random number generator from host - // +optional - // Rng *Rng `json:"rng,omitempty"` - rng?: object; - - // Whether or not to enable virtio multi-queue for block devices. - // Defaults to false. - // +optional - // BlockMultiQueue *bool `json:"blockMultiQueue,omitempty"` - - // If specified, virtual network interfaces configured with a virtio bus will also enable the vhost multiqueue feature for network devices. The number of queues created depends on additional factors of the VirtualMachineInstance, like the number of guest CPUs. - // +optional - // NetworkInterfaceMultiQueue *bool `json:"networkInterfaceMultiqueue,omitempty"` - networkInterfaceMultiqueue?: boolean; - - //Whether to attach a GPU device to the vmi. - // +optional - // +listType=atomic - // GPUs []GPU `json:"gpus,omitempty"` - gpus?: unknown[]; - - // Filesystems describes filesystem which is connected to the vmi. - // +optional - // +listType=atomic - // Filesystems []Filesystem `json:"filesystems,omitempty"` - - //Whether to attach a host device to the vmi. - // +optional - // +listType=atomic - // HostDevices []HostDevice `json:"hostDevices,omitempty"` - hostDevices?: unknown[]; - - tpm?: { - persistent?: boolean; - }; -} diff --git a/packages/types/src/types/k8s/index.ts b/packages/types/src/types/k8s/index.ts index d7939b817..3b9ea353f 100644 --- a/packages/types/src/types/k8s/index.ts +++ b/packages/types/src/types/k8s/index.ts @@ -1,9 +1,5 @@ // @index('./*.ts', f => `export * from '${f.path}';`) -export * from './IoK8sApiStorageV1StorageClass'; export * from './K8sResourceCommon'; export * from './K8sResourceCondition'; -export * from './V1Namespace'; export * from './V1NetworkAttachmentDefinition'; -export * from './V1Secret'; -export * from './V1VirtualMachine'; // @endindex diff --git a/packages/types/src/types/provider/openshift/Namespace.ts b/packages/types/src/types/provider/openshift/Namespace.ts index 797353d56..06fa17536 100644 --- a/packages/types/src/types/provider/openshift/Namespace.ts +++ b/packages/types/src/types/provider/openshift/Namespace.ts @@ -1,9 +1,9 @@ -import { V1Namespace } from '../../k8s/V1Namespace'; +import { IoK8sApiCoreV1Namespace } from '../../../generated'; import { TypedOpenshiftResource } from './TypedResource'; // https://github.com/kubev2v/forklift/tree/main/pkg/controller/provider/web/ocp/namespace.go export interface OpenShiftNamespace extends TypedOpenshiftResource { // Object core.Namespace `json:"object"` - object: V1Namespace; + object: IoK8sApiCoreV1Namespace; } diff --git a/packages/types/src/types/provider/openshift/NetworkAttachmentDefinition.ts b/packages/types/src/types/provider/openshift/NetworkAttachmentDefinition.ts index 33a484141..3f4d76fcf 100644 --- a/packages/types/src/types/provider/openshift/NetworkAttachmentDefinition.ts +++ b/packages/types/src/types/provider/openshift/NetworkAttachmentDefinition.ts @@ -1,4 +1,4 @@ -import { V1NetworkAttachmentDefinition } from '../../k8s/V1NetworkAttachmentDefinition'; +import { V1NetworkAttachmentDefinition } from '../../k8s'; import { TypedOpenshiftResource } from './TypedResource'; diff --git a/packages/types/src/types/provider/openshift/Provider.ts b/packages/types/src/types/provider/openshift/Provider.ts index 807a93b2d..ddd84dd9c 100644 --- a/packages/types/src/types/provider/openshift/Provider.ts +++ b/packages/types/src/types/provider/openshift/Provider.ts @@ -1,4 +1,4 @@ -import { V1beta1Provider } from '../../../models'; +import { V1beta1Provider } from '../../../generated'; import { OpenshiftResource } from './Resource'; diff --git a/packages/types/src/types/provider/openshift/StorageClass.ts b/packages/types/src/types/provider/openshift/StorageClass.ts index 73c01bf14..9b32d9bda 100644 --- a/packages/types/src/types/provider/openshift/StorageClass.ts +++ b/packages/types/src/types/provider/openshift/StorageClass.ts @@ -1,4 +1,4 @@ -import { IoK8sApiStorageV1StorageClass } from '../../k8s/IoK8sApiStorageV1StorageClass'; +import { IoK8sApiStorageV1StorageClass } from '../../../generated'; import { TypedOpenshiftResource } from './TypedResource'; diff --git a/packages/types/src/types/provider/openshift/VM.ts b/packages/types/src/types/provider/openshift/VM.ts index 607aa9826..ba4570014 100644 --- a/packages/types/src/types/provider/openshift/VM.ts +++ b/packages/types/src/types/provider/openshift/VM.ts @@ -1,4 +1,4 @@ -import { V1VirtualMachine } from '../../k8s/V1VirtualMachine'; +import { V1VirtualMachine } from '../../../generated'; import { TypedOpenshiftResource } from './TypedResource'; diff --git a/packages/types/src/types/provider/openstack/Provider.ts b/packages/types/src/types/provider/openstack/Provider.ts index e350b7aa6..89a1765ad 100644 --- a/packages/types/src/types/provider/openstack/Provider.ts +++ b/packages/types/src/types/provider/openstack/Provider.ts @@ -1,4 +1,4 @@ -import { V1beta1Provider } from '../../../models'; +import { V1beta1Provider } from '../../../generated'; import { OpenshiftResource } from '../openshift/Resource'; // https://github.com/kubev2v/forklift/tree/main/pkg/controller/provider/web/openstack/provider.go diff --git a/packages/types/src/types/provider/ova/Provider.ts b/packages/types/src/types/provider/ova/Provider.ts index a99207a8b..66bb9bdb3 100644 --- a/packages/types/src/types/provider/ova/Provider.ts +++ b/packages/types/src/types/provider/ova/Provider.ts @@ -1,4 +1,4 @@ -import { V1beta1Provider } from '../../../models'; +import { V1beta1Provider } from '../../../generated'; import { OpenshiftResource } from '../openshift/Resource'; // https://github.com/kubev2v/forklift/tree/main/pkg/controller/provider/web/ova/provider.go diff --git a/packages/types/src/types/provider/ova/index.ts b/packages/types/src/types/provider/ova/index.ts index a2d802c2c..ab002aa3c 100644 --- a/packages/types/src/types/provider/ova/index.ts +++ b/packages/types/src/types/provider/ova/index.ts @@ -3,5 +3,6 @@ export * from './Network'; export * from './Provider'; export * from './Resource'; export * from './TreeNode'; +export * from './TypedResource'; export * from './VM'; // @endindex diff --git a/packages/types/src/types/provider/ovirt/Provider.ts b/packages/types/src/types/provider/ovirt/Provider.ts index 6916704a1..4347a13a8 100644 --- a/packages/types/src/types/provider/ovirt/Provider.ts +++ b/packages/types/src/types/provider/ovirt/Provider.ts @@ -1,4 +1,4 @@ -import { V1beta1Provider } from '../../../models'; +import { V1beta1Provider } from '../../../generated'; import { OpenshiftResource } from '../openshift/Resource'; // https://github.com/kubev2v/forklift/tree/main/pkg/controller/provider/web/ovirt/provider.go diff --git a/packages/types/src/types/provider/vsphere/Provider.ts b/packages/types/src/types/provider/vsphere/Provider.ts index 25697f277..eed417436 100644 --- a/packages/types/src/types/provider/vsphere/Provider.ts +++ b/packages/types/src/types/provider/vsphere/Provider.ts @@ -1,4 +1,4 @@ -import { V1beta1Provider } from '../../../models'; +import { V1beta1Provider } from '../../../generated'; import { OpenshiftResource } from '../openshift/Resource'; // https://github.com/kubev2v/forklift/tree/main/pkg/controller/provider/web/vsphere/provider.go diff --git a/packages/types/tsconfig.json b/packages/types/tsconfig.json index 09d3df591..1ffd9d89c 100644 --- a/packages/types/tsconfig.json +++ b/packages/types/tsconfig.json @@ -5,6 +5,7 @@ "compilerOptions": { "outDir": "./dist", - "rootDir": "./src" + "rootDir": "./src", + "noUnusedLocals": false } }